> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Cognite Data Fusion (CDF) is an industrial DataOps platform. Prefer English docs unless the user asks for another locale.
> Follow /_llms/ index links recursively until you reach page URLs ending in .md. Fetch those Markdown twins instead of HTML.
> For REST APIs, default to calendar version 20230101 (stable). Use 20230101-beta or 20230101-alpha only if the user is on a preview API. Cite paths under /api-reference/concepts/<version>/ and the Cdf-Version header. Prefer the Python SDK (cognite-sdk) unless the user is in JavaScript/TypeScript.
> Start here by task: platform overview /cdf/index.md; data modeling /cdf/dm/index.md; data integration /cdf/integration/index.md; access /cdf/access/index.md; CDF Toolkit /cdf/deploy/cdf_toolkit/index.md; REST quickstart /dev/quickstart.md; Python SDK https://cognite-sdk-python.readthedocs-hosted.com/en/stable/; Atlas AI /cdf/atlas_ai/concepts/index.md; Flows apps /cdf/flows/index.md; MCP and IDE setup /dev/guides/ide_ai_integration.md.
> For implementation work, also load /skill.md.

# Filter sequences

> Lists sequences that match a filter. This endpoint is for exploration. Requires `sequencesAcl:READ`. See [Advanced filtering](/api-reference/concepts/20230101/sequences#advanced-filtering).



## OpenAPI

````yaml https://storage.googleapis.com/cognitedata-api-docs/dist/20230101-beta.json post /sequences/list
openapi: 3.1.0
info:
  title: Cognite API
  description: >-
    Reference documentation for the Cognite Data Fusion (CDF) API. See the [API
    introduction](/api-reference/concepts/20230101/api-description) and [API
    changelog](/api-reference/changelog).
  version: v1
  contact:
    name: Cognite Support
    url: https://support.cognite.com
    email: support@cognite.com
servers:
  - url: https://{cluster}.cognitedata.com/api/v1/projects/{project}
    description: The URL for the CDF cluster to connect to
    variables:
      cluster:
        enum:
          - api
          - az-tyo-gp-001
          - az-eastus-1
          - az-power-no-northeurope
          - westeurope-1
          - asia-northeast1-1
          - gc-dsm-gp-001
        default: api
        description: The CDF cluster to connect to
      project:
        default: publicdata
        description: The CDF project name.
security:
  - oidc-token:
      - https://{cluster}.cognitedata.com/.default
  - oauth2-client-credentials:
      - https://{cluster}.cognitedata.com/.default
  - oauth2-open-industrial-data:
      - https://api.cognitedata.com/.default
  - oauth2-auth-code:
      - https://{cluster}.cognitedata.com/.default
tags:
  - name: Token
  - name: Assets
  - name: Data Modeling
    x-uri-format-fragments: []
  - name: Streams
  - name: Records
  - name: Events
  - name: Files
  - name: Functions
  - name: Function calls
  - name: Function schedules
  - name: Function Apps
  - name: Function App Calls
  - name: Function App MCP
  - name: 3D
  - name: Time series
  - name: Data point subscriptions
  - name: Synthetic Time Series
  - name: Raw
    x-uri-format-fragments: []
  - name: Groups
  - name: Projects
  - name: Security categories
  - name: Data sets
  - name: Sequences
  - name: Labels
  - name: Relationships
  - name: Entity matching
  - name: Entity matching pipelines
  - name: Diagram parsing
  - name: Vision
  - name: Agents
  - name: Skills
  - name: Project Configuration
  - name: Models
  - name: Cognite AI
  - name: Documents
  - name: Document preview
    x-displayName: Preview
  - name: Geospatial
  - name: SessionsInternal
  - name: Sessions
  - name: Extraction Pipelines
  - name: Extraction Pipelines Runs
  - name: Extraction Pipelines Config
  - name: Extractors
  - name: Transformations
  - name: Transformation Jobs
  - name: Transformation Schedules
  - name: Transformation Notifications
  - name: Query
  - name: Schema
  - name: Transformation External Data Sources
  - name: Annotations
  - name: User profiles
  - name: Workflows
  - name: Workflow versions
  - name: Workflow executions
  - name: Tasks
  - name: Workflow triggers
  - name: Sources
  - name: Jobs
  - name: Destinations
  - name: Mappings
  - name: Previews
  - name: Postgres Gateway Users
  - name: Postgres Gateway Tables
  - name: SAP Instances
  - name: SAP Endpoints
  - name: Schema Mappings
  - name: Writeback Requests
  - name: Simulators
  - name: Simulator Integrations
  - name: Simulator Routines
  - name: Simulator Models
  - name: Simulation Runs
  - name: Simulator Logs
  - name: Units
  - name: Unit Systems
  - name: Application Data Storage
  - name: Location Filters
  - name: User Preferences
  - name: User History
  - name: Search Config
  - name: Organizations
  - name: Applications
  - name: Integrations
  - name: Integration Tasks
  - name: Integration Actions
  - name: Integration Configuration
  - name: Integration Errors
  - name: Principals
  - name: Signals
  - name: Data products
paths:
  /sequences/list:
    post:
      tags:
        - Sequences
      summary: Filter sequences
      description: >-
        Lists sequences that match a filter. This endpoint is for exploration.
        Requires `sequencesAcl:READ`. See [Advanced
        filtering](/api-reference/concepts/20230101/sequences#advanced-filtering).
      operationId: advancedListSequences
      requestBody:
        description: Retrieves a list of sequences matching the given criteria.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SequencesAdvancedListDTO'
      responses:
        '200':
          description: Response with a list of sequences matching the given criteria.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SequenceWithCursorResponse'
      deprecated: true
      x-code-samples:
        - lang: JavaScript
          label: JavaScript SDK
          source: >-
            const sequences = await client.sequences.list({ filter: { name:
            'sequence_name' } });
        - lang: Python
          label: Python SDK
          source: >
            from cognite.client.data_classes import filters

            asset_filter = filters.Equals("asset_id", 123)

            is_efficiency = filters.Equals(["metadata", "type"], "efficiency")

            res = client.sequences.filter(filter=filters.And(asset_filter,
            is_efficiency), sort="created_time")


            from cognite.client.data_classes import filters

            from cognite.client.data_classes.sequences import SequenceProperty,
            SortableSequenceProperty

            asset_filter = filters.Equals(SequenceProperty.asset_id, 123)

            is_efficiency =
            filters.Equals(SequenceProperty.metadata_key("type"), "efficiency")

            res = client.sequences.filter(
                filter=filters.And(asset_filter, is_efficiency),
                sort=SortableSequenceProperty.created_time)
            res = client.sequences.list(limit=5)


            for seq in client.sequences:
                seq # do something with the sequence

            for seq_list in client.sequences(chunk_size=2500):
                seq_list # do something with the sequences

            from cognite.client.data_classes import filters

            in_timezone = filters.Prefix(["metadata", "timezone"], "Europe")

            res = client.sequences.list(advanced_filter=in_timezone,
            sort=("external_id", "asc"))


            from cognite.client.data_classes import filters

            from cognite.client.data_classes.sequences import SequenceProperty,
            SortableSequenceProperty

            in_timezone =
            filters.Prefix(SequenceProperty.metadata_key("timezone"), "Europe")

            res = client.sequences.list(
                advanced_filter=in_timezone,
                sort=(SortableSequenceProperty.external_id, "asc"))

            from cognite.client.data_classes import filters

            not_instrument_lvl5 = filters.And(
               filters.ContainsAny("labels", ["Level5"]),
               filters.Not(filters.ContainsAny("labels", ["Instrument"]))
            )

            res = client.sequences.list(asset_subtree_ids=[123456],
            advanced_filter=not_instrument_lvl5)
        - lang: Java
          label: Java SDK
          source: |+
            List<SequenceMetadata> listSequencesResults = new ArrayList<>(); 
             client.sequences() 
                      .list() 
                      .forEachRemaining(sequences -> listSequencesResults.addAll(sequences)); 

             client.sequences() 
                      .list(Request.create() 
                           .withFilterMetadataParameter("source", "sdk-data-generator")) 
                      .forEachRemaining(sequences -> listSequencesResults.addAll(sequences)); 

components:
  schemas:
    SequencesAdvancedListDTO:
      allOf:
        - type: object
          properties:
            filter:
              $ref: '#/components/schemas/SequenceFilter'
            advancedFilter:
              $ref: '#/components/schemas/SequencesFilterLanguage'
            limit:
              description: Returns up to this many results per page.
              maximum: 1000
              minimum: 1
              type: integer
              format: int32
              default: 100
        - $ref: '#/components/schemas/Cursor'
        - $ref: '#/components/schemas/PartitionObject'
        - $ref: '#/components/schemas/SequencesSort'
    SequenceWithCursorResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GetSequenceDTO'
        nextCursor:
          type: string
          description: >-
            The cursor to get the next page of results (if available). Learn
            more about
            [pagination](https://docs.cognite.com/dev/concepts/pagination).
    SequenceFilter:
      type: object
      properties:
        name:
          type: string
          description: Returns only sequences with this name.
        externalIdPrefix:
          $ref: '#/components/schemas/CogniteExternalIdPrefix'
        metadata:
          description: >-
            Filters the sequences by metadata fields and values. Format is
            {'key1':'value1','key2':'value2'}.
          example:
            key1: value1
            key2: value2
          type: object
        assetIds:
          type: array
          description: Returns only sequences linked to one of the specified assets.
          example:
            - 363848954441724
            - 793045462540095
            - 1261042166839739
          items:
            $ref: '#/components/schemas/CogniteInternalId'
          minItems: 1
          maxItems: 100
          uniqueItems: true
        rootAssetIds:
          type: array
          description: >-
            Only includes sequences that have a related asset in a tree rooted
            at any of these root `assetIds`.
          example:
            - 363848954441724
            - 793045462540095
            - 1261042166839739
          items:
            $ref: '#/components/schemas/CogniteInternalId'
          minItems: 1
          maxItems: 100
          uniqueItems: true
        assetSubtreeIds:
          type: array
          description: >-
            Only includes sequences that have a related asset in a subtree
            rooted at any of these `assetIds` (including the roots given). If
            the total size of the given subtrees exceeds 100,000 assets, an
            error will be returned.
          example:
            - id: 1234567890
            - externalId: externalId123
          items:
            $ref: '#/components/schemas/AssetIdEither'
          minItems: 1
          maxItems: 100
          uniqueItems: true
        createdTime:
          $ref: '#/components/schemas/EpochTimestampRange'
        lastUpdatedTime:
          $ref: '#/components/schemas/EpochTimestampRange'
        dataSetIds:
          type: array
          maxItems: 100
          uniqueItems: true
          description: Only includes sequences that belong to these datasets.
          items:
            $ref: '#/components/schemas/DataSetIdEither'
    SequencesFilterLanguage:
      type: object
      description: >
        A filter DSL (Domain Specific Language) to define advanced filter
        queries.


        At the top level, an `advancedFilter` expression is either a single
        Boolean filter or a

        single leaf filter. Boolean filters contain other Boolean filters and/or
        leaf filters. The

        total number of filters may be at most 100, and the depth (the greatest
        number of times

        filters have been nested inside each other) may be at most 10. The
        `search` leaf filter may

        at most be used twice within a single `advancedFilter`, but all other
        filters can be used

        as many times as you like as long as the other limits are respected.
      oneOf:
        - $ref: '#/components/schemas/SequencesBoolFilter'
        - $ref: '#/components/schemas/SequencesLeafFilter'
      example:
        or:
          - not:
              and:
                - equals:
                    property:
                      - metadata
                      - manufacturer
                    value: acme
                - in:
                    property:
                      - name
                    values:
                      - pump-1-temperature
                      - motor-9-temperature
                - range:
                    property:
                      - dataSetId
                    gte: 1
                    lt: 10
          - and:
              - equals:
                  property:
                    - assetId
                  value: 1234
              - equals:
                  property:
                    - description
                  value: Temperature in Celsius
    Cursor:
      type: object
      properties:
        cursor:
          type: string
          example: 4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo
      description: >
        Cursor for paging through results. In general, if a response contains a
        `nextCursor`

        property, it means that there may be more results, and you should pass
        that value as the

        `cursor` parameter in the next request.


        Note that the cursor may or may not be encrypted, but either way, it is
        not intended to be

        decoded. Its internal structure is not a part of the public API, and may
        change without

        notice. You should treat it as an opaque string and not attempt to craft
        your own cursors.
    PartitionObject:
      type: object
      properties:
        partition:
          $ref: '#/components/schemas/Partition'
    SequencesSort:
      type: object
      properties:
        sort:
          description: |
            Sort by array of selected properties.
          type: array
          minItems: 1
          maxItems: 2
          items:
            $ref: '#/components/schemas/SequencesSortItem'
    GetSequenceDTO:
      type: object
      required:
        - id
        - columns
        - createdTime
        - lastUpdatedTime
      description: Information about the sequence stored in the database.
      properties:
        id:
          type: integer
          description: Unique Cognite-provided identifier for the sequence.
          example: 1
          format: int64
          readOnly: true
        name:
          type: string
          example: Any relevant name
          description: Name of the sequence.
        description:
          type: string
          example: Optional description
          description: Description of the sequence.
        assetId:
          type: integer
          example: 1221123111
          description: Optional asset this sequence is associated with.
          format: int64
        externalId:
          $ref: '#/components/schemas/CogniteExternalId'
        metadata:
          type: object
          example:
            extracted-by: cognite
          description: >-
            Custom, application specific metadata. String key -> String value.
            Maximum length of key is 128 bytes, up to 256 key-value pairs, up to
            a total size of 10000 bytes across all keys and values.
          additionalProperties:
            type: string
        columns:
          type: array
          description: List of column definitions.
          items:
            $ref: '#/components/schemas/GetSequenceColumnDTO'
        createdTime:
          type: integer
          example: 100000000000
          description: >-
            Time when this sequence was created in CDF in milliseconds since Jan
            1, 1970.
          format: int64
          readOnly: true
        lastUpdatedTime:
          type: integer
          example: 100000000000
          description: >-
            The last time this sequence was updated in CDF, in milliseconds
            since Jan 1, 1970.
          format: int64
          readOnly: true
        dataSetId:
          type: integer
          format: int64
          description: Data set this sequence belongs to.
          example: 2718281828459
    CogniteExternalIdPrefix:
      description: Filter by this (case-sensitive) prefix for the external ID.
      type: string
      maxLength: 255
      example: my.known.prefix
    CogniteInternalId:
      description: A server-generated ID for the object.
      type: integer
      minimum: 1
      maximum: 9007199254740991
      format: int64
    AssetIdEither:
      oneOf:
        - $ref: '#/components/schemas/AssetInternalId'
        - $ref: '#/components/schemas/AssetExternalId'
    EpochTimestampRange:
      description: Range between two timestamps (inclusive).
      type: object
      properties:
        max:
          description: >-
            Maximum timestamp (inclusive). The timestamp is represented as
            number of milliseconds since 00:00:00 Thursday, 1 January 1970,
            Coordinated Universal Time (UTC), minus leap seconds.
          type: integer
          minimum: 0
          format: int64
        min:
          description: >-
            Minimum timestamp (inclusive). The timestamp is represented as
            number of milliseconds since 00:00:00 Thursday, 1 January 1970,
            Coordinated Universal Time (UTC), minus leap seconds.
          type: integer
          minimum: 0
          format: int64
    DataSetIdEither:
      oneOf:
        - $ref: '#/components/schemas/DataSetInternalId'
        - $ref: '#/components/schemas/DataSetExternalId'
    SequencesBoolFilter:
      description: >
        A query that matches items matching boolean combinations of other
        queries.

        It is built by nesting one or more Boolean clauses, each of which is one
        of `and`, `or`, and `not`.

        Each such clause contains one or more child clauses (though `not` can
        only have one).

        Each child clause can be either another Boolean clause or a leaf filter.
      title: Boolean filter
      type: object
      oneOf:
        - type: object
          title: and
          required:
            - and
          properties:
            and:
              description: >-
                All of the sub-clauses in the query must appear in matching
                items.
              type: array
              minItems: 1
              maxItems: 99
              items:
                $ref: '#/components/schemas/SequencesFilterLanguage'
        - type: object
          title: or
          required:
            - or
          properties:
            or:
              description: >-
                At least one of the sub-clauses in the query must appear in
                matching items.
              type: array
              minItems: 1
              maxItems: 99
              items:
                $ref: '#/components/schemas/SequencesFilterLanguage'
        - type: object
          title: not
          required:
            - not
          properties:
            not:
              title: Filter DSL
              description: Sub-clauses in the query must not appear in matching items.
              type: object
              allOf:
                - $ref: '#/components/schemas/SequencesFilterLanguage'
    SequencesLeafFilter:
      description: |
        Leaf filter.
      title: Leaf filter
      type: object
      oneOf:
        - $ref: '#/components/schemas/SequencesEqualsFilter'
        - $ref: '#/components/schemas/SequencesInFilter'
        - $ref: '#/components/schemas/SequencesRangeFilter'
        - $ref: '#/components/schemas/SequencesPrefixFilter'
        - $ref: '#/components/schemas/SequencesExistsFilter'
        - $ref: '#/components/schemas/SequencesContainsAnyFilter'
        - $ref: '#/components/schemas/SequencesContainsAllFilter'
        - $ref: '#/components/schemas/SequencesSearchFilter'
    Partition:
      description: >
        Splits the data set into `N` partitions.

        The attribute is specified as a "M/N" string, where `M` is a natural
        number in the interval of `[1, N]`.

        You need to follow the cursors within each partition in order to receive
        all the data.


        To prevent unexpected problems and maximize read throughput, you should
        at most use 10 (N <= 10) partitions.


        When using more than 10 partitions, CDF may reduce the number of
        partitions silently.

        For example, CDF may reduce the number of partitions to `K = 10` so if
        you specify an `X/N` `partition` value where `X = 8` and `N = 20` - i.e.
        `"partition": "8/20"`- then

        CDF will change `N` to `N = K = 10` and process the request.

        But if you  specify the `X/N` `partition` value where `X = 11` (`X > K`)
        and `N = 20` - i.e. `"partition": "11/20"`- then

        CDF will reply with an empty result list and no cursor in the response.\


        In future releases of the resource APIs, Cognite may reject requests if
        you specify more than 10 partitions.

        When Cognite enforces this behavior, the requests will result in a 400
        Bad Request status.
      type: string
      example: 1/10
    SequencesSortItem:
      type: object
      required:
        - property
      properties:
        property:
          type: array
          description: |-
            Property to sort on.
            Sorting can be done on the following properties:
              | Property                          |
              |-----------------------------------|
              | `['assetId']`                     |
              | `['createdTime']`                 |
              | `['dataSetId']`                   |
              | `['description']`                 |
              | `['externalId']`                  |
              | `['lastUpdatedTime']`             |
              | `['metadata', '<someCustomKey>']` |
              | `['name']`                        |
              | `['_score_']`                     |
          minItems: 1
          maxItems: 2
          items:
            type: string
            maxLength: 128
        order:
          type: string
          description: >-
            The `order` attribute is optional and defaults to `desc` for
            `_score_` and `asc` for all

            other properties.
          enum:
            - asc
            - desc
        nulls:
          type: string
          description: >-
            The `nulls` attribute is optional and defaults to `auto`. `auto` is
            translated to `last`

            for the `asc` order and to `first` for the `desc` order.
          enum:
            - first
            - last
            - auto
          default: auto
    CogniteExternalId:
      description: >-
        The external ID provided by the client. Must be unique for the resource
        type.
      type: string
      maxLength: 255
      example: my.known.id
    GetSequenceColumnDTO:
      type: object
      required:
        - id
        - valueType
        - createdTime
        - lastUpdatedTime
      description: Information about a column stored in the database.
      properties:
        name:
          type: string
          example: depth
          description: Human readable name of the column.
        externalId:
          type: string
          example: DPS1
          description: User provided column identifier (unique for a given sequence).
        description:
          type: string
          example: Optional description
          description: Description of the column.
        valueType:
          $ref: '#/components/schemas/SequenceValueTypeEnum'
        metadata:
          type: object
          example:
            extracted-by: cognite
          description: Custom, application specific metadata. String key -> String value.
          additionalProperties:
            type: string
        createdTime:
          type: integer
          example: 100000000000
          description: >-
            Time when this asset was created in CDF in milliseconds since Jan 1,
            1970.
          format: int64
          readOnly: true
        lastUpdatedTime:
          type: integer
          example: 100000000000
          description: >-
            The last time this asset was updated in CDF, in milliseconds since
            Jan 1, 1970.
          format: int64
          readOnly: true
    AssetInternalId:
      type: object
      required:
        - id
      properties:
        id:
          $ref: '#/components/schemas/CogniteInternalId'
    AssetExternalId:
      type: object
      required:
        - externalId
      properties:
        externalId:
          $ref: '#/components/schemas/CogniteExternalId'
    DataSetInternalId:
      type: object
      title: DataSetInternalId
      required:
        - id
      properties:
        id:
          $ref: '#/components/schemas/CogniteInternalId'
    DataSetExternalId:
      type: object
      title: DataSetExternalId
      required:
        - externalId
      properties:
        externalId:
          $ref: '#/components/schemas/CogniteExternalId'
    SequencesEqualsFilter:
      type: object
      title: equals
      required:
        - equals
      properties:
        equals:
          required:
            - property
            - value
          description: >
            Matches items where the given property is **exactly** equal to the
            given value.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            value:
              $ref: '#/components/schemas/SequencesValue'
    SequencesInFilter:
      type: object
      title: in
      required:
        - in
      properties:
        in:
          required:
            - property
            - values
          description: >
            Matches items where the given property is **exactly** equal to one
            of the given values.

            This filter can only be applied to single-valued properties.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            values:
              $ref: '#/components/schemas/SequencesValues'
    SequencesRangeFilter:
      type: object
      title: range
      required:
        - range
      properties:
        range:
          required:
            - property
          description: >
            Matches items that contain terms within the provided range.


            One upper bound and/or one lower bound must be specified. It's not
            allowed to specify both inclusive and exclusive

            bounds "on the same side" together (at most one of `lte` and `lt`
            may be specified, and at most one of `gte` and `gt`).

            - `gte`: Greater than or equal to.

            - `gt`: Greater than.

            - `lte`: Less than or equal to.

            - `lt`: Less than.


            May only be applied to string properties and number properties.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            gte:
              $ref: '#/components/schemas/SequencesRangeValue'
            gt:
              $ref: '#/components/schemas/SequencesRangeValue'
            lte:
              $ref: '#/components/schemas/SequencesRangeValue'
            lt:
              $ref: '#/components/schemas/SequencesRangeValue'
    SequencesPrefixFilter:
      type: object
      title: prefix
      required:
        - prefix
      properties:
        prefix:
          required:
            - property
            - value
          description: >
            Matches items where the provided property begins with the given
            text.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            value:
              $ref: '#/components/schemas/SequencesStringValue'
    SequencesExistsFilter:
      type: object
      title: exists
      required:
        - exists
      properties:
        exists:
          required:
            - property
          description: |
            Matches items that have a value for the specified property.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
    SequencesContainsAnyFilter:
      type: object
      title: containsAny
      required:
        - containsAny
      properties:
        containsAny:
          required:
            - property
            - values
          description: >
            Matches items where the property contains one or more of the given
            values.

            This filter can only be applied to multivalued properties.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            values:
              $ref: '#/components/schemas/SequencesValues'
    SequencesContainsAllFilter:
      type: object
      title: containsAll
      required:
        - containsAll
      properties:
        containsAll:
          required:
            - property
            - values
          description: |
            Matches items where the property contains all the given values.
            This filter can only be applied to multivalued properties.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            values:
              $ref: '#/components/schemas/SequencesValues'
    SequencesSearchFilter:
      type: object
      title: search
      required:
        - search
      properties:
        search:
          required:
            - property
            - value
          description: >
            Matches items where the provided string property contains the given
            value according to a fuzzy search.

            The value may exist anywhere in the string, even as a part of a word
            or with some grammatical

            variations (e.g., searching for "run" will also find "ran").


            The supported properties are `name` and `description`. It's also
            possible to set `property`

            to `["query"]`, in which case both `name` and `description` will be
            searched.


            When the `search` filter is being used, and it's not nested inside a
            `not` filter (directly or indirectly),

            and no `sort` is specified, the results will be ranked according to
            how good the match is.

            When the `query` 'property' is specified, matches in `name` will
            rank higher than matches in `description`.

            The `search` filter may be used at most twice within the same
            `advancedFilter` expression.
          type: object
          properties:
            property:
              $ref: '#/components/schemas/SequencesFilterProperty'
            value:
              $ref: '#/components/schemas/SequencesStringValue'
    SequenceValueTypeEnum:
      type: string
      description: >-
        What type the datapoints in a column will have. DOUBLE is restricted to
        the range [-1E100, 1E100]
      default: DOUBLE
      enum:
        - STRING
        - DOUBLE
        - LONG
    SequencesFilterProperty:
      description: >
        The property on which you want to filter. May be either:

        - A single-element list that contains the name of one of the predefined
        top-level
          properties, in which case the filter will be applied to that top-level property.
        - A single-element list that contains `'metadata'`, in which case the
        filter will be applied
          to _all_ metadata properties.
        - A two-element list where the first element is `'metadata'` and the
        second one is any
          string, in which case the filter will be applied to metadata properties with that name.
      type: array
      minItems: 1
      maxItems: 2
      items:
        type: string
        minLength: 1
        maxLength: 256
    SequencesValue:
      description: |
        A value that you wish to find in the provided property.
      oneOf:
        - type: string
          maxLength: 256
        - type: number
        - type: integer
        - type: boolean
    SequencesValues:
      description: |
        One or more values that you wish to find in the provided properties.
      type: array
      minItems: 1
      maxItems: 100
      items:
        $ref: '#/components/schemas/SequencesValue'
    SequencesRangeValue:
      description: An upper or lower bound in a `range` filter.
      oneOf:
        - type: string
          maxLength: 256
        - type: number
        - type: integer
    SequencesStringValue:
      title: String
      description: |
        A value that you wish to find in the provided property.
      type: string
      maxLength: 256
  securitySchemes:
    oidc-token:
      type: http
      scheme: bearer
      bearerFormat: OpenID Connect or OAuth2 token
      description: >-
        Access token issued by the CDF project's configured identity provider.
        Access token must be an OpenID Connect token, and the project must be
        configured to accept OpenID Connect tokens. Use a header key of
        'Authorization' with a value of 'Bearer $accesstoken'. The token can be
        obtained through any flow supported by the identity provider.
    oauth2-client-credentials:
      type: oauth2
      description: >-
        Access token issued by the CDF project's configured identity provider.
        Access token must be an OpenID Connect token, and the project must be
        configured to accept OpenID Connect tokens. Use a header key of
        'Authorization' with a value of 'Bearer $accesstoken'. The token can be
        obtained through any flow supported by the identity provider.
      flows:
        clientCredentials:
          tokenUrl: https://your-idps.token.url/
          scopes:
            default: https://{cluster}.cognitedata.com/.default
    oauth2-open-industrial-data:
      type: oauth2
      description: >-
        Auth flow for Open Industrial Data. Get your client secret from
        https://hub.cognite.com/open-industrial-data-211.
      flows:
        clientCredentials:
          tokenUrl: >-
            https://login.microsoftonline.com/48d5043c-cf70-4c49-881c-c638f5796997/oauth2/v2.0/token
          scopes:
            default: https://api.cognitedata.com/.default
    oauth2-auth-code:
      type: oauth2
      description: >-
        Access token issued by the CDF project's configured identity provider.
        Access token must be an OpenID Connect token, and the project must be
        configured to accept OpenID Connect tokens. Use a header key of
        'Authorization' with a value of 'Bearer $accesstoken'. The token can be
        obtained through any flow supported by the identity provider.
      flows:
        authorizationCode:
          authorizationUrl: https://your-idps.authorization.url/
          tokenUrl: https://your-idps.token.url/
          scopes:
            default: https://{cluster}.cognitedata.com/.default

````