Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions examples/generated-rq/adyen-checkout/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export interface Agency {

export interface Airline {
agency?: Agency
boardingFee?: bigint
boardingFee?: number /* int64, precision limited to 2^53-1 */
code?: string
computerizedReservationSystem?: string
customerReferenceNumber?: string
Expand Down Expand Up @@ -396,12 +396,12 @@ export interface AmazonPayDetails {

export interface Amount {
currency: string
value: bigint
value: number /* int64, precision limited to 2^53-1 */
}

export interface Amounts {
currency: string
values: bigint[]
values: number /* int64, precision limited to 2^53-1 */[]
}

export interface AncvDetails {
Expand Down Expand Up @@ -1199,9 +1199,9 @@ export interface DokuDetails {
export interface Donation {
currency: string
donationType: string
maxRoundupAmount?: bigint
maxRoundupAmount?: number /* int64, precision limited to 2^53-1 */
type: string
values?: bigint[]
values?: number /* int64, precision limited to 2^53-1 */[]
}

export interface DonationCampaign {
Expand Down Expand Up @@ -1530,12 +1530,12 @@ export interface Item {
export interface ItemDetailLine {
commodityCode?: string
description?: string
discountAmount?: bigint
discountAmount?: number /* int64, precision limited to 2^53-1 */
productCode?: string
quantity?: bigint
totalAmount?: bigint
quantity?: number /* int64, precision limited to 2^53-1 */
totalAmount?: number /* int64, precision limited to 2^53-1 */
unitOfMeasure?: string
unitPrice?: bigint
unitPrice?: number /* int64, precision limited to 2^53-1 */
}

export interface KlarnaDetails {
Expand Down Expand Up @@ -1572,7 +1572,7 @@ export interface Leg {
classOfTravel?: string
dateOfTravel?: string /* date-time */
departureAirportCode?: string
departureTax?: bigint
departureTax?: number /* int64, precision limited to 2^53-1 */
destinationAirportCode?: string
fareBasisCode?: string
flightNumber?: string
Expand All @@ -1582,17 +1582,17 @@ export interface Leg {
export interface LevelTwoThree {
customerReferenceNumber?: string
destination?: Destination
dutyAmount?: bigint
freightAmount?: bigint
dutyAmount?: number /* int64, precision limited to 2^53-1 */
freightAmount?: number /* int64, precision limited to 2^53-1 */
itemDetailLines?: ItemDetailLine[]
orderDate?: string /* date */
shipFromPostalCode?: string
totalTaxAmount?: bigint
totalTaxAmount?: number /* int64, precision limited to 2^53-1 */
}

export interface LineItem {
amountExcludingTax?: bigint
amountIncludingTax?: bigint
amountExcludingTax?: number /* int64, precision limited to 2^53-1 */
amountIncludingTax?: number /* int64, precision limited to 2^53-1 */
brand?: string
color?: string
description?: string
Expand All @@ -1602,12 +1602,12 @@ export interface LineItem {
manufacturer?: string
marketplaceSellerId?: string
productUrl?: string
quantity?: bigint
quantity?: number /* int64, precision limited to 2^53-1 */
receiverEmail?: string
size?: string
sku?: string
taxAmount?: bigint
taxPercentage?: bigint
taxAmount?: number /* int64, precision limited to 2^53-1 */
taxPercentage?: number /* int64, precision limited to 2^53-1 */
upc?: string
}

Expand Down Expand Up @@ -2550,7 +2550,7 @@ export interface PixPayByBankDetails {

export interface PixPayByBankRiskSignals {
confidenceScore?: ConfidenceScore
elapsedTimeSinceBoot?: bigint
elapsedTimeSinceBoot?: number /* int64, precision limited to 2^53-1 */
isRootedDevice?: boolean
language?: string
osVersion?: string
Expand Down Expand Up @@ -2876,7 +2876,7 @@ export interface Split {

export interface SplitAmount {
currency?: string
value: bigint
value: number /* int64, precision limited to 2^53-1 */
}

export interface StandalonePaymentCancelRequest {
Expand Down Expand Up @@ -3018,7 +3018,7 @@ export interface SubMerchantInfo {
}

export interface Surcharge {
value: bigint
value: number /* int64, precision limited to 2^53-1 */
}

export interface TaxTotal {
Expand Down
2 changes: 1 addition & 1 deletion examples/generated-rq/adyen-legal-entity/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Address {

export interface Amount {
currency?: string
value?: bigint
value?: number /* int64, precision limited to 2^53-1 */
}

export interface Attachment {
Expand Down
38 changes: 19 additions & 19 deletions examples/generated-rq/devto/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export interface ArticleIndex {

export interface VideoArticle {
type_of?: string
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
path?: string
cloudinary_video_url?: string
title?: string
user_id?: bigint
user_id?: number /* int64, precision limited to 2^53-1 */
video_duration_in_minutes?: string
video_source_url?: string
user?: {
Expand Down Expand Up @@ -78,13 +78,13 @@ export interface Organization {
}

export interface FollowedTag {
id: bigint
id: number /* int64, precision limited to 2^53-1 */
name: string
points: number
}

export interface Tag {
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
name?: string
bg_color_hex?: string | null
text_color_hex?: string | null
Expand Down Expand Up @@ -138,7 +138,7 @@ export interface SharedOrganization {

export interface User {
type_of?: string
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
username?: string
name?: string
summary?: string | null
Expand All @@ -152,7 +152,7 @@ export interface User {

export interface ExtendedUser {
type_of?: string
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
username?: string
name?: string
summary?: string | null
Expand All @@ -168,7 +168,7 @@ export interface ExtendedUser {

export interface MyUser {
type_of?: string
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
username?: string
name?: string
summary?: string | null
Expand Down Expand Up @@ -261,7 +261,7 @@ export interface SegmentUserIds {
}

export interface AgentSessionIndex {
id: bigint
id: number /* int64, precision limited to 2^53-1 */
slug: string
title: string
tool_name: string
Expand All @@ -273,7 +273,7 @@ export interface AgentSessionIndex {
}

export interface AgentSessionShow {
id: bigint
id: number /* int64, precision limited to 2^53-1 */
slug: string
title: string
tool_name: string
Expand All @@ -290,7 +290,7 @@ export interface AgentSessionShow {

export interface PollOption {
type_of: 'poll_option'
id: bigint
id: number /* int64, precision limited to 2^53-1 */
markdown: string | null
processed_html: string | null
position: number
Expand All @@ -300,7 +300,7 @@ export interface PollOption {

export interface Poll {
type_of: 'poll'
id: bigint
id: number /* int64, precision limited to 2^53-1 */
prompt_markdown: string | null
prompt_html: string | null
poll_type_of: 'single_choice' | 'multiple_choice' | 'scale' | 'text_input'
Expand All @@ -317,7 +317,7 @@ export interface Poll {

export interface Survey {
type_of: 'survey'
id: bigint
id: number /* int64, precision limited to 2^53-1 */
title: string
slug: string
survey_type_of: 'community_pulse' | 'industry' | 'fun'
Expand All @@ -334,20 +334,20 @@ export type SurveyWithPolls = Survey & {

export interface PollVote {
type_of: 'poll_vote'
id: bigint
poll_id: bigint
poll_option_id: bigint
user_id: bigint
id: number /* int64, precision limited to 2^53-1 */
poll_id: number /* int64, precision limited to 2^53-1 */
poll_option_id: number /* int64, precision limited to 2^53-1 */
user_id: number /* int64, precision limited to 2^53-1 */
user_email: string
session_start: number
created_at: string /* date-time */
}

export interface PollTextResponse {
type_of: 'poll_text_response'
id: bigint
poll_id: bigint
user_id: bigint
id: number /* int64, precision limited to 2^53-1 */
poll_id: number /* int64, precision limited to 2^53-1 */
user_id: number /* int64, precision limited to 2^53-1 */
user_email: string
text_content: string
session_start: number
Expand Down
16 changes: 8 additions & 8 deletions examples/generated-rq/openai/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface AssignedRoleDetails {
predefined_role: boolean
description: string | null
created_at: number | null
updated_at: bigint | null
updated_at: number /* int64, precision limited to 2^53-1 */ | null
created_by: string | null
created_by_user_obj: Record<string, unknown> | null
metadata: Record<string, unknown> | null
Expand Down Expand Up @@ -682,7 +682,7 @@ export interface Batch {

export interface BatchFileExpirationAfter {
anchor: 'created_at'
seconds: bigint
seconds: number /* int64, precision limited to 2^53-1 */
}

export interface Certificate {
Expand Down Expand Up @@ -1288,7 +1288,7 @@ export interface CreateCompletionRequest {
max_tokens?: number | null
n?: number | null
presence_penalty?: number | null
seed?: bigint | null
seed?: number /* int64, precision limited to 2^53-1 */ | null
stop?: StopConfiguration
stream?: boolean | null
stream_options?: ChatCompletionStreamOptions
Expand Down Expand Up @@ -2302,7 +2302,7 @@ export interface EvalStoredCompletionsSource {

export interface FileExpirationAfter {
anchor: 'created_at'
seconds: bigint
seconds: number /* int64, precision limited to 2^53-1 */
}

export interface FilePath {
Expand Down Expand Up @@ -4498,7 +4498,7 @@ export interface RealtimeConversationItemWithReference {
export interface RealtimeCreateClientSecretRequest {
expires_after?: {
anchor?: 'created_at'
seconds?: bigint
seconds?: number /* int64, precision limited to 2^53-1 */
}
session?: RealtimeSessionCreateRequestGA | RealtimeTranscriptionSessionCreateRequestGA
}
Expand Down Expand Up @@ -5491,7 +5491,7 @@ export interface RealtimeTranslationClientEventSessionUpdate {
export interface RealtimeTranslationClientSecretCreateRequest {
expires_after?: {
anchor?: 'created_at'
seconds?: bigint
seconds?: number /* int64, precision limited to 2^53-1 */
}
session: RealtimeTranslationSessionCreateRequest
}
Expand Down Expand Up @@ -6944,7 +6944,7 @@ export interface UsageAudioSpeechesResult {

export interface UsageAudioTranscriptionsResult {
object: 'organization.usage.audio_transcriptions.result'
seconds: bigint
seconds: number /* int64, precision limited to 2^53-1 */
num_model_requests: number
project_id?: string | null
user_id?: string | null
Expand Down Expand Up @@ -8641,7 +8641,7 @@ export interface WorkflowParam {

export interface ExpiresAfterParam {
anchor: 'created_at'
seconds: bigint
seconds: number /* int64, precision limited to 2^53-1 */
}

export interface RateLimitsParam {
Expand Down
2 changes: 1 addition & 1 deletion examples/generated-rq/petstore-3.0/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export async function uploadFile(

export async function getInventory(
config?: Partial<ClientConfig>
): Promise<Record<string, unknown>> {
): Promise<Record<string, number>> {
const res = await _request('GET', '/store/inventory', {}, config)
return res.json()
}
Expand Down
12 changes: 6 additions & 6 deletions examples/generated-rq/petstore-3.0/models.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// This file is auto-generated by openapi-zod-ts - do not edit

export interface Order {
id?: bigint
petId?: bigint
id?: number /* int64, precision limited to 2^53-1 */
petId?: number /* int64, precision limited to 2^53-1 */
quantity?: number
shipDate?: string /* date-time */
status?: 'placed' | 'approved' | 'delivered'
complete?: boolean
}

export interface Category {
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
name?: string
}

export interface User {
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
username?: string
firstName?: string
lastName?: string
Expand All @@ -26,12 +26,12 @@ export interface User {
}

export interface Tag {
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
name?: string
}

export interface Pet {
id?: bigint
id?: number /* int64, precision limited to 2^53-1 */
name: string
category?: Category
photoUrls: string[]
Expand Down
Loading
Loading