Interface ActivityQueryParams

Strongly-typed query params for mosaia.activities.get(). Mirrors the filters supported by the api-core GET /v1/activity route and the SDK's Activity.query() method.

Extends QueryParams so generic pagination/search params (like q, tags, active) still pass through transparently.

interface ActivityQueryParams {
    q?: string;
    limit?: number;
    offset?: number;
    tags?: string[];
    active?: boolean;
    external_id?: string;
    resource?: ActivityResource;
    resource_id?: string;
    operation?: ActivityOperation;
    since?: string;
    user?: string;
    org?: string;
    all?: boolean;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

    Additional custom query parameters

Properties

q?: string

Search term for text-based filtering

limit?: number

Maximum number of items to return

offset?: number

Number of items to skip (for offset-based pagination)

tags?: string[]

Array of tags to filter by

active?: boolean

Filter by active status

external_id?: string

Filter by external ID

resource?: ActivityResource

Restrict to a single resource type (e.g. 'plan', 'task', 'drive_item').

resource_id?: string

Restrict to a specific source-document id. Most useful with resource.

operation?: ActivityOperation

Restrict to a single CRUD operation.

since?: string

Cursor for replay. When set, only rows with _id > since are returned. ObjectIds are time-ordered, so this acts like a "newer than X" filter.

user?: string

Owner user id (admin / super-org use).

org?: string

Owner org id (admin / super-org use).

all?: boolean

When true, return every matching row without pagination. Use with care — there is no upper bound when this is set.