Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
1477a90 verified
Raw
History Blame Contribute Delete
1.34 kB
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
import { z } from 'zod'
import * as schemas from '../schemas.js'
import type { AcceptDateStrings } from '../../lib/wire.js'
import type {
CursorPaginationQueryPage,
EventInput,
IngestedEventPaginatedResponse,
ListEventsParamsFilter,
SortQueryInput,
} from '../types.js'
export interface ListMeteringEventsQuery {
page?: CursorPaginationQueryPage
/**
* Filter events returned in the response.
*
* To filter events by subject add the following query param:
* filter[subject][eq]=customer-1
*/
filter?: ListEventsParamsFilter
/**
* Sort events returned in the response. Supported sort attributes are:
*
* - `time` (default)
* - `ingested_at`
* - `stored_at`
*
* When omitted, events are sorted by `time desc` (most recent first). When a sort
* field is provided without a suffix, it sorts descending. Append the `asc` suffix
* to sort ascending, or the `desc` suffix to sort descending.
*/
sort?: SortQueryInput
}
export type ListMeteringEventsRequest =
AcceptDateStrings<ListMeteringEventsQuery>
export type ListMeteringEventsResponse = IngestedEventPaginatedResponse
export type IngestMeteringEventsRequest = AcceptDateStrings<
EventInput | EventInput[]
>
export type IngestMeteringEventsResponse = void