# Calculate report with override

- Operation ID: `analytics2-recalculate-report-override`
- HTTP method: `POST`
- Path: `/analytics/analytics/v4/reports/{AnalysisId}/recalculate/override`
- [Human-readable API reference](https://hub.synerise.com/api-reference/analytics-suite#tag/Analytics:-Reports/operation/analytics2-recalculate-report-override)

## Self-contained OpenAPI method

The fenced document below contains this method's documentation and all of its local references. It is self-contained; no category or master specification fetch is required.

````yaml
openapi: 3.0.0
info:
  title: Synerise Public API
  version: 1.9.1
paths:
  /analytics/analytics/v4/reports/{AnalysisId}/recalculate/override:
    post:
      tags:
        - "Analytics: Reports"
      summary: Calculate report with override
      description: |
        Calculate a report with new parameters and/or variables (dynamic keys)

        ---

        **API consumers:** <a href="/api-reference/authorization?tag=Authorization&amp;operationId=userLogin" target="_blank" rel="noopener">Synerise User</a>, <a href="/api-reference/authorization?tag=Authorization&amp;operationId=profileLogin" target="_blank" rel="noopener">Workspace (Business Profile)</a>

        **API key permission required:** `ANALYTICS_BACKEND_REPORT_READ`

        **User role permission required:** `analytics: read`
      operationId: analytics2-recalculate-report-override
      parameters:
        - name: AnalysisId
          in: path
          description: UUID of the analysis
          required: true
          style: simple
          explode: false
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Override details
              properties:
                title:
                  type: string
                  description: Name of the resource
                dateFilter:
                  description: |
                    Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                    An absolute date filter lets you define static dates and times that always apply to the analysis.

                    A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                  discriminator:
                    propertyName: type
                    mapping:
                      ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                      RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                  oneOf:
                    - type: object
                      title: AbsoluteDateFilter
                      properties:
                        type:
                          title: AbsoluteDateFilterType
                          x-class-name: AbsoluteDateFilterType
                          x-interface-name-ts: AbsoluteDateFilterType
                          type: string
                          enum:
                            - ABSOLUTE
                          description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                        from:
                          type: string
                          format: date-time
                          description: The lower boundary of the date filter.
                        to:
                          type: string
                          format: date-time
                          description: The upper boundary of the date filter. Must be later than `from`.
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - type
                    - type: object
                      title: RelativeDateFilter
                      properties:
                        type:
                          title: RelativeDateFilterType
                          x-class-name: RelativeDateFilterType
                          x-interface-name-ts: RelativeDateFilterType
                          type: string
                          enum:
                            - RELATIVE
                          description: |
                            Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                            - `duration` is the length of time that the filter covers.
                            - `offset` is the time that the filter goes back to set the beginning of the duration.
                        duration:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        offset:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - duration
                        - offset
                        - type
                aggregateDataBy:
                  type: object
                  description: The definition of a length of time.
                  properties:
                    type:
                      type: string
                      x-class-name: TimePeriod
                      x-interface-name-ts: TimePeriod
                      description: The unit of time
                      enum:
                        - YEARS
                        - MONTHS
                        - WEEKS
                        - DAYS
                        - HOURS
                        - MINUTES
                        - SECONDS
                        - UNKNOWN
                    value:
                      type: integer
                      description: The number of time units
                      format: int64
                  required:
                    - type
                    - value
                filter:
                  type: object
                  description: |
                    This filter lets you limit the results to profiles that match it. For no filter, leave the object empty.  

                    The `expression` object is only used by the Synerise Web Portal. If you're integrating an API, don't send this object or send it empty. If you send `expression` and `expressions`, `expressions` takes priority.
                  properties:
                    matching:
                      type: boolean
                      description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                      default: true
                    expressions:
                      type: array
                      description: Profile filter details. The expressions are applied according to their position in the array. The logical AND/OR operator must be placed between expressions. An empty array means no filters are applied.
                      items:
                        discriminator:
                          propertyName: type
                          mapping:
                            ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterBox"
                            EXPRESSION: "#/components/schemas/analytics-ExpressionFilterBox"
                            FUNNEL: "#/components/schemas/analytics-FunnelFilterBox"
                            OPERATOR: "#/components/schemas/analytics-OperatorFilterBox"
                        oneOf:
                          - type: object
                            properties:
                              type:
                                x-class-name: AttributeFilterBoxType
                                type: string
                                enum:
                                  - ATTRIBUTE
                                description: Tests a profile attribute against a condition
                              name:
                                type: string
                                description: Name of the resource
                              matching:
                                type: boolean
                                description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                                default: true
                              attribute:
                                type: object
                                description: The condition to test a profile attribute
                                properties:
                                  expressions:
                                    type: array
                                    description: An array of conditions. All conditions must be met.
                                    items:
                                      type: object
                                      properties:
                                        constraint:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                                              STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                                              STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                                              NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                                              NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                                              STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                                              ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                                              "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                                              DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                                              DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                                              DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                                              DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                                          oneOf:
                                            - type: object
                                              title: Boolean
                                              properties:
                                                type:
                                                  x-class-name: BoolClientConstraintType
                                                  type: string
                                                  enum:
                                                    - BOOL
                                                  description: Tests a boolean value
                                                logic:
                                                  description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                  x-class-name: BoolClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - IS_TRUE
                                                    - IS_FALSE
                                              required:
                                                - type
                                                - logic
                                            - type: object
                                              title: Check empty
                                              description: This type is used to check if a string is empty.
                                              properties:
                                                type:
                                                  x-class-name: StringZeroClientConstraintType
                                                  type: string
                                                  description: This type is used to check if a string is empty.
                                                  enum:
                                                    - STRING_ZERO
                                                logic:
                                                  description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                  x-class-name: StringZeroClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - IS_EMPTY
                                                    - IS_NOT_EMPTY
                                              required:
                                                - type
                                                - logic
                                            - type: object
                                              title: String
                                              properties:
                                                type:
                                                  description: This type is used to test values that are a single string.
                                                  x-class-name: StringOneClientConstraintType
                                                  type: string
                                                  enum:
                                                    - STRING_ONE
                                                logic:
                                                  description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                  x-class-name: StringOneClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - CONTAIN
                                                    - NOT_CONTAIN
                                                    - EQUAL
                                                    - NOT_EQUAL
                                                    - STARTS_WITH
                                                    - REGEXP
                                                    - ENDS_WITH
                                                value:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value
                                            - type: object
                                              title: Number
                                              properties:
                                                type:
                                                  description: This type is used to test values that are a single number
                                                  x-class-name: NumberOneClientConstraintType
                                                  type: string
                                                  enum:
                                                    - NUMBER_ONE
                                                logic:
                                                  description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                  x-class-name: NumberOneClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - EQUAL
                                                    - NOT_EQUAL
                                                    - LESS
                                                    - MORE
                                                    - MORE_OR_EQUAL
                                                    - LESS_OR_EQUAL
                                                value:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value
                                            - type: object
                                              title: Two numbers
                                              properties:
                                                type:
                                                  description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                  x-class-name: NumberTwoClientConstraintType
                                                  type: string
                                                  enum:
                                                    - NUMBER_TWO
                                                logic:
                                                  description: Checks if the attribute is between two numbers.
                                                  x-class-name: NumberTwoClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - BETWEEN
                                                value1:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                                value2:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value1
                                                - value2
                                            - type: object
                                              title: Check if string in array
                                              properties:
                                                type:
                                                  description: This type is used to check if a string exists in an array defined in `value`
                                                  x-class-name: StringArrayClientConstraintType
                                                  type: string
                                                  enum:
                                                    - STRING_ARRAY
                                                logic:
                                                  description: You can check if the value from `attribute` is in the array defined in `value`
                                                  x-class-name: StringArrayClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - IN
                                                    - NOT_IN
                                                value:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value
                                            - type: object
                                              title: Other string array tests
                                              properties:
                                                type:
                                                  description: "`value` should be an array"
                                                  x-class-name: ArrayStringOneClientConstraintType
                                                  type: string
                                                  enum:
                                                    - ARRAY_STRING_ONE_DEPRECATED
                                                logic:
                                                  description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                                  x-class-name: ArrayStringOneClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - CONTAIN
                                                    - NOT_CONTAIN
                                                    - EQUAL
                                                    - NOT_EQUAL
                                                    - STARTS_WITH
                                                    - REGEXP
                                                    - ENDS_WITH
                                                value:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value
                                            - type: object
                                              title: Check if null
                                              properties:
                                                type:
                                                  x-class-name: NullClientConstraintType
                                                  type: string
                                                  enum:
                                                    - "NULL"
                                                  description: This type is used to check if a value is null
                                                logic:
                                                  description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                  x-class-name: NullClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - IS_NULL
                                                    - IS_NOT_NULL
                                              required:
                                                - type
                                                - logic
                                            - type: object
                                              title: Current date
                                              properties:
                                                type:
                                                  description: Compare a date from `attribute` to the current date
                                                  x-class-name: DateZeroClientConstraintType
                                                  type: string
                                                  enum:
                                                    - DATE_ZERO
                                                logic:
                                                  description: Logic to apply to the date from `attribute`
                                                  x-class-name: DateZeroClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - MATCHES_CURRENT_DAY
                                                    - MATCHES_CURRENT_HOUR
                                                    - MATCHES_CURRENT_MONTH
                                                    - MATCHES_CURRENT_YEAR
                                              required:
                                                - type
                                                - logic
                                            - description: This type is used to check `attribute` against a date.
                                              type: object
                                              title: Date
                                              properties:
                                                type:
                                                  x-class-name: DateOneClientConstraintType
                                                  type: string
                                                  description: This type is used to check `attribute` against a date.
                                                  enum:
                                                    - DATE_ONE
                                                logic:
                                                  description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                  x-class-name: DateOneClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - LESS
                                                    - MORE
                                                    - LESS_OR_EQUAL
                                                    - MORE_OR_EQUAL
                                                value:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value
                                            - description: This type is used to check if a date is between two other dates.
                                              type: object
                                              title: Date range
                                              properties:
                                                type:
                                                  x-class-name: DateTwoClientConstraintType
                                                  type: string
                                                  description: This type is used to check if a date is between two other dates.
                                                  enum:
                                                    - DATE_TWO
                                                logic:
                                                  description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                  x-class-name: DateTwoClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - BETWEEN
                                                value1:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                                value2:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                      CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                      VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                  oneOf:
                                                    - type: object
                                                      title: Static value
                                                      description: Inserts a static value.
                                                      properties:
                                                        type:
                                                          x-class-name: ConstantClientValueType
                                                          type: string
                                                          description: Inserts a static value.
                                                          enum:
                                                            - CONSTANT
                                                        constant:
                                                          description: |
                                                            The value can't:
                                                              - be longer than 21000 characters if it's a string
                                                              - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: boolean
                                                            - type: array
                                                              items:
                                                                type: string
                                                      required:
                                                        - type
                                                        - constant
                                                    - type: object
                                                      title: Profile attribute
                                                      properties:
                                                        type:
                                                          x-class-name: ClientClientValueType
                                                          type: string
                                                          enum:
                                                            - CLIENT
                                                          description: Definition of a profile attribute
                                                        attribute:
                                                          description: A profile attribute to analyze
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                          oneOf:
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - PARAM
                                                                param:
                                                                  description: Name of the parameter
                                                                  type: string
                                                              required:
                                                                - type
                                                                - param
                                                            - type: object
                                                              description: Reference to a tag
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - TAG
                                                                tag:
                                                                  description: Name of the tag
                                                                  type: string
                                                              required:
                                                                - type
                                                                - tag
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - AGGREGATE
                                                                uuid:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - uuid
                                                                - id
                                                            - type: object
                                                              description: Reference to a segmentation
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SEGMENTATION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Pointer to an expression
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EXPRESSION
                                                                id:
                                                                  type: string
                                                                  format: uuid
                                                                  description: |
                                                                    UUID of the analysis
                                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              required:
                                                                - type
                                                                - id
                                                            - type: object
                                                              description: Reference to a special parameter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - SPECIAL
                                                                special:
                                                                  type: string
                                                                  description: The name of the special parameter
                                                              required:
                                                                - type
                                                                - special
                                                            - type: object
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  enum:
                                                                    - EMPTY
                                                              required:
                                                                - type
                                                      required:
                                                        - type
                                                        - attribute
                                                    - type: object
                                                      title: Dynamic value
                                                      properties:
                                                        type:
                                                          x-class-name: VariableClientValueType
                                                          type: string
                                                          description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                          enum:
                                                            - VARIABLE
                                                        name:
                                                          type: string
                                                          description: The name of the dynamic key
                                                        defaultValue:
                                                          description: The default value to use
                                                          oneOf:
                                                            - type: string
                                                            - type: number
                                                            - type: array
                                                              items: {}
                                                      required:
                                                        - type
                                                        - name
                                                        - defaultValue
                                              required:
                                                - type
                                                - logic
                                                - value1
                                                - value2
                                            - type: object
                                              title: Date filter
                                              description: This type is used to check if a date matches a date filter.
                                              properties:
                                                type:
                                                  x-class-name: DateFilterClientConstraintType
                                                  type: string
                                                  description: This type is used to check if a date matches a date filter.
                                                  enum:
                                                    - DATE_FILTER
                                                logic:
                                                  description: Checks if the date from `attribute` matches a date filter.
                                                  x-class-name: DateFilterClientConstraintLogic
                                                  type: string
                                                  enum:
                                                    - DATE_FILTER
                                                value:
                                                  description: |
                                                    Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                    An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                    A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                      RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                  oneOf:
                                                    - type: object
                                                      title: AbsoluteDateFilter
                                                      properties:
                                                        type:
                                                          title: AbsoluteDateFilterType
                                                          x-class-name: AbsoluteDateFilterType
                                                          x-interface-name-ts: AbsoluteDateFilterType
                                                          type: string
                                                          enum:
                                                            - ABSOLUTE
                                                          description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                        from:
                                                          type: string
                                                          format: date-time
                                                          description: The lower boundary of the date filter.
                                                        to:
                                                          type: string
                                                          format: date-time
                                                          description: The upper boundary of the date filter. Must be later than `from`.
                                                        filter:
                                                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                          oneOf:
                                                            - type: object
                                                              title: Daily
                                                              x-class-name: CustomDailyFilter
                                                              x-interface-name-ts: CustomDailyFilter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomDailyFilterType
                                                                  x-interface-name-ts: CustomDailyFilterType
                                                                  enum:
                                                                    - DAILY
                                                                  description: Daily filters limit the data scope to a range of hours every day.
                                                                nestingType:
                                                                  x-class-name: CustomDailyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - nestingType
                                                                - type
                                                                - from
                                                                - to
                                                            - type: object
                                                              title: Weekly
                                                              x-class-name: CustomWeeklyFilter
                                                              x-interface-name-ts: CustomWeeklyFilter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomWeeklyFilterType
                                                                  x-interface-name-ts: CustomWeeklyFilterType
                                                                  enum:
                                                                    - WEEKLY
                                                                  description: Weekly filters let you define separate rules for each day of the week.
                                                                nestingType:
                                                                  x-class-name: CustomWeeklyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                days:
                                                                  type: array
                                                                  description: An array of rules for different days of the week.
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                              required:
                                                                - days
                                                                - nestingType
                                                                - type
                                                            - type: object
                                                              title: Monthly
                                                              x-class-name: CustomMonthlyFilterType
                                                              x-interface-name-ts: CustomMonthlyFilterType
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomMonthlyFilterType
                                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                                  enum:
                                                                    - MONTHLY
                                                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                nestingType:
                                                                  x-class-name: CustomMonthlyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                rules:
                                                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                  oneOf:
                                                                    - type: object
                                                                      title: Days of the week
                                                                      x-class-name: WeekDateRule
                                                                      x-interface-name-ts: WeekDateRule
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: WeekDateRuleType
                                                                          x-interface-name-ts: WeekDateRuleType
                                                                          enum:
                                                                            - WEEK
                                                                          description: Weekly filters limit the scope to days in a week
                                                                        weeks:
                                                                          type: array
                                                                          description: Weeks of the month included in the pattern
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              week:
                                                                                type: integer
                                                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                              days:
                                                                                type: array
                                                                                description: Days included in the pattern
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                            required:
                                                                              - days
                                                                              - type
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: |
                                                                            When set to `true`, weeks are counted from the end of the month.

                                                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                      required:
                                                                        - type
                                                                        - weeks
                                                                    - type: object
                                                                      title: Days of the month
                                                                      x-class-name: MonthDateRule
                                                                      x-interface-name-ts: MonthDateRule
                                                                      properties:
                                                                        type:
                                                                          description: Rules for days of the month
                                                                          type: string
                                                                          x-class-name: MonthDateRuleType
                                                                          x-interface-name-ts: MonthDateRuleType
                                                                          enum:
                                                                            - MONTH
                                                                        days:
                                                                          type: array
                                                                          description: Days of the month included in the pattern.
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: |
                                                                            When set to `true`, days are counted from the end of the month.

                                                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                      required:
                                                                        - days
                                                                        - type
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                              required:
                                                                - nestingType
                                                                - rules
                                                                - type
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                      required:
                                                        - type
                                                    - type: object
                                                      title: RelativeDateFilter
                                                      properties:
                                                        type:
                                                          title: RelativeDateFilterType
                                                          x-class-name: RelativeDateFilterType
                                                          x-interface-name-ts: RelativeDateFilterType
                                                          type: string
                                                          enum:
                                                            - RELATIVE
                                                          description: |
                                                            Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                            - `duration` is the length of time that the filter covers.
                                                            - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                        duration:
                                                          type: object
                                                          description: The definition of a length of time.
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: TimePeriod
                                                              x-interface-name-ts: TimePeriod
                                                              description: The unit of time
                                                              enum:
                                                                - YEARS
                                                                - MONTHS
                                                                - WEEKS
                                                                - DAYS
                                                                - HOURS
                                                                - MINUTES
                                                                - SECONDS
                                                                - UNKNOWN
                                                            value:
                                                              type: integer
                                                              description: The number of time units
                                                              format: int64
                                                          required:
                                                            - type
                                                            - value
                                                        offset:
                                                          type: object
                                                          description: The definition of a length of time.
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: TimePeriod
                                                              x-interface-name-ts: TimePeriod
                                                              description: The unit of time
                                                              enum:
                                                                - YEARS
                                                                - MONTHS
                                                                - WEEKS
                                                                - DAYS
                                                                - HOURS
                                                                - MINUTES
                                                                - SECONDS
                                                                - UNKNOWN
                                                            value:
                                                              type: integer
                                                              description: The number of time units
                                                              format: int64
                                                          required:
                                                            - type
                                                            - value
                                                        filter:
                                                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                          oneOf:
                                                            - type: object
                                                              title: Daily
                                                              x-class-name: CustomDailyFilter
                                                              x-interface-name-ts: CustomDailyFilter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomDailyFilterType
                                                                  x-interface-name-ts: CustomDailyFilterType
                                                                  enum:
                                                                    - DAILY
                                                                  description: Daily filters limit the data scope to a range of hours every day.
                                                                nestingType:
                                                                  x-class-name: CustomDailyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - nestingType
                                                                - type
                                                                - from
                                                                - to
                                                            - type: object
                                                              title: Weekly
                                                              x-class-name: CustomWeeklyFilter
                                                              x-interface-name-ts: CustomWeeklyFilter
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomWeeklyFilterType
                                                                  x-interface-name-ts: CustomWeeklyFilterType
                                                                  enum:
                                                                    - WEEKLY
                                                                  description: Weekly filters let you define separate rules for each day of the week.
                                                                nestingType:
                                                                  x-class-name: CustomWeeklyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                days:
                                                                  type: array
                                                                  description: An array of rules for different days of the week.
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                              required:
                                                                - days
                                                                - nestingType
                                                                - type
                                                            - type: object
                                                              title: Monthly
                                                              x-class-name: CustomMonthlyFilterType
                                                              x-interface-name-ts: CustomMonthlyFilterType
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: CustomMonthlyFilterType
                                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                                  enum:
                                                                    - MONTHLY
                                                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                nestingType:
                                                                  x-class-name: CustomMonthlyFilterNestingType
                                                                  type: string
                                                                  enum:
                                                                    - IN_PLACE
                                                                rules:
                                                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                  oneOf:
                                                                    - type: object
                                                                      title: Days of the week
                                                                      x-class-name: WeekDateRule
                                                                      x-interface-name-ts: WeekDateRule
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: WeekDateRuleType
                                                                          x-interface-name-ts: WeekDateRuleType
                                                                          enum:
                                                                            - WEEK
                                                                          description: Weekly filters limit the scope to days in a week
                                                                        weeks:
                                                                          type: array
                                                                          description: Weeks of the month included in the pattern
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              week:
                                                                                type: integer
                                                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                              days:
                                                                                type: array
                                                                                description: Days included in the pattern
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                            required:
                                                                              - days
                                                                              - type
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: |
                                                                            When set to `true`, weeks are counted from the end of the month.

                                                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                      required:
                                                                        - type
                                                                        - weeks
                                                                    - type: object
                                                                      title: Days of the month
                                                                      x-class-name: MonthDateRule
                                                                      x-interface-name-ts: MonthDateRule
                                                                      properties:
                                                                        type:
                                                                          description: Rules for days of the month
                                                                          type: string
                                                                          x-class-name: MonthDateRuleType
                                                                          x-interface-name-ts: MonthDateRuleType
                                                                          enum:
                                                                            - MONTH
                                                                        days:
                                                                          type: array
                                                                          description: Days of the month included in the pattern.
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: |
                                                                            When set to `true`, days are counted from the end of the month.

                                                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                      required:
                                                                        - days
                                                                        - type
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                              required:
                                                                - nestingType
                                                                - rules
                                                                - type
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                      required:
                                                        - duration
                                                        - offset
                                                        - type
                                              required:
                                                - type
                                                - logic
                                                - value
                                        attribute:
                                          description: A profile attribute to analyze
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                              TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                              AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                              SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                              EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                              SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                              EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                          oneOf:
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - PARAM
                                                param:
                                                  description: Name of the parameter
                                                  type: string
                                              required:
                                                - type
                                                - param
                                            - type: object
                                              description: Reference to a tag
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - TAG
                                                tag:
                                                  description: Name of the tag
                                                  type: string
                                              required:
                                                - type
                                                - tag
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - AGGREGATE
                                                uuid:
                                                  type: string
                                                  format: uuid
                                                  description: |
                                                    UUID of the analysis
                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                id:
                                                  type: string
                                                  format: uuid
                                                  description: |
                                                    UUID of the analysis
                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              required:
                                                - type
                                                - uuid
                                                - id
                                            - type: object
                                              description: Reference to a segmentation
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SEGMENTATION
                                                id:
                                                  type: string
                                                  format: uuid
                                                  description: |
                                                    UUID of the analysis
                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              required:
                                                - type
                                                - id
                                            - type: object
                                              description: Pointer to an expression
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - EXPRESSION
                                                id:
                                                  type: string
                                                  format: uuid
                                                  description: |
                                                    UUID of the analysis
                                                  example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              required:
                                                - type
                                                - id
                                            - type: object
                                              description: Reference to a special parameter
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - SPECIAL
                                                special:
                                                  type: string
                                                  description: The name of the special parameter
                                              required:
                                                - type
                                                - special
                                            - type: object
                                              properties:
                                                type:
                                                  type: string
                                                  enum:
                                                    - EMPTY
                                              required:
                                                - type
                                required:
                                  - expressions
                          - description: A condition to test
                            type: object
                            properties:
                              type:
                                description: A condition to test
                                x-class-name: ExpressionFilterBoxType
                                type: string
                                enum:
                                  - EXPRESSION
                              name:
                                type: string
                              matching:
                                type: boolean
                              expressions:
                                $ref: "#/components/schemas/analytics-FilterBox"
                            required:
                              - type
                              - expressions
                          - type: object
                            properties:
                              type:
                                description: Tests against a funnel
                                x-class-name: ExpressionFilterBoxType
                                type: string
                                enum:
                                  - FUNNEL
                              name:
                                type: string
                                description: Name of the resource
                              matching:
                                type: boolean
                                description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                                default: true
                              funnel:
                                type: object
                                description: Funnel conditions
                                properties:
                                  title:
                                    type: string
                                    description: Title of the funnel.
                                  completedWithin:
                                    type: object
                                    description: |
                                      Time constraint for completing all the steps in the funnel. Timer starts
                                      when the first step is triggered.

                                      - `period` sets the time unit
                                      - `value` sets the number of time units
                                    properties:
                                      period:
                                        type: string
                                        x-class-name: TimePeriod
                                        x-interface-name-ts: TimePeriod
                                        description: The unit of time
                                        enum:
                                          - YEARS
                                          - MONTHS
                                          - WEEKS
                                          - DAYS
                                          - HOURS
                                          - MINUTES
                                          - SECONDS
                                          - UNKNOWN
                                      value:
                                        description: The number of time units
                                        type: number
                                        format: int64
                                  dateFilter:
                                    description: |
                                      Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                      An absolute date filter lets you define static dates and times that always apply to the analysis.

                                      A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                    discriminator:
                                      propertyName: type
                                      mapping:
                                        ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                        RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                    oneOf:
                                      - type: object
                                        title: AbsoluteDateFilter
                                        properties:
                                          type:
                                            title: AbsoluteDateFilterType
                                            x-class-name: AbsoluteDateFilterType
                                            x-interface-name-ts: AbsoluteDateFilterType
                                            type: string
                                            enum:
                                              - ABSOLUTE
                                            description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                          from:
                                            type: string
                                            format: date-time
                                            description: The lower boundary of the date filter.
                                          to:
                                            type: string
                                            format: date-time
                                            description: The upper boundary of the date filter. Must be later than `from`.
                                          filter:
                                            description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                            oneOf:
                                              - type: object
                                                title: Daily
                                                x-class-name: CustomDailyFilter
                                                x-interface-name-ts: CustomDailyFilter
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomDailyFilterType
                                                    x-interface-name-ts: CustomDailyFilterType
                                                    enum:
                                                      - DAILY
                                                    description: Daily filters limit the data scope to a range of hours every day.
                                                  nestingType:
                                                    x-class-name: CustomDailyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  from:
                                                    type: string
                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                  to:
                                                    type: string
                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                required:
                                                  - nestingType
                                                  - type
                                                  - from
                                                  - to
                                              - type: object
                                                title: Weekly
                                                x-class-name: CustomWeeklyFilter
                                                x-interface-name-ts: CustomWeeklyFilter
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomWeeklyFilterType
                                                    x-interface-name-ts: CustomWeeklyFilterType
                                                    enum:
                                                      - WEEKLY
                                                    description: Weekly filters let you define separate rules for each day of the week.
                                                  nestingType:
                                                    x-class-name: CustomWeeklyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  days:
                                                    type: array
                                                    description: An array of rules for different days of the week.
                                                    items:
                                                      type: object
                                                      properties:
                                                        day:
                                                          type: integer
                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        mode:
                                                          type: string
                                                          enum:
                                                            - Range
                                                            - Hour
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - day
                                                        - from
                                                        - inverted
                                                        - to
                                                required:
                                                  - days
                                                  - nestingType
                                                  - type
                                              - type: object
                                                title: Monthly
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomMonthlyFilterType
                                                    x-interface-name-ts: CustomMonthlyFilterType
                                                    enum:
                                                      - MONTHLY
                                                    description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                  nestingType:
                                                    x-class-name: CustomMonthlyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  rules:
                                                    description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                    oneOf:
                                                      - type: object
                                                        title: Days of the week
                                                        x-class-name: WeekDateRule
                                                        x-interface-name-ts: WeekDateRule
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: WeekDateRuleType
                                                            x-interface-name-ts: WeekDateRuleType
                                                            enum:
                                                              - WEEK
                                                            description: Weekly filters limit the scope to days in a week
                                                          weeks:
                                                            type: array
                                                            description: Weeks of the month included in the pattern
                                                            items:
                                                              type: object
                                                              properties:
                                                                week:
                                                                  type: integer
                                                                  description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                days:
                                                                  type: array
                                                                  description: Days included in the pattern
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                              required:
                                                                - days
                                                                - type
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: |
                                                              When set to `true`, weeks are counted from the end of the month.

                                                              For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                              **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                        required:
                                                          - type
                                                          - weeks
                                                      - type: object
                                                        title: Days of the month
                                                        x-class-name: MonthDateRule
                                                        x-interface-name-ts: MonthDateRule
                                                        properties:
                                                          type:
                                                            description: Rules for days of the month
                                                            type: string
                                                            x-class-name: MonthDateRuleType
                                                            x-interface-name-ts: MonthDateRuleType
                                                            enum:
                                                              - MONTH
                                                          days:
                                                            type: array
                                                            description: Days of the month included in the pattern.
                                                            items:
                                                              type: object
                                                              properties:
                                                                day:
                                                                  type: integer
                                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                mode:
                                                                  type: string
                                                                  enum:
                                                                    - Range
                                                                    - Hour
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - day
                                                                - from
                                                                - inverted
                                                                - to
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: |
                                                              When set to `true`, days are counted from the end of the month.

                                                              For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                              **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                        required:
                                                          - days
                                                          - type
                                                    discriminator:
                                                      propertyName: type
                                                      mapping:
                                                        WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                        MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                required:
                                                  - nestingType
                                                  - rules
                                                  - type
                                            discriminator:
                                              propertyName: type
                                              mapping:
                                                DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                        required:
                                          - type
                                      - type: object
                                        title: RelativeDateFilter
                                        properties:
                                          type:
                                            title: RelativeDateFilterType
                                            x-class-name: RelativeDateFilterType
                                            x-interface-name-ts: RelativeDateFilterType
                                            type: string
                                            enum:
                                              - RELATIVE
                                            description: |
                                              Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                              - `duration` is the length of time that the filter covers.
                                              - `offset` is the time that the filter goes back to set the beginning of the duration.
                                          duration:
                                            type: object
                                            description: The definition of a length of time.
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: TimePeriod
                                                x-interface-name-ts: TimePeriod
                                                description: The unit of time
                                                enum:
                                                  - YEARS
                                                  - MONTHS
                                                  - WEEKS
                                                  - DAYS
                                                  - HOURS
                                                  - MINUTES
                                                  - SECONDS
                                                  - UNKNOWN
                                              value:
                                                type: integer
                                                description: The number of time units
                                                format: int64
                                            required:
                                              - type
                                              - value
                                          offset:
                                            type: object
                                            description: The definition of a length of time.
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: TimePeriod
                                                x-interface-name-ts: TimePeriod
                                                description: The unit of time
                                                enum:
                                                  - YEARS
                                                  - MONTHS
                                                  - WEEKS
                                                  - DAYS
                                                  - HOURS
                                                  - MINUTES
                                                  - SECONDS
                                                  - UNKNOWN
                                              value:
                                                type: integer
                                                description: The number of time units
                                                format: int64
                                            required:
                                              - type
                                              - value
                                          filter:
                                            description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                            oneOf:
                                              - type: object
                                                title: Daily
                                                x-class-name: CustomDailyFilter
                                                x-interface-name-ts: CustomDailyFilter
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomDailyFilterType
                                                    x-interface-name-ts: CustomDailyFilterType
                                                    enum:
                                                      - DAILY
                                                    description: Daily filters limit the data scope to a range of hours every day.
                                                  nestingType:
                                                    x-class-name: CustomDailyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  from:
                                                    type: string
                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                  to:
                                                    type: string
                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                required:
                                                  - nestingType
                                                  - type
                                                  - from
                                                  - to
                                              - type: object
                                                title: Weekly
                                                x-class-name: CustomWeeklyFilter
                                                x-interface-name-ts: CustomWeeklyFilter
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomWeeklyFilterType
                                                    x-interface-name-ts: CustomWeeklyFilterType
                                                    enum:
                                                      - WEEKLY
                                                    description: Weekly filters let you define separate rules for each day of the week.
                                                  nestingType:
                                                    x-class-name: CustomWeeklyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  days:
                                                    type: array
                                                    description: An array of rules for different days of the week.
                                                    items:
                                                      type: object
                                                      properties:
                                                        day:
                                                          type: integer
                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        mode:
                                                          type: string
                                                          enum:
                                                            - Range
                                                            - Hour
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - day
                                                        - from
                                                        - inverted
                                                        - to
                                                required:
                                                  - days
                                                  - nestingType
                                                  - type
                                              - type: object
                                                title: Monthly
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: CustomMonthlyFilterType
                                                    x-interface-name-ts: CustomMonthlyFilterType
                                                    enum:
                                                      - MONTHLY
                                                    description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                  nestingType:
                                                    x-class-name: CustomMonthlyFilterNestingType
                                                    type: string
                                                    enum:
                                                      - IN_PLACE
                                                  rules:
                                                    description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                    oneOf:
                                                      - type: object
                                                        title: Days of the week
                                                        x-class-name: WeekDateRule
                                                        x-interface-name-ts: WeekDateRule
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: WeekDateRuleType
                                                            x-interface-name-ts: WeekDateRuleType
                                                            enum:
                                                              - WEEK
                                                            description: Weekly filters limit the scope to days in a week
                                                          weeks:
                                                            type: array
                                                            description: Weeks of the month included in the pattern
                                                            items:
                                                              type: object
                                                              properties:
                                                                week:
                                                                  type: integer
                                                                  description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                days:
                                                                  type: array
                                                                  description: Days included in the pattern
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                              required:
                                                                - days
                                                                - type
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: |
                                                              When set to `true`, weeks are counted from the end of the month.

                                                              For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                              **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                        required:
                                                          - type
                                                          - weeks
                                                      - type: object
                                                        title: Days of the month
                                                        x-class-name: MonthDateRule
                                                        x-interface-name-ts: MonthDateRule
                                                        properties:
                                                          type:
                                                            description: Rules for days of the month
                                                            type: string
                                                            x-class-name: MonthDateRuleType
                                                            x-interface-name-ts: MonthDateRuleType
                                                            enum:
                                                              - MONTH
                                                          days:
                                                            type: array
                                                            description: Days of the month included in the pattern.
                                                            items:
                                                              type: object
                                                              properties:
                                                                day:
                                                                  type: integer
                                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                mode:
                                                                  type: string
                                                                  enum:
                                                                    - Range
                                                                    - Hour
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - day
                                                                - from
                                                                - inverted
                                                                - to
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: |
                                                              When set to `true`, days are counted from the end of the month.

                                                              For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                              **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                        required:
                                                          - days
                                                          - type
                                                    discriminator:
                                                      propertyName: type
                                                      mapping:
                                                        WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                        MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                required:
                                                  - nestingType
                                                  - rules
                                                  - type
                                            discriminator:
                                              propertyName: type
                                              mapping:
                                                DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                        required:
                                          - duration
                                          - offset
                                          - type
                                  steps:
                                    type: array
                                    minItems: 0
                                    description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                                    items:
                                      type: object
                                      properties:
                                        title:
                                          type: string
                                          description: The name of the step
                                        action:
                                          type: object
                                          description: The analyzed event
                                          nullable: true
                                          required:
                                            - name
                                          properties:
                                            id:
                                              type: integer
                                              format: int64
                                              deprecated: true
                                              nullable: true
                                              description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                                            name:
                                              type: string
                                              description: Action name of the event.
                                              example: page.visit
                                        expressions:
                                          type: array
                                          description: An array of conditions that the event must meet
                                          items:
                                            type: object
                                            description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                                            properties:
                                              constraint:
                                                description: |
                                                  This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                                  **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                                    STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                                    STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                                    NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                                    NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                                    STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                                    ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                                    "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                                    DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                                    DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                                    DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                                    DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                                                oneOf:
                                                  - type: object
                                                    title: Boolean
                                                    properties:
                                                      type:
                                                        x-class-name: BoolConstraintType
                                                        type: string
                                                        enum:
                                                          - BOOL
                                                        description: Tests a boolean value
                                                      logic:
                                                        x-class-name: BoolConstraintLogic
                                                        type: string
                                                        description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                        enum:
                                                          - IS_TRUE
                                                          - IS_FALSE
                                                    required:
                                                      - type
                                                      - logic
                                                  - type: object
                                                    title: Check empty
                                                    description: This type is used to check if a string is empty.
                                                    properties:
                                                      type:
                                                        title: String zero
                                                        x-class-name: StringZeroConstraintType
                                                        type: string
                                                        description: This type is used to check if a string is empty.
                                                        enum:
                                                          - STRING_ZERO
                                                      logic:
                                                        x-class-name: StringZeroConstraintLogic
                                                        type: string
                                                        description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                        enum:
                                                          - IS_EMPTY
                                                          - IS_NOT_EMPTY
                                                    required:
                                                      - type
                                                      - logic
                                                  - type: object
                                                    title: String
                                                    properties:
                                                      type:
                                                        x-class-name: StringOneConstraintType
                                                        type: string
                                                        enum:
                                                          - STRING_ONE
                                                        description: This type is used to test values that are a single string.
                                                      logic:
                                                        x-class-name: StringOneConstraintLogic
                                                        type: string
                                                        description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                        enum:
                                                          - CONTAIN
                                                          - NOT_CONTAIN
                                                          - EQUAL
                                                          - NOT_EQUAL
                                                          - STARTS_WITH
                                                          - REGEXP
                                                          - ENDS_WITH
                                                      value:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                                  - type: object
                                                    title: Number
                                                    properties:
                                                      type:
                                                        x-class-name: NumberOneConstraintType
                                                        type: string
                                                        enum:
                                                          - NUMBER_ONE
                                                        description: This type is used to test values that are a single number
                                                      logic:
                                                        x-class-name: NumberOneConstraintLogic
                                                        type: string
                                                        description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                        enum:
                                                          - EQUAL
                                                          - NOT_EQUAL
                                                          - LESS
                                                          - MORE
                                                          - MORE_OR_EQUAL
                                                          - LESS_OR_EQUAL
                                                      value:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                                  - type: object
                                                    title: Two numbers
                                                    properties:
                                                      type:
                                                        x-class-name: NumberTwoConstraintType
                                                        type: string
                                                        enum:
                                                          - NUMBER_TWO
                                                        description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                      logic:
                                                        description: Checks if the attribute is between two numbers.
                                                        x-class-name: NumberTwoConstraintLogic
                                                        type: string
                                                        enum:
                                                          - BETWEEN
                                                      value1:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                      value2:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value1
                                                      - value2
                                                  - type: object
                                                    title: Check if string in array
                                                    properties:
                                                      type:
                                                        x-class-name: StringArrayConstraintType
                                                        type: string
                                                        enum:
                                                          - STRING_ARRAY
                                                        description: This type is used to check if a string exists in an array defined in `value`
                                                      logic:
                                                        type: string
                                                        x-class-name: StringArrayConstraintLogic
                                                        description: You can check if the value from `attribute` is in the array defined in `value`
                                                        enum:
                                                          - IN
                                                          - NOT_IN
                                                      value:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                                  - type: object
                                                    title: Other string array tests
                                                    properties:
                                                      type:
                                                        x-class-name: ArrayStringOneConstraintType
                                                        type: string
                                                        enum:
                                                          - ARRAY_STRING_ONE_DEPRECATED
                                                        description: "`value` should be an array"
                                                      logic:
                                                        x-class-name: ArrayStringOneConstraintLogic
                                                        type: string
                                                        description: |
                                                          - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                                          - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                                          - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                                          - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                                        enum:
                                                          - CONTAIN
                                                          - NOT_CONTAIN
                                                          - EQUAL
                                                          - NOT_EQUAL
                                                          - STARTS_WITH
                                                          - REGEXP
                                                          - ENDS_WITH
                                                      value:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                                  - type: object
                                                    title: Check if null
                                                    properties:
                                                      type:
                                                        x-class-name: NullConstraintType
                                                        description: This type is used to check if a value is null
                                                        type: string
                                                        enum:
                                                          - "NULL"
                                                      logic:
                                                        x-class-name: NullConstraintLogic
                                                        type: string
                                                        description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                        enum:
                                                          - IS_NULL
                                                          - IS_NOT_NULL
                                                    required:
                                                      - type
                                                      - logic
                                                  - type: object
                                                    title: Current date
                                                    properties:
                                                      type:
                                                        x-class-name: DateZeroConstraintType
                                                        type: string
                                                        enum:
                                                          - DATE_ZERO
                                                        description: Compare a date from `attribute` to the current date
                                                      logic:
                                                        x-class-name: LogicZeroConstraintLogic
                                                        type: string
                                                        enum:
                                                          - MATCHES_CURRENT_DAY
                                                          - MATCHES_CURRENT_HOUR
                                                          - MATCHES_CURRENT_MONTH
                                                          - MATCHES_CURRENT_YEAR
                                                        description: Logic to apply to the date from `attribute`
                                                    required:
                                                      - type
                                                      - logic
                                                  - description: This type is used to check `attribute` against a date.
                                                    type: object
                                                    title: Date
                                                    properties:
                                                      type:
                                                        x-class-name: DateOneConstraintType
                                                        type: string
                                                        description: This type is used to check `attribute` against a date.
                                                        enum:
                                                          - DATE_ONE
                                                      logic:
                                                        x-class-name: DateOneConstraintLogic
                                                        type: string
                                                        description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                        enum:
                                                          - LESS
                                                          - MORE
                                                          - LESS_OR_EQUAL
                                                          - MORE_OR_EQUAL
                                                      value:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                                  - description: This type is used to check if a date is between two other dates.
                                                    type: object
                                                    title: Date range
                                                    properties:
                                                      type:
                                                        x-class-name: DateTwoConstraintType
                                                        type: string
                                                        description: This type is used to check if a date is between two other dates.
                                                        enum:
                                                          - DATE_TWO
                                                      logic:
                                                        x-class-name: DateTwoConstraintLogic
                                                        type: string
                                                        description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                        enum:
                                                          - BETWEEN
                                                      value1:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                      value2:
                                                        description: The value to test `attribute` against.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                            EVENT: "#/components/schemas/analytics-EventParameter"
                                                            CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                            VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                        oneOf:
                                                          - type: object
                                                            title: Static value
                                                            description: Inserts a static value.
                                                            properties:
                                                              type:
                                                                x-class-name: ConstantValueType
                                                                type: string
                                                                description: Inserts a static value.
                                                                enum:
                                                                  - CONSTANT
                                                              constant:
                                                                description: |
                                                                  The value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                oneOf:
                                                                  - type: string
                                                                    maxLength: 21000
                                                                  - type: number
                                                                  - type: boolean
                                                                  - type: array
                                                                    maxItems: 65000
                                                                    items:
                                                                      type: string
                                                                      maxLength: 21000
                                                            required:
                                                              - type
                                                              - constant
                                                          - type: object
                                                            title: Event parameter
                                                            description: Inserts an event parameter value
                                                            properties:
                                                              type:
                                                                x-class-name: EventParameterType
                                                                description: Inserts an event parameter value
                                                                type: string
                                                                enum:
                                                                  - EVENT
                                                              attribute:
                                                                description: An event attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Event parameter
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ParamEventAttributeType
                                                                        enum:
                                                                          - PARAM
                                                                        description: This `type` refers to parameters in an event.
                                                                      param:
                                                                        type: string
                                                                        description: Name of the parameter
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: Event aggregate
                                                                    properties:
                                                                      type:
                                                                        x-class-name: RunningAggregateEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - RUNNING_AGGREGATE
                                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the event aggregate
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Expression
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ExpressionEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: ID of the expression
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    title: Special property
                                                                    properties:
                                                                      type:
                                                                        x-class-name: SpecialEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                        description: This type lets you access special properties of an event.
                                                                      special:
                                                                        type: string
                                                                        description: The type of special attribute you want to use
                                                                        enum:
                                                                          - TIMESTAMP
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    title: No attribute
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EmptyEventAttributeType
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Profile attribute
                                                            properties:
                                                              type:
                                                                description: References a profile attribute, including analyses.
                                                                x-class-name: ClientEventValueType
                                                                type: string
                                                                enum:
                                                                  - CLIENT
                                                              attribute:
                                                                description: A profile attribute to analyze
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                oneOf:
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - PARAM
                                                                      param:
                                                                        description: Name of the parameter
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - param
                                                                  - type: object
                                                                    description: Reference to a tag
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - TAG
                                                                      tag:
                                                                        description: Name of the tag
                                                                        type: string
                                                                    required:
                                                                      - type
                                                                      - tag
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - AGGREGATE
                                                                      uuid:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - uuid
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a segmentation
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SEGMENTATION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Pointer to an expression
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EXPRESSION
                                                                      id:
                                                                        type: string
                                                                        format: uuid
                                                                        description: |
                                                                          UUID of the analysis
                                                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    required:
                                                                      - type
                                                                      - id
                                                                  - type: object
                                                                    description: Reference to a special parameter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - SPECIAL
                                                                      special:
                                                                        type: string
                                                                        description: The name of the special parameter
                                                                    required:
                                                                      - type
                                                                      - special
                                                                  - type: object
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        enum:
                                                                          - EMPTY
                                                                    required:
                                                                      - type
                                                            required:
                                                              - type
                                                              - attribute
                                                          - type: object
                                                            title: Dynamic value
                                                            properties:
                                                              type:
                                                                x-class-name: VariableValueType
                                                                type: string
                                                                enum:
                                                                  - VARIABLE
                                                                description: |
                                                                  This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                  The variable value can't:
                                                                    - be longer than 21000 characters if it's a string
                                                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              name:
                                                                type: string
                                                                description: The name of the dynamic key
                                                              defaultValue:
                                                                type: string
                                                                maxLength: 21000
                                                                description: The default value to use
                                                            required:
                                                              - type
                                                              - name
                                                              - defaultValue
                                                    required:
                                                      - type
                                                      - logic
                                                      - value1
                                                      - value2
                                                  - description: This type is used to check if a date matches a date filter.
                                                    type: object
                                                    title: Date filter
                                                    properties:
                                                      type:
                                                        x-class-name: DateFilterConstraintType
                                                        type: string
                                                        description: This type is used to check if a date matches a date filter.
                                                        enum:
                                                          - DATE_FILTER
                                                      logic:
                                                        x-class-name: DateFilterConstraintLogic
                                                        type: string
                                                        enum:
                                                          - DATE_FILTER
                                                        description: Checks if the date from `attribute` matches a date filter.
                                                      value:
                                                        description: |
                                                          Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                          An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                          A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                            RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                        oneOf:
                                                          - type: object
                                                            title: AbsoluteDateFilter
                                                            properties:
                                                              type:
                                                                title: AbsoluteDateFilterType
                                                                x-class-name: AbsoluteDateFilterType
                                                                x-interface-name-ts: AbsoluteDateFilterType
                                                                type: string
                                                                enum:
                                                                  - ABSOLUTE
                                                                description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                              from:
                                                                type: string
                                                                format: date-time
                                                                description: The lower boundary of the date filter.
                                                              to:
                                                                type: string
                                                                format: date-time
                                                                description: The upper boundary of the date filter. Must be later than `from`.
                                                              filter:
                                                                description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                oneOf:
                                                                  - type: object
                                                                    title: Daily
                                                                    x-class-name: CustomDailyFilter
                                                                    x-interface-name-ts: CustomDailyFilter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomDailyFilterType
                                                                        x-interface-name-ts: CustomDailyFilterType
                                                                        enum:
                                                                          - DAILY
                                                                        description: Daily filters limit the data scope to a range of hours every day.
                                                                      nestingType:
                                                                        x-class-name: CustomDailyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - nestingType
                                                                      - type
                                                                      - from
                                                                      - to
                                                                  - type: object
                                                                    title: Weekly
                                                                    x-class-name: CustomWeeklyFilter
                                                                    x-interface-name-ts: CustomWeeklyFilter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomWeeklyFilterType
                                                                        x-interface-name-ts: CustomWeeklyFilterType
                                                                        enum:
                                                                          - WEEKLY
                                                                        description: Weekly filters let you define separate rules for each day of the week.
                                                                      nestingType:
                                                                        x-class-name: CustomWeeklyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      days:
                                                                        type: array
                                                                        description: An array of rules for different days of the week.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                    required:
                                                                      - days
                                                                      - nestingType
                                                                      - type
                                                                  - type: object
                                                                    title: Monthly
                                                                    x-class-name: CustomMonthlyFilterType
                                                                    x-interface-name-ts: CustomMonthlyFilterType
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomMonthlyFilterType
                                                                        x-interface-name-ts: CustomMonthlyFilterType
                                                                        enum:
                                                                          - MONTHLY
                                                                        description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                      nestingType:
                                                                        x-class-name: CustomMonthlyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      rules:
                                                                        description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Days of the week
                                                                            x-class-name: WeekDateRule
                                                                            x-interface-name-ts: WeekDateRule
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: WeekDateRuleType
                                                                                x-interface-name-ts: WeekDateRuleType
                                                                                enum:
                                                                                  - WEEK
                                                                                description: Weekly filters limit the scope to days in a week
                                                                              weeks:
                                                                                type: array
                                                                                description: Weeks of the month included in the pattern
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    week:
                                                                                      type: integer
                                                                                      description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                    days:
                                                                                      type: array
                                                                                      description: Days included in the pattern
                                                                                      items:
                                                                                        type: object
                                                                                        properties:
                                                                                          day:
                                                                                            type: integer
                                                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                          from:
                                                                                            type: string
                                                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                          to:
                                                                                            type: string
                                                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                          mode:
                                                                                            type: string
                                                                                            enum:
                                                                                              - Range
                                                                                              - Hour
                                                                                          inverted:
                                                                                            type: boolean
                                                                                            default: false
                                                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                        required:
                                                                                          - day
                                                                                          - from
                                                                                          - inverted
                                                                                          - to
                                                                                  required:
                                                                                    - days
                                                                                    - type
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: |
                                                                                  When set to `true`, weeks are counted from the end of the month.

                                                                                  For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                  **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                            required:
                                                                              - type
                                                                              - weeks
                                                                          - type: object
                                                                            title: Days of the month
                                                                            x-class-name: MonthDateRule
                                                                            x-interface-name-ts: MonthDateRule
                                                                            properties:
                                                                              type:
                                                                                description: Rules for days of the month
                                                                                type: string
                                                                                x-class-name: MonthDateRuleType
                                                                                x-interface-name-ts: MonthDateRuleType
                                                                                enum:
                                                                                  - MONTH
                                                                              days:
                                                                                type: array
                                                                                description: Days of the month included in the pattern.
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: |
                                                                                  When set to `true`, days are counted from the end of the month.

                                                                                  For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                  **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                            required:
                                                                              - days
                                                                              - type
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                            MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                    required:
                                                                      - nestingType
                                                                      - rules
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                    WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                    MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: RelativeDateFilter
                                                            properties:
                                                              type:
                                                                title: RelativeDateFilterType
                                                                x-class-name: RelativeDateFilterType
                                                                x-interface-name-ts: RelativeDateFilterType
                                                                type: string
                                                                enum:
                                                                  - RELATIVE
                                                                description: |
                                                                  Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                                  - `duration` is the length of time that the filter covers.
                                                                  - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                              duration:
                                                                type: object
                                                                description: The definition of a length of time.
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    x-class-name: TimePeriod
                                                                    x-interface-name-ts: TimePeriod
                                                                    description: The unit of time
                                                                    enum:
                                                                      - YEARS
                                                                      - MONTHS
                                                                      - WEEKS
                                                                      - DAYS
                                                                      - HOURS
                                                                      - MINUTES
                                                                      - SECONDS
                                                                      - UNKNOWN
                                                                  value:
                                                                    type: integer
                                                                    description: The number of time units
                                                                    format: int64
                                                                required:
                                                                  - type
                                                                  - value
                                                              offset:
                                                                type: object
                                                                description: The definition of a length of time.
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    x-class-name: TimePeriod
                                                                    x-interface-name-ts: TimePeriod
                                                                    description: The unit of time
                                                                    enum:
                                                                      - YEARS
                                                                      - MONTHS
                                                                      - WEEKS
                                                                      - DAYS
                                                                      - HOURS
                                                                      - MINUTES
                                                                      - SECONDS
                                                                      - UNKNOWN
                                                                  value:
                                                                    type: integer
                                                                    description: The number of time units
                                                                    format: int64
                                                                required:
                                                                  - type
                                                                  - value
                                                              filter:
                                                                description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                oneOf:
                                                                  - type: object
                                                                    title: Daily
                                                                    x-class-name: CustomDailyFilter
                                                                    x-interface-name-ts: CustomDailyFilter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomDailyFilterType
                                                                        x-interface-name-ts: CustomDailyFilterType
                                                                        enum:
                                                                          - DAILY
                                                                        description: Daily filters limit the data scope to a range of hours every day.
                                                                      nestingType:
                                                                        x-class-name: CustomDailyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - nestingType
                                                                      - type
                                                                      - from
                                                                      - to
                                                                  - type: object
                                                                    title: Weekly
                                                                    x-class-name: CustomWeeklyFilter
                                                                    x-interface-name-ts: CustomWeeklyFilter
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomWeeklyFilterType
                                                                        x-interface-name-ts: CustomWeeklyFilterType
                                                                        enum:
                                                                          - WEEKLY
                                                                        description: Weekly filters let you define separate rules for each day of the week.
                                                                      nestingType:
                                                                        x-class-name: CustomWeeklyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      days:
                                                                        type: array
                                                                        description: An array of rules for different days of the week.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                    required:
                                                                      - days
                                                                      - nestingType
                                                                      - type
                                                                  - type: object
                                                                    title: Monthly
                                                                    x-class-name: CustomMonthlyFilterType
                                                                    x-interface-name-ts: CustomMonthlyFilterType
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: CustomMonthlyFilterType
                                                                        x-interface-name-ts: CustomMonthlyFilterType
                                                                        enum:
                                                                          - MONTHLY
                                                                        description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                      nestingType:
                                                                        x-class-name: CustomMonthlyFilterNestingType
                                                                        type: string
                                                                        enum:
                                                                          - IN_PLACE
                                                                      rules:
                                                                        description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Days of the week
                                                                            x-class-name: WeekDateRule
                                                                            x-interface-name-ts: WeekDateRule
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: WeekDateRuleType
                                                                                x-interface-name-ts: WeekDateRuleType
                                                                                enum:
                                                                                  - WEEK
                                                                                description: Weekly filters limit the scope to days in a week
                                                                              weeks:
                                                                                type: array
                                                                                description: Weeks of the month included in the pattern
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    week:
                                                                                      type: integer
                                                                                      description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                    days:
                                                                                      type: array
                                                                                      description: Days included in the pattern
                                                                                      items:
                                                                                        type: object
                                                                                        properties:
                                                                                          day:
                                                                                            type: integer
                                                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                          from:
                                                                                            type: string
                                                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                          to:
                                                                                            type: string
                                                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                          mode:
                                                                                            type: string
                                                                                            enum:
                                                                                              - Range
                                                                                              - Hour
                                                                                          inverted:
                                                                                            type: boolean
                                                                                            default: false
                                                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                        required:
                                                                                          - day
                                                                                          - from
                                                                                          - inverted
                                                                                          - to
                                                                                  required:
                                                                                    - days
                                                                                    - type
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: |
                                                                                  When set to `true`, weeks are counted from the end of the month.

                                                                                  For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                  **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                            required:
                                                                              - type
                                                                              - weeks
                                                                          - type: object
                                                                            title: Days of the month
                                                                            x-class-name: MonthDateRule
                                                                            x-interface-name-ts: MonthDateRule
                                                                            properties:
                                                                              type:
                                                                                description: Rules for days of the month
                                                                                type: string
                                                                                x-class-name: MonthDateRuleType
                                                                                x-interface-name-ts: MonthDateRuleType
                                                                                enum:
                                                                                  - MONTH
                                                                              days:
                                                                                type: array
                                                                                description: Days of the month included in the pattern.
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: |
                                                                                  When set to `true`, days are counted from the end of the month.

                                                                                  For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                  **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                            required:
                                                                              - days
                                                                              - type
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                            MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                    required:
                                                                      - nestingType
                                                                      - rules
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                    WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                    MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                            required:
                                                              - duration
                                                              - offset
                                                              - type
                                                    required:
                                                      - type
                                                      - logic
                                                      - value
                                              attribute:
                                                description: An event attribute to analyze
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                    RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                    EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                    SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                    EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                oneOf:
                                                  - type: object
                                                    title: Event parameter
                                                    properties:
                                                      type:
                                                        x-class-name: ParamEventAttributeType
                                                        enum:
                                                          - PARAM
                                                        description: This `type` refers to parameters in an event.
                                                      param:
                                                        type: string
                                                        description: Name of the parameter
                                                    required:
                                                      - type
                                                  - type: object
                                                    title: Event aggregate
                                                    properties:
                                                      type:
                                                        x-class-name: RunningAggregateEventAttributeType
                                                        type: string
                                                        enum:
                                                          - RUNNING_AGGREGATE
                                                        description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                      id:
                                                        type: string
                                                        format: uuid
                                                        description: ID of the event aggregate
                                                    required:
                                                      - type
                                                      - id
                                                  - type: object
                                                    title: Expression
                                                    properties:
                                                      type:
                                                        x-class-name: ExpressionEventAttributeType
                                                        type: string
                                                        enum:
                                                          - EXPRESSION
                                                        description: This type refers to expressions. You must provide the ID of the expression.
                                                      id:
                                                        type: string
                                                        format: uuid
                                                        description: ID of the expression
                                                    required:
                                                      - type
                                                      - id
                                                  - type: object
                                                    title: Special property
                                                    properties:
                                                      type:
                                                        x-class-name: SpecialEventAttributeType
                                                        type: string
                                                        enum:
                                                          - SPECIAL
                                                        description: This type lets you access special properties of an event.
                                                      special:
                                                        type: string
                                                        description: The type of special attribute you want to use
                                                        enum:
                                                          - TIMESTAMP
                                                    required:
                                                      - type
                                                      - special
                                                  - type: object
                                                    title: No attribute
                                                    properties:
                                                      type:
                                                        x-class-name: EmptyEventAttributeType
                                                        type: string
                                                        enum:
                                                          - EMPTY
                                                        description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                    required:
                                                      - type
                                            required:
                                              - constrain
                                              - attribute
                                      required:
                                        - action
                                        - title
                                        - expressions
                                  exact:
                                    type: boolean
                                    default: false
                                    description: |
                                      When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
                                required:
                                  - title
                                  - steps
                            required:
                              - type
                              - funnel
                          - type: object
                            properties:
                              type:
                                description: Logical operator between expressions
                                x-class-name: OperatorFilterBoxType
                                type: string
                                enum:
                                  - OPERATOR
                              name:
                                type: string
                                description: Name of the resource
                              logic:
                                x-class-name: FilterBoxOperatorType
                                type: string
                                enum:
                                  - OR
                                  - AND
                                  - LEFT_BRACKET
                                  - RIGHT_BRACKET
                            required:
                              - type
                              - name
                              - logic
                    expression:
                      deprecated: true
                      example:
                        type: EMPTY
                      discriminator:
                        propertyName: type
                        mapping:
                          FUNCTION: "#/components/schemas/analytics-FilterExpressionFunction"
                          ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterExpressionContent"
                          FUNNEL: "#/components/schemas/analytics-FunnelFilterExpressionContent"
                          EXPRESSION: "#/components/schemas/analytics-ExpressionFilterExpressionContent"
                          EMPTY: "#/components/schemas/analytics-EmptyFilterExpressionContent"
                      oneOf:
                        - type: object
                          description: Logical operators
                          properties:
                            type:
                              description: Logical operators
                              x-class-name: FunctionFilterExpressionContentType
                              type: string
                              enum:
                                - FUNCTION
                            function:
                              x-class-name: FilterFunctionType
                              type: string
                              enum:
                                - AND
                                - OR
                                - BRACKET
                            arg:
                              type: object
                              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
                              x-codegen-schema: FilterExpressionContent
                            arg1:
                              type: object
                              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
                              x-codegen-schema: FilterExpressionContent
                            arg2:
                              type: object
                              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
                              x-codegen-schema: FilterExpressionContent
                            name:
                              type: string
                          required:
                            - type
                            - function
                        - type: object
                          title: Profile attribute
                          properties:
                            type:
                              x-class-name: AttributeFilterExpressionContentType
                              type: string
                              enum:
                                - ATTRIBUTE
                              description: Tests a profile attribute against a condition
                            matching:
                              type: boolean
                              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                              default: true
                            attribute:
                              type: object
                              description: The condition to test a profile attribute
                              properties:
                                expressions:
                                  type: array
                                  description: An array of conditions. All conditions must be met.
                                  items:
                                    type: object
                                    properties:
                                      constraint:
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                                            STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                                            STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                                            NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                                            NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                                            STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                                            ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                                            "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                                            DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                                            DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                                            DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                                            DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                                        oneOf:
                                          - type: object
                                            title: Boolean
                                            properties:
                                              type:
                                                x-class-name: BoolClientConstraintType
                                                type: string
                                                enum:
                                                  - BOOL
                                                description: Tests a boolean value
                                              logic:
                                                description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                x-class-name: BoolClientConstraintLogic
                                                type: string
                                                enum:
                                                  - IS_TRUE
                                                  - IS_FALSE
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: Check empty
                                            description: This type is used to check if a string is empty.
                                            properties:
                                              type:
                                                x-class-name: StringZeroClientConstraintType
                                                type: string
                                                description: This type is used to check if a string is empty.
                                                enum:
                                                  - STRING_ZERO
                                              logic:
                                                description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                x-class-name: StringZeroClientConstraintLogic
                                                type: string
                                                enum:
                                                  - IS_EMPTY
                                                  - IS_NOT_EMPTY
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: String
                                            properties:
                                              type:
                                                description: This type is used to test values that are a single string.
                                                x-class-name: StringOneClientConstraintType
                                                type: string
                                                enum:
                                                  - STRING_ONE
                                              logic:
                                                description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                x-class-name: StringOneClientConstraintLogic
                                                type: string
                                                enum:
                                                  - CONTAIN
                                                  - NOT_CONTAIN
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - STARTS_WITH
                                                  - REGEXP
                                                  - ENDS_WITH
                                              value:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Number
                                            properties:
                                              type:
                                                description: This type is used to test values that are a single number
                                                x-class-name: NumberOneClientConstraintType
                                                type: string
                                                enum:
                                                  - NUMBER_ONE
                                              logic:
                                                description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                x-class-name: NumberOneClientConstraintLogic
                                                type: string
                                                enum:
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - LESS
                                                  - MORE
                                                  - MORE_OR_EQUAL
                                                  - LESS_OR_EQUAL
                                              value:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Two numbers
                                            properties:
                                              type:
                                                description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                x-class-name: NumberTwoClientConstraintType
                                                type: string
                                                enum:
                                                  - NUMBER_TWO
                                              logic:
                                                description: Checks if the attribute is between two numbers.
                                                x-class-name: NumberTwoClientConstraintLogic
                                                type: string
                                                enum:
                                                  - BETWEEN
                                              value1:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                              value2:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value1
                                              - value2
                                          - type: object
                                            title: Check if string in array
                                            properties:
                                              type:
                                                description: This type is used to check if a string exists in an array defined in `value`
                                                x-class-name: StringArrayClientConstraintType
                                                type: string
                                                enum:
                                                  - STRING_ARRAY
                                              logic:
                                                description: You can check if the value from `attribute` is in the array defined in `value`
                                                x-class-name: StringArrayClientConstraintLogic
                                                type: string
                                                enum:
                                                  - IN
                                                  - NOT_IN
                                              value:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Other string array tests
                                            properties:
                                              type:
                                                description: "`value` should be an array"
                                                x-class-name: ArrayStringOneClientConstraintType
                                                type: string
                                                enum:
                                                  - ARRAY_STRING_ONE_DEPRECATED
                                              logic:
                                                description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                                x-class-name: ArrayStringOneClientConstraintLogic
                                                type: string
                                                enum:
                                                  - CONTAIN
                                                  - NOT_CONTAIN
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - STARTS_WITH
                                                  - REGEXP
                                                  - ENDS_WITH
                                              value:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Check if null
                                            properties:
                                              type:
                                                x-class-name: NullClientConstraintType
                                                type: string
                                                enum:
                                                  - "NULL"
                                                description: This type is used to check if a value is null
                                              logic:
                                                description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                x-class-name: NullClientConstraintLogic
                                                type: string
                                                enum:
                                                  - IS_NULL
                                                  - IS_NOT_NULL
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: Current date
                                            properties:
                                              type:
                                                description: Compare a date from `attribute` to the current date
                                                x-class-name: DateZeroClientConstraintType
                                                type: string
                                                enum:
                                                  - DATE_ZERO
                                              logic:
                                                description: Logic to apply to the date from `attribute`
                                                x-class-name: DateZeroClientConstraintLogic
                                                type: string
                                                enum:
                                                  - MATCHES_CURRENT_DAY
                                                  - MATCHES_CURRENT_HOUR
                                                  - MATCHES_CURRENT_MONTH
                                                  - MATCHES_CURRENT_YEAR
                                            required:
                                              - type
                                              - logic
                                          - description: This type is used to check `attribute` against a date.
                                            type: object
                                            title: Date
                                            properties:
                                              type:
                                                x-class-name: DateOneClientConstraintType
                                                type: string
                                                description: This type is used to check `attribute` against a date.
                                                enum:
                                                  - DATE_ONE
                                              logic:
                                                description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                x-class-name: DateOneClientConstraintLogic
                                                type: string
                                                enum:
                                                  - LESS
                                                  - MORE
                                                  - LESS_OR_EQUAL
                                                  - MORE_OR_EQUAL
                                              value:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - description: This type is used to check if a date is between two other dates.
                                            type: object
                                            title: Date range
                                            properties:
                                              type:
                                                x-class-name: DateTwoClientConstraintType
                                                type: string
                                                description: This type is used to check if a date is between two other dates.
                                                enum:
                                                  - DATE_TWO
                                              logic:
                                                description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                x-class-name: DateTwoClientConstraintLogic
                                                type: string
                                                enum:
                                                  - BETWEEN
                                              value1:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                              value2:
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantClientValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            items:
                                                              type: string
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        x-class-name: ClientClientValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                        description: Definition of a profile attribute
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableClientValueType
                                                        type: string
                                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                        enum:
                                                          - VARIABLE
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        description: The default value to use
                                                        oneOf:
                                                          - type: string
                                                          - type: number
                                                          - type: array
                                                            items: {}
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value1
                                              - value2
                                          - type: object
                                            title: Date filter
                                            description: This type is used to check if a date matches a date filter.
                                            properties:
                                              type:
                                                x-class-name: DateFilterClientConstraintType
                                                type: string
                                                description: This type is used to check if a date matches a date filter.
                                                enum:
                                                  - DATE_FILTER
                                              logic:
                                                description: Checks if the date from `attribute` matches a date filter.
                                                x-class-name: DateFilterClientConstraintLogic
                                                type: string
                                                enum:
                                                  - DATE_FILTER
                                              value:
                                                description: |
                                                  Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                  An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                  A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                    RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                oneOf:
                                                  - type: object
                                                    title: AbsoluteDateFilter
                                                    properties:
                                                      type:
                                                        title: AbsoluteDateFilterType
                                                        x-class-name: AbsoluteDateFilterType
                                                        x-interface-name-ts: AbsoluteDateFilterType
                                                        type: string
                                                        enum:
                                                          - ABSOLUTE
                                                        description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                      from:
                                                        type: string
                                                        format: date-time
                                                        description: The lower boundary of the date filter.
                                                      to:
                                                        type: string
                                                        format: date-time
                                                        description: The upper boundary of the date filter. Must be later than `from`.
                                                      filter:
                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                        oneOf:
                                                          - type: object
                                                            title: Daily
                                                            x-class-name: CustomDailyFilter
                                                            x-interface-name-ts: CustomDailyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomDailyFilterType
                                                                x-interface-name-ts: CustomDailyFilterType
                                                                enum:
                                                                  - DAILY
                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                              nestingType:
                                                                x-class-name: CustomDailyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - nestingType
                                                              - type
                                                              - from
                                                              - to
                                                          - type: object
                                                            title: Weekly
                                                            x-class-name: CustomWeeklyFilter
                                                            x-interface-name-ts: CustomWeeklyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomWeeklyFilterType
                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                enum:
                                                                  - WEEKLY
                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                              nestingType:
                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              days:
                                                                type: array
                                                                description: An array of rules for different days of the week.
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - nestingType
                                                              - type
                                                          - type: object
                                                            title: Monthly
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomMonthlyFilterType
                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                enum:
                                                                  - MONTHLY
                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                              nestingType:
                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              rules:
                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                oneOf:
                                                                  - type: object
                                                                    title: Days of the week
                                                                    x-class-name: WeekDateRule
                                                                    x-interface-name-ts: WeekDateRule
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: WeekDateRuleType
                                                                        x-interface-name-ts: WeekDateRuleType
                                                                        enum:
                                                                          - WEEK
                                                                        description: Weekly filters limit the scope to days in a week
                                                                      weeks:
                                                                        type: array
                                                                        description: Weeks of the month included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            week:
                                                                              type: integer
                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                            days:
                                                                              type: array
                                                                              description: Days included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                    required:
                                                                      - type
                                                                      - weeks
                                                                  - type: object
                                                                    title: Days of the month
                                                                    x-class-name: MonthDateRule
                                                                    x-interface-name-ts: MonthDateRule
                                                                    properties:
                                                                      type:
                                                                        description: Rules for days of the month
                                                                        type: string
                                                                        x-class-name: MonthDateRuleType
                                                                        x-interface-name-ts: MonthDateRuleType
                                                                        enum:
                                                                          - MONTH
                                                                      days:
                                                                        type: array
                                                                        description: Days of the month included in the pattern.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, days are counted from the end of the month.

                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                    required:
                                                                      - days
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                            required:
                                                              - nestingType
                                                              - rules
                                                              - type
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                    required:
                                                      - type
                                                  - type: object
                                                    title: RelativeDateFilter
                                                    properties:
                                                      type:
                                                        title: RelativeDateFilterType
                                                        x-class-name: RelativeDateFilterType
                                                        x-interface-name-ts: RelativeDateFilterType
                                                        type: string
                                                        enum:
                                                          - RELATIVE
                                                        description: |
                                                          Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                          - `duration` is the length of time that the filter covers.
                                                          - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                      duration:
                                                        type: object
                                                        description: The definition of a length of time.
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: TimePeriod
                                                            x-interface-name-ts: TimePeriod
                                                            description: The unit of time
                                                            enum:
                                                              - YEARS
                                                              - MONTHS
                                                              - WEEKS
                                                              - DAYS
                                                              - HOURS
                                                              - MINUTES
                                                              - SECONDS
                                                              - UNKNOWN
                                                          value:
                                                            type: integer
                                                            description: The number of time units
                                                            format: int64
                                                        required:
                                                          - type
                                                          - value
                                                      offset:
                                                        type: object
                                                        description: The definition of a length of time.
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: TimePeriod
                                                            x-interface-name-ts: TimePeriod
                                                            description: The unit of time
                                                            enum:
                                                              - YEARS
                                                              - MONTHS
                                                              - WEEKS
                                                              - DAYS
                                                              - HOURS
                                                              - MINUTES
                                                              - SECONDS
                                                              - UNKNOWN
                                                          value:
                                                            type: integer
                                                            description: The number of time units
                                                            format: int64
                                                        required:
                                                          - type
                                                          - value
                                                      filter:
                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                        oneOf:
                                                          - type: object
                                                            title: Daily
                                                            x-class-name: CustomDailyFilter
                                                            x-interface-name-ts: CustomDailyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomDailyFilterType
                                                                x-interface-name-ts: CustomDailyFilterType
                                                                enum:
                                                                  - DAILY
                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                              nestingType:
                                                                x-class-name: CustomDailyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - nestingType
                                                              - type
                                                              - from
                                                              - to
                                                          - type: object
                                                            title: Weekly
                                                            x-class-name: CustomWeeklyFilter
                                                            x-interface-name-ts: CustomWeeklyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomWeeklyFilterType
                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                enum:
                                                                  - WEEKLY
                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                              nestingType:
                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              days:
                                                                type: array
                                                                description: An array of rules for different days of the week.
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - nestingType
                                                              - type
                                                          - type: object
                                                            title: Monthly
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomMonthlyFilterType
                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                enum:
                                                                  - MONTHLY
                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                              nestingType:
                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              rules:
                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                oneOf:
                                                                  - type: object
                                                                    title: Days of the week
                                                                    x-class-name: WeekDateRule
                                                                    x-interface-name-ts: WeekDateRule
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: WeekDateRuleType
                                                                        x-interface-name-ts: WeekDateRuleType
                                                                        enum:
                                                                          - WEEK
                                                                        description: Weekly filters limit the scope to days in a week
                                                                      weeks:
                                                                        type: array
                                                                        description: Weeks of the month included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            week:
                                                                              type: integer
                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                            days:
                                                                              type: array
                                                                              description: Days included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                    required:
                                                                      - type
                                                                      - weeks
                                                                  - type: object
                                                                    title: Days of the month
                                                                    x-class-name: MonthDateRule
                                                                    x-interface-name-ts: MonthDateRule
                                                                    properties:
                                                                      type:
                                                                        description: Rules for days of the month
                                                                        type: string
                                                                        x-class-name: MonthDateRuleType
                                                                        x-interface-name-ts: MonthDateRuleType
                                                                        enum:
                                                                          - MONTH
                                                                      days:
                                                                        type: array
                                                                        description: Days of the month included in the pattern.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, days are counted from the end of the month.

                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                    required:
                                                                      - days
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                            required:
                                                              - nestingType
                                                              - rules
                                                              - type
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                    required:
                                                      - duration
                                                      - offset
                                                      - type
                                            required:
                                              - type
                                              - logic
                                              - value
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                              required:
                                - expressions
                        - type: object
                          title: Funnel
                          properties:
                            type:
                              description: Tests against a funnel
                              x-class-name: FunnelFilterExpressionContentType
                              type: string
                              enum:
                                - FUNNEL
                            matching:
                              type: boolean
                              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                              default: true
                            funnel:
                              type: object
                              description: Funnel conditions
                              properties:
                                title:
                                  type: string
                                  description: Title of the funnel.
                                completedWithin:
                                  type: object
                                  description: |
                                    Time constraint for completing all the steps in the funnel. Timer starts
                                    when the first step is triggered.

                                    - `period` sets the time unit
                                    - `value` sets the number of time units
                                  properties:
                                    period:
                                      type: string
                                      x-class-name: TimePeriod
                                      x-interface-name-ts: TimePeriod
                                      description: The unit of time
                                      enum:
                                        - YEARS
                                        - MONTHS
                                        - WEEKS
                                        - DAYS
                                        - HOURS
                                        - MINUTES
                                        - SECONDS
                                        - UNKNOWN
                                    value:
                                      description: The number of time units
                                      type: number
                                      format: int64
                                dateFilter:
                                  description: |
                                    Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                    An absolute date filter lets you define static dates and times that always apply to the analysis.

                                    A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                      RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                  oneOf:
                                    - type: object
                                      title: AbsoluteDateFilter
                                      properties:
                                        type:
                                          title: AbsoluteDateFilterType
                                          x-class-name: AbsoluteDateFilterType
                                          x-interface-name-ts: AbsoluteDateFilterType
                                          type: string
                                          enum:
                                            - ABSOLUTE
                                          description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                        from:
                                          type: string
                                          format: date-time
                                          description: The lower boundary of the date filter.
                                        to:
                                          type: string
                                          format: date-time
                                          description: The upper boundary of the date filter. Must be later than `from`.
                                        filter:
                                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                          oneOf:
                                            - type: object
                                              title: Daily
                                              x-class-name: CustomDailyFilter
                                              x-interface-name-ts: CustomDailyFilter
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomDailyFilterType
                                                  x-interface-name-ts: CustomDailyFilterType
                                                  enum:
                                                    - DAILY
                                                  description: Daily filters limit the data scope to a range of hours every day.
                                                nestingType:
                                                  x-class-name: CustomDailyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                from:
                                                  type: string
                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                to:
                                                  type: string
                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                inverted:
                                                  type: boolean
                                                  default: false
                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                              required:
                                                - nestingType
                                                - type
                                                - from
                                                - to
                                            - type: object
                                              title: Weekly
                                              x-class-name: CustomWeeklyFilter
                                              x-interface-name-ts: CustomWeeklyFilter
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomWeeklyFilterType
                                                  x-interface-name-ts: CustomWeeklyFilterType
                                                  enum:
                                                    - WEEKLY
                                                  description: Weekly filters let you define separate rules for each day of the week.
                                                nestingType:
                                                  x-class-name: CustomWeeklyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                days:
                                                  type: array
                                                  description: An array of rules for different days of the week.
                                                  items:
                                                    type: object
                                                    properties:
                                                      day:
                                                        type: integer
                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                      from:
                                                        type: string
                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                      to:
                                                        type: string
                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                      mode:
                                                        type: string
                                                        enum:
                                                          - Range
                                                          - Hour
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                    required:
                                                      - day
                                                      - from
                                                      - inverted
                                                      - to
                                              required:
                                                - days
                                                - nestingType
                                                - type
                                            - type: object
                                              title: Monthly
                                              x-class-name: CustomMonthlyFilterType
                                              x-interface-name-ts: CustomMonthlyFilterType
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  enum:
                                                    - MONTHLY
                                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                nestingType:
                                                  x-class-name: CustomMonthlyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                rules:
                                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                  oneOf:
                                                    - type: object
                                                      title: Days of the week
                                                      x-class-name: WeekDateRule
                                                      x-interface-name-ts: WeekDateRule
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: WeekDateRuleType
                                                          x-interface-name-ts: WeekDateRuleType
                                                          enum:
                                                            - WEEK
                                                          description: Weekly filters limit the scope to days in a week
                                                        weeks:
                                                          type: array
                                                          description: Weeks of the month included in the pattern
                                                          items:
                                                            type: object
                                                            properties:
                                                              week:
                                                                type: integer
                                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                              days:
                                                                type: array
                                                                description: Days included in the pattern
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - type
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: |
                                                            When set to `true`, weeks are counted from the end of the month.

                                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                      required:
                                                        - type
                                                        - weeks
                                                    - type: object
                                                      title: Days of the month
                                                      x-class-name: MonthDateRule
                                                      x-interface-name-ts: MonthDateRule
                                                      properties:
                                                        type:
                                                          description: Rules for days of the month
                                                          type: string
                                                          x-class-name: MonthDateRuleType
                                                          x-interface-name-ts: MonthDateRuleType
                                                          enum:
                                                            - MONTH
                                                        days:
                                                          type: array
                                                          description: Days of the month included in the pattern.
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: |
                                                            When set to `true`, days are counted from the end of the month.

                                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                      required:
                                                        - days
                                                        - type
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                                              required:
                                                - nestingType
                                                - rules
                                                - type
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                      required:
                                        - type
                                    - type: object
                                      title: RelativeDateFilter
                                      properties:
                                        type:
                                          title: RelativeDateFilterType
                                          x-class-name: RelativeDateFilterType
                                          x-interface-name-ts: RelativeDateFilterType
                                          type: string
                                          enum:
                                            - RELATIVE
                                          description: |
                                            Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                            - `duration` is the length of time that the filter covers.
                                            - `offset` is the time that the filter goes back to set the beginning of the duration.
                                        duration:
                                          type: object
                                          description: The definition of a length of time.
                                          properties:
                                            type:
                                              type: string
                                              x-class-name: TimePeriod
                                              x-interface-name-ts: TimePeriod
                                              description: The unit of time
                                              enum:
                                                - YEARS
                                                - MONTHS
                                                - WEEKS
                                                - DAYS
                                                - HOURS
                                                - MINUTES
                                                - SECONDS
                                                - UNKNOWN
                                            value:
                                              type: integer
                                              description: The number of time units
                                              format: int64
                                          required:
                                            - type
                                            - value
                                        offset:
                                          type: object
                                          description: The definition of a length of time.
                                          properties:
                                            type:
                                              type: string
                                              x-class-name: TimePeriod
                                              x-interface-name-ts: TimePeriod
                                              description: The unit of time
                                              enum:
                                                - YEARS
                                                - MONTHS
                                                - WEEKS
                                                - DAYS
                                                - HOURS
                                                - MINUTES
                                                - SECONDS
                                                - UNKNOWN
                                            value:
                                              type: integer
                                              description: The number of time units
                                              format: int64
                                          required:
                                            - type
                                            - value
                                        filter:
                                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                          oneOf:
                                            - type: object
                                              title: Daily
                                              x-class-name: CustomDailyFilter
                                              x-interface-name-ts: CustomDailyFilter
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomDailyFilterType
                                                  x-interface-name-ts: CustomDailyFilterType
                                                  enum:
                                                    - DAILY
                                                  description: Daily filters limit the data scope to a range of hours every day.
                                                nestingType:
                                                  x-class-name: CustomDailyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                from:
                                                  type: string
                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                to:
                                                  type: string
                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                inverted:
                                                  type: boolean
                                                  default: false
                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                              required:
                                                - nestingType
                                                - type
                                                - from
                                                - to
                                            - type: object
                                              title: Weekly
                                              x-class-name: CustomWeeklyFilter
                                              x-interface-name-ts: CustomWeeklyFilter
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomWeeklyFilterType
                                                  x-interface-name-ts: CustomWeeklyFilterType
                                                  enum:
                                                    - WEEKLY
                                                  description: Weekly filters let you define separate rules for each day of the week.
                                                nestingType:
                                                  x-class-name: CustomWeeklyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                days:
                                                  type: array
                                                  description: An array of rules for different days of the week.
                                                  items:
                                                    type: object
                                                    properties:
                                                      day:
                                                        type: integer
                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                      from:
                                                        type: string
                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                      to:
                                                        type: string
                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                      mode:
                                                        type: string
                                                        enum:
                                                          - Range
                                                          - Hour
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                    required:
                                                      - day
                                                      - from
                                                      - inverted
                                                      - to
                                              required:
                                                - days
                                                - nestingType
                                                - type
                                            - type: object
                                              title: Monthly
                                              x-class-name: CustomMonthlyFilterType
                                              x-interface-name-ts: CustomMonthlyFilterType
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  enum:
                                                    - MONTHLY
                                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                nestingType:
                                                  x-class-name: CustomMonthlyFilterNestingType
                                                  type: string
                                                  enum:
                                                    - IN_PLACE
                                                rules:
                                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                  oneOf:
                                                    - type: object
                                                      title: Days of the week
                                                      x-class-name: WeekDateRule
                                                      x-interface-name-ts: WeekDateRule
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: WeekDateRuleType
                                                          x-interface-name-ts: WeekDateRuleType
                                                          enum:
                                                            - WEEK
                                                          description: Weekly filters limit the scope to days in a week
                                                        weeks:
                                                          type: array
                                                          description: Weeks of the month included in the pattern
                                                          items:
                                                            type: object
                                                            properties:
                                                              week:
                                                                type: integer
                                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                              days:
                                                                type: array
                                                                description: Days included in the pattern
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - type
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: |
                                                            When set to `true`, weeks are counted from the end of the month.

                                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                      required:
                                                        - type
                                                        - weeks
                                                    - type: object
                                                      title: Days of the month
                                                      x-class-name: MonthDateRule
                                                      x-interface-name-ts: MonthDateRule
                                                      properties:
                                                        type:
                                                          description: Rules for days of the month
                                                          type: string
                                                          x-class-name: MonthDateRuleType
                                                          x-interface-name-ts: MonthDateRuleType
                                                          enum:
                                                            - MONTH
                                                        days:
                                                          type: array
                                                          description: Days of the month included in the pattern.
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: |
                                                            When set to `true`, days are counted from the end of the month.

                                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                      required:
                                                        - days
                                                        - type
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                                              required:
                                                - nestingType
                                                - rules
                                                - type
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                      required:
                                        - duration
                                        - offset
                                        - type
                                steps:
                                  type: array
                                  minItems: 0
                                  description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                                  items:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                        description: The name of the step
                                      action:
                                        type: object
                                        description: The analyzed event
                                        nullable: true
                                        required:
                                          - name
                                        properties:
                                          id:
                                            type: integer
                                            format: int64
                                            deprecated: true
                                            nullable: true
                                            description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                                          name:
                                            type: string
                                            description: Action name of the event.
                                            example: page.visit
                                      expressions:
                                        type: array
                                        description: An array of conditions that the event must meet
                                        items:
                                          type: object
                                          description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                                          properties:
                                            constraint:
                                              description: |
                                                This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                                **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                                  STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                                  STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                                  NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                                  NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                                  STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                                  ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                                  "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                                  DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                                  DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                                  DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                                  DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                                              oneOf:
                                                - type: object
                                                  title: Boolean
                                                  properties:
                                                    type:
                                                      x-class-name: BoolConstraintType
                                                      type: string
                                                      enum:
                                                        - BOOL
                                                      description: Tests a boolean value
                                                    logic:
                                                      x-class-name: BoolConstraintLogic
                                                      type: string
                                                      description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                      enum:
                                                        - IS_TRUE
                                                        - IS_FALSE
                                                  required:
                                                    - type
                                                    - logic
                                                - type: object
                                                  title: Check empty
                                                  description: This type is used to check if a string is empty.
                                                  properties:
                                                    type:
                                                      title: String zero
                                                      x-class-name: StringZeroConstraintType
                                                      type: string
                                                      description: This type is used to check if a string is empty.
                                                      enum:
                                                        - STRING_ZERO
                                                    logic:
                                                      x-class-name: StringZeroConstraintLogic
                                                      type: string
                                                      description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                      enum:
                                                        - IS_EMPTY
                                                        - IS_NOT_EMPTY
                                                  required:
                                                    - type
                                                    - logic
                                                - type: object
                                                  title: String
                                                  properties:
                                                    type:
                                                      x-class-name: StringOneConstraintType
                                                      type: string
                                                      enum:
                                                        - STRING_ONE
                                                      description: This type is used to test values that are a single string.
                                                    logic:
                                                      x-class-name: StringOneConstraintLogic
                                                      type: string
                                                      description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                      enum:
                                                        - CONTAIN
                                                        - NOT_CONTAIN
                                                        - EQUAL
                                                        - NOT_EQUAL
                                                        - STARTS_WITH
                                                        - REGEXP
                                                        - ENDS_WITH
                                                    value:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                                - type: object
                                                  title: Number
                                                  properties:
                                                    type:
                                                      x-class-name: NumberOneConstraintType
                                                      type: string
                                                      enum:
                                                        - NUMBER_ONE
                                                      description: This type is used to test values that are a single number
                                                    logic:
                                                      x-class-name: NumberOneConstraintLogic
                                                      type: string
                                                      description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                      enum:
                                                        - EQUAL
                                                        - NOT_EQUAL
                                                        - LESS
                                                        - MORE
                                                        - MORE_OR_EQUAL
                                                        - LESS_OR_EQUAL
                                                    value:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                                - type: object
                                                  title: Two numbers
                                                  properties:
                                                    type:
                                                      x-class-name: NumberTwoConstraintType
                                                      type: string
                                                      enum:
                                                        - NUMBER_TWO
                                                      description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                    logic:
                                                      description: Checks if the attribute is between two numbers.
                                                      x-class-name: NumberTwoConstraintLogic
                                                      type: string
                                                      enum:
                                                        - BETWEEN
                                                    value1:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                    value2:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value1
                                                    - value2
                                                - type: object
                                                  title: Check if string in array
                                                  properties:
                                                    type:
                                                      x-class-name: StringArrayConstraintType
                                                      type: string
                                                      enum:
                                                        - STRING_ARRAY
                                                      description: This type is used to check if a string exists in an array defined in `value`
                                                    logic:
                                                      type: string
                                                      x-class-name: StringArrayConstraintLogic
                                                      description: You can check if the value from `attribute` is in the array defined in `value`
                                                      enum:
                                                        - IN
                                                        - NOT_IN
                                                    value:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                                - type: object
                                                  title: Other string array tests
                                                  properties:
                                                    type:
                                                      x-class-name: ArrayStringOneConstraintType
                                                      type: string
                                                      enum:
                                                        - ARRAY_STRING_ONE_DEPRECATED
                                                      description: "`value` should be an array"
                                                    logic:
                                                      x-class-name: ArrayStringOneConstraintLogic
                                                      type: string
                                                      description: |
                                                        - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                                        - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                                        - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                                        - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                                      enum:
                                                        - CONTAIN
                                                        - NOT_CONTAIN
                                                        - EQUAL
                                                        - NOT_EQUAL
                                                        - STARTS_WITH
                                                        - REGEXP
                                                        - ENDS_WITH
                                                    value:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                                - type: object
                                                  title: Check if null
                                                  properties:
                                                    type:
                                                      x-class-name: NullConstraintType
                                                      description: This type is used to check if a value is null
                                                      type: string
                                                      enum:
                                                        - "NULL"
                                                    logic:
                                                      x-class-name: NullConstraintLogic
                                                      type: string
                                                      description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                      enum:
                                                        - IS_NULL
                                                        - IS_NOT_NULL
                                                  required:
                                                    - type
                                                    - logic
                                                - type: object
                                                  title: Current date
                                                  properties:
                                                    type:
                                                      x-class-name: DateZeroConstraintType
                                                      type: string
                                                      enum:
                                                        - DATE_ZERO
                                                      description: Compare a date from `attribute` to the current date
                                                    logic:
                                                      x-class-name: LogicZeroConstraintLogic
                                                      type: string
                                                      enum:
                                                        - MATCHES_CURRENT_DAY
                                                        - MATCHES_CURRENT_HOUR
                                                        - MATCHES_CURRENT_MONTH
                                                        - MATCHES_CURRENT_YEAR
                                                      description: Logic to apply to the date from `attribute`
                                                  required:
                                                    - type
                                                    - logic
                                                - description: This type is used to check `attribute` against a date.
                                                  type: object
                                                  title: Date
                                                  properties:
                                                    type:
                                                      x-class-name: DateOneConstraintType
                                                      type: string
                                                      description: This type is used to check `attribute` against a date.
                                                      enum:
                                                        - DATE_ONE
                                                    logic:
                                                      x-class-name: DateOneConstraintLogic
                                                      type: string
                                                      description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                      enum:
                                                        - LESS
                                                        - MORE
                                                        - LESS_OR_EQUAL
                                                        - MORE_OR_EQUAL
                                                    value:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                                - description: This type is used to check if a date is between two other dates.
                                                  type: object
                                                  title: Date range
                                                  properties:
                                                    type:
                                                      x-class-name: DateTwoConstraintType
                                                      type: string
                                                      description: This type is used to check if a date is between two other dates.
                                                      enum:
                                                        - DATE_TWO
                                                    logic:
                                                      x-class-name: DateTwoConstraintLogic
                                                      type: string
                                                      description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                      enum:
                                                        - BETWEEN
                                                    value1:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                    value2:
                                                      description: The value to test `attribute` against.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                      oneOf:
                                                        - type: object
                                                          title: Static value
                                                          description: Inserts a static value.
                                                          properties:
                                                            type:
                                                              x-class-name: ConstantValueType
                                                              type: string
                                                              description: Inserts a static value.
                                                              enum:
                                                                - CONSTANT
                                                            constant:
                                                              description: |
                                                                The value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                              oneOf:
                                                                - type: string
                                                                  maxLength: 21000
                                                                - type: number
                                                                - type: boolean
                                                                - type: array
                                                                  maxItems: 65000
                                                                  items:
                                                                    type: string
                                                                    maxLength: 21000
                                                          required:
                                                            - type
                                                            - constant
                                                        - type: object
                                                          title: Event parameter
                                                          description: Inserts an event parameter value
                                                          properties:
                                                            type:
                                                              x-class-name: EventParameterType
                                                              description: Inserts an event parameter value
                                                              type: string
                                                              enum:
                                                                - EVENT
                                                            attribute:
                                                              description: An event attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  title: Event parameter
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ParamEventAttributeType
                                                                      enum:
                                                                        - PARAM
                                                                      description: This `type` refers to parameters in an event.
                                                                    param:
                                                                      type: string
                                                                      description: Name of the parameter
                                                                  required:
                                                                    - type
                                                                - type: object
                                                                  title: Event aggregate
                                                                  properties:
                                                                    type:
                                                                      x-class-name: RunningAggregateEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - RUNNING_AGGREGATE
                                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the event aggregate
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Expression
                                                                  properties:
                                                                    type:
                                                                      x-class-name: ExpressionEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: ID of the expression
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  title: Special property
                                                                  properties:
                                                                    type:
                                                                      x-class-name: SpecialEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                      description: This type lets you access special properties of an event.
                                                                    special:
                                                                      type: string
                                                                      description: The type of special attribute you want to use
                                                                      enum:
                                                                        - TIMESTAMP
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  title: No attribute
                                                                  properties:
                                                                    type:
                                                                      x-class-name: EmptyEventAttributeType
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Profile attribute
                                                          properties:
                                                            type:
                                                              description: References a profile attribute, including analyses.
                                                              x-class-name: ClientEventValueType
                                                              type: string
                                                              enum:
                                                                - CLIENT
                                                            attribute:
                                                              description: A profile attribute to analyze
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                              oneOf:
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - PARAM
                                                                    param:
                                                                      description: Name of the parameter
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - param
                                                                - type: object
                                                                  description: Reference to a tag
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - TAG
                                                                    tag:
                                                                      description: Name of the tag
                                                                      type: string
                                                                  required:
                                                                    - type
                                                                    - tag
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - AGGREGATE
                                                                    uuid:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - uuid
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a segmentation
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SEGMENTATION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Pointer to an expression
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EXPRESSION
                                                                    id:
                                                                      type: string
                                                                      format: uuid
                                                                      description: |
                                                                        UUID of the analysis
                                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                  required:
                                                                    - type
                                                                    - id
                                                                - type: object
                                                                  description: Reference to a special parameter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - SPECIAL
                                                                    special:
                                                                      type: string
                                                                      description: The name of the special parameter
                                                                  required:
                                                                    - type
                                                                    - special
                                                                - type: object
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      enum:
                                                                        - EMPTY
                                                                  required:
                                                                    - type
                                                          required:
                                                            - type
                                                            - attribute
                                                        - type: object
                                                          title: Dynamic value
                                                          properties:
                                                            type:
                                                              x-class-name: VariableValueType
                                                              type: string
                                                              enum:
                                                                - VARIABLE
                                                              description: |
                                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                The variable value can't:
                                                                  - be longer than 21000 characters if it's a string
                                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                            name:
                                                              type: string
                                                              description: The name of the dynamic key
                                                            defaultValue:
                                                              type: string
                                                              maxLength: 21000
                                                              description: The default value to use
                                                          required:
                                                            - type
                                                            - name
                                                            - defaultValue
                                                  required:
                                                    - type
                                                    - logic
                                                    - value1
                                                    - value2
                                                - description: This type is used to check if a date matches a date filter.
                                                  type: object
                                                  title: Date filter
                                                  properties:
                                                    type:
                                                      x-class-name: DateFilterConstraintType
                                                      type: string
                                                      description: This type is used to check if a date matches a date filter.
                                                      enum:
                                                        - DATE_FILTER
                                                    logic:
                                                      x-class-name: DateFilterConstraintLogic
                                                      type: string
                                                      enum:
                                                        - DATE_FILTER
                                                      description: Checks if the date from `attribute` matches a date filter.
                                                    value:
                                                      description: |
                                                        Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                        An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                        A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                          RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                      oneOf:
                                                        - type: object
                                                          title: AbsoluteDateFilter
                                                          properties:
                                                            type:
                                                              title: AbsoluteDateFilterType
                                                              x-class-name: AbsoluteDateFilterType
                                                              x-interface-name-ts: AbsoluteDateFilterType
                                                              type: string
                                                              enum:
                                                                - ABSOLUTE
                                                              description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                            from:
                                                              type: string
                                                              format: date-time
                                                              description: The lower boundary of the date filter.
                                                            to:
                                                              type: string
                                                              format: date-time
                                                              description: The upper boundary of the date filter. Must be later than `from`.
                                                            filter:
                                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                              oneOf:
                                                                - type: object
                                                                  title: Daily
                                                                  x-class-name: CustomDailyFilter
                                                                  x-interface-name-ts: CustomDailyFilter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomDailyFilterType
                                                                      x-interface-name-ts: CustomDailyFilterType
                                                                      enum:
                                                                        - DAILY
                                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                                    nestingType:
                                                                      x-class-name: CustomDailyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - nestingType
                                                                    - type
                                                                    - from
                                                                    - to
                                                                - type: object
                                                                  title: Weekly
                                                                  x-class-name: CustomWeeklyFilter
                                                                  x-interface-name-ts: CustomWeeklyFilter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomWeeklyFilterType
                                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                                      enum:
                                                                        - WEEKLY
                                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                                    nestingType:
                                                                      x-class-name: CustomWeeklyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    days:
                                                                      type: array
                                                                      description: An array of rules for different days of the week.
                                                                      items:
                                                                        type: object
                                                                        properties:
                                                                          day:
                                                                            type: integer
                                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                          from:
                                                                            type: string
                                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                          to:
                                                                            type: string
                                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                          mode:
                                                                            type: string
                                                                            enum:
                                                                              - Range
                                                                              - Hour
                                                                          inverted:
                                                                            type: boolean
                                                                            default: false
                                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                        required:
                                                                          - day
                                                                          - from
                                                                          - inverted
                                                                          - to
                                                                  required:
                                                                    - days
                                                                    - nestingType
                                                                    - type
                                                                - type: object
                                                                  title: Monthly
                                                                  x-class-name: CustomMonthlyFilterType
                                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomMonthlyFilterType
                                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                                      enum:
                                                                        - MONTHLY
                                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                    nestingType:
                                                                      x-class-name: CustomMonthlyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    rules:
                                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                      oneOf:
                                                                        - type: object
                                                                          title: Days of the week
                                                                          x-class-name: WeekDateRule
                                                                          x-interface-name-ts: WeekDateRule
                                                                          properties:
                                                                            type:
                                                                              type: string
                                                                              x-class-name: WeekDateRuleType
                                                                              x-interface-name-ts: WeekDateRuleType
                                                                              enum:
                                                                                - WEEK
                                                                              description: Weekly filters limit the scope to days in a week
                                                                            weeks:
                                                                              type: array
                                                                              description: Weeks of the month included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  week:
                                                                                    type: integer
                                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                  days:
                                                                                    type: array
                                                                                    description: Days included in the pattern
                                                                                    items:
                                                                                      type: object
                                                                                      properties:
                                                                                        day:
                                                                                          type: integer
                                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                        from:
                                                                                          type: string
                                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                        to:
                                                                                          type: string
                                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                        mode:
                                                                                          type: string
                                                                                          enum:
                                                                                            - Range
                                                                                            - Hour
                                                                                        inverted:
                                                                                          type: boolean
                                                                                          default: false
                                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                      required:
                                                                                        - day
                                                                                        - from
                                                                                        - inverted
                                                                                        - to
                                                                                required:
                                                                                  - days
                                                                                  - type
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: |
                                                                                When set to `true`, weeks are counted from the end of the month.

                                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                          required:
                                                                            - type
                                                                            - weeks
                                                                        - type: object
                                                                          title: Days of the month
                                                                          x-class-name: MonthDateRule
                                                                          x-interface-name-ts: MonthDateRule
                                                                          properties:
                                                                            type:
                                                                              description: Rules for days of the month
                                                                              type: string
                                                                              x-class-name: MonthDateRuleType
                                                                              x-interface-name-ts: MonthDateRuleType
                                                                              enum:
                                                                                - MONTH
                                                                            days:
                                                                              type: array
                                                                              description: Days of the month included in the pattern.
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: |
                                                                                When set to `true`, days are counted from the end of the month.

                                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      discriminator:
                                                                        propertyName: type
                                                                        mapping:
                                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                  required:
                                                                    - nestingType
                                                                    - rules
                                                                    - type
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                          required:
                                                            - type
                                                        - type: object
                                                          title: RelativeDateFilter
                                                          properties:
                                                            type:
                                                              title: RelativeDateFilterType
                                                              x-class-name: RelativeDateFilterType
                                                              x-interface-name-ts: RelativeDateFilterType
                                                              type: string
                                                              enum:
                                                                - RELATIVE
                                                              description: |
                                                                Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                                - `duration` is the length of time that the filter covers.
                                                                - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                            duration:
                                                              type: object
                                                              description: The definition of a length of time.
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: TimePeriod
                                                                  x-interface-name-ts: TimePeriod
                                                                  description: The unit of time
                                                                  enum:
                                                                    - YEARS
                                                                    - MONTHS
                                                                    - WEEKS
                                                                    - DAYS
                                                                    - HOURS
                                                                    - MINUTES
                                                                    - SECONDS
                                                                    - UNKNOWN
                                                                value:
                                                                  type: integer
                                                                  description: The number of time units
                                                                  format: int64
                                                              required:
                                                                - type
                                                                - value
                                                            offset:
                                                              type: object
                                                              description: The definition of a length of time.
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: TimePeriod
                                                                  x-interface-name-ts: TimePeriod
                                                                  description: The unit of time
                                                                  enum:
                                                                    - YEARS
                                                                    - MONTHS
                                                                    - WEEKS
                                                                    - DAYS
                                                                    - HOURS
                                                                    - MINUTES
                                                                    - SECONDS
                                                                    - UNKNOWN
                                                                value:
                                                                  type: integer
                                                                  description: The number of time units
                                                                  format: int64
                                                              required:
                                                                - type
                                                                - value
                                                            filter:
                                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                              oneOf:
                                                                - type: object
                                                                  title: Daily
                                                                  x-class-name: CustomDailyFilter
                                                                  x-interface-name-ts: CustomDailyFilter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomDailyFilterType
                                                                      x-interface-name-ts: CustomDailyFilterType
                                                                      enum:
                                                                        - DAILY
                                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                                    nestingType:
                                                                      x-class-name: CustomDailyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - nestingType
                                                                    - type
                                                                    - from
                                                                    - to
                                                                - type: object
                                                                  title: Weekly
                                                                  x-class-name: CustomWeeklyFilter
                                                                  x-interface-name-ts: CustomWeeklyFilter
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomWeeklyFilterType
                                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                                      enum:
                                                                        - WEEKLY
                                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                                    nestingType:
                                                                      x-class-name: CustomWeeklyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    days:
                                                                      type: array
                                                                      description: An array of rules for different days of the week.
                                                                      items:
                                                                        type: object
                                                                        properties:
                                                                          day:
                                                                            type: integer
                                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                          from:
                                                                            type: string
                                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                          to:
                                                                            type: string
                                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                          mode:
                                                                            type: string
                                                                            enum:
                                                                              - Range
                                                                              - Hour
                                                                          inverted:
                                                                            type: boolean
                                                                            default: false
                                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                        required:
                                                                          - day
                                                                          - from
                                                                          - inverted
                                                                          - to
                                                                  required:
                                                                    - days
                                                                    - nestingType
                                                                    - type
                                                                - type: object
                                                                  title: Monthly
                                                                  x-class-name: CustomMonthlyFilterType
                                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: CustomMonthlyFilterType
                                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                                      enum:
                                                                        - MONTHLY
                                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                    nestingType:
                                                                      x-class-name: CustomMonthlyFilterNestingType
                                                                      type: string
                                                                      enum:
                                                                        - IN_PLACE
                                                                    rules:
                                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                      oneOf:
                                                                        - type: object
                                                                          title: Days of the week
                                                                          x-class-name: WeekDateRule
                                                                          x-interface-name-ts: WeekDateRule
                                                                          properties:
                                                                            type:
                                                                              type: string
                                                                              x-class-name: WeekDateRuleType
                                                                              x-interface-name-ts: WeekDateRuleType
                                                                              enum:
                                                                                - WEEK
                                                                              description: Weekly filters limit the scope to days in a week
                                                                            weeks:
                                                                              type: array
                                                                              description: Weeks of the month included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  week:
                                                                                    type: integer
                                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                  days:
                                                                                    type: array
                                                                                    description: Days included in the pattern
                                                                                    items:
                                                                                      type: object
                                                                                      properties:
                                                                                        day:
                                                                                          type: integer
                                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                        from:
                                                                                          type: string
                                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                        to:
                                                                                          type: string
                                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                        mode:
                                                                                          type: string
                                                                                          enum:
                                                                                            - Range
                                                                                            - Hour
                                                                                        inverted:
                                                                                          type: boolean
                                                                                          default: false
                                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                      required:
                                                                                        - day
                                                                                        - from
                                                                                        - inverted
                                                                                        - to
                                                                                required:
                                                                                  - days
                                                                                  - type
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: |
                                                                                When set to `true`, weeks are counted from the end of the month.

                                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                          required:
                                                                            - type
                                                                            - weeks
                                                                        - type: object
                                                                          title: Days of the month
                                                                          x-class-name: MonthDateRule
                                                                          x-interface-name-ts: MonthDateRule
                                                                          properties:
                                                                            type:
                                                                              description: Rules for days of the month
                                                                              type: string
                                                                              x-class-name: MonthDateRuleType
                                                                              x-interface-name-ts: MonthDateRuleType
                                                                              enum:
                                                                                - MONTH
                                                                            days:
                                                                              type: array
                                                                              description: Days of the month included in the pattern.
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: |
                                                                                When set to `true`, days are counted from the end of the month.

                                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      discriminator:
                                                                        propertyName: type
                                                                        mapping:
                                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                  required:
                                                                    - nestingType
                                                                    - rules
                                                                    - type
                                                              discriminator:
                                                                propertyName: type
                                                                mapping:
                                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                          required:
                                                            - duration
                                                            - offset
                                                            - type
                                                  required:
                                                    - type
                                                    - logic
                                                    - value
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - constrain
                                            - attribute
                                    required:
                                      - action
                                      - title
                                      - expressions
                                exact:
                                  type: boolean
                                  default: false
                                  description: |
                                    When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
                              required:
                                - title
                                - steps
                        - description: Definition of a profile filter
                          type: object
                          properties:
                            type:
                              x-class-name: ExpressionFilterExpressionContentType
                              type: string
                              enum:
                                - EXPRESSION
                            name:
                              type: string
                            matching:
                              type: boolean
                              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                              default: true
                            expressions:
                              description: Profile filter details. The expressions are applied according to their position in the array. The logical AND/OR operator must be placed between expressions. An empty array means no filters are applied.
                              type: array
                              items:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterBox"
                                    EXPRESSION: "#/components/schemas/analytics-ExpressionFilterBox"
                                    FUNNEL: "#/components/schemas/analytics-FunnelFilterBox"
                                    OPERATOR: "#/components/schemas/analytics-OperatorFilterBox"
                                oneOf:
                                  - type: object
                                    properties:
                                      type:
                                        x-class-name: AttributeFilterBoxType
                                        type: string
                                        enum:
                                          - ATTRIBUTE
                                        description: Tests a profile attribute against a condition
                                      name:
                                        type: string
                                        description: Name of the resource
                                      matching:
                                        type: boolean
                                        description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                                        default: true
                                      attribute:
                                        type: object
                                        description: The condition to test a profile attribute
                                        properties:
                                          expressions:
                                            type: array
                                            description: An array of conditions. All conditions must be met.
                                            items:
                                              type: object
                                              properties:
                                                constraint:
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                                                      STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                                                      STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                                                      NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                                                      NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                                                      STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                                                      ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                                                      "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                                                      DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                                                      DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                                                      DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                                                      DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                                                  oneOf:
                                                    - type: object
                                                      title: Boolean
                                                      properties:
                                                        type:
                                                          x-class-name: BoolClientConstraintType
                                                          type: string
                                                          enum:
                                                            - BOOL
                                                          description: Tests a boolean value
                                                        logic:
                                                          description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                          x-class-name: BoolClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - IS_TRUE
                                                            - IS_FALSE
                                                      required:
                                                        - type
                                                        - logic
                                                    - type: object
                                                      title: Check empty
                                                      description: This type is used to check if a string is empty.
                                                      properties:
                                                        type:
                                                          x-class-name: StringZeroClientConstraintType
                                                          type: string
                                                          description: This type is used to check if a string is empty.
                                                          enum:
                                                            - STRING_ZERO
                                                        logic:
                                                          description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                          x-class-name: StringZeroClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - IS_EMPTY
                                                            - IS_NOT_EMPTY
                                                      required:
                                                        - type
                                                        - logic
                                                    - type: object
                                                      title: String
                                                      properties:
                                                        type:
                                                          description: This type is used to test values that are a single string.
                                                          x-class-name: StringOneClientConstraintType
                                                          type: string
                                                          enum:
                                                            - STRING_ONE
                                                        logic:
                                                          description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                          x-class-name: StringOneClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - CONTAIN
                                                            - NOT_CONTAIN
                                                            - EQUAL
                                                            - NOT_EQUAL
                                                            - STARTS_WITH
                                                            - REGEXP
                                                            - ENDS_WITH
                                                        value:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                    - type: object
                                                      title: Number
                                                      properties:
                                                        type:
                                                          description: This type is used to test values that are a single number
                                                          x-class-name: NumberOneClientConstraintType
                                                          type: string
                                                          enum:
                                                            - NUMBER_ONE
                                                        logic:
                                                          description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                          x-class-name: NumberOneClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - EQUAL
                                                            - NOT_EQUAL
                                                            - LESS
                                                            - MORE
                                                            - MORE_OR_EQUAL
                                                            - LESS_OR_EQUAL
                                                        value:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                    - type: object
                                                      title: Two numbers
                                                      properties:
                                                        type:
                                                          description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                          x-class-name: NumberTwoClientConstraintType
                                                          type: string
                                                          enum:
                                                            - NUMBER_TWO
                                                        logic:
                                                          description: Checks if the attribute is between two numbers.
                                                          x-class-name: NumberTwoClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - BETWEEN
                                                        value1:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                        value2:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value1
                                                        - value2
                                                    - type: object
                                                      title: Check if string in array
                                                      properties:
                                                        type:
                                                          description: This type is used to check if a string exists in an array defined in `value`
                                                          x-class-name: StringArrayClientConstraintType
                                                          type: string
                                                          enum:
                                                            - STRING_ARRAY
                                                        logic:
                                                          description: You can check if the value from `attribute` is in the array defined in `value`
                                                          x-class-name: StringArrayClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - IN
                                                            - NOT_IN
                                                        value:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                    - type: object
                                                      title: Other string array tests
                                                      properties:
                                                        type:
                                                          description: "`value` should be an array"
                                                          x-class-name: ArrayStringOneClientConstraintType
                                                          type: string
                                                          enum:
                                                            - ARRAY_STRING_ONE_DEPRECATED
                                                        logic:
                                                          description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                                          x-class-name: ArrayStringOneClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - CONTAIN
                                                            - NOT_CONTAIN
                                                            - EQUAL
                                                            - NOT_EQUAL
                                                            - STARTS_WITH
                                                            - REGEXP
                                                            - ENDS_WITH
                                                        value:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                    - type: object
                                                      title: Check if null
                                                      properties:
                                                        type:
                                                          x-class-name: NullClientConstraintType
                                                          type: string
                                                          enum:
                                                            - "NULL"
                                                          description: This type is used to check if a value is null
                                                        logic:
                                                          description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                          x-class-name: NullClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - IS_NULL
                                                            - IS_NOT_NULL
                                                      required:
                                                        - type
                                                        - logic
                                                    - type: object
                                                      title: Current date
                                                      properties:
                                                        type:
                                                          description: Compare a date from `attribute` to the current date
                                                          x-class-name: DateZeroClientConstraintType
                                                          type: string
                                                          enum:
                                                            - DATE_ZERO
                                                        logic:
                                                          description: Logic to apply to the date from `attribute`
                                                          x-class-name: DateZeroClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - MATCHES_CURRENT_DAY
                                                            - MATCHES_CURRENT_HOUR
                                                            - MATCHES_CURRENT_MONTH
                                                            - MATCHES_CURRENT_YEAR
                                                      required:
                                                        - type
                                                        - logic
                                                    - description: This type is used to check `attribute` against a date.
                                                      type: object
                                                      title: Date
                                                      properties:
                                                        type:
                                                          x-class-name: DateOneClientConstraintType
                                                          type: string
                                                          description: This type is used to check `attribute` against a date.
                                                          enum:
                                                            - DATE_ONE
                                                        logic:
                                                          description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                          x-class-name: DateOneClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - LESS
                                                            - MORE
                                                            - LESS_OR_EQUAL
                                                            - MORE_OR_EQUAL
                                                        value:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                    - description: This type is used to check if a date is between two other dates.
                                                      type: object
                                                      title: Date range
                                                      properties:
                                                        type:
                                                          x-class-name: DateTwoClientConstraintType
                                                          type: string
                                                          description: This type is used to check if a date is between two other dates.
                                                          enum:
                                                            - DATE_TWO
                                                        logic:
                                                          description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                          x-class-name: DateTwoClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - BETWEEN
                                                        value1:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                        value2:
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                                          oneOf:
                                                            - type: object
                                                              title: Static value
                                                              description: Inserts a static value.
                                                              properties:
                                                                type:
                                                                  x-class-name: ConstantClientValueType
                                                                  type: string
                                                                  description: Inserts a static value.
                                                                  enum:
                                                                    - CONSTANT
                                                                constant:
                                                                  description: |
                                                                    The value can't:
                                                                      - be longer than 21000 characters if it's a string
                                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: boolean
                                                                    - type: array
                                                                      items:
                                                                        type: string
                                                              required:
                                                                - type
                                                                - constant
                                                            - type: object
                                                              title: Profile attribute
                                                              properties:
                                                                type:
                                                                  x-class-name: ClientClientValueType
                                                                  type: string
                                                                  enum:
                                                                    - CLIENT
                                                                  description: Definition of a profile attribute
                                                                attribute:
                                                                  description: A profile attribute to analyze
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                  oneOf:
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - PARAM
                                                                        param:
                                                                          description: Name of the parameter
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - param
                                                                    - type: object
                                                                      description: Reference to a tag
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - TAG
                                                                        tag:
                                                                          description: Name of the tag
                                                                          type: string
                                                                      required:
                                                                        - type
                                                                        - tag
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - AGGREGATE
                                                                        uuid:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - uuid
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a segmentation
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SEGMENTATION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Pointer to an expression
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EXPRESSION
                                                                        id:
                                                                          type: string
                                                                          format: uuid
                                                                          description: |
                                                                            UUID of the analysis
                                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                      required:
                                                                        - type
                                                                        - id
                                                                    - type: object
                                                                      description: Reference to a special parameter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - SPECIAL
                                                                        special:
                                                                          type: string
                                                                          description: The name of the special parameter
                                                                      required:
                                                                        - type
                                                                        - special
                                                                    - type: object
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          enum:
                                                                            - EMPTY
                                                                      required:
                                                                        - type
                                                              required:
                                                                - type
                                                                - attribute
                                                            - type: object
                                                              title: Dynamic value
                                                              properties:
                                                                type:
                                                                  x-class-name: VariableClientValueType
                                                                  type: string
                                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                                  enum:
                                                                    - VARIABLE
                                                                name:
                                                                  type: string
                                                                  description: The name of the dynamic key
                                                                defaultValue:
                                                                  description: The default value to use
                                                                  oneOf:
                                                                    - type: string
                                                                    - type: number
                                                                    - type: array
                                                                      items: {}
                                                              required:
                                                                - type
                                                                - name
                                                                - defaultValue
                                                      required:
                                                        - type
                                                        - logic
                                                        - value1
                                                        - value2
                                                    - type: object
                                                      title: Date filter
                                                      description: This type is used to check if a date matches a date filter.
                                                      properties:
                                                        type:
                                                          x-class-name: DateFilterClientConstraintType
                                                          type: string
                                                          description: This type is used to check if a date matches a date filter.
                                                          enum:
                                                            - DATE_FILTER
                                                        logic:
                                                          description: Checks if the date from `attribute` matches a date filter.
                                                          x-class-name: DateFilterClientConstraintLogic
                                                          type: string
                                                          enum:
                                                            - DATE_FILTER
                                                        value:
                                                          description: |
                                                            Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                            An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                            A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                              RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                          oneOf:
                                                            - type: object
                                                              title: AbsoluteDateFilter
                                                              properties:
                                                                type:
                                                                  title: AbsoluteDateFilterType
                                                                  x-class-name: AbsoluteDateFilterType
                                                                  x-interface-name-ts: AbsoluteDateFilterType
                                                                  type: string
                                                                  enum:
                                                                    - ABSOLUTE
                                                                  description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                                from:
                                                                  type: string
                                                                  format: date-time
                                                                  description: The lower boundary of the date filter.
                                                                to:
                                                                  type: string
                                                                  format: date-time
                                                                  description: The upper boundary of the date filter. Must be later than `from`.
                                                                filter:
                                                                  description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                  oneOf:
                                                                    - type: object
                                                                      title: Daily
                                                                      x-class-name: CustomDailyFilter
                                                                      x-interface-name-ts: CustomDailyFilter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomDailyFilterType
                                                                          x-interface-name-ts: CustomDailyFilterType
                                                                          enum:
                                                                            - DAILY
                                                                          description: Daily filters limit the data scope to a range of hours every day.
                                                                        nestingType:
                                                                          x-class-name: CustomDailyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - nestingType
                                                                        - type
                                                                        - from
                                                                        - to
                                                                    - type: object
                                                                      title: Weekly
                                                                      x-class-name: CustomWeeklyFilter
                                                                      x-interface-name-ts: CustomWeeklyFilter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomWeeklyFilterType
                                                                          x-interface-name-ts: CustomWeeklyFilterType
                                                                          enum:
                                                                            - WEEKLY
                                                                          description: Weekly filters let you define separate rules for each day of the week.
                                                                        nestingType:
                                                                          x-class-name: CustomWeeklyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        days:
                                                                          type: array
                                                                          description: An array of rules for different days of the week.
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                      required:
                                                                        - days
                                                                        - nestingType
                                                                        - type
                                                                    - type: object
                                                                      title: Monthly
                                                                      x-class-name: CustomMonthlyFilterType
                                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomMonthlyFilterType
                                                                          x-interface-name-ts: CustomMonthlyFilterType
                                                                          enum:
                                                                            - MONTHLY
                                                                          description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                        nestingType:
                                                                          x-class-name: CustomMonthlyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        rules:
                                                                          description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                          oneOf:
                                                                            - type: object
                                                                              title: Days of the week
                                                                              x-class-name: WeekDateRule
                                                                              x-interface-name-ts: WeekDateRule
                                                                              properties:
                                                                                type:
                                                                                  type: string
                                                                                  x-class-name: WeekDateRuleType
                                                                                  x-interface-name-ts: WeekDateRuleType
                                                                                  enum:
                                                                                    - WEEK
                                                                                  description: Weekly filters limit the scope to days in a week
                                                                                weeks:
                                                                                  type: array
                                                                                  description: Weeks of the month included in the pattern
                                                                                  items:
                                                                                    type: object
                                                                                    properties:
                                                                                      week:
                                                                                        type: integer
                                                                                        description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                      days:
                                                                                        type: array
                                                                                        description: Days included in the pattern
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            day:
                                                                                              type: integer
                                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                            from:
                                                                                              type: string
                                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            to:
                                                                                              type: string
                                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            mode:
                                                                                              type: string
                                                                                              enum:
                                                                                                - Range
                                                                                                - Hour
                                                                                            inverted:
                                                                                              type: boolean
                                                                                              default: false
                                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                          required:
                                                                                            - day
                                                                                            - from
                                                                                            - inverted
                                                                                            - to
                                                                                    required:
                                                                                      - days
                                                                                      - type
                                                                                inverted:
                                                                                  type: boolean
                                                                                  default: false
                                                                                  description: |
                                                                                    When set to `true`, weeks are counted from the end of the month.

                                                                                    For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                              required:
                                                                                - type
                                                                                - weeks
                                                                            - type: object
                                                                              title: Days of the month
                                                                              x-class-name: MonthDateRule
                                                                              x-interface-name-ts: MonthDateRule
                                                                              properties:
                                                                                type:
                                                                                  description: Rules for days of the month
                                                                                  type: string
                                                                                  x-class-name: MonthDateRuleType
                                                                                  x-interface-name-ts: MonthDateRuleType
                                                                                  enum:
                                                                                    - MONTH
                                                                                days:
                                                                                  type: array
                                                                                  description: Days of the month included in the pattern.
                                                                                  items:
                                                                                    type: object
                                                                                    properties:
                                                                                      day:
                                                                                        type: integer
                                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                      from:
                                                                                        type: string
                                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                      to:
                                                                                        type: string
                                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                      mode:
                                                                                        type: string
                                                                                        enum:
                                                                                          - Range
                                                                                          - Hour
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                    required:
                                                                                      - day
                                                                                      - from
                                                                                      - inverted
                                                                                      - to
                                                                                inverted:
                                                                                  type: boolean
                                                                                  default: false
                                                                                  description: |
                                                                                    When set to `true`, days are counted from the end of the month.

                                                                                    For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                              required:
                                                                                - days
                                                                                - type
                                                                          discriminator:
                                                                            propertyName: type
                                                                            mapping:
                                                                              WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                              MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                      required:
                                                                        - nestingType
                                                                        - rules
                                                                        - type
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                      WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                      MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                              required:
                                                                - type
                                                            - type: object
                                                              title: RelativeDateFilter
                                                              properties:
                                                                type:
                                                                  title: RelativeDateFilterType
                                                                  x-class-name: RelativeDateFilterType
                                                                  x-interface-name-ts: RelativeDateFilterType
                                                                  type: string
                                                                  enum:
                                                                    - RELATIVE
                                                                  description: |
                                                                    Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                                    - `duration` is the length of time that the filter covers.
                                                                    - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                                duration:
                                                                  type: object
                                                                  description: The definition of a length of time.
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: TimePeriod
                                                                      x-interface-name-ts: TimePeriod
                                                                      description: The unit of time
                                                                      enum:
                                                                        - YEARS
                                                                        - MONTHS
                                                                        - WEEKS
                                                                        - DAYS
                                                                        - HOURS
                                                                        - MINUTES
                                                                        - SECONDS
                                                                        - UNKNOWN
                                                                    value:
                                                                      type: integer
                                                                      description: The number of time units
                                                                      format: int64
                                                                  required:
                                                                    - type
                                                                    - value
                                                                offset:
                                                                  type: object
                                                                  description: The definition of a length of time.
                                                                  properties:
                                                                    type:
                                                                      type: string
                                                                      x-class-name: TimePeriod
                                                                      x-interface-name-ts: TimePeriod
                                                                      description: The unit of time
                                                                      enum:
                                                                        - YEARS
                                                                        - MONTHS
                                                                        - WEEKS
                                                                        - DAYS
                                                                        - HOURS
                                                                        - MINUTES
                                                                        - SECONDS
                                                                        - UNKNOWN
                                                                    value:
                                                                      type: integer
                                                                      description: The number of time units
                                                                      format: int64
                                                                  required:
                                                                    - type
                                                                    - value
                                                                filter:
                                                                  description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                  oneOf:
                                                                    - type: object
                                                                      title: Daily
                                                                      x-class-name: CustomDailyFilter
                                                                      x-interface-name-ts: CustomDailyFilter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomDailyFilterType
                                                                          x-interface-name-ts: CustomDailyFilterType
                                                                          enum:
                                                                            - DAILY
                                                                          description: Daily filters limit the data scope to a range of hours every day.
                                                                        nestingType:
                                                                          x-class-name: CustomDailyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - nestingType
                                                                        - type
                                                                        - from
                                                                        - to
                                                                    - type: object
                                                                      title: Weekly
                                                                      x-class-name: CustomWeeklyFilter
                                                                      x-interface-name-ts: CustomWeeklyFilter
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomWeeklyFilterType
                                                                          x-interface-name-ts: CustomWeeklyFilterType
                                                                          enum:
                                                                            - WEEKLY
                                                                          description: Weekly filters let you define separate rules for each day of the week.
                                                                        nestingType:
                                                                          x-class-name: CustomWeeklyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        days:
                                                                          type: array
                                                                          description: An array of rules for different days of the week.
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                      required:
                                                                        - days
                                                                        - nestingType
                                                                        - type
                                                                    - type: object
                                                                      title: Monthly
                                                                      x-class-name: CustomMonthlyFilterType
                                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                                      properties:
                                                                        type:
                                                                          type: string
                                                                          x-class-name: CustomMonthlyFilterType
                                                                          x-interface-name-ts: CustomMonthlyFilterType
                                                                          enum:
                                                                            - MONTHLY
                                                                          description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                        nestingType:
                                                                          x-class-name: CustomMonthlyFilterNestingType
                                                                          type: string
                                                                          enum:
                                                                            - IN_PLACE
                                                                        rules:
                                                                          description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                          oneOf:
                                                                            - type: object
                                                                              title: Days of the week
                                                                              x-class-name: WeekDateRule
                                                                              x-interface-name-ts: WeekDateRule
                                                                              properties:
                                                                                type:
                                                                                  type: string
                                                                                  x-class-name: WeekDateRuleType
                                                                                  x-interface-name-ts: WeekDateRuleType
                                                                                  enum:
                                                                                    - WEEK
                                                                                  description: Weekly filters limit the scope to days in a week
                                                                                weeks:
                                                                                  type: array
                                                                                  description: Weeks of the month included in the pattern
                                                                                  items:
                                                                                    type: object
                                                                                    properties:
                                                                                      week:
                                                                                        type: integer
                                                                                        description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                      days:
                                                                                        type: array
                                                                                        description: Days included in the pattern
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            day:
                                                                                              type: integer
                                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                            from:
                                                                                              type: string
                                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            to:
                                                                                              type: string
                                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            mode:
                                                                                              type: string
                                                                                              enum:
                                                                                                - Range
                                                                                                - Hour
                                                                                            inverted:
                                                                                              type: boolean
                                                                                              default: false
                                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                          required:
                                                                                            - day
                                                                                            - from
                                                                                            - inverted
                                                                                            - to
                                                                                    required:
                                                                                      - days
                                                                                      - type
                                                                                inverted:
                                                                                  type: boolean
                                                                                  default: false
                                                                                  description: |
                                                                                    When set to `true`, weeks are counted from the end of the month.

                                                                                    For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                              required:
                                                                                - type
                                                                                - weeks
                                                                            - type: object
                                                                              title: Days of the month
                                                                              x-class-name: MonthDateRule
                                                                              x-interface-name-ts: MonthDateRule
                                                                              properties:
                                                                                type:
                                                                                  description: Rules for days of the month
                                                                                  type: string
                                                                                  x-class-name: MonthDateRuleType
                                                                                  x-interface-name-ts: MonthDateRuleType
                                                                                  enum:
                                                                                    - MONTH
                                                                                days:
                                                                                  type: array
                                                                                  description: Days of the month included in the pattern.
                                                                                  items:
                                                                                    type: object
                                                                                    properties:
                                                                                      day:
                                                                                        type: integer
                                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                      from:
                                                                                        type: string
                                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                      to:
                                                                                        type: string
                                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                      mode:
                                                                                        type: string
                                                                                        enum:
                                                                                          - Range
                                                                                          - Hour
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                    required:
                                                                                      - day
                                                                                      - from
                                                                                      - inverted
                                                                                      - to
                                                                                inverted:
                                                                                  type: boolean
                                                                                  default: false
                                                                                  description: |
                                                                                    When set to `true`, days are counted from the end of the month.

                                                                                    For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                              required:
                                                                                - days
                                                                                - type
                                                                          discriminator:
                                                                            propertyName: type
                                                                            mapping:
                                                                              WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                              MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                      required:
                                                                        - nestingType
                                                                        - rules
                                                                        - type
                                                                  discriminator:
                                                                    propertyName: type
                                                                    mapping:
                                                                      DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                      WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                      MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                              required:
                                                                - duration
                                                                - offset
                                                                - type
                                                      required:
                                                        - type
                                                        - logic
                                                        - value
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                        required:
                                          - expressions
                                  - description: A condition to test
                                    type: object
                                    properties:
                                      type:
                                        description: A condition to test
                                        x-class-name: ExpressionFilterBoxType
                                        type: string
                                        enum:
                                          - EXPRESSION
                                      name:
                                        type: string
                                      matching:
                                        type: boolean
                                      expressions:
                                        $ref: "#/components/schemas/analytics-FilterBox"
                                    required:
                                      - type
                                      - expressions
                                  - type: object
                                    properties:
                                      type:
                                        description: Tests against a funnel
                                        x-class-name: ExpressionFilterBoxType
                                        type: string
                                        enum:
                                          - FUNNEL
                                      name:
                                        type: string
                                        description: Name of the resource
                                      matching:
                                        type: boolean
                                        description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                                        default: true
                                      funnel:
                                        type: object
                                        description: Funnel conditions
                                        properties:
                                          title:
                                            type: string
                                            description: Title of the funnel.
                                          completedWithin:
                                            type: object
                                            description: |
                                              Time constraint for completing all the steps in the funnel. Timer starts
                                              when the first step is triggered.

                                              - `period` sets the time unit
                                              - `value` sets the number of time units
                                            properties:
                                              period:
                                                type: string
                                                x-class-name: TimePeriod
                                                x-interface-name-ts: TimePeriod
                                                description: The unit of time
                                                enum:
                                                  - YEARS
                                                  - MONTHS
                                                  - WEEKS
                                                  - DAYS
                                                  - HOURS
                                                  - MINUTES
                                                  - SECONDS
                                                  - UNKNOWN
                                              value:
                                                description: The number of time units
                                                type: number
                                                format: int64
                                          dateFilter:
                                            description: |
                                              Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                              An absolute date filter lets you define static dates and times that always apply to the analysis.

                                              A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                            discriminator:
                                              propertyName: type
                                              mapping:
                                                ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                            oneOf:
                                              - type: object
                                                title: AbsoluteDateFilter
                                                properties:
                                                  type:
                                                    title: AbsoluteDateFilterType
                                                    x-class-name: AbsoluteDateFilterType
                                                    x-interface-name-ts: AbsoluteDateFilterType
                                                    type: string
                                                    enum:
                                                      - ABSOLUTE
                                                    description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                  from:
                                                    type: string
                                                    format: date-time
                                                    description: The lower boundary of the date filter.
                                                  to:
                                                    type: string
                                                    format: date-time
                                                    description: The upper boundary of the date filter. Must be later than `from`.
                                                  filter:
                                                    description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                    oneOf:
                                                      - type: object
                                                        title: Daily
                                                        x-class-name: CustomDailyFilter
                                                        x-interface-name-ts: CustomDailyFilter
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomDailyFilterType
                                                            x-interface-name-ts: CustomDailyFilterType
                                                            enum:
                                                              - DAILY
                                                            description: Daily filters limit the data scope to a range of hours every day.
                                                          nestingType:
                                                            x-class-name: CustomDailyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - nestingType
                                                          - type
                                                          - from
                                                          - to
                                                      - type: object
                                                        title: Weekly
                                                        x-class-name: CustomWeeklyFilter
                                                        x-interface-name-ts: CustomWeeklyFilter
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomWeeklyFilterType
                                                            x-interface-name-ts: CustomWeeklyFilterType
                                                            enum:
                                                              - WEEKLY
                                                            description: Weekly filters let you define separate rules for each day of the week.
                                                          nestingType:
                                                            x-class-name: CustomWeeklyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          days:
                                                            type: array
                                                            description: An array of rules for different days of the week.
                                                            items:
                                                              type: object
                                                              properties:
                                                                day:
                                                                  type: integer
                                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                mode:
                                                                  type: string
                                                                  enum:
                                                                    - Range
                                                                    - Hour
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - day
                                                                - from
                                                                - inverted
                                                                - to
                                                        required:
                                                          - days
                                                          - nestingType
                                                          - type
                                                      - type: object
                                                        title: Monthly
                                                        x-class-name: CustomMonthlyFilterType
                                                        x-interface-name-ts: CustomMonthlyFilterType
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            enum:
                                                              - MONTHLY
                                                            description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                          nestingType:
                                                            x-class-name: CustomMonthlyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          rules:
                                                            description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                            oneOf:
                                                              - type: object
                                                                title: Days of the week
                                                                x-class-name: WeekDateRule
                                                                x-interface-name-ts: WeekDateRule
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    x-class-name: WeekDateRuleType
                                                                    x-interface-name-ts: WeekDateRuleType
                                                                    enum:
                                                                      - WEEK
                                                                    description: Weekly filters limit the scope to days in a week
                                                                  weeks:
                                                                    type: array
                                                                    description: Weeks of the month included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        week:
                                                                          type: integer
                                                                          description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                        days:
                                                                          type: array
                                                                          description: Days included in the pattern
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                      required:
                                                                        - days
                                                                        - type
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: |
                                                                      When set to `true`, weeks are counted from the end of the month.

                                                                      For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                required:
                                                                  - type
                                                                  - weeks
                                                              - type: object
                                                                title: Days of the month
                                                                x-class-name: MonthDateRule
                                                                x-interface-name-ts: MonthDateRule
                                                                properties:
                                                                  type:
                                                                    description: Rules for days of the month
                                                                    type: string
                                                                    x-class-name: MonthDateRuleType
                                                                    x-interface-name-ts: MonthDateRuleType
                                                                    enum:
                                                                      - MONTH
                                                                  days:
                                                                    type: array
                                                                    description: Days of the month included in the pattern.
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: |
                                                                      When set to `true`, days are counted from the end of the month.

                                                                      For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                required:
                                                                  - days
                                                                  - type
                                                            discriminator:
                                                              propertyName: type
                                                              mapping:
                                                                WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                        required:
                                                          - nestingType
                                                          - rules
                                                          - type
                                                    discriminator:
                                                      propertyName: type
                                                      mapping:
                                                        DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                        WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                        MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                required:
                                                  - type
                                              - type: object
                                                title: RelativeDateFilter
                                                properties:
                                                  type:
                                                    title: RelativeDateFilterType
                                                    x-class-name: RelativeDateFilterType
                                                    x-interface-name-ts: RelativeDateFilterType
                                                    type: string
                                                    enum:
                                                      - RELATIVE
                                                    description: |
                                                      Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                      - `duration` is the length of time that the filter covers.
                                                      - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                  duration:
                                                    type: object
                                                    description: The definition of a length of time.
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: TimePeriod
                                                        x-interface-name-ts: TimePeriod
                                                        description: The unit of time
                                                        enum:
                                                          - YEARS
                                                          - MONTHS
                                                          - WEEKS
                                                          - DAYS
                                                          - HOURS
                                                          - MINUTES
                                                          - SECONDS
                                                          - UNKNOWN
                                                      value:
                                                        type: integer
                                                        description: The number of time units
                                                        format: int64
                                                    required:
                                                      - type
                                                      - value
                                                  offset:
                                                    type: object
                                                    description: The definition of a length of time.
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: TimePeriod
                                                        x-interface-name-ts: TimePeriod
                                                        description: The unit of time
                                                        enum:
                                                          - YEARS
                                                          - MONTHS
                                                          - WEEKS
                                                          - DAYS
                                                          - HOURS
                                                          - MINUTES
                                                          - SECONDS
                                                          - UNKNOWN
                                                      value:
                                                        type: integer
                                                        description: The number of time units
                                                        format: int64
                                                    required:
                                                      - type
                                                      - value
                                                  filter:
                                                    description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                    oneOf:
                                                      - type: object
                                                        title: Daily
                                                        x-class-name: CustomDailyFilter
                                                        x-interface-name-ts: CustomDailyFilter
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomDailyFilterType
                                                            x-interface-name-ts: CustomDailyFilterType
                                                            enum:
                                                              - DAILY
                                                            description: Daily filters limit the data scope to a range of hours every day.
                                                          nestingType:
                                                            x-class-name: CustomDailyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - nestingType
                                                          - type
                                                          - from
                                                          - to
                                                      - type: object
                                                        title: Weekly
                                                        x-class-name: CustomWeeklyFilter
                                                        x-interface-name-ts: CustomWeeklyFilter
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomWeeklyFilterType
                                                            x-interface-name-ts: CustomWeeklyFilterType
                                                            enum:
                                                              - WEEKLY
                                                            description: Weekly filters let you define separate rules for each day of the week.
                                                          nestingType:
                                                            x-class-name: CustomWeeklyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          days:
                                                            type: array
                                                            description: An array of rules for different days of the week.
                                                            items:
                                                              type: object
                                                              properties:
                                                                day:
                                                                  type: integer
                                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                from:
                                                                  type: string
                                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                to:
                                                                  type: string
                                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                mode:
                                                                  type: string
                                                                  enum:
                                                                    - Range
                                                                    - Hour
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                              required:
                                                                - day
                                                                - from
                                                                - inverted
                                                                - to
                                                        required:
                                                          - days
                                                          - nestingType
                                                          - type
                                                      - type: object
                                                        title: Monthly
                                                        x-class-name: CustomMonthlyFilterType
                                                        x-interface-name-ts: CustomMonthlyFilterType
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            enum:
                                                              - MONTHLY
                                                            description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                          nestingType:
                                                            x-class-name: CustomMonthlyFilterNestingType
                                                            type: string
                                                            enum:
                                                              - IN_PLACE
                                                          rules:
                                                            description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                            oneOf:
                                                              - type: object
                                                                title: Days of the week
                                                                x-class-name: WeekDateRule
                                                                x-interface-name-ts: WeekDateRule
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    x-class-name: WeekDateRuleType
                                                                    x-interface-name-ts: WeekDateRuleType
                                                                    enum:
                                                                      - WEEK
                                                                    description: Weekly filters limit the scope to days in a week
                                                                  weeks:
                                                                    type: array
                                                                    description: Weeks of the month included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        week:
                                                                          type: integer
                                                                          description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                        days:
                                                                          type: array
                                                                          description: Days included in the pattern
                                                                          items:
                                                                            type: object
                                                                            properties:
                                                                              day:
                                                                                type: integer
                                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              mode:
                                                                                type: string
                                                                                enum:
                                                                                  - Range
                                                                                  - Hour
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - day
                                                                              - from
                                                                              - inverted
                                                                              - to
                                                                      required:
                                                                        - days
                                                                        - type
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: |
                                                                      When set to `true`, weeks are counted from the end of the month.

                                                                      For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                required:
                                                                  - type
                                                                  - weeks
                                                              - type: object
                                                                title: Days of the month
                                                                x-class-name: MonthDateRule
                                                                x-interface-name-ts: MonthDateRule
                                                                properties:
                                                                  type:
                                                                    description: Rules for days of the month
                                                                    type: string
                                                                    x-class-name: MonthDateRuleType
                                                                    x-interface-name-ts: MonthDateRuleType
                                                                    enum:
                                                                      - MONTH
                                                                  days:
                                                                    type: array
                                                                    description: Days of the month included in the pattern.
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: |
                                                                      When set to `true`, days are counted from the end of the month.

                                                                      For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                required:
                                                                  - days
                                                                  - type
                                                            discriminator:
                                                              propertyName: type
                                                              mapping:
                                                                WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                        required:
                                                          - nestingType
                                                          - rules
                                                          - type
                                                    discriminator:
                                                      propertyName: type
                                                      mapping:
                                                        DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                        WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                        MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                required:
                                                  - duration
                                                  - offset
                                                  - type
                                          steps:
                                            type: array
                                            minItems: 0
                                            description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                                            items:
                                              type: object
                                              properties:
                                                title:
                                                  type: string
                                                  description: The name of the step
                                                action:
                                                  type: object
                                                  description: The analyzed event
                                                  nullable: true
                                                  required:
                                                    - name
                                                  properties:
                                                    id:
                                                      type: integer
                                                      format: int64
                                                      deprecated: true
                                                      nullable: true
                                                      description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                                                    name:
                                                      type: string
                                                      description: Action name of the event.
                                                      example: page.visit
                                                expressions:
                                                  type: array
                                                  description: An array of conditions that the event must meet
                                                  items:
                                                    type: object
                                                    description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                                                    properties:
                                                      constraint:
                                                        description: |
                                                          This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                                          **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                                            STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                                            STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                                            NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                                            NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                                            STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                                            ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                                            "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                                            DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                                            DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                                            DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                                            DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                                                        oneOf:
                                                          - type: object
                                                            title: Boolean
                                                            properties:
                                                              type:
                                                                x-class-name: BoolConstraintType
                                                                type: string
                                                                enum:
                                                                  - BOOL
                                                                description: Tests a boolean value
                                                              logic:
                                                                x-class-name: BoolConstraintLogic
                                                                type: string
                                                                description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                                enum:
                                                                  - IS_TRUE
                                                                  - IS_FALSE
                                                            required:
                                                              - type
                                                              - logic
                                                          - type: object
                                                            title: Check empty
                                                            description: This type is used to check if a string is empty.
                                                            properties:
                                                              type:
                                                                title: String zero
                                                                x-class-name: StringZeroConstraintType
                                                                type: string
                                                                description: This type is used to check if a string is empty.
                                                                enum:
                                                                  - STRING_ZERO
                                                              logic:
                                                                x-class-name: StringZeroConstraintLogic
                                                                type: string
                                                                description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                                enum:
                                                                  - IS_EMPTY
                                                                  - IS_NOT_EMPTY
                                                            required:
                                                              - type
                                                              - logic
                                                          - type: object
                                                            title: String
                                                            properties:
                                                              type:
                                                                x-class-name: StringOneConstraintType
                                                                type: string
                                                                enum:
                                                                  - STRING_ONE
                                                                description: This type is used to test values that are a single string.
                                                              logic:
                                                                x-class-name: StringOneConstraintLogic
                                                                type: string
                                                                description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                                enum:
                                                                  - CONTAIN
                                                                  - NOT_CONTAIN
                                                                  - EQUAL
                                                                  - NOT_EQUAL
                                                                  - STARTS_WITH
                                                                  - REGEXP
                                                                  - ENDS_WITH
                                                              value:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                          - type: object
                                                            title: Number
                                                            properties:
                                                              type:
                                                                x-class-name: NumberOneConstraintType
                                                                type: string
                                                                enum:
                                                                  - NUMBER_ONE
                                                                description: This type is used to test values that are a single number
                                                              logic:
                                                                x-class-name: NumberOneConstraintLogic
                                                                type: string
                                                                description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                                enum:
                                                                  - EQUAL
                                                                  - NOT_EQUAL
                                                                  - LESS
                                                                  - MORE
                                                                  - MORE_OR_EQUAL
                                                                  - LESS_OR_EQUAL
                                                              value:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                          - type: object
                                                            title: Two numbers
                                                            properties:
                                                              type:
                                                                x-class-name: NumberTwoConstraintType
                                                                type: string
                                                                enum:
                                                                  - NUMBER_TWO
                                                                description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                                              logic:
                                                                description: Checks if the attribute is between two numbers.
                                                                x-class-name: NumberTwoConstraintLogic
                                                                type: string
                                                                enum:
                                                                  - BETWEEN
                                                              value1:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                              value2:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value1
                                                              - value2
                                                          - type: object
                                                            title: Check if string in array
                                                            properties:
                                                              type:
                                                                x-class-name: StringArrayConstraintType
                                                                type: string
                                                                enum:
                                                                  - STRING_ARRAY
                                                                description: This type is used to check if a string exists in an array defined in `value`
                                                              logic:
                                                                type: string
                                                                x-class-name: StringArrayConstraintLogic
                                                                description: You can check if the value from `attribute` is in the array defined in `value`
                                                                enum:
                                                                  - IN
                                                                  - NOT_IN
                                                              value:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                          - type: object
                                                            title: Other string array tests
                                                            properties:
                                                              type:
                                                                x-class-name: ArrayStringOneConstraintType
                                                                type: string
                                                                enum:
                                                                  - ARRAY_STRING_ONE_DEPRECATED
                                                                description: "`value` should be an array"
                                                              logic:
                                                                x-class-name: ArrayStringOneConstraintLogic
                                                                type: string
                                                                description: |
                                                                  - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                                                  - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                                                  - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                                                  - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                                                enum:
                                                                  - CONTAIN
                                                                  - NOT_CONTAIN
                                                                  - EQUAL
                                                                  - NOT_EQUAL
                                                                  - STARTS_WITH
                                                                  - REGEXP
                                                                  - ENDS_WITH
                                                              value:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                          - type: object
                                                            title: Check if null
                                                            properties:
                                                              type:
                                                                x-class-name: NullConstraintType
                                                                description: This type is used to check if a value is null
                                                                type: string
                                                                enum:
                                                                  - "NULL"
                                                              logic:
                                                                x-class-name: NullConstraintLogic
                                                                type: string
                                                                description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                                enum:
                                                                  - IS_NULL
                                                                  - IS_NOT_NULL
                                                            required:
                                                              - type
                                                              - logic
                                                          - type: object
                                                            title: Current date
                                                            properties:
                                                              type:
                                                                x-class-name: DateZeroConstraintType
                                                                type: string
                                                                enum:
                                                                  - DATE_ZERO
                                                                description: Compare a date from `attribute` to the current date
                                                              logic:
                                                                x-class-name: LogicZeroConstraintLogic
                                                                type: string
                                                                enum:
                                                                  - MATCHES_CURRENT_DAY
                                                                  - MATCHES_CURRENT_HOUR
                                                                  - MATCHES_CURRENT_MONTH
                                                                  - MATCHES_CURRENT_YEAR
                                                                description: Logic to apply to the date from `attribute`
                                                            required:
                                                              - type
                                                              - logic
                                                          - description: This type is used to check `attribute` against a date.
                                                            type: object
                                                            title: Date
                                                            properties:
                                                              type:
                                                                x-class-name: DateOneConstraintType
                                                                type: string
                                                                description: This type is used to check `attribute` against a date.
                                                                enum:
                                                                  - DATE_ONE
                                                              logic:
                                                                x-class-name: DateOneConstraintLogic
                                                                type: string
                                                                description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                                enum:
                                                                  - LESS
                                                                  - MORE
                                                                  - LESS_OR_EQUAL
                                                                  - MORE_OR_EQUAL
                                                              value:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                          - description: This type is used to check if a date is between two other dates.
                                                            type: object
                                                            title: Date range
                                                            properties:
                                                              type:
                                                                x-class-name: DateTwoConstraintType
                                                                type: string
                                                                description: This type is used to check if a date is between two other dates.
                                                                enum:
                                                                  - DATE_TWO
                                                              logic:
                                                                x-class-name: DateTwoConstraintLogic
                                                                type: string
                                                                description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                                enum:
                                                                  - BETWEEN
                                                              value1:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                              value2:
                                                                description: The value to test `attribute` against.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                                oneOf:
                                                                  - type: object
                                                                    title: Static value
                                                                    description: Inserts a static value.
                                                                    properties:
                                                                      type:
                                                                        x-class-name: ConstantValueType
                                                                        type: string
                                                                        description: Inserts a static value.
                                                                        enum:
                                                                          - CONSTANT
                                                                      constant:
                                                                        description: |
                                                                          The value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                        oneOf:
                                                                          - type: string
                                                                            maxLength: 21000
                                                                          - type: number
                                                                          - type: boolean
                                                                          - type: array
                                                                            maxItems: 65000
                                                                            items:
                                                                              type: string
                                                                              maxLength: 21000
                                                                    required:
                                                                      - type
                                                                      - constant
                                                                  - type: object
                                                                    title: Event parameter
                                                                    description: Inserts an event parameter value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: EventParameterType
                                                                        description: Inserts an event parameter value
                                                                        type: string
                                                                        enum:
                                                                          - EVENT
                                                                      attribute:
                                                                        description: An event attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Event parameter
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ParamEventAttributeType
                                                                                enum:
                                                                                  - PARAM
                                                                                description: This `type` refers to parameters in an event.
                                                                              param:
                                                                                type: string
                                                                                description: Name of the parameter
                                                                            required:
                                                                              - type
                                                                          - type: object
                                                                            title: Event aggregate
                                                                            properties:
                                                                              type:
                                                                                x-class-name: RunningAggregateEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - RUNNING_AGGREGATE
                                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the event aggregate
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Expression
                                                                            properties:
                                                                              type:
                                                                                x-class-name: ExpressionEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: ID of the expression
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            title: Special property
                                                                            properties:
                                                                              type:
                                                                                x-class-name: SpecialEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                                description: This type lets you access special properties of an event.
                                                                              special:
                                                                                type: string
                                                                                description: The type of special attribute you want to use
                                                                                enum:
                                                                                  - TIMESTAMP
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            title: No attribute
                                                                            properties:
                                                                              type:
                                                                                x-class-name: EmptyEventAttributeType
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Profile attribute
                                                                    properties:
                                                                      type:
                                                                        description: References a profile attribute, including analyses.
                                                                        x-class-name: ClientEventValueType
                                                                        type: string
                                                                        enum:
                                                                          - CLIENT
                                                                      attribute:
                                                                        description: A profile attribute to analyze
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                                        oneOf:
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - PARAM
                                                                              param:
                                                                                description: Name of the parameter
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - param
                                                                          - type: object
                                                                            description: Reference to a tag
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - TAG
                                                                              tag:
                                                                                description: Name of the tag
                                                                                type: string
                                                                            required:
                                                                              - type
                                                                              - tag
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - AGGREGATE
                                                                              uuid:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - uuid
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a segmentation
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SEGMENTATION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Pointer to an expression
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EXPRESSION
                                                                              id:
                                                                                type: string
                                                                                format: uuid
                                                                                description: |
                                                                                  UUID of the analysis
                                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                                            required:
                                                                              - type
                                                                              - id
                                                                          - type: object
                                                                            description: Reference to a special parameter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - SPECIAL
                                                                              special:
                                                                                type: string
                                                                                description: The name of the special parameter
                                                                            required:
                                                                              - type
                                                                              - special
                                                                          - type: object
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                enum:
                                                                                  - EMPTY
                                                                            required:
                                                                              - type
                                                                    required:
                                                                      - type
                                                                      - attribute
                                                                  - type: object
                                                                    title: Dynamic value
                                                                    properties:
                                                                      type:
                                                                        x-class-name: VariableValueType
                                                                        type: string
                                                                        enum:
                                                                          - VARIABLE
                                                                        description: |
                                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                                          The variable value can't:
                                                                            - be longer than 21000 characters if it's a string
                                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                                      name:
                                                                        type: string
                                                                        description: The name of the dynamic key
                                                                      defaultValue:
                                                                        type: string
                                                                        maxLength: 21000
                                                                        description: The default value to use
                                                                    required:
                                                                      - type
                                                                      - name
                                                                      - defaultValue
                                                            required:
                                                              - type
                                                              - logic
                                                              - value1
                                                              - value2
                                                          - description: This type is used to check if a date matches a date filter.
                                                            type: object
                                                            title: Date filter
                                                            properties:
                                                              type:
                                                                x-class-name: DateFilterConstraintType
                                                                type: string
                                                                description: This type is used to check if a date matches a date filter.
                                                                enum:
                                                                  - DATE_FILTER
                                                              logic:
                                                                x-class-name: DateFilterConstraintLogic
                                                                type: string
                                                                enum:
                                                                  - DATE_FILTER
                                                                description: Checks if the date from `attribute` matches a date filter.
                                                              value:
                                                                description: |
                                                                  Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                                  An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                                  A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                                    RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                                oneOf:
                                                                  - type: object
                                                                    title: AbsoluteDateFilter
                                                                    properties:
                                                                      type:
                                                                        title: AbsoluteDateFilterType
                                                                        x-class-name: AbsoluteDateFilterType
                                                                        x-interface-name-ts: AbsoluteDateFilterType
                                                                        type: string
                                                                        enum:
                                                                          - ABSOLUTE
                                                                        description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                                      from:
                                                                        type: string
                                                                        format: date-time
                                                                        description: The lower boundary of the date filter.
                                                                      to:
                                                                        type: string
                                                                        format: date-time
                                                                        description: The upper boundary of the date filter. Must be later than `from`.
                                                                      filter:
                                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Daily
                                                                            x-class-name: CustomDailyFilter
                                                                            x-interface-name-ts: CustomDailyFilter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomDailyFilterType
                                                                                x-interface-name-ts: CustomDailyFilterType
                                                                                enum:
                                                                                  - DAILY
                                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                                              nestingType:
                                                                                x-class-name: CustomDailyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - nestingType
                                                                              - type
                                                                              - from
                                                                              - to
                                                                          - type: object
                                                                            title: Weekly
                                                                            x-class-name: CustomWeeklyFilter
                                                                            x-interface-name-ts: CustomWeeklyFilter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomWeeklyFilterType
                                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                                enum:
                                                                                  - WEEKLY
                                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                                              nestingType:
                                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              days:
                                                                                type: array
                                                                                description: An array of rules for different days of the week.
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                            required:
                                                                              - days
                                                                              - nestingType
                                                                              - type
                                                                          - type: object
                                                                            title: Monthly
                                                                            x-class-name: CustomMonthlyFilterType
                                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomMonthlyFilterType
                                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                                enum:
                                                                                  - MONTHLY
                                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                              nestingType:
                                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              rules:
                                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                                oneOf:
                                                                                  - type: object
                                                                                    title: Days of the week
                                                                                    x-class-name: WeekDateRule
                                                                                    x-interface-name-ts: WeekDateRule
                                                                                    properties:
                                                                                      type:
                                                                                        type: string
                                                                                        x-class-name: WeekDateRuleType
                                                                                        x-interface-name-ts: WeekDateRuleType
                                                                                        enum:
                                                                                          - WEEK
                                                                                        description: Weekly filters limit the scope to days in a week
                                                                                      weeks:
                                                                                        type: array
                                                                                        description: Weeks of the month included in the pattern
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            week:
                                                                                              type: integer
                                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                            days:
                                                                                              type: array
                                                                                              description: Days included in the pattern
                                                                                              items:
                                                                                                type: object
                                                                                                properties:
                                                                                                  day:
                                                                                                    type: integer
                                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                                  from:
                                                                                                    type: string
                                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                                  to:
                                                                                                    type: string
                                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                                  mode:
                                                                                                    type: string
                                                                                                    enum:
                                                                                                      - Range
                                                                                                      - Hour
                                                                                                  inverted:
                                                                                                    type: boolean
                                                                                                    default: false
                                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                                required:
                                                                                                  - day
                                                                                                  - from
                                                                                                  - inverted
                                                                                                  - to
                                                                                          required:
                                                                                            - days
                                                                                            - type
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: |
                                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                                    required:
                                                                                      - type
                                                                                      - weeks
                                                                                  - type: object
                                                                                    title: Days of the month
                                                                                    x-class-name: MonthDateRule
                                                                                    x-interface-name-ts: MonthDateRule
                                                                                    properties:
                                                                                      type:
                                                                                        description: Rules for days of the month
                                                                                        type: string
                                                                                        x-class-name: MonthDateRuleType
                                                                                        x-interface-name-ts: MonthDateRuleType
                                                                                        enum:
                                                                                          - MONTH
                                                                                      days:
                                                                                        type: array
                                                                                        description: Days of the month included in the pattern.
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            day:
                                                                                              type: integer
                                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                            from:
                                                                                              type: string
                                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            to:
                                                                                              type: string
                                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            mode:
                                                                                              type: string
                                                                                              enum:
                                                                                                - Range
                                                                                                - Hour
                                                                                            inverted:
                                                                                              type: boolean
                                                                                              default: false
                                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                          required:
                                                                                            - day
                                                                                            - from
                                                                                            - inverted
                                                                                            - to
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: |
                                                                                          When set to `true`, days are counted from the end of the month.

                                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                                    required:
                                                                                      - days
                                                                                      - type
                                                                                discriminator:
                                                                                  propertyName: type
                                                                                  mapping:
                                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                            required:
                                                                              - nestingType
                                                                              - rules
                                                                              - type
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                                    required:
                                                                      - type
                                                                  - type: object
                                                                    title: RelativeDateFilter
                                                                    properties:
                                                                      type:
                                                                        title: RelativeDateFilterType
                                                                        x-class-name: RelativeDateFilterType
                                                                        x-interface-name-ts: RelativeDateFilterType
                                                                        type: string
                                                                        enum:
                                                                          - RELATIVE
                                                                        description: |
                                                                          Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                                          - `duration` is the length of time that the filter covers.
                                                                          - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                                      duration:
                                                                        type: object
                                                                        description: The definition of a length of time.
                                                                        properties:
                                                                          type:
                                                                            type: string
                                                                            x-class-name: TimePeriod
                                                                            x-interface-name-ts: TimePeriod
                                                                            description: The unit of time
                                                                            enum:
                                                                              - YEARS
                                                                              - MONTHS
                                                                              - WEEKS
                                                                              - DAYS
                                                                              - HOURS
                                                                              - MINUTES
                                                                              - SECONDS
                                                                              - UNKNOWN
                                                                          value:
                                                                            type: integer
                                                                            description: The number of time units
                                                                            format: int64
                                                                        required:
                                                                          - type
                                                                          - value
                                                                      offset:
                                                                        type: object
                                                                        description: The definition of a length of time.
                                                                        properties:
                                                                          type:
                                                                            type: string
                                                                            x-class-name: TimePeriod
                                                                            x-interface-name-ts: TimePeriod
                                                                            description: The unit of time
                                                                            enum:
                                                                              - YEARS
                                                                              - MONTHS
                                                                              - WEEKS
                                                                              - DAYS
                                                                              - HOURS
                                                                              - MINUTES
                                                                              - SECONDS
                                                                              - UNKNOWN
                                                                          value:
                                                                            type: integer
                                                                            description: The number of time units
                                                                            format: int64
                                                                        required:
                                                                          - type
                                                                          - value
                                                                      filter:
                                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                                        oneOf:
                                                                          - type: object
                                                                            title: Daily
                                                                            x-class-name: CustomDailyFilter
                                                                            x-interface-name-ts: CustomDailyFilter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomDailyFilterType
                                                                                x-interface-name-ts: CustomDailyFilterType
                                                                                enum:
                                                                                  - DAILY
                                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                                              nestingType:
                                                                                x-class-name: CustomDailyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              from:
                                                                                type: string
                                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              to:
                                                                                type: string
                                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                              inverted:
                                                                                type: boolean
                                                                                default: false
                                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                            required:
                                                                              - nestingType
                                                                              - type
                                                                              - from
                                                                              - to
                                                                          - type: object
                                                                            title: Weekly
                                                                            x-class-name: CustomWeeklyFilter
                                                                            x-interface-name-ts: CustomWeeklyFilter
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomWeeklyFilterType
                                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                                enum:
                                                                                  - WEEKLY
                                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                                              nestingType:
                                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              days:
                                                                                type: array
                                                                                description: An array of rules for different days of the week.
                                                                                items:
                                                                                  type: object
                                                                                  properties:
                                                                                    day:
                                                                                      type: integer
                                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                    from:
                                                                                      type: string
                                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    to:
                                                                                      type: string
                                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                    mode:
                                                                                      type: string
                                                                                      enum:
                                                                                        - Range
                                                                                        - Hour
                                                                                    inverted:
                                                                                      type: boolean
                                                                                      default: false
                                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                  required:
                                                                                    - day
                                                                                    - from
                                                                                    - inverted
                                                                                    - to
                                                                            required:
                                                                              - days
                                                                              - nestingType
                                                                              - type
                                                                          - type: object
                                                                            title: Monthly
                                                                            x-class-name: CustomMonthlyFilterType
                                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                                            properties:
                                                                              type:
                                                                                type: string
                                                                                x-class-name: CustomMonthlyFilterType
                                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                                enum:
                                                                                  - MONTHLY
                                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                                              nestingType:
                                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                                type: string
                                                                                enum:
                                                                                  - IN_PLACE
                                                                              rules:
                                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                                oneOf:
                                                                                  - type: object
                                                                                    title: Days of the week
                                                                                    x-class-name: WeekDateRule
                                                                                    x-interface-name-ts: WeekDateRule
                                                                                    properties:
                                                                                      type:
                                                                                        type: string
                                                                                        x-class-name: WeekDateRuleType
                                                                                        x-interface-name-ts: WeekDateRuleType
                                                                                        enum:
                                                                                          - WEEK
                                                                                        description: Weekly filters limit the scope to days in a week
                                                                                      weeks:
                                                                                        type: array
                                                                                        description: Weeks of the month included in the pattern
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            week:
                                                                                              type: integer
                                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                                            days:
                                                                                              type: array
                                                                                              description: Days included in the pattern
                                                                                              items:
                                                                                                type: object
                                                                                                properties:
                                                                                                  day:
                                                                                                    type: integer
                                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                                  from:
                                                                                                    type: string
                                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                                  to:
                                                                                                    type: string
                                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                                  mode:
                                                                                                    type: string
                                                                                                    enum:
                                                                                                      - Range
                                                                                                      - Hour
                                                                                                  inverted:
                                                                                                    type: boolean
                                                                                                    default: false
                                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                                required:
                                                                                                  - day
                                                                                                  - from
                                                                                                  - inverted
                                                                                                  - to
                                                                                          required:
                                                                                            - days
                                                                                            - type
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: |
                                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                                    required:
                                                                                      - type
                                                                                      - weeks
                                                                                  - type: object
                                                                                    title: Days of the month
                                                                                    x-class-name: MonthDateRule
                                                                                    x-interface-name-ts: MonthDateRule
                                                                                    properties:
                                                                                      type:
                                                                                        description: Rules for days of the month
                                                                                        type: string
                                                                                        x-class-name: MonthDateRuleType
                                                                                        x-interface-name-ts: MonthDateRuleType
                                                                                        enum:
                                                                                          - MONTH
                                                                                      days:
                                                                                        type: array
                                                                                        description: Days of the month included in the pattern.
                                                                                        items:
                                                                                          type: object
                                                                                          properties:
                                                                                            day:
                                                                                              type: integer
                                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                            from:
                                                                                              type: string
                                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            to:
                                                                                              type: string
                                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                            mode:
                                                                                              type: string
                                                                                              enum:
                                                                                                - Range
                                                                                                - Hour
                                                                                            inverted:
                                                                                              type: boolean
                                                                                              default: false
                                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                          required:
                                                                                            - day
                                                                                            - from
                                                                                            - inverted
                                                                                            - to
                                                                                      inverted:
                                                                                        type: boolean
                                                                                        default: false
                                                                                        description: |
                                                                                          When set to `true`, days are counted from the end of the month.

                                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                                    required:
                                                                                      - days
                                                                                      - type
                                                                                discriminator:
                                                                                  propertyName: type
                                                                                  mapping:
                                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                                            required:
                                                                              - nestingType
                                                                              - rules
                                                                              - type
                                                                        discriminator:
                                                                          propertyName: type
                                                                          mapping:
                                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                                    required:
                                                                      - duration
                                                                      - offset
                                                                      - type
                                                            required:
                                                              - type
                                                              - logic
                                                              - value
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - constrain
                                                      - attribute
                                              required:
                                                - action
                                                - title
                                                - expressions
                                          exact:
                                            type: boolean
                                            default: false
                                            description: |
                                              When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
                                        required:
                                          - title
                                          - steps
                                    required:
                                      - type
                                      - funnel
                                  - type: object
                                    properties:
                                      type:
                                        description: Logical operator between expressions
                                        x-class-name: OperatorFilterBoxType
                                        type: string
                                        enum:
                                          - OPERATOR
                                      name:
                                        type: string
                                        description: Name of the resource
                                      logic:
                                        x-class-name: FilterBoxOperatorType
                                        type: string
                                        enum:
                                          - OR
                                          - AND
                                          - LEFT_BRACKET
                                          - RIGHT_BRACKET
                                    required:
                                      - type
                                      - name
                                      - logic
                            expression:
                              $ref: "#/components/schemas/analytics-FilterExpressionContent"
                          required:
                            - type
                            - expressions
                        - description: An empty value
                          type: object
                          properties:
                            type:
                              description: An empty value
                              x-class-name: EmptyFilterExpressionContentType
                              type: string
                              enum:
                                - EMPTY
                            name:
                              type: string
                          required:
                            - type
                    groupBy:
                      type: array
                      items:
                        discriminator:
                          propertyName: type
                          mapping:
                            CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                            CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                            VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                        oneOf:
                          - type: object
                            title: Static value
                            description: Inserts a static value.
                            properties:
                              type:
                                x-class-name: ConstantClientValueType
                                type: string
                                description: Inserts a static value.
                                enum:
                                  - CONSTANT
                              constant:
                                description: |
                                  The value can't:
                                    - be longer than 21000 characters if it's a string
                                    - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                oneOf:
                                  - type: string
                                  - type: number
                                  - type: boolean
                                  - type: array
                                    items:
                                      type: string
                            required:
                              - type
                              - constant
                          - type: object
                            title: Profile attribute
                            properties:
                              type:
                                x-class-name: ClientClientValueType
                                type: string
                                enum:
                                  - CLIENT
                                description: Definition of a profile attribute
                              attribute:
                                description: A profile attribute to analyze
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                    TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                    AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                    SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                    EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                    SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                    EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                oneOf:
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - PARAM
                                      param:
                                        description: Name of the parameter
                                        type: string
                                    required:
                                      - type
                                      - param
                                  - type: object
                                    description: Reference to a tag
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - TAG
                                      tag:
                                        description: Name of the tag
                                        type: string
                                    required:
                                      - type
                                      - tag
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - AGGREGATE
                                      uuid:
                                        type: string
                                        format: uuid
                                        description: |
                                          UUID of the analysis
                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                      id:
                                        type: string
                                        format: uuid
                                        description: |
                                          UUID of the analysis
                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                    required:
                                      - type
                                      - uuid
                                      - id
                                  - type: object
                                    description: Reference to a segmentation
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SEGMENTATION
                                      id:
                                        type: string
                                        format: uuid
                                        description: |
                                          UUID of the analysis
                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                    required:
                                      - type
                                      - id
                                  - type: object
                                    description: Pointer to an expression
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - EXPRESSION
                                      id:
                                        type: string
                                        format: uuid
                                        description: |
                                          UUID of the analysis
                                        example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                    required:
                                      - type
                                      - id
                                  - type: object
                                    description: Reference to a special parameter
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - SPECIAL
                                      special:
                                        type: string
                                        description: The name of the special parameter
                                    required:
                                      - type
                                      - special
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - EMPTY
                                    required:
                                      - type
                            required:
                              - type
                              - attribute
                          - type: object
                            title: Dynamic value
                            properties:
                              type:
                                x-class-name: VariableClientValueType
                                type: string
                                description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                enum:
                                  - VARIABLE
                              name:
                                type: string
                                description: The name of the dynamic key
                              defaultValue:
                                description: The default value to use
                                oneOf:
                                  - type: string
                                  - type: number
                                  - type: array
                                    items: {}
                            required:
                              - type
                              - name
                              - defaultValue
                  required:
                    - matching
                    - expressions
                    - expression
                variables:
                  type: array
                  description: A list of variable values to use in this calculation
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the variable (dynamic key) which will receive this value for the current calculation.
                      value:
                        description: |
                          The value of the variable. Can be one of: string, integer, boolean, string[], integer[], or a DateFilter object (with type ABSOLUTE/RELATIVE).
                        example: example-string-value
                    required:
                      - name
                      - value
                overrideNested:
                  description: When `true`, the date filter overrides date filters in analyses nested in the conditions.
                  type: boolean
                  default: false
      responses:
        "200":
          description: Report calculation result
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: Calculation results. Each object in this array corresponds to one metric included in the report. The Synerise Web UI currently only supports single-metric reports.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Unique ID of the resource
                        columnName:
                          type: string
                          description: |
                            Column header for this metric. Uses the per-metric `columnName` from the report
                            definition when set; otherwise falls back to the underlying metric's title.
                        values:
                          type: array
                          description: |
                            
                            An array of results for each grouping.

                            Note that `values` is a single-item array of arrays.

                            **Example**: if the dimensions of your report are _firstname_ and _title_ in a page visit event, this may be the result:

                            ```json
                            "values": [
                              [
                                {
                                  "name": [
                                    "John",
                                    "Discounted Product Page"
                                  ],
                                  "value": 26.0
                                },
                                {
                                  "name": [
                                    "Steve",
                                    "Discounted Product Page"
                                  ],
                                  "value": 12.0
                                },
                                {
                                  "name": [
                                    "Steve",
                                    "New product pre-order"
                                  ],
                                  "value": 117.0
                                }
                              ]
                            ]
                            ```

                            This means that 26 profiles named John visited a page titled "Discounted Product Page". The same page was visited by 12 profiles named Steve. Profiles named Steve visited "New product pre-order" page 117 times.
                          items:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: array
                                  description: Parameter values
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: number
                                value:
                                  type: number
                                  description: The number of occurrences of the combination defined in `name`
                                  format: double
                              required:
                                - name
                                - value
                        groups:
                          type: array
                          description: A list of parameters that were used for creating dimensions (grouping)
                          items:
                            type: string
                      required:
                        - columnName
                        - groups
                        - id
                        - values
                required:
                  - data
        4XX:
          description: See error message for details
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      source:
                        type: object
                        nullable: true
                        description: Information about a parameter that caused the error, if applicable.
                        properties:
                          pointer:
                            type: string
                            description: Information about a parameter
                          value:
                            type: string
                            nullable: true
                            description: Currently unused
                      errors:
                        type: array
                        description: An array of errors, if applicable
                        items:
                          type: object
                          properties:
                            timestamp:
                              type: string
                              format: date-time
                              description: Time when the error occurred
                            errorCode:
                              type: string
                              description: Code of the error, needed for troubleshooting. See [https://developers.synerise.com/errors.html](https://developers.synerise.com/errors.html).
                            httpStatus:
                              type: integer
                              description: HTTP status code
                            message:
                              type: string
                              description: Description of the problem
                            traceId:
                              type: string
                              description: Currently unused
                              nullable: true
                            help:
                              type: string
                              nullable: true
                              description: Currently unused
                  - type: object
                    properties:
                      timestamp:
                        type: string
                        format: date-time
                        description: Time when the error occurred
                      errorCode:
                        type: string
                        description: Code of the error, needed for troubleshooting. See [https://developers.synerise.com/errors.html](https://developers.synerise.com/errors.html).
                      httpStatus:
                        type: integer
                        description: HTTP status code
                      message:
                        type: string
                        description: Description of the problem
                      traceId:
                        type: string
                        description: Currently unused
                        nullable: true
                      help:
                        type: string
                        nullable: true
                        description: Currently unused
        5XX:
          description: See error message for details
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      source:
                        type: object
                        nullable: true
                        description: Information about a parameter that caused the error, if applicable.
                        properties:
                          pointer:
                            type: string
                            description: Information about a parameter
                          value:
                            type: string
                            nullable: true
                            description: Currently unused
                      errors:
                        type: array
                        description: An array of errors, if applicable
                        items:
                          type: object
                          properties:
                            timestamp:
                              type: string
                              format: date-time
                              description: Time when the error occurred
                            errorCode:
                              type: string
                              description: Code of the error, needed for troubleshooting. See [https://developers.synerise.com/errors.html](https://developers.synerise.com/errors.html).
                            httpStatus:
                              type: integer
                              description: HTTP status code
                            message:
                              type: string
                              description: Description of the problem
                            traceId:
                              type: string
                              description: Currently unused
                              nullable: true
                            help:
                              type: string
                              nullable: true
                              description: Currently unused
                  - type: object
                    properties:
                      timestamp:
                        type: string
                        format: date-time
                        description: Time when the error occurred
                      errorCode:
                        type: string
                        description: Code of the error, needed for troubleshooting. See [https://developers.synerise.com/errors.html](https://developers.synerise.com/errors.html).
                      httpStatus:
                        type: integer
                        description: HTTP status code
                      message:
                        type: string
                        description: Description of the problem
                      traceId:
                        type: string
                        description: Currently unused
                        nullable: true
                      help:
                        type: string
                        nullable: true
                        description: Currently unused
      security:
        - JWT: []
      x-snr-doc-urls:
        - /api-reference/analytics-suite#tag/Analytics:-Reports/operation/analytics2-recalculate-report-override
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |-
            curl --request POST \
              --url https://api.synerise.com/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override \
              --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
              --header 'content-type: application/json' \
              --data '{"title":"string","dateFilter":{"type":"ABSOLUTE","from":"2019-08-24T14:15:22Z","to":"2019-08-24T14:15:22Z","filter":{"type":"DAILY","nestingType":"IN_PLACE","from":"string","to":"string","inverted":false}},"aggregateDataBy":{"type":"YEARS","value":0},"filter":{"matching":true,"expressions":[{"type":"ATTRIBUTE","name":"string","matching":true,"attribute":{"expressions":[{"constraint":{"type":"BOOL","logic":"IS_TRUE"},"attribute":{"type":"PARAM","param":"string"}}]}}],"expression":{"type":"EMPTY"},"groupBy":[{"type":"CONSTANT","constant":"string"}]},"variables":[{"name":"string","value":"example-string-value"}],"overrideNested":false}'
        - lang: Python
          label: Python
          source: |-
            import http.client

            conn = http.client.HTTPSConnection("api.synerise.com")

            payload = "{\"title\":\"string\",\"dateFilter\":{\"type\":\"ABSOLUTE\",\"from\":\"2019-08-24T14:15:22Z\",\"to\":\"2019-08-24T14:15:22Z\",\"filter\":{\"type\":\"DAILY\",\"nestingType\":\"IN_PLACE\",\"from\":\"string\",\"to\":\"string\",\"inverted\":false}},\"aggregateDataBy\":{\"type\":\"YEARS\",\"value\":0},\"filter\":{\"matching\":true,\"expressions\":[{\"type\":\"ATTRIBUTE\",\"name\":\"string\",\"matching\":true,\"attribute\":{\"expressions\":[{\"constraint\":{\"type\":\"BOOL\",\"logic\":\"IS_TRUE\"},\"attribute\":{\"type\":\"PARAM\",\"param\":\"string\"}}]}}],\"expression\":{\"type\":\"EMPTY\"},\"groupBy\":[{\"type\":\"CONSTANT\",\"constant\":\"string\"}]},\"variables\":[{\"name\":\"string\",\"value\":\"example-string-value\"}],\"overrideNested\":false}"

            headers = {
                'Authorization': "Bearer REPLACE_BEARER_TOKEN",
                'content-type': "application/json"
                }

            conn.request("POST", "/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override", payload, headers)

            res = conn.getresponse()
            data = res.read()

            print(data.decode("utf-8"))
        - lang: JavaScript
          label: JavaScript
          source: |-
            const data = JSON.stringify({
              "title": "string",
              "dateFilter": {
                "type": "ABSOLUTE",
                "from": "2019-08-24T14:15:22Z",
                "to": "2019-08-24T14:15:22Z",
                "filter": {
                  "type": "DAILY",
                  "nestingType": "IN_PLACE",
                  "from": "string",
                  "to": "string",
                  "inverted": false
                }
              },
              "aggregateDataBy": {
                "type": "YEARS",
                "value": 0
              },
              "filter": {
                "matching": true,
                "expressions": [
                  {
                    "type": "ATTRIBUTE",
                    "name": "string",
                    "matching": true,
                    "attribute": {
                      "expressions": [
                        {
                          "constraint": {
                            "type": "BOOL",
                            "logic": "IS_TRUE"
                          },
                          "attribute": {
                            "type": "PARAM",
                            "param": "string"
                          }
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "type": "EMPTY"
                },
                "groupBy": [
                  {
                    "type": "CONSTANT",
                    "constant": "string"
                  }
                ]
              },
              "variables": [
                {
                  "name": "string",
                  "value": "example-string-value"
                }
              ],
              "overrideNested": false
            });

            const xhr = new XMLHttpRequest();
            xhr.withCredentials = true;

            xhr.addEventListener("readystatechange", function () {
              if (this.readyState === this.DONE) {
                console.log(this.responseText);
              }
            });

            xhr.open("POST", "https://api.synerise.com/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override");
            xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
            xhr.setRequestHeader("content-type", "application/json");

            xhr.send(data);
        - lang: Node.js
          label: Node.js
          source: |-
            const http = require("https");

            const options = {
              "method": "POST",
              "hostname": "api.synerise.com",
              "port": null,
              "path": "/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override",
              "headers": {
                "Authorization": "Bearer REPLACE_BEARER_TOKEN",
                "content-type": "application/json"
              }
            };

            const req = http.request(options, function (res) {
              const chunks = [];

              res.on("data", function (chunk) {
                chunks.push(chunk);
              });

              res.on("end", function () {
                const body = Buffer.concat(chunks);
                console.log(body.toString());
              });
            });

            req.write(JSON.stringify({
              title: 'string',
              dateFilter: {
                type: 'ABSOLUTE',
                from: '2019-08-24T14:15:22Z',
                to: '2019-08-24T14:15:22Z',
                filter: {
                  type: 'DAILY',
                  nestingType: 'IN_PLACE',
                  from: 'string',
                  to: 'string',
                  inverted: false
                }
              },
              aggregateDataBy: {type: 'YEARS', value: 0},
              filter: {
                matching: true,
                expressions: [
                  {
                    type: 'ATTRIBUTE',
                    name: 'string',
                    matching: true,
                    attribute: {
                      expressions: [
                        {
                          constraint: {type: 'BOOL', logic: 'IS_TRUE'},
                          attribute: {type: 'PARAM', param: 'string'}
                        }
                      ]
                    }
                  }
                ],
                expression: {type: 'EMPTY'},
                groupBy: [{type: 'CONSTANT', constant: 'string'}]
              },
              variables: [{name: 'string', value: 'example-string-value'}],
              overrideNested: false
            }));
            req.end();
        - lang: PHP
          label: PHP
          source: |-
            <?php

            $request = new HttpRequest();
            $request->setUrl('https://api.synerise.com/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override');
            $request->setMethod(HTTP_METH_POST);

            $request->setHeaders([
              'Authorization' => 'Bearer REPLACE_BEARER_TOKEN',
              'content-type' => 'application/json'
            ]);

            $request->setBody('{"title":"string","dateFilter":{"type":"ABSOLUTE","from":"2019-08-24T14:15:22Z","to":"2019-08-24T14:15:22Z","filter":{"type":"DAILY","nestingType":"IN_PLACE","from":"string","to":"string","inverted":false}},"aggregateDataBy":{"type":"YEARS","value":0},"filter":{"matching":true,"expressions":[{"type":"ATTRIBUTE","name":"string","matching":true,"attribute":{"expressions":[{"constraint":{"type":"BOOL","logic":"IS_TRUE"},"attribute":{"type":"PARAM","param":"string"}}]}}],"expression":{"type":"EMPTY"},"groupBy":[{"type":"CONSTANT","constant":"string"}]},"variables":[{"name":"string","value":"example-string-value"}],"overrideNested":false}');

            try {
              $response = $request->send();

              echo $response->getBody();
            } catch (HttpException $ex) {
              echo $ex;
            }
        - lang: Java
          label: Java
          source: |-
            HttpResponse<String> response = Unirest.post("https://api.synerise.com/analytics/analytics/v4/reports/%7BAnalysisId%7D/recalculate/override")
              .header("Authorization", "Bearer REPLACE_BEARER_TOKEN")
              .header("content-type", "application/json")
              .body("{\"title\":\"string\",\"dateFilter\":{\"type\":\"ABSOLUTE\",\"from\":\"2019-08-24T14:15:22Z\",\"to\":\"2019-08-24T14:15:22Z\",\"filter\":{\"type\":\"DAILY\",\"nestingType\":\"IN_PLACE\",\"from\":\"string\",\"to\":\"string\",\"inverted\":false}},\"aggregateDataBy\":{\"type\":\"YEARS\",\"value\":0},\"filter\":{\"matching\":true,\"expressions\":[{\"type\":\"ATTRIBUTE\",\"name\":\"string\",\"matching\":true,\"attribute\":{\"expressions\":[{\"constraint\":{\"type\":\"BOOL\",\"logic\":\"IS_TRUE\"},\"attribute\":{\"type\":\"PARAM\",\"param\":\"string\"}}]}}],\"expression\":{\"type\":\"EMPTY\"},\"groupBy\":[{\"type\":\"CONSTANT\",\"constant\":\"string\"}]},\"variables\":[{\"name\":\"string\",\"value\":\"example-string-value\"}],\"overrideNested\":false}")
              .asString();
servers:
  - description: Microsoft Azure EU
    url: https://api.synerise.com
  - description: Microsoft Azure USA
    url: https://api.azu.synerise.com
  - description: Google Cloud Platform
    url: https://api.geb.synerise.com
tags:
  - name: "Analytics: Reports"
components:
  schemas:
    analytics-FilterBox:
      discriminator:
        propertyName: type
        mapping:
          ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterBox"
          EXPRESSION: "#/components/schemas/analytics-ExpressionFilterBox"
          FUNNEL: "#/components/schemas/analytics-FunnelFilterBox"
          OPERATOR: "#/components/schemas/analytics-OperatorFilterBox"
      oneOf:
        - type: object
          properties:
            type:
              x-class-name: AttributeFilterBoxType
              type: string
              enum:
                - ATTRIBUTE
              description: Tests a profile attribute against a condition
            name:
              type: string
              description: Name of the resource
            matching:
              type: boolean
              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
              default: true
            attribute:
              type: object
              description: The condition to test a profile attribute
              properties:
                expressions:
                  type: array
                  description: An array of conditions. All conditions must be met.
                  items:
                    type: object
                    properties:
                      constraint:
                        discriminator:
                          propertyName: type
                          mapping:
                            BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                            STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                            STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                            NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                            NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                            STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                            ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                            "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                            DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                            DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                            DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                            DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                        oneOf:
                          - type: object
                            title: Boolean
                            properties:
                              type:
                                x-class-name: BoolClientConstraintType
                                type: string
                                enum:
                                  - BOOL
                                description: Tests a boolean value
                              logic:
                                description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                x-class-name: BoolClientConstraintLogic
                                type: string
                                enum:
                                  - IS_TRUE
                                  - IS_FALSE
                            required:
                              - type
                              - logic
                          - type: object
                            title: Check empty
                            description: This type is used to check if a string is empty.
                            properties:
                              type:
                                x-class-name: StringZeroClientConstraintType
                                type: string
                                description: This type is used to check if a string is empty.
                                enum:
                                  - STRING_ZERO
                              logic:
                                description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                x-class-name: StringZeroClientConstraintLogic
                                type: string
                                enum:
                                  - IS_EMPTY
                                  - IS_NOT_EMPTY
                            required:
                              - type
                              - logic
                          - type: object
                            title: String
                            properties:
                              type:
                                description: This type is used to test values that are a single string.
                                x-class-name: StringOneClientConstraintType
                                type: string
                                enum:
                                  - STRING_ONE
                              logic:
                                description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                x-class-name: StringOneClientConstraintLogic
                                type: string
                                enum:
                                  - CONTAIN
                                  - NOT_CONTAIN
                                  - EQUAL
                                  - NOT_EQUAL
                                  - STARTS_WITH
                                  - REGEXP
                                  - ENDS_WITH
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Number
                            properties:
                              type:
                                description: This type is used to test values that are a single number
                                x-class-name: NumberOneClientConstraintType
                                type: string
                                enum:
                                  - NUMBER_ONE
                              logic:
                                description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                x-class-name: NumberOneClientConstraintLogic
                                type: string
                                enum:
                                  - EQUAL
                                  - NOT_EQUAL
                                  - LESS
                                  - MORE
                                  - MORE_OR_EQUAL
                                  - LESS_OR_EQUAL
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Two numbers
                            properties:
                              type:
                                description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                x-class-name: NumberTwoClientConstraintType
                                type: string
                                enum:
                                  - NUMBER_TWO
                              logic:
                                description: Checks if the attribute is between two numbers.
                                x-class-name: NumberTwoClientConstraintLogic
                                type: string
                                enum:
                                  - BETWEEN
                              value1:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                              value2:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value1
                              - value2
                          - type: object
                            title: Check if string in array
                            properties:
                              type:
                                description: This type is used to check if a string exists in an array defined in `value`
                                x-class-name: StringArrayClientConstraintType
                                type: string
                                enum:
                                  - STRING_ARRAY
                              logic:
                                description: You can check if the value from `attribute` is in the array defined in `value`
                                x-class-name: StringArrayClientConstraintLogic
                                type: string
                                enum:
                                  - IN
                                  - NOT_IN
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Other string array tests
                            properties:
                              type:
                                description: "`value` should be an array"
                                x-class-name: ArrayStringOneClientConstraintType
                                type: string
                                enum:
                                  - ARRAY_STRING_ONE_DEPRECATED
                              logic:
                                description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                x-class-name: ArrayStringOneClientConstraintLogic
                                type: string
                                enum:
                                  - CONTAIN
                                  - NOT_CONTAIN
                                  - EQUAL
                                  - NOT_EQUAL
                                  - STARTS_WITH
                                  - REGEXP
                                  - ENDS_WITH
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Check if null
                            properties:
                              type:
                                x-class-name: NullClientConstraintType
                                type: string
                                enum:
                                  - "NULL"
                                description: This type is used to check if a value is null
                              logic:
                                description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                x-class-name: NullClientConstraintLogic
                                type: string
                                enum:
                                  - IS_NULL
                                  - IS_NOT_NULL
                            required:
                              - type
                              - logic
                          - type: object
                            title: Current date
                            properties:
                              type:
                                description: Compare a date from `attribute` to the current date
                                x-class-name: DateZeroClientConstraintType
                                type: string
                                enum:
                                  - DATE_ZERO
                              logic:
                                description: Logic to apply to the date from `attribute`
                                x-class-name: DateZeroClientConstraintLogic
                                type: string
                                enum:
                                  - MATCHES_CURRENT_DAY
                                  - MATCHES_CURRENT_HOUR
                                  - MATCHES_CURRENT_MONTH
                                  - MATCHES_CURRENT_YEAR
                            required:
                              - type
                              - logic
                          - description: This type is used to check `attribute` against a date.
                            type: object
                            title: Date
                            properties:
                              type:
                                x-class-name: DateOneClientConstraintType
                                type: string
                                description: This type is used to check `attribute` against a date.
                                enum:
                                  - DATE_ONE
                              logic:
                                description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                x-class-name: DateOneClientConstraintLogic
                                type: string
                                enum:
                                  - LESS
                                  - MORE
                                  - LESS_OR_EQUAL
                                  - MORE_OR_EQUAL
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - description: This type is used to check if a date is between two other dates.
                            type: object
                            title: Date range
                            properties:
                              type:
                                x-class-name: DateTwoClientConstraintType
                                type: string
                                description: This type is used to check if a date is between two other dates.
                                enum:
                                  - DATE_TWO
                              logic:
                                description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                x-class-name: DateTwoClientConstraintLogic
                                type: string
                                enum:
                                  - BETWEEN
                              value1:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                              value2:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value1
                              - value2
                          - type: object
                            title: Date filter
                            description: This type is used to check if a date matches a date filter.
                            properties:
                              type:
                                x-class-name: DateFilterClientConstraintType
                                type: string
                                description: This type is used to check if a date matches a date filter.
                                enum:
                                  - DATE_FILTER
                              logic:
                                description: Checks if the date from `attribute` matches a date filter.
                                x-class-name: DateFilterClientConstraintLogic
                                type: string
                                enum:
                                  - DATE_FILTER
                              value:
                                description: |
                                  Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                  An absolute date filter lets you define static dates and times that always apply to the analysis.

                                  A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                    RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                oneOf:
                                  - type: object
                                    title: AbsoluteDateFilter
                                    properties:
                                      type:
                                        title: AbsoluteDateFilterType
                                        x-class-name: AbsoluteDateFilterType
                                        x-interface-name-ts: AbsoluteDateFilterType
                                        type: string
                                        enum:
                                          - ABSOLUTE
                                        description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                      from:
                                        type: string
                                        format: date-time
                                        description: The lower boundary of the date filter.
                                      to:
                                        type: string
                                        format: date-time
                                        description: The upper boundary of the date filter. Must be later than `from`.
                                      filter:
                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                        oneOf:
                                          - type: object
                                            title: Daily
                                            x-class-name: CustomDailyFilter
                                            x-interface-name-ts: CustomDailyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomDailyFilterType
                                                x-interface-name-ts: CustomDailyFilterType
                                                enum:
                                                  - DAILY
                                                description: Daily filters limit the data scope to a range of hours every day.
                                              nestingType:
                                                x-class-name: CustomDailyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - nestingType
                                              - type
                                              - from
                                              - to
                                          - type: object
                                            title: Weekly
                                            x-class-name: CustomWeeklyFilter
                                            x-interface-name-ts: CustomWeeklyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomWeeklyFilterType
                                                x-interface-name-ts: CustomWeeklyFilterType
                                                enum:
                                                  - WEEKLY
                                                description: Weekly filters let you define separate rules for each day of the week.
                                              nestingType:
                                                x-class-name: CustomWeeklyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              days:
                                                type: array
                                                description: An array of rules for different days of the week.
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - nestingType
                                              - type
                                          - type: object
                                            title: Monthly
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                enum:
                                                  - MONTHLY
                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                              nestingType:
                                                x-class-name: CustomMonthlyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              rules:
                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                oneOf:
                                                  - type: object
                                                    title: Days of the week
                                                    x-class-name: WeekDateRule
                                                    x-interface-name-ts: WeekDateRule
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: WeekDateRuleType
                                                        x-interface-name-ts: WeekDateRuleType
                                                        enum:
                                                          - WEEK
                                                        description: Weekly filters limit the scope to days in a week
                                                      weeks:
                                                        type: array
                                                        description: Weeks of the month included in the pattern
                                                        items:
                                                          type: object
                                                          properties:
                                                            week:
                                                              type: integer
                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                            days:
                                                              type: array
                                                              description: Days included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                          required:
                                                            - days
                                                            - type
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, weeks are counted from the end of the month.

                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                    required:
                                                      - type
                                                      - weeks
                                                  - type: object
                                                    title: Days of the month
                                                    x-class-name: MonthDateRule
                                                    x-interface-name-ts: MonthDateRule
                                                    properties:
                                                      type:
                                                        description: Rules for days of the month
                                                        type: string
                                                        x-class-name: MonthDateRuleType
                                                        x-interface-name-ts: MonthDateRuleType
                                                        enum:
                                                          - MONTH
                                                      days:
                                                        type: array
                                                        description: Days of the month included in the pattern.
                                                        items:
                                                          type: object
                                                          properties:
                                                            day:
                                                              type: integer
                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                            from:
                                                              type: string
                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            to:
                                                              type: string
                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            mode:
                                                              type: string
                                                              enum:
                                                                - Range
                                                                - Hour
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                          required:
                                                            - day
                                                            - from
                                                            - inverted
                                                            - to
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, days are counted from the end of the month.

                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                    required:
                                                      - days
                                                      - type
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                            required:
                                              - nestingType
                                              - rules
                                              - type
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                    required:
                                      - type
                                  - type: object
                                    title: RelativeDateFilter
                                    properties:
                                      type:
                                        title: RelativeDateFilterType
                                        x-class-name: RelativeDateFilterType
                                        x-interface-name-ts: RelativeDateFilterType
                                        type: string
                                        enum:
                                          - RELATIVE
                                        description: |
                                          Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                          - `duration` is the length of time that the filter covers.
                                          - `offset` is the time that the filter goes back to set the beginning of the duration.
                                      duration:
                                        type: object
                                        description: The definition of a length of time.
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: TimePeriod
                                            x-interface-name-ts: TimePeriod
                                            description: The unit of time
                                            enum:
                                              - YEARS
                                              - MONTHS
                                              - WEEKS
                                              - DAYS
                                              - HOURS
                                              - MINUTES
                                              - SECONDS
                                              - UNKNOWN
                                          value:
                                            type: integer
                                            description: The number of time units
                                            format: int64
                                        required:
                                          - type
                                          - value
                                      offset:
                                        type: object
                                        description: The definition of a length of time.
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: TimePeriod
                                            x-interface-name-ts: TimePeriod
                                            description: The unit of time
                                            enum:
                                              - YEARS
                                              - MONTHS
                                              - WEEKS
                                              - DAYS
                                              - HOURS
                                              - MINUTES
                                              - SECONDS
                                              - UNKNOWN
                                          value:
                                            type: integer
                                            description: The number of time units
                                            format: int64
                                        required:
                                          - type
                                          - value
                                      filter:
                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                        oneOf:
                                          - type: object
                                            title: Daily
                                            x-class-name: CustomDailyFilter
                                            x-interface-name-ts: CustomDailyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomDailyFilterType
                                                x-interface-name-ts: CustomDailyFilterType
                                                enum:
                                                  - DAILY
                                                description: Daily filters limit the data scope to a range of hours every day.
                                              nestingType:
                                                x-class-name: CustomDailyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - nestingType
                                              - type
                                              - from
                                              - to
                                          - type: object
                                            title: Weekly
                                            x-class-name: CustomWeeklyFilter
                                            x-interface-name-ts: CustomWeeklyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomWeeklyFilterType
                                                x-interface-name-ts: CustomWeeklyFilterType
                                                enum:
                                                  - WEEKLY
                                                description: Weekly filters let you define separate rules for each day of the week.
                                              nestingType:
                                                x-class-name: CustomWeeklyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              days:
                                                type: array
                                                description: An array of rules for different days of the week.
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - nestingType
                                              - type
                                          - type: object
                                            title: Monthly
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                enum:
                                                  - MONTHLY
                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                              nestingType:
                                                x-class-name: CustomMonthlyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              rules:
                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                oneOf:
                                                  - type: object
                                                    title: Days of the week
                                                    x-class-name: WeekDateRule
                                                    x-interface-name-ts: WeekDateRule
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: WeekDateRuleType
                                                        x-interface-name-ts: WeekDateRuleType
                                                        enum:
                                                          - WEEK
                                                        description: Weekly filters limit the scope to days in a week
                                                      weeks:
                                                        type: array
                                                        description: Weeks of the month included in the pattern
                                                        items:
                                                          type: object
                                                          properties:
                                                            week:
                                                              type: integer
                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                            days:
                                                              type: array
                                                              description: Days included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                          required:
                                                            - days
                                                            - type
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, weeks are counted from the end of the month.

                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                    required:
                                                      - type
                                                      - weeks
                                                  - type: object
                                                    title: Days of the month
                                                    x-class-name: MonthDateRule
                                                    x-interface-name-ts: MonthDateRule
                                                    properties:
                                                      type:
                                                        description: Rules for days of the month
                                                        type: string
                                                        x-class-name: MonthDateRuleType
                                                        x-interface-name-ts: MonthDateRuleType
                                                        enum:
                                                          - MONTH
                                                      days:
                                                        type: array
                                                        description: Days of the month included in the pattern.
                                                        items:
                                                          type: object
                                                          properties:
                                                            day:
                                                              type: integer
                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                            from:
                                                              type: string
                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            to:
                                                              type: string
                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            mode:
                                                              type: string
                                                              enum:
                                                                - Range
                                                                - Hour
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                          required:
                                                            - day
                                                            - from
                                                            - inverted
                                                            - to
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, days are counted from the end of the month.

                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                    required:
                                                      - days
                                                      - type
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                            required:
                                              - nestingType
                                              - rules
                                              - type
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                    required:
                                      - duration
                                      - offset
                                      - type
                            required:
                              - type
                              - logic
                              - value
                      attribute:
                        description: A profile attribute to analyze
                        discriminator:
                          propertyName: type
                          mapping:
                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - PARAM
                              param:
                                description: Name of the parameter
                                type: string
                            required:
                              - type
                              - param
                          - type: object
                            description: Reference to a tag
                            properties:
                              type:
                                type: string
                                enum:
                                  - TAG
                              tag:
                                description: Name of the tag
                                type: string
                            required:
                              - type
                              - tag
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - AGGREGATE
                              uuid:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - uuid
                              - id
                          - type: object
                            description: Reference to a segmentation
                            properties:
                              type:
                                type: string
                                enum:
                                  - SEGMENTATION
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - id
                          - type: object
                            description: Pointer to an expression
                            properties:
                              type:
                                type: string
                                enum:
                                  - EXPRESSION
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - id
                          - type: object
                            description: Reference to a special parameter
                            properties:
                              type:
                                type: string
                                enum:
                                  - SPECIAL
                              special:
                                type: string
                                description: The name of the special parameter
                            required:
                              - type
                              - special
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - EMPTY
                            required:
                              - type
              required:
                - expressions
        - description: A condition to test
          type: object
          properties:
            type:
              description: A condition to test
              x-class-name: ExpressionFilterBoxType
              type: string
              enum:
                - EXPRESSION
            name:
              type: string
            matching:
              type: boolean
            expressions:
              $ref: "#/components/schemas/analytics-FilterBox"
          required:
            - type
            - expressions
        - type: object
          properties:
            type:
              description: Tests against a funnel
              x-class-name: ExpressionFilterBoxType
              type: string
              enum:
                - FUNNEL
            name:
              type: string
              description: Name of the resource
            matching:
              type: boolean
              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
              default: true
            funnel:
              type: object
              description: Funnel conditions
              properties:
                title:
                  type: string
                  description: Title of the funnel.
                completedWithin:
                  type: object
                  description: |
                    Time constraint for completing all the steps in the funnel. Timer starts
                    when the first step is triggered.

                    - `period` sets the time unit
                    - `value` sets the number of time units
                  properties:
                    period:
                      type: string
                      x-class-name: TimePeriod
                      x-interface-name-ts: TimePeriod
                      description: The unit of time
                      enum:
                        - YEARS
                        - MONTHS
                        - WEEKS
                        - DAYS
                        - HOURS
                        - MINUTES
                        - SECONDS
                        - UNKNOWN
                    value:
                      description: The number of time units
                      type: number
                      format: int64
                dateFilter:
                  description: |
                    Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                    An absolute date filter lets you define static dates and times that always apply to the analysis.

                    A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                  discriminator:
                    propertyName: type
                    mapping:
                      ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                      RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                  oneOf:
                    - type: object
                      title: AbsoluteDateFilter
                      properties:
                        type:
                          title: AbsoluteDateFilterType
                          x-class-name: AbsoluteDateFilterType
                          x-interface-name-ts: AbsoluteDateFilterType
                          type: string
                          enum:
                            - ABSOLUTE
                          description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                        from:
                          type: string
                          format: date-time
                          description: The lower boundary of the date filter.
                        to:
                          type: string
                          format: date-time
                          description: The upper boundary of the date filter. Must be later than `from`.
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - type
                    - type: object
                      title: RelativeDateFilter
                      properties:
                        type:
                          title: RelativeDateFilterType
                          x-class-name: RelativeDateFilterType
                          x-interface-name-ts: RelativeDateFilterType
                          type: string
                          enum:
                            - RELATIVE
                          description: |
                            Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                            - `duration` is the length of time that the filter covers.
                            - `offset` is the time that the filter goes back to set the beginning of the duration.
                        duration:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        offset:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - duration
                        - offset
                        - type
                steps:
                  type: array
                  minItems: 0
                  description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                  items:
                    type: object
                    properties:
                      title:
                        type: string
                        description: The name of the step
                      action:
                        type: object
                        description: The analyzed event
                        nullable: true
                        required:
                          - name
                        properties:
                          id:
                            type: integer
                            format: int64
                            deprecated: true
                            nullable: true
                            description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                          name:
                            type: string
                            description: Action name of the event.
                            example: page.visit
                      expressions:
                        type: array
                        description: An array of conditions that the event must meet
                        items:
                          type: object
                          description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                          properties:
                            constraint:
                              description: |
                                This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                              discriminator:
                                propertyName: type
                                mapping:
                                  BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                  STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                  STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                  NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                  NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                  STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                  ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                  "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                  DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                  DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                  DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                  DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                              oneOf:
                                - type: object
                                  title: Boolean
                                  properties:
                                    type:
                                      x-class-name: BoolConstraintType
                                      type: string
                                      enum:
                                        - BOOL
                                      description: Tests a boolean value
                                    logic:
                                      x-class-name: BoolConstraintLogic
                                      type: string
                                      description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                      enum:
                                        - IS_TRUE
                                        - IS_FALSE
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: Check empty
                                  description: This type is used to check if a string is empty.
                                  properties:
                                    type:
                                      title: String zero
                                      x-class-name: StringZeroConstraintType
                                      type: string
                                      description: This type is used to check if a string is empty.
                                      enum:
                                        - STRING_ZERO
                                    logic:
                                      x-class-name: StringZeroConstraintLogic
                                      type: string
                                      description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                      enum:
                                        - IS_EMPTY
                                        - IS_NOT_EMPTY
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: String
                                  properties:
                                    type:
                                      x-class-name: StringOneConstraintType
                                      type: string
                                      enum:
                                        - STRING_ONE
                                      description: This type is used to test values that are a single string.
                                    logic:
                                      x-class-name: StringOneConstraintLogic
                                      type: string
                                      description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                      enum:
                                        - CONTAIN
                                        - NOT_CONTAIN
                                        - EQUAL
                                        - NOT_EQUAL
                                        - STARTS_WITH
                                        - REGEXP
                                        - ENDS_WITH
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Number
                                  properties:
                                    type:
                                      x-class-name: NumberOneConstraintType
                                      type: string
                                      enum:
                                        - NUMBER_ONE
                                      description: This type is used to test values that are a single number
                                    logic:
                                      x-class-name: NumberOneConstraintLogic
                                      type: string
                                      description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                      enum:
                                        - EQUAL
                                        - NOT_EQUAL
                                        - LESS
                                        - MORE
                                        - MORE_OR_EQUAL
                                        - LESS_OR_EQUAL
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Two numbers
                                  properties:
                                    type:
                                      x-class-name: NumberTwoConstraintType
                                      type: string
                                      enum:
                                        - NUMBER_TWO
                                      description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                    logic:
                                      description: Checks if the attribute is between two numbers.
                                      x-class-name: NumberTwoConstraintLogic
                                      type: string
                                      enum:
                                        - BETWEEN
                                    value1:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                    value2:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value1
                                    - value2
                                - type: object
                                  title: Check if string in array
                                  properties:
                                    type:
                                      x-class-name: StringArrayConstraintType
                                      type: string
                                      enum:
                                        - STRING_ARRAY
                                      description: This type is used to check if a string exists in an array defined in `value`
                                    logic:
                                      type: string
                                      x-class-name: StringArrayConstraintLogic
                                      description: You can check if the value from `attribute` is in the array defined in `value`
                                      enum:
                                        - IN
                                        - NOT_IN
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Other string array tests
                                  properties:
                                    type:
                                      x-class-name: ArrayStringOneConstraintType
                                      type: string
                                      enum:
                                        - ARRAY_STRING_ONE_DEPRECATED
                                      description: "`value` should be an array"
                                    logic:
                                      x-class-name: ArrayStringOneConstraintLogic
                                      type: string
                                      description: |
                                        - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                        - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                        - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                        - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                      enum:
                                        - CONTAIN
                                        - NOT_CONTAIN
                                        - EQUAL
                                        - NOT_EQUAL
                                        - STARTS_WITH
                                        - REGEXP
                                        - ENDS_WITH
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Check if null
                                  properties:
                                    type:
                                      x-class-name: NullConstraintType
                                      description: This type is used to check if a value is null
                                      type: string
                                      enum:
                                        - "NULL"
                                    logic:
                                      x-class-name: NullConstraintLogic
                                      type: string
                                      description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                      enum:
                                        - IS_NULL
                                        - IS_NOT_NULL
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: Current date
                                  properties:
                                    type:
                                      x-class-name: DateZeroConstraintType
                                      type: string
                                      enum:
                                        - DATE_ZERO
                                      description: Compare a date from `attribute` to the current date
                                    logic:
                                      x-class-name: LogicZeroConstraintLogic
                                      type: string
                                      enum:
                                        - MATCHES_CURRENT_DAY
                                        - MATCHES_CURRENT_HOUR
                                        - MATCHES_CURRENT_MONTH
                                        - MATCHES_CURRENT_YEAR
                                      description: Logic to apply to the date from `attribute`
                                  required:
                                    - type
                                    - logic
                                - description: This type is used to check `attribute` against a date.
                                  type: object
                                  title: Date
                                  properties:
                                    type:
                                      x-class-name: DateOneConstraintType
                                      type: string
                                      description: This type is used to check `attribute` against a date.
                                      enum:
                                        - DATE_ONE
                                    logic:
                                      x-class-name: DateOneConstraintLogic
                                      type: string
                                      description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                      enum:
                                        - LESS
                                        - MORE
                                        - LESS_OR_EQUAL
                                        - MORE_OR_EQUAL
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - description: This type is used to check if a date is between two other dates.
                                  type: object
                                  title: Date range
                                  properties:
                                    type:
                                      x-class-name: DateTwoConstraintType
                                      type: string
                                      description: This type is used to check if a date is between two other dates.
                                      enum:
                                        - DATE_TWO
                                    logic:
                                      x-class-name: DateTwoConstraintLogic
                                      type: string
                                      description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                      enum:
                                        - BETWEEN
                                    value1:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                    value2:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value1
                                    - value2
                                - description: This type is used to check if a date matches a date filter.
                                  type: object
                                  title: Date filter
                                  properties:
                                    type:
                                      x-class-name: DateFilterConstraintType
                                      type: string
                                      description: This type is used to check if a date matches a date filter.
                                      enum:
                                        - DATE_FILTER
                                    logic:
                                      x-class-name: DateFilterConstraintLogic
                                      type: string
                                      enum:
                                        - DATE_FILTER
                                      description: Checks if the date from `attribute` matches a date filter.
                                    value:
                                      description: |
                                        Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                        An absolute date filter lets you define static dates and times that always apply to the analysis.

                                        A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                          RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                      oneOf:
                                        - type: object
                                          title: AbsoluteDateFilter
                                          properties:
                                            type:
                                              title: AbsoluteDateFilterType
                                              x-class-name: AbsoluteDateFilterType
                                              x-interface-name-ts: AbsoluteDateFilterType
                                              type: string
                                              enum:
                                                - ABSOLUTE
                                              description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                            from:
                                              type: string
                                              format: date-time
                                              description: The lower boundary of the date filter.
                                            to:
                                              type: string
                                              format: date-time
                                              description: The upper boundary of the date filter. Must be later than `from`.
                                            filter:
                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                              oneOf:
                                                - type: object
                                                  title: Daily
                                                  x-class-name: CustomDailyFilter
                                                  x-interface-name-ts: CustomDailyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomDailyFilterType
                                                      x-interface-name-ts: CustomDailyFilterType
                                                      enum:
                                                        - DAILY
                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                    nestingType:
                                                      x-class-name: CustomDailyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - nestingType
                                                    - type
                                                    - from
                                                    - to
                                                - type: object
                                                  title: Weekly
                                                  x-class-name: CustomWeeklyFilter
                                                  x-interface-name-ts: CustomWeeklyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomWeeklyFilterType
                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                      enum:
                                                        - WEEKLY
                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                    nestingType:
                                                      x-class-name: CustomWeeklyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    days:
                                                      type: array
                                                      description: An array of rules for different days of the week.
                                                      items:
                                                        type: object
                                                        properties:
                                                          day:
                                                            type: integer
                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          mode:
                                                            type: string
                                                            enum:
                                                              - Range
                                                              - Hour
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - day
                                                          - from
                                                          - inverted
                                                          - to
                                                  required:
                                                    - days
                                                    - nestingType
                                                    - type
                                                - type: object
                                                  title: Monthly
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      enum:
                                                        - MONTHLY
                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                    nestingType:
                                                      x-class-name: CustomMonthlyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    rules:
                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                      oneOf:
                                                        - type: object
                                                          title: Days of the week
                                                          x-class-name: WeekDateRule
                                                          x-interface-name-ts: WeekDateRule
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: WeekDateRuleType
                                                              x-interface-name-ts: WeekDateRuleType
                                                              enum:
                                                                - WEEK
                                                              description: Weekly filters limit the scope to days in a week
                                                            weeks:
                                                              type: array
                                                              description: Weeks of the month included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  week:
                                                                    type: integer
                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                  days:
                                                                    type: array
                                                                    description: Days included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                required:
                                                                  - days
                                                                  - type
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, weeks are counted from the end of the month.

                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                          required:
                                                            - type
                                                            - weeks
                                                        - type: object
                                                          title: Days of the month
                                                          x-class-name: MonthDateRule
                                                          x-interface-name-ts: MonthDateRule
                                                          properties:
                                                            type:
                                                              description: Rules for days of the month
                                                              type: string
                                                              x-class-name: MonthDateRuleType
                                                              x-interface-name-ts: MonthDateRuleType
                                                              enum:
                                                                - MONTH
                                                            days:
                                                              type: array
                                                              description: Days of the month included in the pattern.
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, days are counted from the end of the month.

                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                          required:
                                                            - days
                                                            - type
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                  required:
                                                    - nestingType
                                                    - rules
                                                    - type
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                          required:
                                            - type
                                        - type: object
                                          title: RelativeDateFilter
                                          properties:
                                            type:
                                              title: RelativeDateFilterType
                                              x-class-name: RelativeDateFilterType
                                              x-interface-name-ts: RelativeDateFilterType
                                              type: string
                                              enum:
                                                - RELATIVE
                                              description: |
                                                Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                - `duration` is the length of time that the filter covers.
                                                - `offset` is the time that the filter goes back to set the beginning of the duration.
                                            duration:
                                              type: object
                                              description: The definition of a length of time.
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: TimePeriod
                                                  x-interface-name-ts: TimePeriod
                                                  description: The unit of time
                                                  enum:
                                                    - YEARS
                                                    - MONTHS
                                                    - WEEKS
                                                    - DAYS
                                                    - HOURS
                                                    - MINUTES
                                                    - SECONDS
                                                    - UNKNOWN
                                                value:
                                                  type: integer
                                                  description: The number of time units
                                                  format: int64
                                              required:
                                                - type
                                                - value
                                            offset:
                                              type: object
                                              description: The definition of a length of time.
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: TimePeriod
                                                  x-interface-name-ts: TimePeriod
                                                  description: The unit of time
                                                  enum:
                                                    - YEARS
                                                    - MONTHS
                                                    - WEEKS
                                                    - DAYS
                                                    - HOURS
                                                    - MINUTES
                                                    - SECONDS
                                                    - UNKNOWN
                                                value:
                                                  type: integer
                                                  description: The number of time units
                                                  format: int64
                                              required:
                                                - type
                                                - value
                                            filter:
                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                              oneOf:
                                                - type: object
                                                  title: Daily
                                                  x-class-name: CustomDailyFilter
                                                  x-interface-name-ts: CustomDailyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomDailyFilterType
                                                      x-interface-name-ts: CustomDailyFilterType
                                                      enum:
                                                        - DAILY
                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                    nestingType:
                                                      x-class-name: CustomDailyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - nestingType
                                                    - type
                                                    - from
                                                    - to
                                                - type: object
                                                  title: Weekly
                                                  x-class-name: CustomWeeklyFilter
                                                  x-interface-name-ts: CustomWeeklyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomWeeklyFilterType
                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                      enum:
                                                        - WEEKLY
                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                    nestingType:
                                                      x-class-name: CustomWeeklyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    days:
                                                      type: array
                                                      description: An array of rules for different days of the week.
                                                      items:
                                                        type: object
                                                        properties:
                                                          day:
                                                            type: integer
                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          mode:
                                                            type: string
                                                            enum:
                                                              - Range
                                                              - Hour
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - day
                                                          - from
                                                          - inverted
                                                          - to
                                                  required:
                                                    - days
                                                    - nestingType
                                                    - type
                                                - type: object
                                                  title: Monthly
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      enum:
                                                        - MONTHLY
                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                    nestingType:
                                                      x-class-name: CustomMonthlyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    rules:
                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                      oneOf:
                                                        - type: object
                                                          title: Days of the week
                                                          x-class-name: WeekDateRule
                                                          x-interface-name-ts: WeekDateRule
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: WeekDateRuleType
                                                              x-interface-name-ts: WeekDateRuleType
                                                              enum:
                                                                - WEEK
                                                              description: Weekly filters limit the scope to days in a week
                                                            weeks:
                                                              type: array
                                                              description: Weeks of the month included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  week:
                                                                    type: integer
                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                  days:
                                                                    type: array
                                                                    description: Days included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                required:
                                                                  - days
                                                                  - type
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, weeks are counted from the end of the month.

                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                          required:
                                                            - type
                                                            - weeks
                                                        - type: object
                                                          title: Days of the month
                                                          x-class-name: MonthDateRule
                                                          x-interface-name-ts: MonthDateRule
                                                          properties:
                                                            type:
                                                              description: Rules for days of the month
                                                              type: string
                                                              x-class-name: MonthDateRuleType
                                                              x-interface-name-ts: MonthDateRuleType
                                                              enum:
                                                                - MONTH
                                                            days:
                                                              type: array
                                                              description: Days of the month included in the pattern.
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, days are counted from the end of the month.

                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                          required:
                                                            - days
                                                            - type
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                  required:
                                                    - nestingType
                                                    - rules
                                                    - type
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                          required:
                                            - duration
                                            - offset
                                            - type
                                  required:
                                    - type
                                    - logic
                                    - value
                            attribute:
                              description: An event attribute to analyze
                              discriminator:
                                propertyName: type
                                mapping:
                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                              oneOf:
                                - type: object
                                  title: Event parameter
                                  properties:
                                    type:
                                      x-class-name: ParamEventAttributeType
                                      enum:
                                        - PARAM
                                      description: This `type` refers to parameters in an event.
                                    param:
                                      type: string
                                      description: Name of the parameter
                                  required:
                                    - type
                                - type: object
                                  title: Event aggregate
                                  properties:
                                    type:
                                      x-class-name: RunningAggregateEventAttributeType
                                      type: string
                                      enum:
                                        - RUNNING_AGGREGATE
                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                    id:
                                      type: string
                                      format: uuid
                                      description: ID of the event aggregate
                                  required:
                                    - type
                                    - id
                                - type: object
                                  title: Expression
                                  properties:
                                    type:
                                      x-class-name: ExpressionEventAttributeType
                                      type: string
                                      enum:
                                        - EXPRESSION
                                      description: This type refers to expressions. You must provide the ID of the expression.
                                    id:
                                      type: string
                                      format: uuid
                                      description: ID of the expression
                                  required:
                                    - type
                                    - id
                                - type: object
                                  title: Special property
                                  properties:
                                    type:
                                      x-class-name: SpecialEventAttributeType
                                      type: string
                                      enum:
                                        - SPECIAL
                                      description: This type lets you access special properties of an event.
                                    special:
                                      type: string
                                      description: The type of special attribute you want to use
                                      enum:
                                        - TIMESTAMP
                                  required:
                                    - type
                                    - special
                                - type: object
                                  title: No attribute
                                  properties:
                                    type:
                                      x-class-name: EmptyEventAttributeType
                                      type: string
                                      enum:
                                        - EMPTY
                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                  required:
                                    - type
                          required:
                            - constrain
                            - attribute
                    required:
                      - action
                      - title
                      - expressions
                exact:
                  type: boolean
                  default: false
                  description: |
                    When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
              required:
                - title
                - steps
          required:
            - type
            - funnel
        - type: object
          properties:
            type:
              description: Logical operator between expressions
              x-class-name: OperatorFilterBoxType
              type: string
              enum:
                - OPERATOR
            name:
              type: string
              description: Name of the resource
            logic:
              x-class-name: FilterBoxOperatorType
              type: string
              enum:
                - OR
                - AND
                - LEFT_BRACKET
                - RIGHT_BRACKET
          required:
            - type
            - name
            - logic
    analytics-FilterExpressionContent:
      deprecated: true
      example:
        type: EMPTY
      discriminator:
        propertyName: type
        mapping:
          FUNCTION: "#/components/schemas/analytics-FilterExpressionFunction"
          ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterExpressionContent"
          FUNNEL: "#/components/schemas/analytics-FunnelFilterExpressionContent"
          EXPRESSION: "#/components/schemas/analytics-ExpressionFilterExpressionContent"
          EMPTY: "#/components/schemas/analytics-EmptyFilterExpressionContent"
      oneOf:
        - type: object
          description: Logical operators
          properties:
            type:
              description: Logical operators
              x-class-name: FunctionFilterExpressionContentType
              type: string
              enum:
                - FUNCTION
            function:
              x-class-name: FilterFunctionType
              type: string
              enum:
                - AND
                - OR
                - BRACKET
            arg:
              type: object
              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
              x-codegen-schema: FilterExpressionContent
            arg1:
              type: object
              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
              x-codegen-schema: FilterExpressionContent
            arg2:
              type: object
              description: An argument of the function. This is a recursive schema; an argument can be a function which contains more functions in its arguments.
              x-codegen-schema: FilterExpressionContent
            name:
              type: string
          required:
            - type
            - function
        - type: object
          title: Profile attribute
          properties:
            type:
              x-class-name: AttributeFilterExpressionContentType
              type: string
              enum:
                - ATTRIBUTE
              description: Tests a profile attribute against a condition
            matching:
              type: boolean
              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
              default: true
            attribute:
              type: object
              description: The condition to test a profile attribute
              properties:
                expressions:
                  type: array
                  description: An array of conditions. All conditions must be met.
                  items:
                    type: object
                    properties:
                      constraint:
                        discriminator:
                          propertyName: type
                          mapping:
                            BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                            STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                            STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                            NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                            NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                            STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                            ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                            "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                            DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                            DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                            DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                            DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                        oneOf:
                          - type: object
                            title: Boolean
                            properties:
                              type:
                                x-class-name: BoolClientConstraintType
                                type: string
                                enum:
                                  - BOOL
                                description: Tests a boolean value
                              logic:
                                description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                x-class-name: BoolClientConstraintLogic
                                type: string
                                enum:
                                  - IS_TRUE
                                  - IS_FALSE
                            required:
                              - type
                              - logic
                          - type: object
                            title: Check empty
                            description: This type is used to check if a string is empty.
                            properties:
                              type:
                                x-class-name: StringZeroClientConstraintType
                                type: string
                                description: This type is used to check if a string is empty.
                                enum:
                                  - STRING_ZERO
                              logic:
                                description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                x-class-name: StringZeroClientConstraintLogic
                                type: string
                                enum:
                                  - IS_EMPTY
                                  - IS_NOT_EMPTY
                            required:
                              - type
                              - logic
                          - type: object
                            title: String
                            properties:
                              type:
                                description: This type is used to test values that are a single string.
                                x-class-name: StringOneClientConstraintType
                                type: string
                                enum:
                                  - STRING_ONE
                              logic:
                                description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                x-class-name: StringOneClientConstraintLogic
                                type: string
                                enum:
                                  - CONTAIN
                                  - NOT_CONTAIN
                                  - EQUAL
                                  - NOT_EQUAL
                                  - STARTS_WITH
                                  - REGEXP
                                  - ENDS_WITH
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Number
                            properties:
                              type:
                                description: This type is used to test values that are a single number
                                x-class-name: NumberOneClientConstraintType
                                type: string
                                enum:
                                  - NUMBER_ONE
                              logic:
                                description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                x-class-name: NumberOneClientConstraintLogic
                                type: string
                                enum:
                                  - EQUAL
                                  - NOT_EQUAL
                                  - LESS
                                  - MORE
                                  - MORE_OR_EQUAL
                                  - LESS_OR_EQUAL
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Two numbers
                            properties:
                              type:
                                description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                x-class-name: NumberTwoClientConstraintType
                                type: string
                                enum:
                                  - NUMBER_TWO
                              logic:
                                description: Checks if the attribute is between two numbers.
                                x-class-name: NumberTwoClientConstraintLogic
                                type: string
                                enum:
                                  - BETWEEN
                              value1:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                              value2:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value1
                              - value2
                          - type: object
                            title: Check if string in array
                            properties:
                              type:
                                description: This type is used to check if a string exists in an array defined in `value`
                                x-class-name: StringArrayClientConstraintType
                                type: string
                                enum:
                                  - STRING_ARRAY
                              logic:
                                description: You can check if the value from `attribute` is in the array defined in `value`
                                x-class-name: StringArrayClientConstraintLogic
                                type: string
                                enum:
                                  - IN
                                  - NOT_IN
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Other string array tests
                            properties:
                              type:
                                description: "`value` should be an array"
                                x-class-name: ArrayStringOneClientConstraintType
                                type: string
                                enum:
                                  - ARRAY_STRING_ONE_DEPRECATED
                              logic:
                                description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                x-class-name: ArrayStringOneClientConstraintLogic
                                type: string
                                enum:
                                  - CONTAIN
                                  - NOT_CONTAIN
                                  - EQUAL
                                  - NOT_EQUAL
                                  - STARTS_WITH
                                  - REGEXP
                                  - ENDS_WITH
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - type: object
                            title: Check if null
                            properties:
                              type:
                                x-class-name: NullClientConstraintType
                                type: string
                                enum:
                                  - "NULL"
                                description: This type is used to check if a value is null
                              logic:
                                description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                x-class-name: NullClientConstraintLogic
                                type: string
                                enum:
                                  - IS_NULL
                                  - IS_NOT_NULL
                            required:
                              - type
                              - logic
                          - type: object
                            title: Current date
                            properties:
                              type:
                                description: Compare a date from `attribute` to the current date
                                x-class-name: DateZeroClientConstraintType
                                type: string
                                enum:
                                  - DATE_ZERO
                              logic:
                                description: Logic to apply to the date from `attribute`
                                x-class-name: DateZeroClientConstraintLogic
                                type: string
                                enum:
                                  - MATCHES_CURRENT_DAY
                                  - MATCHES_CURRENT_HOUR
                                  - MATCHES_CURRENT_MONTH
                                  - MATCHES_CURRENT_YEAR
                            required:
                              - type
                              - logic
                          - description: This type is used to check `attribute` against a date.
                            type: object
                            title: Date
                            properties:
                              type:
                                x-class-name: DateOneClientConstraintType
                                type: string
                                description: This type is used to check `attribute` against a date.
                                enum:
                                  - DATE_ONE
                              logic:
                                description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                x-class-name: DateOneClientConstraintLogic
                                type: string
                                enum:
                                  - LESS
                                  - MORE
                                  - LESS_OR_EQUAL
                                  - MORE_OR_EQUAL
                              value:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value
                          - description: This type is used to check if a date is between two other dates.
                            type: object
                            title: Date range
                            properties:
                              type:
                                x-class-name: DateTwoClientConstraintType
                                type: string
                                description: This type is used to check if a date is between two other dates.
                                enum:
                                  - DATE_TWO
                              logic:
                                description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                x-class-name: DateTwoClientConstraintLogic
                                type: string
                                enum:
                                  - BETWEEN
                              value1:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                              value2:
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                    CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                    VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                oneOf:
                                  - type: object
                                    title: Static value
                                    description: Inserts a static value.
                                    properties:
                                      type:
                                        x-class-name: ConstantClientValueType
                                        type: string
                                        description: Inserts a static value.
                                        enum:
                                          - CONSTANT
                                      constant:
                                        description: |
                                          The value can't:
                                            - be longer than 21000 characters if it's a string
                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            items:
                                              type: string
                                    required:
                                      - type
                                      - constant
                                  - type: object
                                    title: Profile attribute
                                    properties:
                                      type:
                                        x-class-name: ClientClientValueType
                                        type: string
                                        enum:
                                          - CLIENT
                                        description: Definition of a profile attribute
                                      attribute:
                                        description: A profile attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                        oneOf:
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - PARAM
                                              param:
                                                description: Name of the parameter
                                                type: string
                                            required:
                                              - type
                                              - param
                                          - type: object
                                            description: Reference to a tag
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - TAG
                                              tag:
                                                description: Name of the tag
                                                type: string
                                            required:
                                              - type
                                              - tag
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - AGGREGATE
                                              uuid:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - uuid
                                              - id
                                          - type: object
                                            description: Reference to a segmentation
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SEGMENTATION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Pointer to an expression
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                              id:
                                                type: string
                                                format: uuid
                                                description: |
                                                  UUID of the analysis
                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            description: Reference to a special parameter
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - SPECIAL
                                              special:
                                                type: string
                                                description: The name of the special parameter
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            properties:
                                              type:
                                                type: string
                                                enum:
                                                  - EMPTY
                                            required:
                                              - type
                                    required:
                                      - type
                                      - attribute
                                  - type: object
                                    title: Dynamic value
                                    properties:
                                      type:
                                        x-class-name: VariableClientValueType
                                        type: string
                                        description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                        enum:
                                          - VARIABLE
                                      name:
                                        type: string
                                        description: The name of the dynamic key
                                      defaultValue:
                                        description: The default value to use
                                        oneOf:
                                          - type: string
                                          - type: number
                                          - type: array
                                            items: {}
                                    required:
                                      - type
                                      - name
                                      - defaultValue
                            required:
                              - type
                              - logic
                              - value1
                              - value2
                          - type: object
                            title: Date filter
                            description: This type is used to check if a date matches a date filter.
                            properties:
                              type:
                                x-class-name: DateFilterClientConstraintType
                                type: string
                                description: This type is used to check if a date matches a date filter.
                                enum:
                                  - DATE_FILTER
                              logic:
                                description: Checks if the date from `attribute` matches a date filter.
                                x-class-name: DateFilterClientConstraintLogic
                                type: string
                                enum:
                                  - DATE_FILTER
                              value:
                                description: |
                                  Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                  An absolute date filter lets you define static dates and times that always apply to the analysis.

                                  A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                discriminator:
                                  propertyName: type
                                  mapping:
                                    ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                    RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                oneOf:
                                  - type: object
                                    title: AbsoluteDateFilter
                                    properties:
                                      type:
                                        title: AbsoluteDateFilterType
                                        x-class-name: AbsoluteDateFilterType
                                        x-interface-name-ts: AbsoluteDateFilterType
                                        type: string
                                        enum:
                                          - ABSOLUTE
                                        description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                      from:
                                        type: string
                                        format: date-time
                                        description: The lower boundary of the date filter.
                                      to:
                                        type: string
                                        format: date-time
                                        description: The upper boundary of the date filter. Must be later than `from`.
                                      filter:
                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                        oneOf:
                                          - type: object
                                            title: Daily
                                            x-class-name: CustomDailyFilter
                                            x-interface-name-ts: CustomDailyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomDailyFilterType
                                                x-interface-name-ts: CustomDailyFilterType
                                                enum:
                                                  - DAILY
                                                description: Daily filters limit the data scope to a range of hours every day.
                                              nestingType:
                                                x-class-name: CustomDailyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - nestingType
                                              - type
                                              - from
                                              - to
                                          - type: object
                                            title: Weekly
                                            x-class-name: CustomWeeklyFilter
                                            x-interface-name-ts: CustomWeeklyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomWeeklyFilterType
                                                x-interface-name-ts: CustomWeeklyFilterType
                                                enum:
                                                  - WEEKLY
                                                description: Weekly filters let you define separate rules for each day of the week.
                                              nestingType:
                                                x-class-name: CustomWeeklyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              days:
                                                type: array
                                                description: An array of rules for different days of the week.
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - nestingType
                                              - type
                                          - type: object
                                            title: Monthly
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                enum:
                                                  - MONTHLY
                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                              nestingType:
                                                x-class-name: CustomMonthlyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              rules:
                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                oneOf:
                                                  - type: object
                                                    title: Days of the week
                                                    x-class-name: WeekDateRule
                                                    x-interface-name-ts: WeekDateRule
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: WeekDateRuleType
                                                        x-interface-name-ts: WeekDateRuleType
                                                        enum:
                                                          - WEEK
                                                        description: Weekly filters limit the scope to days in a week
                                                      weeks:
                                                        type: array
                                                        description: Weeks of the month included in the pattern
                                                        items:
                                                          type: object
                                                          properties:
                                                            week:
                                                              type: integer
                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                            days:
                                                              type: array
                                                              description: Days included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                          required:
                                                            - days
                                                            - type
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, weeks are counted from the end of the month.

                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                    required:
                                                      - type
                                                      - weeks
                                                  - type: object
                                                    title: Days of the month
                                                    x-class-name: MonthDateRule
                                                    x-interface-name-ts: MonthDateRule
                                                    properties:
                                                      type:
                                                        description: Rules for days of the month
                                                        type: string
                                                        x-class-name: MonthDateRuleType
                                                        x-interface-name-ts: MonthDateRuleType
                                                        enum:
                                                          - MONTH
                                                      days:
                                                        type: array
                                                        description: Days of the month included in the pattern.
                                                        items:
                                                          type: object
                                                          properties:
                                                            day:
                                                              type: integer
                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                            from:
                                                              type: string
                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            to:
                                                              type: string
                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            mode:
                                                              type: string
                                                              enum:
                                                                - Range
                                                                - Hour
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                          required:
                                                            - day
                                                            - from
                                                            - inverted
                                                            - to
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, days are counted from the end of the month.

                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                    required:
                                                      - days
                                                      - type
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                            required:
                                              - nestingType
                                              - rules
                                              - type
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                    required:
                                      - type
                                  - type: object
                                    title: RelativeDateFilter
                                    properties:
                                      type:
                                        title: RelativeDateFilterType
                                        x-class-name: RelativeDateFilterType
                                        x-interface-name-ts: RelativeDateFilterType
                                        type: string
                                        enum:
                                          - RELATIVE
                                        description: |
                                          Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                          - `duration` is the length of time that the filter covers.
                                          - `offset` is the time that the filter goes back to set the beginning of the duration.
                                      duration:
                                        type: object
                                        description: The definition of a length of time.
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: TimePeriod
                                            x-interface-name-ts: TimePeriod
                                            description: The unit of time
                                            enum:
                                              - YEARS
                                              - MONTHS
                                              - WEEKS
                                              - DAYS
                                              - HOURS
                                              - MINUTES
                                              - SECONDS
                                              - UNKNOWN
                                          value:
                                            type: integer
                                            description: The number of time units
                                            format: int64
                                        required:
                                          - type
                                          - value
                                      offset:
                                        type: object
                                        description: The definition of a length of time.
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: TimePeriod
                                            x-interface-name-ts: TimePeriod
                                            description: The unit of time
                                            enum:
                                              - YEARS
                                              - MONTHS
                                              - WEEKS
                                              - DAYS
                                              - HOURS
                                              - MINUTES
                                              - SECONDS
                                              - UNKNOWN
                                          value:
                                            type: integer
                                            description: The number of time units
                                            format: int64
                                        required:
                                          - type
                                          - value
                                      filter:
                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                        oneOf:
                                          - type: object
                                            title: Daily
                                            x-class-name: CustomDailyFilter
                                            x-interface-name-ts: CustomDailyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomDailyFilterType
                                                x-interface-name-ts: CustomDailyFilterType
                                                enum:
                                                  - DAILY
                                                description: Daily filters limit the data scope to a range of hours every day.
                                              nestingType:
                                                x-class-name: CustomDailyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - nestingType
                                              - type
                                              - from
                                              - to
                                          - type: object
                                            title: Weekly
                                            x-class-name: CustomWeeklyFilter
                                            x-interface-name-ts: CustomWeeklyFilter
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomWeeklyFilterType
                                                x-interface-name-ts: CustomWeeklyFilterType
                                                enum:
                                                  - WEEKLY
                                                description: Weekly filters let you define separate rules for each day of the week.
                                              nestingType:
                                                x-class-name: CustomWeeklyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              days:
                                                type: array
                                                description: An array of rules for different days of the week.
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - nestingType
                                              - type
                                          - type: object
                                            title: Monthly
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            properties:
                                              type:
                                                type: string
                                                x-class-name: CustomMonthlyFilterType
                                                x-interface-name-ts: CustomMonthlyFilterType
                                                enum:
                                                  - MONTHLY
                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                              nestingType:
                                                x-class-name: CustomMonthlyFilterNestingType
                                                type: string
                                                enum:
                                                  - IN_PLACE
                                              rules:
                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                oneOf:
                                                  - type: object
                                                    title: Days of the week
                                                    x-class-name: WeekDateRule
                                                    x-interface-name-ts: WeekDateRule
                                                    properties:
                                                      type:
                                                        type: string
                                                        x-class-name: WeekDateRuleType
                                                        x-interface-name-ts: WeekDateRuleType
                                                        enum:
                                                          - WEEK
                                                        description: Weekly filters limit the scope to days in a week
                                                      weeks:
                                                        type: array
                                                        description: Weeks of the month included in the pattern
                                                        items:
                                                          type: object
                                                          properties:
                                                            week:
                                                              type: integer
                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                            days:
                                                              type: array
                                                              description: Days included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                          required:
                                                            - days
                                                            - type
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, weeks are counted from the end of the month.

                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                    required:
                                                      - type
                                                      - weeks
                                                  - type: object
                                                    title: Days of the month
                                                    x-class-name: MonthDateRule
                                                    x-interface-name-ts: MonthDateRule
                                                    properties:
                                                      type:
                                                        description: Rules for days of the month
                                                        type: string
                                                        x-class-name: MonthDateRuleType
                                                        x-interface-name-ts: MonthDateRuleType
                                                        enum:
                                                          - MONTH
                                                      days:
                                                        type: array
                                                        description: Days of the month included in the pattern.
                                                        items:
                                                          type: object
                                                          properties:
                                                            day:
                                                              type: integer
                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                            from:
                                                              type: string
                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            to:
                                                              type: string
                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                            mode:
                                                              type: string
                                                              enum:
                                                                - Range
                                                                - Hour
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                          required:
                                                            - day
                                                            - from
                                                            - inverted
                                                            - to
                                                      inverted:
                                                        type: boolean
                                                        default: false
                                                        description: |
                                                          When set to `true`, days are counted from the end of the month.

                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                    required:
                                                      - days
                                                      - type
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                            required:
                                              - nestingType
                                              - rules
                                              - type
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                    required:
                                      - duration
                                      - offset
                                      - type
                            required:
                              - type
                              - logic
                              - value
                      attribute:
                        description: A profile attribute to analyze
                        discriminator:
                          propertyName: type
                          mapping:
                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - PARAM
                              param:
                                description: Name of the parameter
                                type: string
                            required:
                              - type
                              - param
                          - type: object
                            description: Reference to a tag
                            properties:
                              type:
                                type: string
                                enum:
                                  - TAG
                              tag:
                                description: Name of the tag
                                type: string
                            required:
                              - type
                              - tag
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - AGGREGATE
                              uuid:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - uuid
                              - id
                          - type: object
                            description: Reference to a segmentation
                            properties:
                              type:
                                type: string
                                enum:
                                  - SEGMENTATION
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - id
                          - type: object
                            description: Pointer to an expression
                            properties:
                              type:
                                type: string
                                enum:
                                  - EXPRESSION
                              id:
                                type: string
                                format: uuid
                                description: |
                                  UUID of the analysis
                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                            required:
                              - type
                              - id
                          - type: object
                            description: Reference to a special parameter
                            properties:
                              type:
                                type: string
                                enum:
                                  - SPECIAL
                              special:
                                type: string
                                description: The name of the special parameter
                            required:
                              - type
                              - special
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - EMPTY
                            required:
                              - type
              required:
                - expressions
        - type: object
          title: Funnel
          properties:
            type:
              description: Tests against a funnel
              x-class-name: FunnelFilterExpressionContentType
              type: string
              enum:
                - FUNNEL
            matching:
              type: boolean
              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
              default: true
            funnel:
              type: object
              description: Funnel conditions
              properties:
                title:
                  type: string
                  description: Title of the funnel.
                completedWithin:
                  type: object
                  description: |
                    Time constraint for completing all the steps in the funnel. Timer starts
                    when the first step is triggered.

                    - `period` sets the time unit
                    - `value` sets the number of time units
                  properties:
                    period:
                      type: string
                      x-class-name: TimePeriod
                      x-interface-name-ts: TimePeriod
                      description: The unit of time
                      enum:
                        - YEARS
                        - MONTHS
                        - WEEKS
                        - DAYS
                        - HOURS
                        - MINUTES
                        - SECONDS
                        - UNKNOWN
                    value:
                      description: The number of time units
                      type: number
                      format: int64
                dateFilter:
                  description: |
                    Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                    An absolute date filter lets you define static dates and times that always apply to the analysis.

                    A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                  discriminator:
                    propertyName: type
                    mapping:
                      ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                      RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                  oneOf:
                    - type: object
                      title: AbsoluteDateFilter
                      properties:
                        type:
                          title: AbsoluteDateFilterType
                          x-class-name: AbsoluteDateFilterType
                          x-interface-name-ts: AbsoluteDateFilterType
                          type: string
                          enum:
                            - ABSOLUTE
                          description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                        from:
                          type: string
                          format: date-time
                          description: The lower boundary of the date filter.
                        to:
                          type: string
                          format: date-time
                          description: The upper boundary of the date filter. Must be later than `from`.
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - type
                    - type: object
                      title: RelativeDateFilter
                      properties:
                        type:
                          title: RelativeDateFilterType
                          x-class-name: RelativeDateFilterType
                          x-interface-name-ts: RelativeDateFilterType
                          type: string
                          enum:
                            - RELATIVE
                          description: |
                            Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                            - `duration` is the length of time that the filter covers.
                            - `offset` is the time that the filter goes back to set the beginning of the duration.
                        duration:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        offset:
                          type: object
                          description: The definition of a length of time.
                          properties:
                            type:
                              type: string
                              x-class-name: TimePeriod
                              x-interface-name-ts: TimePeriod
                              description: The unit of time
                              enum:
                                - YEARS
                                - MONTHS
                                - WEEKS
                                - DAYS
                                - HOURS
                                - MINUTES
                                - SECONDS
                                - UNKNOWN
                            value:
                              type: integer
                              description: The number of time units
                              format: int64
                          required:
                            - type
                            - value
                        filter:
                          description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                          oneOf:
                            - type: object
                              title: Daily
                              x-class-name: CustomDailyFilter
                              x-interface-name-ts: CustomDailyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomDailyFilterType
                                  x-interface-name-ts: CustomDailyFilterType
                                  enum:
                                    - DAILY
                                  description: Daily filters limit the data scope to a range of hours every day.
                                nestingType:
                                  x-class-name: CustomDailyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                from:
                                  type: string
                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                to:
                                  type: string
                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                inverted:
                                  type: boolean
                                  default: false
                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                              required:
                                - nestingType
                                - type
                                - from
                                - to
                            - type: object
                              title: Weekly
                              x-class-name: CustomWeeklyFilter
                              x-interface-name-ts: CustomWeeklyFilter
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomWeeklyFilterType
                                  x-interface-name-ts: CustomWeeklyFilterType
                                  enum:
                                    - WEEKLY
                                  description: Weekly filters let you define separate rules for each day of the week.
                                nestingType:
                                  x-class-name: CustomWeeklyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                days:
                                  type: array
                                  description: An array of rules for different days of the week.
                                  items:
                                    type: object
                                    properties:
                                      day:
                                        type: integer
                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                      from:
                                        type: string
                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                      to:
                                        type: string
                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                      mode:
                                        type: string
                                        enum:
                                          - Range
                                          - Hour
                                      inverted:
                                        type: boolean
                                        default: false
                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                    required:
                                      - day
                                      - from
                                      - inverted
                                      - to
                              required:
                                - days
                                - nestingType
                                - type
                            - type: object
                              title: Monthly
                              x-class-name: CustomMonthlyFilterType
                              x-interface-name-ts: CustomMonthlyFilterType
                              properties:
                                type:
                                  type: string
                                  x-class-name: CustomMonthlyFilterType
                                  x-interface-name-ts: CustomMonthlyFilterType
                                  enum:
                                    - MONTHLY
                                  description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                nestingType:
                                  x-class-name: CustomMonthlyFilterNestingType
                                  type: string
                                  enum:
                                    - IN_PLACE
                                rules:
                                  description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                  oneOf:
                                    - type: object
                                      title: Days of the week
                                      x-class-name: WeekDateRule
                                      x-interface-name-ts: WeekDateRule
                                      properties:
                                        type:
                                          type: string
                                          x-class-name: WeekDateRuleType
                                          x-interface-name-ts: WeekDateRuleType
                                          enum:
                                            - WEEK
                                          description: Weekly filters limit the scope to days in a week
                                        weeks:
                                          type: array
                                          description: Weeks of the month included in the pattern
                                          items:
                                            type: object
                                            properties:
                                              week:
                                                type: integer
                                                description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                              days:
                                                type: array
                                                description: Days included in the pattern
                                                items:
                                                  type: object
                                                  properties:
                                                    day:
                                                      type: integer
                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    mode:
                                                      type: string
                                                      enum:
                                                        - Range
                                                        - Hour
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - day
                                                    - from
                                                    - inverted
                                                    - to
                                            required:
                                              - days
                                              - type
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, weeks are counted from the end of the month.

                                            For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                      required:
                                        - type
                                        - weeks
                                    - type: object
                                      title: Days of the month
                                      x-class-name: MonthDateRule
                                      x-interface-name-ts: MonthDateRule
                                      properties:
                                        type:
                                          description: Rules for days of the month
                                          type: string
                                          x-class-name: MonthDateRuleType
                                          x-interface-name-ts: MonthDateRuleType
                                          enum:
                                            - MONTH
                                        days:
                                          type: array
                                          description: Days of the month included in the pattern.
                                          items:
                                            type: object
                                            properties:
                                              day:
                                                type: integer
                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                              from:
                                                type: string
                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                              to:
                                                type: string
                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                              mode:
                                                type: string
                                                enum:
                                                  - Range
                                                  - Hour
                                              inverted:
                                                type: boolean
                                                default: false
                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                            required:
                                              - day
                                              - from
                                              - inverted
                                              - to
                                        inverted:
                                          type: boolean
                                          default: false
                                          description: |
                                            When set to `true`, days are counted from the end of the month.

                                            For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                            **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                      required:
                                        - days
                                        - type
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      WEEK: "#/components/schemas/analytics-WeekDateRule"
                                      MONTH: "#/components/schemas/analytics-MonthDateRule"
                              required:
                                - nestingType
                                - rules
                                - type
                          discriminator:
                            propertyName: type
                            mapping:
                              DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                              WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                              MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                      required:
                        - duration
                        - offset
                        - type
                steps:
                  type: array
                  minItems: 0
                  description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                  items:
                    type: object
                    properties:
                      title:
                        type: string
                        description: The name of the step
                      action:
                        type: object
                        description: The analyzed event
                        nullable: true
                        required:
                          - name
                        properties:
                          id:
                            type: integer
                            format: int64
                            deprecated: true
                            nullable: true
                            description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                          name:
                            type: string
                            description: Action name of the event.
                            example: page.visit
                      expressions:
                        type: array
                        description: An array of conditions that the event must meet
                        items:
                          type: object
                          description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                          properties:
                            constraint:
                              description: |
                                This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                              discriminator:
                                propertyName: type
                                mapping:
                                  BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                  STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                  STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                  NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                  NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                  STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                  ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                  "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                  DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                  DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                  DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                  DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                              oneOf:
                                - type: object
                                  title: Boolean
                                  properties:
                                    type:
                                      x-class-name: BoolConstraintType
                                      type: string
                                      enum:
                                        - BOOL
                                      description: Tests a boolean value
                                    logic:
                                      x-class-name: BoolConstraintLogic
                                      type: string
                                      description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                      enum:
                                        - IS_TRUE
                                        - IS_FALSE
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: Check empty
                                  description: This type is used to check if a string is empty.
                                  properties:
                                    type:
                                      title: String zero
                                      x-class-name: StringZeroConstraintType
                                      type: string
                                      description: This type is used to check if a string is empty.
                                      enum:
                                        - STRING_ZERO
                                    logic:
                                      x-class-name: StringZeroConstraintLogic
                                      type: string
                                      description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                      enum:
                                        - IS_EMPTY
                                        - IS_NOT_EMPTY
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: String
                                  properties:
                                    type:
                                      x-class-name: StringOneConstraintType
                                      type: string
                                      enum:
                                        - STRING_ONE
                                      description: This type is used to test values that are a single string.
                                    logic:
                                      x-class-name: StringOneConstraintLogic
                                      type: string
                                      description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                      enum:
                                        - CONTAIN
                                        - NOT_CONTAIN
                                        - EQUAL
                                        - NOT_EQUAL
                                        - STARTS_WITH
                                        - REGEXP
                                        - ENDS_WITH
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Number
                                  properties:
                                    type:
                                      x-class-name: NumberOneConstraintType
                                      type: string
                                      enum:
                                        - NUMBER_ONE
                                      description: This type is used to test values that are a single number
                                    logic:
                                      x-class-name: NumberOneConstraintLogic
                                      type: string
                                      description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                      enum:
                                        - EQUAL
                                        - NOT_EQUAL
                                        - LESS
                                        - MORE
                                        - MORE_OR_EQUAL
                                        - LESS_OR_EQUAL
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Two numbers
                                  properties:
                                    type:
                                      x-class-name: NumberTwoConstraintType
                                      type: string
                                      enum:
                                        - NUMBER_TWO
                                      description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                    logic:
                                      description: Checks if the attribute is between two numbers.
                                      x-class-name: NumberTwoConstraintLogic
                                      type: string
                                      enum:
                                        - BETWEEN
                                    value1:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                    value2:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value1
                                    - value2
                                - type: object
                                  title: Check if string in array
                                  properties:
                                    type:
                                      x-class-name: StringArrayConstraintType
                                      type: string
                                      enum:
                                        - STRING_ARRAY
                                      description: This type is used to check if a string exists in an array defined in `value`
                                    logic:
                                      type: string
                                      x-class-name: StringArrayConstraintLogic
                                      description: You can check if the value from `attribute` is in the array defined in `value`
                                      enum:
                                        - IN
                                        - NOT_IN
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Other string array tests
                                  properties:
                                    type:
                                      x-class-name: ArrayStringOneConstraintType
                                      type: string
                                      enum:
                                        - ARRAY_STRING_ONE_DEPRECATED
                                      description: "`value` should be an array"
                                    logic:
                                      x-class-name: ArrayStringOneConstraintLogic
                                      type: string
                                      description: |
                                        - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                        - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                        - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                        - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                      enum:
                                        - CONTAIN
                                        - NOT_CONTAIN
                                        - EQUAL
                                        - NOT_EQUAL
                                        - STARTS_WITH
                                        - REGEXP
                                        - ENDS_WITH
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - type: object
                                  title: Check if null
                                  properties:
                                    type:
                                      x-class-name: NullConstraintType
                                      description: This type is used to check if a value is null
                                      type: string
                                      enum:
                                        - "NULL"
                                    logic:
                                      x-class-name: NullConstraintLogic
                                      type: string
                                      description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                      enum:
                                        - IS_NULL
                                        - IS_NOT_NULL
                                  required:
                                    - type
                                    - logic
                                - type: object
                                  title: Current date
                                  properties:
                                    type:
                                      x-class-name: DateZeroConstraintType
                                      type: string
                                      enum:
                                        - DATE_ZERO
                                      description: Compare a date from `attribute` to the current date
                                    logic:
                                      x-class-name: LogicZeroConstraintLogic
                                      type: string
                                      enum:
                                        - MATCHES_CURRENT_DAY
                                        - MATCHES_CURRENT_HOUR
                                        - MATCHES_CURRENT_MONTH
                                        - MATCHES_CURRENT_YEAR
                                      description: Logic to apply to the date from `attribute`
                                  required:
                                    - type
                                    - logic
                                - description: This type is used to check `attribute` against a date.
                                  type: object
                                  title: Date
                                  properties:
                                    type:
                                      x-class-name: DateOneConstraintType
                                      type: string
                                      description: This type is used to check `attribute` against a date.
                                      enum:
                                        - DATE_ONE
                                    logic:
                                      x-class-name: DateOneConstraintLogic
                                      type: string
                                      description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                      enum:
                                        - LESS
                                        - MORE
                                        - LESS_OR_EQUAL
                                        - MORE_OR_EQUAL
                                    value:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value
                                - description: This type is used to check if a date is between two other dates.
                                  type: object
                                  title: Date range
                                  properties:
                                    type:
                                      x-class-name: DateTwoConstraintType
                                      type: string
                                      description: This type is used to check if a date is between two other dates.
                                      enum:
                                        - DATE_TWO
                                    logic:
                                      x-class-name: DateTwoConstraintLogic
                                      type: string
                                      description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                      enum:
                                        - BETWEEN
                                    value1:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                    value2:
                                      description: The value to test `attribute` against.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                          EVENT: "#/components/schemas/analytics-EventParameter"
                                          CLIENT: "#/components/schemas/analytics-ClientParameter"
                                          VARIABLE: "#/components/schemas/analytics-VariableValue"
                                      oneOf:
                                        - type: object
                                          title: Static value
                                          description: Inserts a static value.
                                          properties:
                                            type:
                                              x-class-name: ConstantValueType
                                              type: string
                                              description: Inserts a static value.
                                              enum:
                                                - CONSTANT
                                            constant:
                                              description: |
                                                The value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                              oneOf:
                                                - type: string
                                                  maxLength: 21000
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  maxItems: 65000
                                                  items:
                                                    type: string
                                                    maxLength: 21000
                                          required:
                                            - type
                                            - constant
                                        - type: object
                                          title: Event parameter
                                          description: Inserts an event parameter value
                                          properties:
                                            type:
                                              x-class-name: EventParameterType
                                              description: Inserts an event parameter value
                                              type: string
                                              enum:
                                                - EVENT
                                            attribute:
                                              description: An event attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                              oneOf:
                                                - type: object
                                                  title: Event parameter
                                                  properties:
                                                    type:
                                                      x-class-name: ParamEventAttributeType
                                                      enum:
                                                        - PARAM
                                                      description: This `type` refers to parameters in an event.
                                                    param:
                                                      type: string
                                                      description: Name of the parameter
                                                  required:
                                                    - type
                                                - type: object
                                                  title: Event aggregate
                                                  properties:
                                                    type:
                                                      x-class-name: RunningAggregateEventAttributeType
                                                      type: string
                                                      enum:
                                                        - RUNNING_AGGREGATE
                                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the event aggregate
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Expression
                                                  properties:
                                                    type:
                                                      x-class-name: ExpressionEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                      description: This type refers to expressions. You must provide the ID of the expression.
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: ID of the expression
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  title: Special property
                                                  properties:
                                                    type:
                                                      x-class-name: SpecialEventAttributeType
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                      description: This type lets you access special properties of an event.
                                                    special:
                                                      type: string
                                                      description: The type of special attribute you want to use
                                                      enum:
                                                        - TIMESTAMP
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  title: No attribute
                                                  properties:
                                                    type:
                                                      x-class-name: EmptyEventAttributeType
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Profile attribute
                                          properties:
                                            type:
                                              description: References a profile attribute, including analyses.
                                              x-class-name: ClientEventValueType
                                              type: string
                                              enum:
                                                - CLIENT
                                            attribute:
                                              description: A profile attribute to analyze
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                  TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                  AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                  SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                  EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                  SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                  EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                              oneOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - PARAM
                                                    param:
                                                      description: Name of the parameter
                                                      type: string
                                                  required:
                                                    - type
                                                    - param
                                                - type: object
                                                  description: Reference to a tag
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - TAG
                                                    tag:
                                                      description: Name of the tag
                                                      type: string
                                                  required:
                                                    - type
                                                    - tag
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - AGGREGATE
                                                    uuid:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - uuid
                                                    - id
                                                - type: object
                                                  description: Reference to a segmentation
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SEGMENTATION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Pointer to an expression
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EXPRESSION
                                                    id:
                                                      type: string
                                                      format: uuid
                                                      description: |
                                                        UUID of the analysis
                                                      example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                  required:
                                                    - type
                                                    - id
                                                - type: object
                                                  description: Reference to a special parameter
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - SPECIAL
                                                    special:
                                                      type: string
                                                      description: The name of the special parameter
                                                  required:
                                                    - type
                                                    - special
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - EMPTY
                                                  required:
                                                    - type
                                          required:
                                            - type
                                            - attribute
                                        - type: object
                                          title: Dynamic value
                                          properties:
                                            type:
                                              x-class-name: VariableValueType
                                              type: string
                                              enum:
                                                - VARIABLE
                                              description: |
                                                This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                The variable value can't:
                                                  - be longer than 21000 characters if it's a string
                                                  - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                            name:
                                              type: string
                                              description: The name of the dynamic key
                                            defaultValue:
                                              type: string
                                              maxLength: 21000
                                              description: The default value to use
                                          required:
                                            - type
                                            - name
                                            - defaultValue
                                  required:
                                    - type
                                    - logic
                                    - value1
                                    - value2
                                - description: This type is used to check if a date matches a date filter.
                                  type: object
                                  title: Date filter
                                  properties:
                                    type:
                                      x-class-name: DateFilterConstraintType
                                      type: string
                                      description: This type is used to check if a date matches a date filter.
                                      enum:
                                        - DATE_FILTER
                                    logic:
                                      x-class-name: DateFilterConstraintLogic
                                      type: string
                                      enum:
                                        - DATE_FILTER
                                      description: Checks if the date from `attribute` matches a date filter.
                                    value:
                                      description: |
                                        Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                        An absolute date filter lets you define static dates and times that always apply to the analysis.

                                        A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                      discriminator:
                                        propertyName: type
                                        mapping:
                                          ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                          RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                      oneOf:
                                        - type: object
                                          title: AbsoluteDateFilter
                                          properties:
                                            type:
                                              title: AbsoluteDateFilterType
                                              x-class-name: AbsoluteDateFilterType
                                              x-interface-name-ts: AbsoluteDateFilterType
                                              type: string
                                              enum:
                                                - ABSOLUTE
                                              description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                            from:
                                              type: string
                                              format: date-time
                                              description: The lower boundary of the date filter.
                                            to:
                                              type: string
                                              format: date-time
                                              description: The upper boundary of the date filter. Must be later than `from`.
                                            filter:
                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                              oneOf:
                                                - type: object
                                                  title: Daily
                                                  x-class-name: CustomDailyFilter
                                                  x-interface-name-ts: CustomDailyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomDailyFilterType
                                                      x-interface-name-ts: CustomDailyFilterType
                                                      enum:
                                                        - DAILY
                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                    nestingType:
                                                      x-class-name: CustomDailyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - nestingType
                                                    - type
                                                    - from
                                                    - to
                                                - type: object
                                                  title: Weekly
                                                  x-class-name: CustomWeeklyFilter
                                                  x-interface-name-ts: CustomWeeklyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomWeeklyFilterType
                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                      enum:
                                                        - WEEKLY
                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                    nestingType:
                                                      x-class-name: CustomWeeklyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    days:
                                                      type: array
                                                      description: An array of rules for different days of the week.
                                                      items:
                                                        type: object
                                                        properties:
                                                          day:
                                                            type: integer
                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          mode:
                                                            type: string
                                                            enum:
                                                              - Range
                                                              - Hour
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - day
                                                          - from
                                                          - inverted
                                                          - to
                                                  required:
                                                    - days
                                                    - nestingType
                                                    - type
                                                - type: object
                                                  title: Monthly
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      enum:
                                                        - MONTHLY
                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                    nestingType:
                                                      x-class-name: CustomMonthlyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    rules:
                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                      oneOf:
                                                        - type: object
                                                          title: Days of the week
                                                          x-class-name: WeekDateRule
                                                          x-interface-name-ts: WeekDateRule
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: WeekDateRuleType
                                                              x-interface-name-ts: WeekDateRuleType
                                                              enum:
                                                                - WEEK
                                                              description: Weekly filters limit the scope to days in a week
                                                            weeks:
                                                              type: array
                                                              description: Weeks of the month included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  week:
                                                                    type: integer
                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                  days:
                                                                    type: array
                                                                    description: Days included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                required:
                                                                  - days
                                                                  - type
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, weeks are counted from the end of the month.

                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                          required:
                                                            - type
                                                            - weeks
                                                        - type: object
                                                          title: Days of the month
                                                          x-class-name: MonthDateRule
                                                          x-interface-name-ts: MonthDateRule
                                                          properties:
                                                            type:
                                                              description: Rules for days of the month
                                                              type: string
                                                              x-class-name: MonthDateRuleType
                                                              x-interface-name-ts: MonthDateRuleType
                                                              enum:
                                                                - MONTH
                                                            days:
                                                              type: array
                                                              description: Days of the month included in the pattern.
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, days are counted from the end of the month.

                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                          required:
                                                            - days
                                                            - type
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                  required:
                                                    - nestingType
                                                    - rules
                                                    - type
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                          required:
                                            - type
                                        - type: object
                                          title: RelativeDateFilter
                                          properties:
                                            type:
                                              title: RelativeDateFilterType
                                              x-class-name: RelativeDateFilterType
                                              x-interface-name-ts: RelativeDateFilterType
                                              type: string
                                              enum:
                                                - RELATIVE
                                              description: |
                                                Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                - `duration` is the length of time that the filter covers.
                                                - `offset` is the time that the filter goes back to set the beginning of the duration.
                                            duration:
                                              type: object
                                              description: The definition of a length of time.
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: TimePeriod
                                                  x-interface-name-ts: TimePeriod
                                                  description: The unit of time
                                                  enum:
                                                    - YEARS
                                                    - MONTHS
                                                    - WEEKS
                                                    - DAYS
                                                    - HOURS
                                                    - MINUTES
                                                    - SECONDS
                                                    - UNKNOWN
                                                value:
                                                  type: integer
                                                  description: The number of time units
                                                  format: int64
                                              required:
                                                - type
                                                - value
                                            offset:
                                              type: object
                                              description: The definition of a length of time.
                                              properties:
                                                type:
                                                  type: string
                                                  x-class-name: TimePeriod
                                                  x-interface-name-ts: TimePeriod
                                                  description: The unit of time
                                                  enum:
                                                    - YEARS
                                                    - MONTHS
                                                    - WEEKS
                                                    - DAYS
                                                    - HOURS
                                                    - MINUTES
                                                    - SECONDS
                                                    - UNKNOWN
                                                value:
                                                  type: integer
                                                  description: The number of time units
                                                  format: int64
                                              required:
                                                - type
                                                - value
                                            filter:
                                              description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                              oneOf:
                                                - type: object
                                                  title: Daily
                                                  x-class-name: CustomDailyFilter
                                                  x-interface-name-ts: CustomDailyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomDailyFilterType
                                                      x-interface-name-ts: CustomDailyFilterType
                                                      enum:
                                                        - DAILY
                                                      description: Daily filters limit the data scope to a range of hours every day.
                                                    nestingType:
                                                      x-class-name: CustomDailyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    from:
                                                      type: string
                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    to:
                                                      type: string
                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                    inverted:
                                                      type: boolean
                                                      default: false
                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                  required:
                                                    - nestingType
                                                    - type
                                                    - from
                                                    - to
                                                - type: object
                                                  title: Weekly
                                                  x-class-name: CustomWeeklyFilter
                                                  x-interface-name-ts: CustomWeeklyFilter
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomWeeklyFilterType
                                                      x-interface-name-ts: CustomWeeklyFilterType
                                                      enum:
                                                        - WEEKLY
                                                      description: Weekly filters let you define separate rules for each day of the week.
                                                    nestingType:
                                                      x-class-name: CustomWeeklyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    days:
                                                      type: array
                                                      description: An array of rules for different days of the week.
                                                      items:
                                                        type: object
                                                        properties:
                                                          day:
                                                            type: integer
                                                            description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                          from:
                                                            type: string
                                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          to:
                                                            type: string
                                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                          mode:
                                                            type: string
                                                            enum:
                                                              - Range
                                                              - Hour
                                                          inverted:
                                                            type: boolean
                                                            default: false
                                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                        required:
                                                          - day
                                                          - from
                                                          - inverted
                                                          - to
                                                  required:
                                                    - days
                                                    - nestingType
                                                    - type
                                                - type: object
                                                  title: Monthly
                                                  x-class-name: CustomMonthlyFilterType
                                                  x-interface-name-ts: CustomMonthlyFilterType
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      enum:
                                                        - MONTHLY
                                                      description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                    nestingType:
                                                      x-class-name: CustomMonthlyFilterNestingType
                                                      type: string
                                                      enum:
                                                        - IN_PLACE
                                                    rules:
                                                      description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                      oneOf:
                                                        - type: object
                                                          title: Days of the week
                                                          x-class-name: WeekDateRule
                                                          x-interface-name-ts: WeekDateRule
                                                          properties:
                                                            type:
                                                              type: string
                                                              x-class-name: WeekDateRuleType
                                                              x-interface-name-ts: WeekDateRuleType
                                                              enum:
                                                                - WEEK
                                                              description: Weekly filters limit the scope to days in a week
                                                            weeks:
                                                              type: array
                                                              description: Weeks of the month included in the pattern
                                                              items:
                                                                type: object
                                                                properties:
                                                                  week:
                                                                    type: integer
                                                                    description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                  days:
                                                                    type: array
                                                                    description: Days included in the pattern
                                                                    items:
                                                                      type: object
                                                                      properties:
                                                                        day:
                                                                          type: integer
                                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                        from:
                                                                          type: string
                                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        to:
                                                                          type: string
                                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                        mode:
                                                                          type: string
                                                                          enum:
                                                                            - Range
                                                                            - Hour
                                                                        inverted:
                                                                          type: boolean
                                                                          default: false
                                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                      required:
                                                                        - day
                                                                        - from
                                                                        - inverted
                                                                        - to
                                                                required:
                                                                  - days
                                                                  - type
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, weeks are counted from the end of the month.

                                                                For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                          required:
                                                            - type
                                                            - weeks
                                                        - type: object
                                                          title: Days of the month
                                                          x-class-name: MonthDateRule
                                                          x-interface-name-ts: MonthDateRule
                                                          properties:
                                                            type:
                                                              description: Rules for days of the month
                                                              type: string
                                                              x-class-name: MonthDateRuleType
                                                              x-interface-name-ts: MonthDateRuleType
                                                              enum:
                                                                - MONTH
                                                            days:
                                                              type: array
                                                              description: Days of the month included in the pattern.
                                                              items:
                                                                type: object
                                                                properties:
                                                                  day:
                                                                    type: integer
                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                  from:
                                                                    type: string
                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  to:
                                                                    type: string
                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                  mode:
                                                                    type: string
                                                                    enum:
                                                                      - Range
                                                                      - Hour
                                                                  inverted:
                                                                    type: boolean
                                                                    default: false
                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                required:
                                                                  - day
                                                                  - from
                                                                  - inverted
                                                                  - to
                                                            inverted:
                                                              type: boolean
                                                              default: false
                                                              description: |
                                                                When set to `true`, days are counted from the end of the month.

                                                                For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                          required:
                                                            - days
                                                            - type
                                                      discriminator:
                                                        propertyName: type
                                                        mapping:
                                                          WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                          MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                  required:
                                                    - nestingType
                                                    - rules
                                                    - type
                                              discriminator:
                                                propertyName: type
                                                mapping:
                                                  DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                  WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                  MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                          required:
                                            - duration
                                            - offset
                                            - type
                                  required:
                                    - type
                                    - logic
                                    - value
                            attribute:
                              description: An event attribute to analyze
                              discriminator:
                                propertyName: type
                                mapping:
                                  PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                  RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                  EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                  SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                  EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                              oneOf:
                                - type: object
                                  title: Event parameter
                                  properties:
                                    type:
                                      x-class-name: ParamEventAttributeType
                                      enum:
                                        - PARAM
                                      description: This `type` refers to parameters in an event.
                                    param:
                                      type: string
                                      description: Name of the parameter
                                  required:
                                    - type
                                - type: object
                                  title: Event aggregate
                                  properties:
                                    type:
                                      x-class-name: RunningAggregateEventAttributeType
                                      type: string
                                      enum:
                                        - RUNNING_AGGREGATE
                                      description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                    id:
                                      type: string
                                      format: uuid
                                      description: ID of the event aggregate
                                  required:
                                    - type
                                    - id
                                - type: object
                                  title: Expression
                                  properties:
                                    type:
                                      x-class-name: ExpressionEventAttributeType
                                      type: string
                                      enum:
                                        - EXPRESSION
                                      description: This type refers to expressions. You must provide the ID of the expression.
                                    id:
                                      type: string
                                      format: uuid
                                      description: ID of the expression
                                  required:
                                    - type
                                    - id
                                - type: object
                                  title: Special property
                                  properties:
                                    type:
                                      x-class-name: SpecialEventAttributeType
                                      type: string
                                      enum:
                                        - SPECIAL
                                      description: This type lets you access special properties of an event.
                                    special:
                                      type: string
                                      description: The type of special attribute you want to use
                                      enum:
                                        - TIMESTAMP
                                  required:
                                    - type
                                    - special
                                - type: object
                                  title: No attribute
                                  properties:
                                    type:
                                      x-class-name: EmptyEventAttributeType
                                      type: string
                                      enum:
                                        - EMPTY
                                      description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                  required:
                                    - type
                          required:
                            - constrain
                            - attribute
                    required:
                      - action
                      - title
                      - expressions
                exact:
                  type: boolean
                  default: false
                  description: |
                    When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
              required:
                - title
                - steps
        - description: Definition of a profile filter
          type: object
          properties:
            type:
              x-class-name: ExpressionFilterExpressionContentType
              type: string
              enum:
                - EXPRESSION
            name:
              type: string
            matching:
              type: boolean
              description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
              default: true
            expressions:
              description: Profile filter details. The expressions are applied according to their position in the array. The logical AND/OR operator must be placed between expressions. An empty array means no filters are applied.
              type: array
              items:
                discriminator:
                  propertyName: type
                  mapping:
                    ATTRIBUTE: "#/components/schemas/analytics-AttributeFilterBox"
                    EXPRESSION: "#/components/schemas/analytics-ExpressionFilterBox"
                    FUNNEL: "#/components/schemas/analytics-FunnelFilterBox"
                    OPERATOR: "#/components/schemas/analytics-OperatorFilterBox"
                oneOf:
                  - type: object
                    properties:
                      type:
                        x-class-name: AttributeFilterBoxType
                        type: string
                        enum:
                          - ATTRIBUTE
                        description: Tests a profile attribute against a condition
                      name:
                        type: string
                        description: Name of the resource
                      matching:
                        type: boolean
                        description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                        default: true
                      attribute:
                        type: object
                        description: The condition to test a profile attribute
                        properties:
                          expressions:
                            type: array
                            description: An array of conditions. All conditions must be met.
                            items:
                              type: object
                              properties:
                                constraint:
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      BOOL: "#/components/schemas/analytics-BoolConstraintClientConstraint"
                                      STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintClientConstraint"
                                      STRING_ONE: "#/components/schemas/analytics-StringOneConstraintClientConstraint"
                                      NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintClientConstraint"
                                      NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintClientConstraint"
                                      STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintClientConstraint"
                                      ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintClientConstraint"
                                      "NULL": "#/components/schemas/analytics-NullConstraintClientConstraint"
                                      DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintClientConstraint"
                                      DATE_ONE: "#/components/schemas/analytics-DateOneConstraintClientConstraint"
                                      DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintClientConstraint"
                                      DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintClientConstraint"
                                  oneOf:
                                    - type: object
                                      title: Boolean
                                      properties:
                                        type:
                                          x-class-name: BoolClientConstraintType
                                          type: string
                                          enum:
                                            - BOOL
                                          description: Tests a boolean value
                                        logic:
                                          description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                          x-class-name: BoolClientConstraintLogic
                                          type: string
                                          enum:
                                            - IS_TRUE
                                            - IS_FALSE
                                      required:
                                        - type
                                        - logic
                                    - type: object
                                      title: Check empty
                                      description: This type is used to check if a string is empty.
                                      properties:
                                        type:
                                          x-class-name: StringZeroClientConstraintType
                                          type: string
                                          description: This type is used to check if a string is empty.
                                          enum:
                                            - STRING_ZERO
                                        logic:
                                          description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                          x-class-name: StringZeroClientConstraintLogic
                                          type: string
                                          enum:
                                            - IS_EMPTY
                                            - IS_NOT_EMPTY
                                      required:
                                        - type
                                        - logic
                                    - type: object
                                      title: String
                                      properties:
                                        type:
                                          description: This type is used to test values that are a single string.
                                          x-class-name: StringOneClientConstraintType
                                          type: string
                                          enum:
                                            - STRING_ONE
                                        logic:
                                          description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                          x-class-name: StringOneClientConstraintLogic
                                          type: string
                                          enum:
                                            - CONTAIN
                                            - NOT_CONTAIN
                                            - EQUAL
                                            - NOT_EQUAL
                                            - STARTS_WITH
                                            - REGEXP
                                            - ENDS_WITH
                                        value:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value
                                    - type: object
                                      title: Number
                                      properties:
                                        type:
                                          description: This type is used to test values that are a single number
                                          x-class-name: NumberOneClientConstraintType
                                          type: string
                                          enum:
                                            - NUMBER_ONE
                                        logic:
                                          description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                          x-class-name: NumberOneClientConstraintLogic
                                          type: string
                                          enum:
                                            - EQUAL
                                            - NOT_EQUAL
                                            - LESS
                                            - MORE
                                            - MORE_OR_EQUAL
                                            - LESS_OR_EQUAL
                                        value:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value
                                    - type: object
                                      title: Two numbers
                                      properties:
                                        type:
                                          description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                          x-class-name: NumberTwoClientConstraintType
                                          type: string
                                          enum:
                                            - NUMBER_TWO
                                        logic:
                                          description: Checks if the attribute is between two numbers.
                                          x-class-name: NumberTwoClientConstraintLogic
                                          type: string
                                          enum:
                                            - BETWEEN
                                        value1:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                        value2:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value1
                                        - value2
                                    - type: object
                                      title: Check if string in array
                                      properties:
                                        type:
                                          description: This type is used to check if a string exists in an array defined in `value`
                                          x-class-name: StringArrayClientConstraintType
                                          type: string
                                          enum:
                                            - STRING_ARRAY
                                        logic:
                                          description: You can check if the value from `attribute` is in the array defined in `value`
                                          x-class-name: StringArrayClientConstraintLogic
                                          type: string
                                          enum:
                                            - IN
                                            - NOT_IN
                                        value:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value
                                    - type: object
                                      title: Other string array tests
                                      properties:
                                        type:
                                          description: "`value` should be an array"
                                          x-class-name: ArrayStringOneClientConstraintType
                                          type: string
                                          enum:
                                            - ARRAY_STRING_ONE_DEPRECATED
                                        logic:
                                          description: "- CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute` - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute` - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute` - REGEXP tests if any item in the array matches the regular expression from `attribute` "
                                          x-class-name: ArrayStringOneClientConstraintLogic
                                          type: string
                                          enum:
                                            - CONTAIN
                                            - NOT_CONTAIN
                                            - EQUAL
                                            - NOT_EQUAL
                                            - STARTS_WITH
                                            - REGEXP
                                            - ENDS_WITH
                                        value:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value
                                    - type: object
                                      title: Check if null
                                      properties:
                                        type:
                                          x-class-name: NullClientConstraintType
                                          type: string
                                          enum:
                                            - "NULL"
                                          description: This type is used to check if a value is null
                                        logic:
                                          description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                          x-class-name: NullClientConstraintLogic
                                          type: string
                                          enum:
                                            - IS_NULL
                                            - IS_NOT_NULL
                                      required:
                                        - type
                                        - logic
                                    - type: object
                                      title: Current date
                                      properties:
                                        type:
                                          description: Compare a date from `attribute` to the current date
                                          x-class-name: DateZeroClientConstraintType
                                          type: string
                                          enum:
                                            - DATE_ZERO
                                        logic:
                                          description: Logic to apply to the date from `attribute`
                                          x-class-name: DateZeroClientConstraintLogic
                                          type: string
                                          enum:
                                            - MATCHES_CURRENT_DAY
                                            - MATCHES_CURRENT_HOUR
                                            - MATCHES_CURRENT_MONTH
                                            - MATCHES_CURRENT_YEAR
                                      required:
                                        - type
                                        - logic
                                    - description: This type is used to check `attribute` against a date.
                                      type: object
                                      title: Date
                                      properties:
                                        type:
                                          x-class-name: DateOneClientConstraintType
                                          type: string
                                          description: This type is used to check `attribute` against a date.
                                          enum:
                                            - DATE_ONE
                                        logic:
                                          description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                          x-class-name: DateOneClientConstraintLogic
                                          type: string
                                          enum:
                                            - LESS
                                            - MORE
                                            - LESS_OR_EQUAL
                                            - MORE_OR_EQUAL
                                        value:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value
                                    - description: This type is used to check if a date is between two other dates.
                                      type: object
                                      title: Date range
                                      properties:
                                        type:
                                          x-class-name: DateTwoClientConstraintType
                                          type: string
                                          description: This type is used to check if a date is between two other dates.
                                          enum:
                                            - DATE_TWO
                                        logic:
                                          description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                          x-class-name: DateTwoClientConstraintLogic
                                          type: string
                                          enum:
                                            - BETWEEN
                                        value1:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                        value2:
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              CONSTANT: "#/components/schemas/analytics-ConstantClientValue"
                                              CLIENT: "#/components/schemas/analytics-ClientAttributeValue"
                                              VARIABLE: "#/components/schemas/analytics-VariableClientValue"
                                          oneOf:
                                            - type: object
                                              title: Static value
                                              description: Inserts a static value.
                                              properties:
                                                type:
                                                  x-class-name: ConstantClientValueType
                                                  type: string
                                                  description: Inserts a static value.
                                                  enum:
                                                    - CONSTANT
                                                constant:
                                                  description: |
                                                    The value can't:
                                                      - be longer than 21000 characters if it's a string
                                                      - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: array
                                                      items:
                                                        type: string
                                              required:
                                                - type
                                                - constant
                                            - type: object
                                              title: Profile attribute
                                              properties:
                                                type:
                                                  x-class-name: ClientClientValueType
                                                  type: string
                                                  enum:
                                                    - CLIENT
                                                  description: Definition of a profile attribute
                                                attribute:
                                                  description: A profile attribute to analyze
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                  oneOf:
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - PARAM
                                                        param:
                                                          description: Name of the parameter
                                                          type: string
                                                      required:
                                                        - type
                                                        - param
                                                    - type: object
                                                      description: Reference to a tag
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - TAG
                                                        tag:
                                                          description: Name of the tag
                                                          type: string
                                                      required:
                                                        - type
                                                        - tag
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - AGGREGATE
                                                        uuid:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - uuid
                                                        - id
                                                    - type: object
                                                      description: Reference to a segmentation
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SEGMENTATION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Pointer to an expression
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EXPRESSION
                                                        id:
                                                          type: string
                                                          format: uuid
                                                          description: |
                                                            UUID of the analysis
                                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                      required:
                                                        - type
                                                        - id
                                                    - type: object
                                                      description: Reference to a special parameter
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - SPECIAL
                                                        special:
                                                          type: string
                                                          description: The name of the special parameter
                                                      required:
                                                        - type
                                                        - special
                                                    - type: object
                                                      properties:
                                                        type:
                                                          type: string
                                                          enum:
                                                            - EMPTY
                                                      required:
                                                        - type
                                              required:
                                                - type
                                                - attribute
                                            - type: object
                                              title: Dynamic value
                                              properties:
                                                type:
                                                  x-class-name: VariableClientValueType
                                                  type: string
                                                  description: This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.
                                                  enum:
                                                    - VARIABLE
                                                name:
                                                  type: string
                                                  description: The name of the dynamic key
                                                defaultValue:
                                                  description: The default value to use
                                                  oneOf:
                                                    - type: string
                                                    - type: number
                                                    - type: array
                                                      items: {}
                                              required:
                                                - type
                                                - name
                                                - defaultValue
                                      required:
                                        - type
                                        - logic
                                        - value1
                                        - value2
                                    - type: object
                                      title: Date filter
                                      description: This type is used to check if a date matches a date filter.
                                      properties:
                                        type:
                                          x-class-name: DateFilterClientConstraintType
                                          type: string
                                          description: This type is used to check if a date matches a date filter.
                                          enum:
                                            - DATE_FILTER
                                        logic:
                                          description: Checks if the date from `attribute` matches a date filter.
                                          x-class-name: DateFilterClientConstraintLogic
                                          type: string
                                          enum:
                                            - DATE_FILTER
                                        value:
                                          description: |
                                            Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                            An absolute date filter lets you define static dates and times that always apply to the analysis.

                                            A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                          discriminator:
                                            propertyName: type
                                            mapping:
                                              ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                              RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                          oneOf:
                                            - type: object
                                              title: AbsoluteDateFilter
                                              properties:
                                                type:
                                                  title: AbsoluteDateFilterType
                                                  x-class-name: AbsoluteDateFilterType
                                                  x-interface-name-ts: AbsoluteDateFilterType
                                                  type: string
                                                  enum:
                                                    - ABSOLUTE
                                                  description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                from:
                                                  type: string
                                                  format: date-time
                                                  description: The lower boundary of the date filter.
                                                to:
                                                  type: string
                                                  format: date-time
                                                  description: The upper boundary of the date filter. Must be later than `from`.
                                                filter:
                                                  description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                  oneOf:
                                                    - type: object
                                                      title: Daily
                                                      x-class-name: CustomDailyFilter
                                                      x-interface-name-ts: CustomDailyFilter
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomDailyFilterType
                                                          x-interface-name-ts: CustomDailyFilterType
                                                          enum:
                                                            - DAILY
                                                          description: Daily filters limit the data scope to a range of hours every day.
                                                        nestingType:
                                                          x-class-name: CustomDailyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - nestingType
                                                        - type
                                                        - from
                                                        - to
                                                    - type: object
                                                      title: Weekly
                                                      x-class-name: CustomWeeklyFilter
                                                      x-interface-name-ts: CustomWeeklyFilter
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomWeeklyFilterType
                                                          x-interface-name-ts: CustomWeeklyFilterType
                                                          enum:
                                                            - WEEKLY
                                                          description: Weekly filters let you define separate rules for each day of the week.
                                                        nestingType:
                                                          x-class-name: CustomWeeklyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        days:
                                                          type: array
                                                          description: An array of rules for different days of the week.
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                      required:
                                                        - days
                                                        - nestingType
                                                        - type
                                                    - type: object
                                                      title: Monthly
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomMonthlyFilterType
                                                          x-interface-name-ts: CustomMonthlyFilterType
                                                          enum:
                                                            - MONTHLY
                                                          description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                        nestingType:
                                                          x-class-name: CustomMonthlyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        rules:
                                                          description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                          oneOf:
                                                            - type: object
                                                              title: Days of the week
                                                              x-class-name: WeekDateRule
                                                              x-interface-name-ts: WeekDateRule
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: WeekDateRuleType
                                                                  x-interface-name-ts: WeekDateRuleType
                                                                  enum:
                                                                    - WEEK
                                                                  description: Weekly filters limit the scope to days in a week
                                                                weeks:
                                                                  type: array
                                                                  description: Weeks of the month included in the pattern
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      week:
                                                                        type: integer
                                                                        description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                      days:
                                                                        type: array
                                                                        description: Days included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                    required:
                                                                      - days
                                                                      - type
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: |
                                                                    When set to `true`, weeks are counted from the end of the month.

                                                                    For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                              required:
                                                                - type
                                                                - weeks
                                                            - type: object
                                                              title: Days of the month
                                                              x-class-name: MonthDateRule
                                                              x-interface-name-ts: MonthDateRule
                                                              properties:
                                                                type:
                                                                  description: Rules for days of the month
                                                                  type: string
                                                                  x-class-name: MonthDateRuleType
                                                                  x-interface-name-ts: MonthDateRuleType
                                                                  enum:
                                                                    - MONTH
                                                                days:
                                                                  type: array
                                                                  description: Days of the month included in the pattern.
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: |
                                                                    When set to `true`, days are counted from the end of the month.

                                                                    For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                              required:
                                                                - days
                                                                - type
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                              MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                      required:
                                                        - nestingType
                                                        - rules
                                                        - type
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                      WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                      MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                              required:
                                                - type
                                            - type: object
                                              title: RelativeDateFilter
                                              properties:
                                                type:
                                                  title: RelativeDateFilterType
                                                  x-class-name: RelativeDateFilterType
                                                  x-interface-name-ts: RelativeDateFilterType
                                                  type: string
                                                  enum:
                                                    - RELATIVE
                                                  description: |
                                                    Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                    - `duration` is the length of time that the filter covers.
                                                    - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                duration:
                                                  type: object
                                                  description: The definition of a length of time.
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: TimePeriod
                                                      x-interface-name-ts: TimePeriod
                                                      description: The unit of time
                                                      enum:
                                                        - YEARS
                                                        - MONTHS
                                                        - WEEKS
                                                        - DAYS
                                                        - HOURS
                                                        - MINUTES
                                                        - SECONDS
                                                        - UNKNOWN
                                                    value:
                                                      type: integer
                                                      description: The number of time units
                                                      format: int64
                                                  required:
                                                    - type
                                                    - value
                                                offset:
                                                  type: object
                                                  description: The definition of a length of time.
                                                  properties:
                                                    type:
                                                      type: string
                                                      x-class-name: TimePeriod
                                                      x-interface-name-ts: TimePeriod
                                                      description: The unit of time
                                                      enum:
                                                        - YEARS
                                                        - MONTHS
                                                        - WEEKS
                                                        - DAYS
                                                        - HOURS
                                                        - MINUTES
                                                        - SECONDS
                                                        - UNKNOWN
                                                    value:
                                                      type: integer
                                                      description: The number of time units
                                                      format: int64
                                                  required:
                                                    - type
                                                    - value
                                                filter:
                                                  description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                  oneOf:
                                                    - type: object
                                                      title: Daily
                                                      x-class-name: CustomDailyFilter
                                                      x-interface-name-ts: CustomDailyFilter
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomDailyFilterType
                                                          x-interface-name-ts: CustomDailyFilterType
                                                          enum:
                                                            - DAILY
                                                          description: Daily filters limit the data scope to a range of hours every day.
                                                        nestingType:
                                                          x-class-name: CustomDailyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - nestingType
                                                        - type
                                                        - from
                                                        - to
                                                    - type: object
                                                      title: Weekly
                                                      x-class-name: CustomWeeklyFilter
                                                      x-interface-name-ts: CustomWeeklyFilter
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomWeeklyFilterType
                                                          x-interface-name-ts: CustomWeeklyFilterType
                                                          enum:
                                                            - WEEKLY
                                                          description: Weekly filters let you define separate rules for each day of the week.
                                                        nestingType:
                                                          x-class-name: CustomWeeklyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        days:
                                                          type: array
                                                          description: An array of rules for different days of the week.
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                      required:
                                                        - days
                                                        - nestingType
                                                        - type
                                                    - type: object
                                                      title: Monthly
                                                      x-class-name: CustomMonthlyFilterType
                                                      x-interface-name-ts: CustomMonthlyFilterType
                                                      properties:
                                                        type:
                                                          type: string
                                                          x-class-name: CustomMonthlyFilterType
                                                          x-interface-name-ts: CustomMonthlyFilterType
                                                          enum:
                                                            - MONTHLY
                                                          description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                        nestingType:
                                                          x-class-name: CustomMonthlyFilterNestingType
                                                          type: string
                                                          enum:
                                                            - IN_PLACE
                                                        rules:
                                                          description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                          oneOf:
                                                            - type: object
                                                              title: Days of the week
                                                              x-class-name: WeekDateRule
                                                              x-interface-name-ts: WeekDateRule
                                                              properties:
                                                                type:
                                                                  type: string
                                                                  x-class-name: WeekDateRuleType
                                                                  x-interface-name-ts: WeekDateRuleType
                                                                  enum:
                                                                    - WEEK
                                                                  description: Weekly filters limit the scope to days in a week
                                                                weeks:
                                                                  type: array
                                                                  description: Weeks of the month included in the pattern
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      week:
                                                                        type: integer
                                                                        description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                      days:
                                                                        type: array
                                                                        description: Days included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                    required:
                                                                      - days
                                                                      - type
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: |
                                                                    When set to `true`, weeks are counted from the end of the month.

                                                                    For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                              required:
                                                                - type
                                                                - weeks
                                                            - type: object
                                                              title: Days of the month
                                                              x-class-name: MonthDateRule
                                                              x-interface-name-ts: MonthDateRule
                                                              properties:
                                                                type:
                                                                  description: Rules for days of the month
                                                                  type: string
                                                                  x-class-name: MonthDateRuleType
                                                                  x-interface-name-ts: MonthDateRuleType
                                                                  enum:
                                                                    - MONTH
                                                                days:
                                                                  type: array
                                                                  description: Days of the month included in the pattern.
                                                                  items:
                                                                    type: object
                                                                    properties:
                                                                      day:
                                                                        type: integer
                                                                        description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                      from:
                                                                        type: string
                                                                        description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      to:
                                                                        type: string
                                                                        description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                      mode:
                                                                        type: string
                                                                        enum:
                                                                          - Range
                                                                          - Hour
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                    required:
                                                                      - day
                                                                      - from
                                                                      - inverted
                                                                      - to
                                                                inverted:
                                                                  type: boolean
                                                                  default: false
                                                                  description: |
                                                                    When set to `true`, days are counted from the end of the month.

                                                                    For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                    **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                              required:
                                                                - days
                                                                - type
                                                          discriminator:
                                                            propertyName: type
                                                            mapping:
                                                              WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                              MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                      required:
                                                        - nestingType
                                                        - rules
                                                        - type
                                                  discriminator:
                                                    propertyName: type
                                                    mapping:
                                                      DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                      WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                      MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                              required:
                                                - duration
                                                - offset
                                                - type
                                      required:
                                        - type
                                        - logic
                                        - value
                                attribute:
                                  description: A profile attribute to analyze
                                  discriminator:
                                    propertyName: type
                                    mapping:
                                      PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                      TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                      AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                      SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                      EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                      SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                      EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                  oneOf:
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - PARAM
                                        param:
                                          description: Name of the parameter
                                          type: string
                                      required:
                                        - type
                                        - param
                                    - type: object
                                      description: Reference to a tag
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - TAG
                                        tag:
                                          description: Name of the tag
                                          type: string
                                      required:
                                        - type
                                        - tag
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - AGGREGATE
                                        uuid:
                                          type: string
                                          format: uuid
                                          description: |
                                            UUID of the analysis
                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                        id:
                                          type: string
                                          format: uuid
                                          description: |
                                            UUID of the analysis
                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                      required:
                                        - type
                                        - uuid
                                        - id
                                    - type: object
                                      description: Reference to a segmentation
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SEGMENTATION
                                        id:
                                          type: string
                                          format: uuid
                                          description: |
                                            UUID of the analysis
                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                      required:
                                        - type
                                        - id
                                    - type: object
                                      description: Pointer to an expression
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - EXPRESSION
                                        id:
                                          type: string
                                          format: uuid
                                          description: |
                                            UUID of the analysis
                                          example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                      required:
                                        - type
                                        - id
                                    - type: object
                                      description: Reference to a special parameter
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - SPECIAL
                                        special:
                                          type: string
                                          description: The name of the special parameter
                                      required:
                                        - type
                                        - special
                                    - type: object
                                      properties:
                                        type:
                                          type: string
                                          enum:
                                            - EMPTY
                                      required:
                                        - type
                        required:
                          - expressions
                  - description: A condition to test
                    type: object
                    properties:
                      type:
                        description: A condition to test
                        x-class-name: ExpressionFilterBoxType
                        type: string
                        enum:
                          - EXPRESSION
                      name:
                        type: string
                      matching:
                        type: boolean
                      expressions:
                        $ref: "#/components/schemas/analytics-FilterBox"
                    required:
                      - type
                      - expressions
                  - type: object
                    properties:
                      type:
                        description: Tests against a funnel
                        x-class-name: ExpressionFilterBoxType
                        type: string
                        enum:
                          - FUNNEL
                      name:
                        type: string
                        description: Name of the resource
                      matching:
                        type: boolean
                        description: When `true`, the results include only data that matched the condition. When `false`, the results include only data that did not match the condition.
                        default: true
                      funnel:
                        type: object
                        description: Funnel conditions
                        properties:
                          title:
                            type: string
                            description: Title of the funnel.
                          completedWithin:
                            type: object
                            description: |
                              Time constraint for completing all the steps in the funnel. Timer starts
                              when the first step is triggered.

                              - `period` sets the time unit
                              - `value` sets the number of time units
                            properties:
                              period:
                                type: string
                                x-class-name: TimePeriod
                                x-interface-name-ts: TimePeriod
                                description: The unit of time
                                enum:
                                  - YEARS
                                  - MONTHS
                                  - WEEKS
                                  - DAYS
                                  - HOURS
                                  - MINUTES
                                  - SECONDS
                                  - UNKNOWN
                              value:
                                description: The number of time units
                                type: number
                                format: int64
                          dateFilter:
                            description: |
                              Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                              An absolute date filter lets you define static dates and times that always apply to the analysis.

                              A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                            discriminator:
                              propertyName: type
                              mapping:
                                ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                            oneOf:
                              - type: object
                                title: AbsoluteDateFilter
                                properties:
                                  type:
                                    title: AbsoluteDateFilterType
                                    x-class-name: AbsoluteDateFilterType
                                    x-interface-name-ts: AbsoluteDateFilterType
                                    type: string
                                    enum:
                                      - ABSOLUTE
                                    description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                  from:
                                    type: string
                                    format: date-time
                                    description: The lower boundary of the date filter.
                                  to:
                                    type: string
                                    format: date-time
                                    description: The upper boundary of the date filter. Must be later than `from`.
                                  filter:
                                    description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                    oneOf:
                                      - type: object
                                        title: Daily
                                        x-class-name: CustomDailyFilter
                                        x-interface-name-ts: CustomDailyFilter
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomDailyFilterType
                                            x-interface-name-ts: CustomDailyFilterType
                                            enum:
                                              - DAILY
                                            description: Daily filters limit the data scope to a range of hours every day.
                                          nestingType:
                                            x-class-name: CustomDailyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          from:
                                            type: string
                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                          to:
                                            type: string
                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                          inverted:
                                            type: boolean
                                            default: false
                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                        required:
                                          - nestingType
                                          - type
                                          - from
                                          - to
                                      - type: object
                                        title: Weekly
                                        x-class-name: CustomWeeklyFilter
                                        x-interface-name-ts: CustomWeeklyFilter
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomWeeklyFilterType
                                            x-interface-name-ts: CustomWeeklyFilterType
                                            enum:
                                              - WEEKLY
                                            description: Weekly filters let you define separate rules for each day of the week.
                                          nestingType:
                                            x-class-name: CustomWeeklyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          days:
                                            type: array
                                            description: An array of rules for different days of the week.
                                            items:
                                              type: object
                                              properties:
                                                day:
                                                  type: integer
                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                from:
                                                  type: string
                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                to:
                                                  type: string
                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                mode:
                                                  type: string
                                                  enum:
                                                    - Range
                                                    - Hour
                                                inverted:
                                                  type: boolean
                                                  default: false
                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                              required:
                                                - day
                                                - from
                                                - inverted
                                                - to
                                        required:
                                          - days
                                          - nestingType
                                          - type
                                      - type: object
                                        title: Monthly
                                        x-class-name: CustomMonthlyFilterType
                                        x-interface-name-ts: CustomMonthlyFilterType
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            enum:
                                              - MONTHLY
                                            description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                          nestingType:
                                            x-class-name: CustomMonthlyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          rules:
                                            description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                            oneOf:
                                              - type: object
                                                title: Days of the week
                                                x-class-name: WeekDateRule
                                                x-interface-name-ts: WeekDateRule
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: WeekDateRuleType
                                                    x-interface-name-ts: WeekDateRuleType
                                                    enum:
                                                      - WEEK
                                                    description: Weekly filters limit the scope to days in a week
                                                  weeks:
                                                    type: array
                                                    description: Weeks of the month included in the pattern
                                                    items:
                                                      type: object
                                                      properties:
                                                        week:
                                                          type: integer
                                                          description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                        days:
                                                          type: array
                                                          description: Days included in the pattern
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                      required:
                                                        - days
                                                        - type
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: |
                                                      When set to `true`, weeks are counted from the end of the month.

                                                      For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                required:
                                                  - type
                                                  - weeks
                                              - type: object
                                                title: Days of the month
                                                x-class-name: MonthDateRule
                                                x-interface-name-ts: MonthDateRule
                                                properties:
                                                  type:
                                                    description: Rules for days of the month
                                                    type: string
                                                    x-class-name: MonthDateRuleType
                                                    x-interface-name-ts: MonthDateRuleType
                                                    enum:
                                                      - MONTH
                                                  days:
                                                    type: array
                                                    description: Days of the month included in the pattern.
                                                    items:
                                                      type: object
                                                      properties:
                                                        day:
                                                          type: integer
                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        mode:
                                                          type: string
                                                          enum:
                                                            - Range
                                                            - Hour
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - day
                                                        - from
                                                        - inverted
                                                        - to
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: |
                                                      When set to `true`, days are counted from the end of the month.

                                                      For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                required:
                                                  - days
                                                  - type
                                            discriminator:
                                              propertyName: type
                                              mapping:
                                                WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                MONTH: "#/components/schemas/analytics-MonthDateRule"
                                        required:
                                          - nestingType
                                          - rules
                                          - type
                                    discriminator:
                                      propertyName: type
                                      mapping:
                                        DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                        WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                        MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                required:
                                  - type
                              - type: object
                                title: RelativeDateFilter
                                properties:
                                  type:
                                    title: RelativeDateFilterType
                                    x-class-name: RelativeDateFilterType
                                    x-interface-name-ts: RelativeDateFilterType
                                    type: string
                                    enum:
                                      - RELATIVE
                                    description: |
                                      Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                      - `duration` is the length of time that the filter covers.
                                      - `offset` is the time that the filter goes back to set the beginning of the duration.
                                  duration:
                                    type: object
                                    description: The definition of a length of time.
                                    properties:
                                      type:
                                        type: string
                                        x-class-name: TimePeriod
                                        x-interface-name-ts: TimePeriod
                                        description: The unit of time
                                        enum:
                                          - YEARS
                                          - MONTHS
                                          - WEEKS
                                          - DAYS
                                          - HOURS
                                          - MINUTES
                                          - SECONDS
                                          - UNKNOWN
                                      value:
                                        type: integer
                                        description: The number of time units
                                        format: int64
                                    required:
                                      - type
                                      - value
                                  offset:
                                    type: object
                                    description: The definition of a length of time.
                                    properties:
                                      type:
                                        type: string
                                        x-class-name: TimePeriod
                                        x-interface-name-ts: TimePeriod
                                        description: The unit of time
                                        enum:
                                          - YEARS
                                          - MONTHS
                                          - WEEKS
                                          - DAYS
                                          - HOURS
                                          - MINUTES
                                          - SECONDS
                                          - UNKNOWN
                                      value:
                                        type: integer
                                        description: The number of time units
                                        format: int64
                                    required:
                                      - type
                                      - value
                                  filter:
                                    description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                    oneOf:
                                      - type: object
                                        title: Daily
                                        x-class-name: CustomDailyFilter
                                        x-interface-name-ts: CustomDailyFilter
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomDailyFilterType
                                            x-interface-name-ts: CustomDailyFilterType
                                            enum:
                                              - DAILY
                                            description: Daily filters limit the data scope to a range of hours every day.
                                          nestingType:
                                            x-class-name: CustomDailyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          from:
                                            type: string
                                            description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                          to:
                                            type: string
                                            description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                          inverted:
                                            type: boolean
                                            default: false
                                            description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                        required:
                                          - nestingType
                                          - type
                                          - from
                                          - to
                                      - type: object
                                        title: Weekly
                                        x-class-name: CustomWeeklyFilter
                                        x-interface-name-ts: CustomWeeklyFilter
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomWeeklyFilterType
                                            x-interface-name-ts: CustomWeeklyFilterType
                                            enum:
                                              - WEEKLY
                                            description: Weekly filters let you define separate rules for each day of the week.
                                          nestingType:
                                            x-class-name: CustomWeeklyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          days:
                                            type: array
                                            description: An array of rules for different days of the week.
                                            items:
                                              type: object
                                              properties:
                                                day:
                                                  type: integer
                                                  description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                from:
                                                  type: string
                                                  description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                to:
                                                  type: string
                                                  description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                mode:
                                                  type: string
                                                  enum:
                                                    - Range
                                                    - Hour
                                                inverted:
                                                  type: boolean
                                                  default: false
                                                  description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                              required:
                                                - day
                                                - from
                                                - inverted
                                                - to
                                        required:
                                          - days
                                          - nestingType
                                          - type
                                      - type: object
                                        title: Monthly
                                        x-class-name: CustomMonthlyFilterType
                                        x-interface-name-ts: CustomMonthlyFilterType
                                        properties:
                                          type:
                                            type: string
                                            x-class-name: CustomMonthlyFilterType
                                            x-interface-name-ts: CustomMonthlyFilterType
                                            enum:
                                              - MONTHLY
                                            description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                          nestingType:
                                            x-class-name: CustomMonthlyFilterNestingType
                                            type: string
                                            enum:
                                              - IN_PLACE
                                          rules:
                                            description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                            oneOf:
                                              - type: object
                                                title: Days of the week
                                                x-class-name: WeekDateRule
                                                x-interface-name-ts: WeekDateRule
                                                properties:
                                                  type:
                                                    type: string
                                                    x-class-name: WeekDateRuleType
                                                    x-interface-name-ts: WeekDateRuleType
                                                    enum:
                                                      - WEEK
                                                    description: Weekly filters limit the scope to days in a week
                                                  weeks:
                                                    type: array
                                                    description: Weeks of the month included in the pattern
                                                    items:
                                                      type: object
                                                      properties:
                                                        week:
                                                          type: integer
                                                          description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                        days:
                                                          type: array
                                                          description: Days included in the pattern
                                                          items:
                                                            type: object
                                                            properties:
                                                              day:
                                                                type: integer
                                                                description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              mode:
                                                                type: string
                                                                enum:
                                                                  - Range
                                                                  - Hour
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - day
                                                              - from
                                                              - inverted
                                                              - to
                                                      required:
                                                        - days
                                                        - type
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: |
                                                      When set to `true`, weeks are counted from the end of the month.

                                                      For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                required:
                                                  - type
                                                  - weeks
                                              - type: object
                                                title: Days of the month
                                                x-class-name: MonthDateRule
                                                x-interface-name-ts: MonthDateRule
                                                properties:
                                                  type:
                                                    description: Rules for days of the month
                                                    type: string
                                                    x-class-name: MonthDateRuleType
                                                    x-interface-name-ts: MonthDateRuleType
                                                    enum:
                                                      - MONTH
                                                  days:
                                                    type: array
                                                    description: Days of the month included in the pattern.
                                                    items:
                                                      type: object
                                                      properties:
                                                        day:
                                                          type: integer
                                                          description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                        from:
                                                          type: string
                                                          description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        to:
                                                          type: string
                                                          description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                        mode:
                                                          type: string
                                                          enum:
                                                            - Range
                                                            - Hour
                                                        inverted:
                                                          type: boolean
                                                          default: false
                                                          description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                      required:
                                                        - day
                                                        - from
                                                        - inverted
                                                        - to
                                                  inverted:
                                                    type: boolean
                                                    default: false
                                                    description: |
                                                      When set to `true`, days are counted from the end of the month.

                                                      For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                      **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                required:
                                                  - days
                                                  - type
                                            discriminator:
                                              propertyName: type
                                              mapping:
                                                WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                MONTH: "#/components/schemas/analytics-MonthDateRule"
                                        required:
                                          - nestingType
                                          - rules
                                          - type
                                    discriminator:
                                      propertyName: type
                                      mapping:
                                        DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                        WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                        MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                required:
                                  - duration
                                  - offset
                                  - type
                          steps:
                            type: array
                            minItems: 0
                            description: An array of steps in the funnel. The order of the steps in the array determines the order of their analysis (that is, the step at index 0 is the first step, the step at index 1 is the second step, and so on).
                            items:
                              type: object
                              properties:
                                title:
                                  type: string
                                  description: The name of the step
                                action:
                                  type: object
                                  description: The analyzed event
                                  nullable: true
                                  required:
                                    - name
                                  properties:
                                    id:
                                      type: integer
                                      format: int64
                                      deprecated: true
                                      nullable: true
                                      description: Deprecated parameter. DO NOT use. Has no effect in create/update requests.
                                    name:
                                      type: string
                                      description: Action name of the event.
                                      example: page.visit
                                expressions:
                                  type: array
                                  description: An array of conditions that the event must meet
                                  items:
                                    type: object
                                    description: The `attribute` object is an event attribute that must exist in the analyzed event. The `constraint` object is a condition that the attribute must meet.
                                    properties:
                                      constraint:
                                        description: |
                                          This object defines the logic to apply to the `attribute`, and the values to compare it against (if required).

                                          **The analytics engine doesn't check if the data types match - you need to ensure that your data types are consistent in the data you send to the database**.
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            BOOL: "#/components/schemas/analytics-BoolConstraintEventConstraint"
                                            STRING_ZERO: "#/components/schemas/analytics-StringZeroConstraintEventConstraint"
                                            STRING_ONE: "#/components/schemas/analytics-StringOneConstraintEventConstraint"
                                            NUMBER_ONE: "#/components/schemas/analytics-NumberOneConstraintEventConstraint"
                                            NUMBER_TWO: "#/components/schemas/analytics-NumberTwoConstraintEventConstraint"
                                            STRING_ARRAY: "#/components/schemas/analytics-StringArrayConstraintEventConstraint"
                                            ARRAY_STRING_ONE_DEPRECATED: "#/components/schemas/analytics-StringArrayOneConstraintEventConstraint"
                                            "NULL": "#/components/schemas/analytics-NullConstraintEventConstraint"
                                            DATE_ZERO: "#/components/schemas/analytics-DateZeroConstraintEventConstraint"
                                            DATE_ONE: "#/components/schemas/analytics-DateOneConstraintEventConstraint"
                                            DATE_TWO: "#/components/schemas/analytics-DateTwoConstraintEventConstraint"
                                            DATE_FILTER: "#/components/schemas/analytics-DateFilterConstraintEventConstraint"
                                        oneOf:
                                          - type: object
                                            title: Boolean
                                            properties:
                                              type:
                                                x-class-name: BoolConstraintType
                                                type: string
                                                enum:
                                                  - BOOL
                                                description: Tests a boolean value
                                              logic:
                                                x-class-name: BoolConstraintLogic
                                                type: string
                                                description: Boolean logic. Empty (zero-length) strings, `0`, and `"0"` are considered false. Null values are false.
                                                enum:
                                                  - IS_TRUE
                                                  - IS_FALSE
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: Check empty
                                            description: This type is used to check if a string is empty.
                                            properties:
                                              type:
                                                title: String zero
                                                x-class-name: StringZeroConstraintType
                                                type: string
                                                description: This type is used to check if a string is empty.
                                                enum:
                                                  - STRING_ZERO
                                              logic:
                                                x-class-name: StringZeroConstraintLogic
                                                type: string
                                                description: Checks if a string is empty (zero-length). Null value is considered empty. A string of whitespace characters is NOT empty.
                                                enum:
                                                  - IS_EMPTY
                                                  - IS_NOT_EMPTY
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: String
                                            properties:
                                              type:
                                                x-class-name: StringOneConstraintType
                                                type: string
                                                enum:
                                                  - STRING_ONE
                                                description: This type is used to test values that are a single string.
                                              logic:
                                                x-class-name: StringOneConstraintLogic
                                                type: string
                                                description: Logic of the test. For example, if the logic is `CONTAIN` and the `value` returns "foo", the expression checks if the `attribute` (sibling object to `constraint`) contains the string "foo".
                                                enum:
                                                  - CONTAIN
                                                  - NOT_CONTAIN
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - STARTS_WITH
                                                  - REGEXP
                                                  - ENDS_WITH
                                              value:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Number
                                            properties:
                                              type:
                                                x-class-name: NumberOneConstraintType
                                                type: string
                                                enum:
                                                  - NUMBER_ONE
                                                description: This type is used to test values that are a single number
                                              logic:
                                                x-class-name: NumberOneConstraintLogic
                                                type: string
                                                description: Logic of the test. For example, if the logic is `EQUAL` and the `value` returns 15, the expression checks if the `attribute` (sibling object to `constraint`) is 15.
                                                enum:
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - LESS
                                                  - MORE
                                                  - MORE_OR_EQUAL
                                                  - LESS_OR_EQUAL
                                              value:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Two numbers
                                            properties:
                                              type:
                                                x-class-name: NumberTwoConstraintType
                                                type: string
                                                enum:
                                                  - NUMBER_TWO
                                                description: Checks if the `attribute` is between two numbers, defined in `value1` and `value2`.
                                              logic:
                                                description: Checks if the attribute is between two numbers.
                                                x-class-name: NumberTwoConstraintLogic
                                                type: string
                                                enum:
                                                  - BETWEEN
                                              value1:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                              value2:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value1
                                              - value2
                                          - type: object
                                            title: Check if string in array
                                            properties:
                                              type:
                                                x-class-name: StringArrayConstraintType
                                                type: string
                                                enum:
                                                  - STRING_ARRAY
                                                description: This type is used to check if a string exists in an array defined in `value`
                                              logic:
                                                type: string
                                                x-class-name: StringArrayConstraintLogic
                                                description: You can check if the value from `attribute` is in the array defined in `value`
                                                enum:
                                                  - IN
                                                  - NOT_IN
                                              value:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Other string array tests
                                            properties:
                                              type:
                                                x-class-name: ArrayStringOneConstraintType
                                                type: string
                                                enum:
                                                  - ARRAY_STRING_ONE_DEPRECATED
                                                description: "`value` should be an array"
                                              logic:
                                                x-class-name: ArrayStringOneConstraintLogic
                                                type: string
                                                description: |
                                                  - CONTAIN/NOT_CONTAIN test if any item in the array contains/doesn't contain the value from `attribute`
                                                  - EQUAL/NOT_EQUAL test if any item in the array is/isn't identical to the value from `attribute`
                                                  - STARTS_WITH/ENDS_WITH test if any item in the array starts/ends with the value from `attribute`
                                                  - REGEXP tests if any item in the array matches the regular expression from `attribute`
                                                enum:
                                                  - CONTAIN
                                                  - NOT_CONTAIN
                                                  - EQUAL
                                                  - NOT_EQUAL
                                                  - STARTS_WITH
                                                  - REGEXP
                                                  - ENDS_WITH
                                              value:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - type: object
                                            title: Check if null
                                            properties:
                                              type:
                                                x-class-name: NullConstraintType
                                                description: This type is used to check if a value is null
                                                type: string
                                                enum:
                                                  - "NULL"
                                              logic:
                                                x-class-name: NullConstraintLogic
                                                type: string
                                                description: Checks if the attribute is or isn't null. Empty strings, `0`, and negative numbers are NOT null. String `"null"` is NOT null.
                                                enum:
                                                  - IS_NULL
                                                  - IS_NOT_NULL
                                            required:
                                              - type
                                              - logic
                                          - type: object
                                            title: Current date
                                            properties:
                                              type:
                                                x-class-name: DateZeroConstraintType
                                                type: string
                                                enum:
                                                  - DATE_ZERO
                                                description: Compare a date from `attribute` to the current date
                                              logic:
                                                x-class-name: LogicZeroConstraintLogic
                                                type: string
                                                enum:
                                                  - MATCHES_CURRENT_DAY
                                                  - MATCHES_CURRENT_HOUR
                                                  - MATCHES_CURRENT_MONTH
                                                  - MATCHES_CURRENT_YEAR
                                                description: Logic to apply to the date from `attribute`
                                            required:
                                              - type
                                              - logic
                                          - description: This type is used to check `attribute` against a date.
                                            type: object
                                            title: Date
                                            properties:
                                              type:
                                                x-class-name: DateOneConstraintType
                                                type: string
                                                description: This type is used to check `attribute` against a date.
                                                enum:
                                                  - DATE_ONE
                                              logic:
                                                x-class-name: DateOneConstraintLogic
                                                type: string
                                                description: Checks how the date from `attribute` compares to the one in `value`. For example, MORE returns true if `attribute` is the later date.
                                                enum:
                                                  - LESS
                                                  - MORE
                                                  - LESS_OR_EQUAL
                                                  - MORE_OR_EQUAL
                                              value:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value
                                          - description: This type is used to check if a date is between two other dates.
                                            type: object
                                            title: Date range
                                            properties:
                                              type:
                                                x-class-name: DateTwoConstraintType
                                                type: string
                                                description: This type is used to check if a date is between two other dates.
                                                enum:
                                                  - DATE_TWO
                                              logic:
                                                x-class-name: DateTwoConstraintLogic
                                                type: string
                                                description: Checks if the date from `attribute` is between the dates from `value1` and `value2`.
                                                enum:
                                                  - BETWEEN
                                              value1:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                              value2:
                                                description: The value to test `attribute` against.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    CONSTANT: "#/components/schemas/analytics-ConstantValue"
                                                    EVENT: "#/components/schemas/analytics-EventParameter"
                                                    CLIENT: "#/components/schemas/analytics-ClientParameter"
                                                    VARIABLE: "#/components/schemas/analytics-VariableValue"
                                                oneOf:
                                                  - type: object
                                                    title: Static value
                                                    description: Inserts a static value.
                                                    properties:
                                                      type:
                                                        x-class-name: ConstantValueType
                                                        type: string
                                                        description: Inserts a static value.
                                                        enum:
                                                          - CONSTANT
                                                      constant:
                                                        description: |
                                                          The value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                        oneOf:
                                                          - type: string
                                                            maxLength: 21000
                                                          - type: number
                                                          - type: boolean
                                                          - type: array
                                                            maxItems: 65000
                                                            items:
                                                              type: string
                                                              maxLength: 21000
                                                    required:
                                                      - type
                                                      - constant
                                                  - type: object
                                                    title: Event parameter
                                                    description: Inserts an event parameter value
                                                    properties:
                                                      type:
                                                        x-class-name: EventParameterType
                                                        description: Inserts an event parameter value
                                                        type: string
                                                        enum:
                                                          - EVENT
                                                      attribute:
                                                        description: An event attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                                        oneOf:
                                                          - type: object
                                                            title: Event parameter
                                                            properties:
                                                              type:
                                                                x-class-name: ParamEventAttributeType
                                                                enum:
                                                                  - PARAM
                                                                description: This `type` refers to parameters in an event.
                                                              param:
                                                                type: string
                                                                description: Name of the parameter
                                                            required:
                                                              - type
                                                          - type: object
                                                            title: Event aggregate
                                                            properties:
                                                              type:
                                                                x-class-name: RunningAggregateEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - RUNNING_AGGREGATE
                                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the event aggregate
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Expression
                                                            properties:
                                                              type:
                                                                x-class-name: ExpressionEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                                description: This type refers to expressions. You must provide the ID of the expression.
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: ID of the expression
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            title: Special property
                                                            properties:
                                                              type:
                                                                x-class-name: SpecialEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                                description: This type lets you access special properties of an event.
                                                              special:
                                                                type: string
                                                                description: The type of special attribute you want to use
                                                                enum:
                                                                  - TIMESTAMP
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            title: No attribute
                                                            properties:
                                                              type:
                                                                x-class-name: EmptyEventAttributeType
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Profile attribute
                                                    properties:
                                                      type:
                                                        description: References a profile attribute, including analyses.
                                                        x-class-name: ClientEventValueType
                                                        type: string
                                                        enum:
                                                          - CLIENT
                                                      attribute:
                                                        description: A profile attribute to analyze
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            PARAM: "#/components/schemas/analytics-ClientParamAttribute"
                                                            TAG: "#/components/schemas/analytics-ClientTagAttribute"
                                                            AGGREGATE: "#/components/schemas/analytics-ClientAggregateAttribute"
                                                            SEGMENTATION: "#/components/schemas/analytics-ClientSegmentationAttribute"
                                                            EXPRESSION: "#/components/schemas/analytics-ClientExpressionAttribute"
                                                            SPECIAL: "#/components/schemas/analytics-ClientSpecialAttribute"
                                                            EMPTY: "#/components/schemas/analytics-ClientEmptyAttribute"
                                                        oneOf:
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - PARAM
                                                              param:
                                                                description: Name of the parameter
                                                                type: string
                                                            required:
                                                              - type
                                                              - param
                                                          - type: object
                                                            description: Reference to a tag
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - TAG
                                                              tag:
                                                                description: Name of the tag
                                                                type: string
                                                            required:
                                                              - type
                                                              - tag
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - AGGREGATE
                                                              uuid:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - uuid
                                                              - id
                                                          - type: object
                                                            description: Reference to a segmentation
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SEGMENTATION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Pointer to an expression
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EXPRESSION
                                                              id:
                                                                type: string
                                                                format: uuid
                                                                description: |
                                                                  UUID of the analysis
                                                                example: 5370bf3c-2dfa-4e89-98ff-07100cffee6c
                                                            required:
                                                              - type
                                                              - id
                                                          - type: object
                                                            description: Reference to a special parameter
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - SPECIAL
                                                              special:
                                                                type: string
                                                                description: The name of the special parameter
                                                            required:
                                                              - type
                                                              - special
                                                          - type: object
                                                            properties:
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - EMPTY
                                                            required:
                                                              - type
                                                    required:
                                                      - type
                                                      - attribute
                                                  - type: object
                                                    title: Dynamic value
                                                    properties:
                                                      type:
                                                        x-class-name: VariableValueType
                                                        type: string
                                                        enum:
                                                          - VARIABLE
                                                        description: |
                                                          This type is called a Dynamic Key in the Synerise Portal. It can be used to let other analytic components, such as dashboards, insert a value.

                                                          The variable value can't:
                                                            - be longer than 21000 characters if it's a string
                                                            - be larger than 65000 items if it's an array. Strings in the array can't be longer than 21000 characters.
                                                      name:
                                                        type: string
                                                        description: The name of the dynamic key
                                                      defaultValue:
                                                        type: string
                                                        maxLength: 21000
                                                        description: The default value to use
                                                    required:
                                                      - type
                                                      - name
                                                      - defaultValue
                                            required:
                                              - type
                                              - logic
                                              - value1
                                              - value2
                                          - description: This type is used to check if a date matches a date filter.
                                            type: object
                                            title: Date filter
                                            properties:
                                              type:
                                                x-class-name: DateFilterConstraintType
                                                type: string
                                                description: This type is used to check if a date matches a date filter.
                                                enum:
                                                  - DATE_FILTER
                                              logic:
                                                x-class-name: DateFilterConstraintLogic
                                                type: string
                                                enum:
                                                  - DATE_FILTER
                                                description: Checks if the date from `attribute` matches a date filter.
                                              value:
                                                description: |
                                                  Definition of a date filter. Only data that meets the result of the filter will be included in the analysis. For no filter, leave this object empty.

                                                  An absolute date filter lets you define static dates and times that always apply to the analysis.

                                                  A relative date filter lets you create a date filter that goes back a certain time from the moment of calculating the analysis.
                                                discriminator:
                                                  propertyName: type
                                                  mapping:
                                                    ABSOLUTE: "#/components/schemas/analytics-AbsoluteDateFilter"
                                                    RELATIVE: "#/components/schemas/analytics-RelativeDateFilter"
                                                oneOf:
                                                  - type: object
                                                    title: AbsoluteDateFilter
                                                    properties:
                                                      type:
                                                        title: AbsoluteDateFilterType
                                                        x-class-name: AbsoluteDateFilterType
                                                        x-interface-name-ts: AbsoluteDateFilterType
                                                        type: string
                                                        enum:
                                                          - ABSOLUTE
                                                        description: Absolute filters have the same start and end regardless of when the analysis is calculated.
                                                      from:
                                                        type: string
                                                        format: date-time
                                                        description: The lower boundary of the date filter.
                                                      to:
                                                        type: string
                                                        format: date-time
                                                        description: The upper boundary of the date filter. Must be later than `from`.
                                                      filter:
                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                        oneOf:
                                                          - type: object
                                                            title: Daily
                                                            x-class-name: CustomDailyFilter
                                                            x-interface-name-ts: CustomDailyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomDailyFilterType
                                                                x-interface-name-ts: CustomDailyFilterType
                                                                enum:
                                                                  - DAILY
                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                              nestingType:
                                                                x-class-name: CustomDailyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - nestingType
                                                              - type
                                                              - from
                                                              - to
                                                          - type: object
                                                            title: Weekly
                                                            x-class-name: CustomWeeklyFilter
                                                            x-interface-name-ts: CustomWeeklyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomWeeklyFilterType
                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                enum:
                                                                  - WEEKLY
                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                              nestingType:
                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              days:
                                                                type: array
                                                                description: An array of rules for different days of the week.
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - nestingType
                                                              - type
                                                          - type: object
                                                            title: Monthly
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomMonthlyFilterType
                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                enum:
                                                                  - MONTHLY
                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                              nestingType:
                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              rules:
                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                oneOf:
                                                                  - type: object
                                                                    title: Days of the week
                                                                    x-class-name: WeekDateRule
                                                                    x-interface-name-ts: WeekDateRule
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: WeekDateRuleType
                                                                        x-interface-name-ts: WeekDateRuleType
                                                                        enum:
                                                                          - WEEK
                                                                        description: Weekly filters limit the scope to days in a week
                                                                      weeks:
                                                                        type: array
                                                                        description: Weeks of the month included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            week:
                                                                              type: integer
                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                            days:
                                                                              type: array
                                                                              description: Days included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                    required:
                                                                      - type
                                                                      - weeks
                                                                  - type: object
                                                                    title: Days of the month
                                                                    x-class-name: MonthDateRule
                                                                    x-interface-name-ts: MonthDateRule
                                                                    properties:
                                                                      type:
                                                                        description: Rules for days of the month
                                                                        type: string
                                                                        x-class-name: MonthDateRuleType
                                                                        x-interface-name-ts: MonthDateRuleType
                                                                        enum:
                                                                          - MONTH
                                                                      days:
                                                                        type: array
                                                                        description: Days of the month included in the pattern.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, days are counted from the end of the month.

                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                    required:
                                                                      - days
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                            required:
                                                              - nestingType
                                                              - rules
                                                              - type
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                    required:
                                                      - type
                                                  - type: object
                                                    title: RelativeDateFilter
                                                    properties:
                                                      type:
                                                        title: RelativeDateFilterType
                                                        x-class-name: RelativeDateFilterType
                                                        x-interface-name-ts: RelativeDateFilterType
                                                        type: string
                                                        enum:
                                                          - RELATIVE
                                                        description: |
                                                          Relative filters allow you to create a filter that depends on when the analysis is calculated. 

                                                          - `duration` is the length of time that the filter covers.
                                                          - `offset` is the time that the filter goes back to set the beginning of the duration.
                                                      duration:
                                                        type: object
                                                        description: The definition of a length of time.
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: TimePeriod
                                                            x-interface-name-ts: TimePeriod
                                                            description: The unit of time
                                                            enum:
                                                              - YEARS
                                                              - MONTHS
                                                              - WEEKS
                                                              - DAYS
                                                              - HOURS
                                                              - MINUTES
                                                              - SECONDS
                                                              - UNKNOWN
                                                          value:
                                                            type: integer
                                                            description: The number of time units
                                                            format: int64
                                                        required:
                                                          - type
                                                          - value
                                                      offset:
                                                        type: object
                                                        description: The definition of a length of time.
                                                        properties:
                                                          type:
                                                            type: string
                                                            x-class-name: TimePeriod
                                                            x-interface-name-ts: TimePeriod
                                                            description: The unit of time
                                                            enum:
                                                              - YEARS
                                                              - MONTHS
                                                              - WEEKS
                                                              - DAYS
                                                              - HOURS
                                                              - MINUTES
                                                              - SECONDS
                                                              - UNKNOWN
                                                          value:
                                                            type: integer
                                                            description: The number of time units
                                                            format: int64
                                                        required:
                                                          - type
                                                          - value
                                                      filter:
                                                        description: This object allows you to define a pattern for a more detailed time filter. These patterns are applied within the constraints of the `dateFilter` object that contains them, regardless of its type relative or absolute).
                                                        oneOf:
                                                          - type: object
                                                            title: Daily
                                                            x-class-name: CustomDailyFilter
                                                            x-interface-name-ts: CustomDailyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomDailyFilterType
                                                                x-interface-name-ts: CustomDailyFilterType
                                                                enum:
                                                                  - DAILY
                                                                description: Daily filters limit the data scope to a range of hours every day.
                                                              nestingType:
                                                                x-class-name: CustomDailyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              from:
                                                                type: string
                                                                description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              to:
                                                                type: string
                                                                description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                              inverted:
                                                                type: boolean
                                                                default: false
                                                                description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                            required:
                                                              - nestingType
                                                              - type
                                                              - from
                                                              - to
                                                          - type: object
                                                            title: Weekly
                                                            x-class-name: CustomWeeklyFilter
                                                            x-interface-name-ts: CustomWeeklyFilter
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomWeeklyFilterType
                                                                x-interface-name-ts: CustomWeeklyFilterType
                                                                enum:
                                                                  - WEEKLY
                                                                description: Weekly filters let you define separate rules for each day of the week.
                                                              nestingType:
                                                                x-class-name: CustomWeeklyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              days:
                                                                type: array
                                                                description: An array of rules for different days of the week.
                                                                items:
                                                                  type: object
                                                                  properties:
                                                                    day:
                                                                      type: integer
                                                                      description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                    from:
                                                                      type: string
                                                                      description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    to:
                                                                      type: string
                                                                      description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                    mode:
                                                                      type: string
                                                                      enum:
                                                                        - Range
                                                                        - Hour
                                                                    inverted:
                                                                      type: boolean
                                                                      default: false
                                                                      description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                  required:
                                                                    - day
                                                                    - from
                                                                    - inverted
                                                                    - to
                                                            required:
                                                              - days
                                                              - nestingType
                                                              - type
                                                          - type: object
                                                            title: Monthly
                                                            x-class-name: CustomMonthlyFilterType
                                                            x-interface-name-ts: CustomMonthlyFilterType
                                                            properties:
                                                              type:
                                                                type: string
                                                                x-class-name: CustomMonthlyFilterType
                                                                x-interface-name-ts: CustomMonthlyFilterType
                                                                enum:
                                                                  - MONTHLY
                                                                description: Monthly filters allow you to build rules for days of the month and/or weeks, including rules for different days of the week.
                                                              nestingType:
                                                                x-class-name: CustomMonthlyFilterNestingType
                                                                type: string
                                                                enum:
                                                                  - IN_PLACE
                                                              rules:
                                                                description: A set of rules. Within a monthly filter, you can include a mixture of rules for days of the month and days of the week.
                                                                oneOf:
                                                                  - type: object
                                                                    title: Days of the week
                                                                    x-class-name: WeekDateRule
                                                                    x-interface-name-ts: WeekDateRule
                                                                    properties:
                                                                      type:
                                                                        type: string
                                                                        x-class-name: WeekDateRuleType
                                                                        x-interface-name-ts: WeekDateRuleType
                                                                        enum:
                                                                          - WEEK
                                                                        description: Weekly filters limit the scope to days in a week
                                                                      weeks:
                                                                        type: array
                                                                        description: Weeks of the month included in the pattern
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            week:
                                                                              type: integer
                                                                              description: Number of the week. The direction of counting depends on the `inverted` boolean property of the ancestor object.
                                                                            days:
                                                                              type: array
                                                                              description: Days included in the pattern
                                                                              items:
                                                                                type: object
                                                                                properties:
                                                                                  day:
                                                                                    type: integer
                                                                                    description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                                  from:
                                                                                    type: string
                                                                                    description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  to:
                                                                                    type: string
                                                                                    description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                                  mode:
                                                                                    type: string
                                                                                    enum:
                                                                                      - Range
                                                                                      - Hour
                                                                                  inverted:
                                                                                    type: boolean
                                                                                    default: false
                                                                                    description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                                required:
                                                                                  - day
                                                                                  - from
                                                                                  - inverted
                                                                                  - to
                                                                          required:
                                                                            - days
                                                                            - type
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, weeks are counted from the end of the month.

                                                                          For example, if `inverted` is true and `week` is set to 1, the rule applies to the last week of each month. This lets you take into account the varying length of months.

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array of each week..
                                                                    required:
                                                                      - type
                                                                      - weeks
                                                                  - type: object
                                                                    title: Days of the month
                                                                    x-class-name: MonthDateRule
                                                                    x-interface-name-ts: MonthDateRule
                                                                    properties:
                                                                      type:
                                                                        description: Rules for days of the month
                                                                        type: string
                                                                        x-class-name: MonthDateRuleType
                                                                        x-interface-name-ts: MonthDateRuleType
                                                                        enum:
                                                                          - MONTH
                                                                      days:
                                                                        type: array
                                                                        description: Days of the month included in the pattern.
                                                                        items:
                                                                          type: object
                                                                          properties:
                                                                            day:
                                                                              type: integer
                                                                              description: The day that this rule applies to. In weekly patterns, `1` is Monday (Sunday if inverted).
                                                                            from:
                                                                              type: string
                                                                              description: Lower boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            to:
                                                                              type: string
                                                                              description: Upper boundary of the pattern's timeframe, in HH:MM:SS format.
                                                                            mode:
                                                                              type: string
                                                                              enum:
                                                                                - Range
                                                                                - Hour
                                                                            inverted:
                                                                              type: boolean
                                                                              default: false
                                                                              description: "Inverts the pattern's timeframe. For example: if `from` is 12:00:00; `to` is 14:00:00; and `inverted` is true, the analysis does NOT include anything between 12:00:01 and 13:59:59."
                                                                          required:
                                                                            - day
                                                                            - from
                                                                            - inverted
                                                                            - to
                                                                      inverted:
                                                                        type: boolean
                                                                        default: false
                                                                        description: |
                                                                          When set to `true`, days are counted from the end of the month.

                                                                          For example, if `inverted` is true and `day` is set to 1, the rule applies to the last day of each month. This lets you take into account the varying length of months.  

                                                                          **NOTE:** Remember that this `inverted` field is not the same as the `inverted` field of each object in the `days` array.
                                                                    required:
                                                                      - days
                                                                      - type
                                                                discriminator:
                                                                  propertyName: type
                                                                  mapping:
                                                                    WEEK: "#/components/schemas/analytics-WeekDateRule"
                                                                    MONTH: "#/components/schemas/analytics-MonthDateRule"
                                                            required:
                                                              - nestingType
                                                              - rules
                                                              - type
                                                        discriminator:
                                                          propertyName: type
                                                          mapping:
                                                            DAILY: "#/components/schemas/analytics-CustomDailyDateFilter"
                                                            WEEKLY: "#/components/schemas/analytics-CustomWeeklyDateFilter"
                                                            MONTHLY: "#/components/schemas/analytics-CustomMonthlyDateFilter"
                                                    required:
                                                      - duration
                                                      - offset
                                                      - type
                                            required:
                                              - type
                                              - logic
                                              - value
                                      attribute:
                                        description: An event attribute to analyze
                                        discriminator:
                                          propertyName: type
                                          mapping:
                                            PARAM: "#/components/schemas/analytics-ParameterEventAttribute"
                                            RUNNING_AGGREGATE: "#/components/schemas/analytics-RunningAggregateEventAttribute"
                                            EXPRESSION: "#/components/schemas/analytics-ExpressionEventAttribute"
                                            SPECIAL: "#/components/schemas/analytics-SpecialEventAttribute"
                                            EMPTY: "#/components/schemas/analytics-EmptyEventAttribute"
                                        oneOf:
                                          - type: object
                                            title: Event parameter
                                            properties:
                                              type:
                                                x-class-name: ParamEventAttributeType
                                                enum:
                                                  - PARAM
                                                description: This `type` refers to parameters in an event.
                                              param:
                                                type: string
                                                description: Name of the parameter
                                            required:
                                              - type
                                          - type: object
                                            title: Event aggregate
                                            properties:
                                              type:
                                                x-class-name: RunningAggregateEventAttributeType
                                                type: string
                                                enum:
                                                  - RUNNING_AGGREGATE
                                                description: This type refers to event aggregates. You must provide the ID of the aggregate.
                                              id:
                                                type: string
                                                format: uuid
                                                description: ID of the event aggregate
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            title: Expression
                                            properties:
                                              type:
                                                x-class-name: ExpressionEventAttributeType
                                                type: string
                                                enum:
                                                  - EXPRESSION
                                                description: This type refers to expressions. You must provide the ID of the expression.
                                              id:
                                                type: string
                                                format: uuid
                                                description: ID of the expression
                                            required:
                                              - type
                                              - id
                                          - type: object
                                            title: Special property
                                            properties:
                                              type:
                                                x-class-name: SpecialEventAttributeType
                                                type: string
                                                enum:
                                                  - SPECIAL
                                                description: This type lets you access special properties of an event.
                                              special:
                                                type: string
                                                description: The type of special attribute you want to use
                                                enum:
                                                  - TIMESTAMP
                                            required:
                                              - type
                                              - special
                                          - type: object
                                            title: No attribute
                                            properties:
                                              type:
                                                x-class-name: EmptyEventAttributeType
                                                type: string
                                                enum:
                                                  - EMPTY
                                                description: Can be used for analyses whose result isn't based on an attribute, such as `EXISTS`. **Can't be used with `constraint`**.
                                            required:
                                              - type
                                    required:
                                      - constrain
                                      - attribute
                              required:
                                - action
                                - title
                                - expressions
                          exact:
                            type: boolean
                            default: false
                            description: |
                              When true, the profile's events must be exactly as in the funnel. For example, if the profile's history has events `A -> B -> C -> D`, and the funnel is `A -> C -> D`, the match is not exact, because there is an event between A and C.
                        required:
                          - title
                          - steps
                    required:
                      - type
                      - funnel
                  - type: object
                    properties:
                      type:
                        description: Logical operator between expressions
                        x-class-name: OperatorFilterBoxType
                        type: string
                        enum:
                          - OPERATOR
                      name:
                        type: string
                        description: Name of the resource
                      logic:
                        x-class-name: FilterBoxOperatorType
                        type: string
                        enum:
                          - OR
                          - AND
                          - LEFT_BRACKET
                          - RIGHT_BRACKET
                    required:
                      - type
                      - name
                      - logic
            expression:
              $ref: "#/components/schemas/analytics-FilterExpressionContent"
          required:
            - type
            - expressions
        - description: An empty value
          type: object
          properties:
            type:
              description: An empty value
              x-class-name: EmptyFilterExpressionContentType
              type: string
              enum:
                - EMPTY
            name:
              type: string
          required:
            - type
  securitySchemes:
    JWT:
      type: http
      scheme: bearer
      description: |-
        JWT Bearer token. The header looks like this: `Bearer {JWT}`

        Remember to include the space between 'Bearer' and the token.

        Generate a token via the **Authorization** endpoints.
````
