Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
1477a90 verified
Raw
History Blame Contribute Delete
1.53 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 {
CreatePlanRequestInput,
ListPlansParamsFilter,
Plan,
PlanPagePaginatedResponse,
SortQueryInput,
UpsertPlanRequestInput,
} from '../types.js'
export interface ListPlansQuery {
/** Determines which page of the collection to retrieve. */
page?: { size?: number; number?: number }
/**
* Sort plans returned in the response. Supported sort attributes are:
*
* - `id`
* - `key`
* - `version`
* - `created_at` (default)
* - `updated_at`
*/
sort?: SortQueryInput
/** Filter plans returned in the response. */
filter?: ListPlansParamsFilter
}
export type ListPlansRequest = AcceptDateStrings<ListPlansQuery>
export type ListPlansResponse = PlanPagePaginatedResponse
export type CreatePlanRequest = AcceptDateStrings<CreatePlanRequestInput>
export type CreatePlanResponse = Plan
export type UpdatePlanRequest = AcceptDateStrings<{
planId: string
body: UpsertPlanRequestInput
}>
export type UpdatePlanResponse = Plan
export type GetPlanRequest = {
planId: string
}
export type GetPlanResponse = Plan
export type DeletePlanRequest = {
planId: string
}
export type DeletePlanResponse = void
export type ArchivePlanRequest = {
planId: string
}
export type ArchivePlanResponse = Plan
export type PublishPlanRequest = {
planId: string
}
export type PublishPlanResponse = Plan