File size: 1,259 Bytes
1477a90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | // 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 {
CreatePlanAddonRequest as CreatePlanAddonRequestBody,
PlanAddon,
PlanAddonPagePaginatedResponse,
UpsertPlanAddonRequest,
} from '../types.js'
export interface ListPlanAddonsQuery {
/** Determines which page of the collection to retrieve. */
page?: { size?: number; number?: number }
}
export type ListPlanAddonsRequest = AcceptDateStrings<
ListPlanAddonsQuery & { planId: string }
>
export type ListPlanAddonsResponse = PlanAddonPagePaginatedResponse
export type CreatePlanAddonRequest = AcceptDateStrings<{
planId: string
body: CreatePlanAddonRequestBody
}>
export type CreatePlanAddonResponse = PlanAddon
export type GetPlanAddonRequest = {
planId: string
planAddonId: string
}
export type GetPlanAddonResponse = PlanAddon
export type UpdatePlanAddonRequest = AcceptDateStrings<{
planId: string
planAddonId: string
body: UpsertPlanAddonRequest
}>
export type UpdatePlanAddonResponse = PlanAddon
export type DeletePlanAddonRequest = {
planId: string
planAddonId: string
}
export type DeletePlanAddonResponse = void
|