diff --git a/examples/generated-rq/adyen-checkout/client-config.ts b/examples/generated-rq/adyen-checkout/client-config.ts index 50aa9f0b..0fb24906 100644 --- a/examples/generated-rq/adyen-checkout/client-config.ts +++ b/examples/generated-rq/adyen-checkout/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * API key or a function that returns one. * Sent as header 'X-API-Key' on every request. diff --git a/examples/generated-rq/adyen-checkout/models.ts b/examples/generated-rq/adyen-checkout/models.ts index 522b34bb..2e9f00bd 100644 --- a/examples/generated-rq/adyen-checkout/models.ts +++ b/examples/generated-rq/adyen-checkout/models.ts @@ -2,44 +2,26 @@ export interface AccountInfo { accountAgeIndicator?: - | 'notApplicable' - | 'thisTransaction' - | 'lessThan30Days' - | 'from30To60Days' - | 'moreThan60Days' + 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days' accountChangeDate?: string /* date-time */ accountChangeIndicator?: - | 'thisTransaction' - | 'lessThan30Days' - | 'from30To60Days' - | 'moreThan60Days' + 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days' accountCreationDate?: string /* date-time */ accountType?: 'notApplicable' | 'credit' | 'debit' addCardAttemptsDay?: number deliveryAddressUsageDate?: string /* date-time */ deliveryAddressUsageIndicator?: - | 'thisTransaction' - | 'lessThan30Days' - | 'from30To60Days' - | 'moreThan60Days' + 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days' homePhone?: string mobilePhone?: string passwordChangeDate?: string /* date-time */ passwordChangeIndicator?: - | 'notApplicable' - | 'thisTransaction' - | 'lessThan30Days' - | 'from30To60Days' - | 'moreThan60Days' + 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days' pastTransactionsDay?: number pastTransactionsYear?: number paymentAccountAge?: string /* date-time */ paymentAccountIndicator?: - | 'notApplicable' - | 'thisTransaction' - | 'lessThan30Days' - | 'from30To60Days' - | 'moreThan60Days' + 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days' purchasesLast6Months?: number suspiciousActivity?: boolean workPhone?: string @@ -1256,11 +1238,7 @@ export interface DonationPaymentRequest { mpiData?: ThreeDSecureData origin?: string paymentMethod?: - | ApplePayDonations - | CardDonations - | GooglePayDonations - | IdealDonations - | PayWithGoogleDonations + ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations recurringProcessingModel?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile' redirectFromIssuerMethod?: string redirectToIssuerMethod?: string @@ -1317,11 +1295,7 @@ export interface EcontextVoucherDetails { shopperEmail: string telephoneNumber: string type: - | 'econtext_seven_eleven' - | 'econtext_online' - | 'econtext' - | 'econtext_stores' - | 'econtext_atm' + 'econtext_seven_eleven' | 'econtext_online' | 'econtext' | 'econtext_stores' | 'econtext_atm' } export interface EftDetails { @@ -1625,14 +1599,7 @@ export interface Mandate { count?: string endsAt: string frequency: - | 'adhoc' - | 'daily' - | 'weekly' - | 'biWeekly' - | 'monthly' - | 'quarterly' - | 'halfYearly' - | 'yearly' + 'adhoc' | 'daily' | 'weekly' | 'biWeekly' | 'monthly' | 'quarterly' | 'halfYearly' | 'yearly' remarks?: string startsAt?: string } @@ -1672,10 +1639,7 @@ export interface MerchantRiskIndicator { deliveryEmail?: string deliveryEmailAddress?: string deliveryTimeframe?: - | 'electronicDelivery' - | 'sameDayShipping' - | 'overnightShipping' - | 'twoOrMoreDaysShipping' + 'electronicDelivery' | 'sameDayShipping' | 'overnightShipping' | 'twoOrMoreDaysShipping' giftCardAmount?: Amount giftCardCount?: number giftCardCurr?: string @@ -2054,11 +2018,7 @@ export interface PaymentLinkRequest { recurringProcessingModel?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile' reference: string requiredShopperFields?: - | 'billingAddress' - | 'deliveryAddress' - | 'shopperEmail' - | 'shopperName' - | 'telephoneNumber'[] + 'billingAddress' | 'deliveryAddress' | 'shopperEmail' | 'shopperName' | 'telephoneNumber'[] returnUrl?: string reusable?: boolean riskData?: RiskData @@ -2105,11 +2065,7 @@ export interface PaymentLinkResponse { recurringProcessingModel?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile' reference: string requiredShopperFields?: - | 'billingAddress' - | 'deliveryAddress' - | 'shopperEmail' - | 'shopperName' - | 'telephoneNumber'[] + 'billingAddress' | 'deliveryAddress' | 'shopperEmail' | 'shopperName' | 'telephoneNumber'[] returnUrl?: string reusable?: boolean riskData?: RiskData @@ -2158,11 +2114,7 @@ export interface PaymentLinkResponseWritable { recurringProcessingModel?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile' reference: string requiredShopperFields?: - | 'billingAddress' - | 'deliveryAddress' - | 'shopperEmail' - | 'shopperName' - | 'telephoneNumber'[] + 'billingAddress' | 'deliveryAddress' | 'shopperEmail' | 'shopperName' | 'telephoneNumber'[] returnUrl?: string reusable?: boolean riskData?: RiskData @@ -2574,9 +2526,7 @@ export interface PixRecurring { export interface PlatformChargebackLogic { behavior?: - | 'deductFromOneBalanceAccount' - | 'deductAccordingToSplitRatio' - | 'deductFromLiableAccount' + 'deductFromOneBalanceAccount' | 'deductAccordingToSplitRatio' | 'deductFromLiableAccount' costAllocationAccount?: string targetAccount?: string } @@ -3033,10 +2983,7 @@ export interface ThreeDS2RequestData { addrMatch?: 'Y' | 'N' authenticationOnly?: boolean challengeIndicator?: - | 'noPreference' - | 'requestNoChallenge' - | 'requestChallenge' - | 'requestChallengeAsMandate' + 'noPreference' | 'requestNoChallenge' | 'requestChallenge' | 'requestChallengeAsMandate' deviceChannel: string deviceRenderOptions?: DeviceRenderOptions homePhone?: Phone @@ -3084,10 +3031,7 @@ export interface ThreeDS2RequestFields { addrMatch?: 'Y' | 'N' authenticationOnly?: boolean challengeIndicator?: - | 'noPreference' - | 'requestNoChallenge' - | 'requestChallenge' - | 'requestChallengeAsMandate' + 'noPreference' | 'requestNoChallenge' | 'requestChallenge' | 'requestChallengeAsMandate' deviceRenderOptions?: DeviceRenderOptions homePhone?: Phone mcc?: string @@ -3153,10 +3097,7 @@ export interface ThreeDS2Result { dsTransID?: string eci?: string exemptionIndicator?: - | 'lowValue' - | 'secureCorporate' - | 'trustedBeneficiary' - | 'transactionRiskAnalysis' + 'lowValue' | 'secureCorporate' | 'trustedBeneficiary' | 'transactionRiskAnalysis' messageVersion?: string riskScore?: string threeDSRequestorChallengeInd?: '01' | '02' | '03' | '04' | '05' | '06' @@ -3218,14 +3159,7 @@ export interface TokenMandate { currency: string endsAt: string frequency: - | 'adhoc' - | 'daily' - | 'weekly' - | 'biWeekly' - | 'monthly' - | 'quarterly' - | 'halfYearly' - | 'yearly' + 'adhoc' | 'daily' | 'weekly' | 'biWeekly' | 'monthly' | 'quarterly' | 'halfYearly' | 'yearly' mandateId: string maskedAccountId?: string minAmount?: string diff --git a/examples/generated-rq/adyen-legal-entity/client-config.ts b/examples/generated-rq/adyen-legal-entity/client-config.ts index 50aa9f0b..0fb24906 100644 --- a/examples/generated-rq/adyen-legal-entity/client-config.ts +++ b/examples/generated-rq/adyen-legal-entity/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * API key or a function that returns one. * Sent as header 'X-API-Key' on every request. diff --git a/examples/generated-rq/adyen-legal-entity/models.ts b/examples/generated-rq/adyen-legal-entity/models.ts index ea883cb1..5c2dc09f 100644 --- a/examples/generated-rq/adyen-legal-entity/models.ts +++ b/examples/generated-rq/adyen-legal-entity/models.ts @@ -485,11 +485,7 @@ export interface LegalEntity { transferInstruments?: TransferInstrumentReference[] trust?: Trust type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnership verificationDeadlines?: VerificationDeadline[] verificationPlan?: string @@ -507,11 +503,7 @@ export interface LegalEntityWritable { soleProprietorship?: SoleProprietorship trust?: TrustWritable type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnershipWritable verificationPlan?: string } @@ -598,11 +590,7 @@ export interface LegalEntityInfo { soleProprietorship?: SoleProprietorship trust?: Trust type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnership verificationPlan?: string } @@ -616,11 +604,7 @@ export interface LegalEntityInfoWritable { soleProprietorship?: SoleProprietorship trust?: TrustWritable type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnershipWritable verificationPlan?: string } diff --git a/examples/generated-rq/openai/hooks.ts b/examples/generated-rq/openai/hooks.ts index 78b531c5..d9b2358a 100644 --- a/examples/generated-rq/openai/hooks.ts +++ b/examples/generated-rq/openai/hooks.ts @@ -2912,9 +2912,7 @@ export function useDownloadFile( export function useListFineTuningCheckpointPermissions( fineTunedModelCheckpoint: - | Parameters[0] - | undefined - | null, + Parameters[0] | undefined | null, params?: Parameters[1], options?: Omit< UseQueryOptions>, ApiError>, diff --git a/examples/generated-rq/openai/models.ts b/examples/generated-rq/openai/models.ts index 2e34bd21..fa492e04 100644 --- a/examples/generated-rq/openai/models.ts +++ b/examples/generated-rq/openai/models.ts @@ -188,10 +188,7 @@ export interface AssistantToolsFunction { } export type AssistantsApiResponseFormatOption = - | 'auto' - | ResponseFormatText - | ResponseFormatJsonObject - | ResponseFormatJsonSchema + 'auto' | ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema export type AssistantsApiToolChoiceOption = 'none' | 'auto' | 'required' | AssistantsNamedToolChoice @@ -776,8 +773,7 @@ export interface ChatCompletionMessageToolCallChunk { } export type ChatCompletionMessageToolCalls = - | ChatCompletionMessageToolCall - | ChatCompletionMessageCustomToolCall[] + ChatCompletionMessageToolCall | ChatCompletionMessageCustomToolCall[] export type ChatCompletionModalities = 'text' | 'audio'[] | null @@ -1541,13 +1537,7 @@ export interface CreateImageEditRequest { export interface CreateImageRequest { prompt: string model?: - | string - | 'gpt-image-1.5' - | 'dall-e-2' - | 'dall-e-3' - | 'gpt-image-1' - | 'gpt-image-1-mini' - | null + string | 'gpt-image-1.5' | 'dall-e-2' | 'dall-e-3' | 'gpt-image-1' | 'gpt-image-1-mini' | null n?: number | null quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null response_format?: 'url' | 'b64_json' | null @@ -2031,12 +2021,7 @@ export interface EasyInputMessage { export interface EditImageBodyJsonParam { model?: - | string - | 'gpt-image-1.5' - | 'gpt-image-1' - | 'gpt-image-1-mini' - | 'chatgpt-image-latest' - | null + string | 'gpt-image-1.5' | 'gpt-image-1' | 'gpt-image-1-mini' | 'chatgpt-image-latest' | null images: ImageRefParam[] mask?: ImageRefParam prompt: string @@ -2080,9 +2065,7 @@ export interface Eval { id: string name: string data_source_config: - | EvalCustomDataSourceConfig - | EvalLogsDataSourceConfig - | EvalStoredCompletionsDataSourceConfig + EvalCustomDataSourceConfig | EvalLogsDataSourceConfig | EvalStoredCompletionsDataSourceConfig testing_criteria: | EvalGraderLabelModel | EvalGraderStringCheck @@ -2514,11 +2497,7 @@ export interface GraderMulti { type: 'multi' name: string graders: - | GraderStringCheck - | GraderTextSimilarity - | GraderPython - | GraderScoreModel - | GraderLabelModel + GraderStringCheck | GraderTextSimilarity | GraderPython | GraderScoreModel | GraderLabelModel calculate_output: string } @@ -6421,8 +6400,7 @@ export interface RunStepDeltaObject { object: 'thread.run.step.delta' delta: { step_details?: - | RunStepDeltaStepDetailsMessageCreationObject - | RunStepDeltaStepDetailsToolCallsObject + RunStepDeltaStepDetailsMessageCreationObject | RunStepDeltaStepDetailsToolCallsObject } } @@ -6498,8 +6476,7 @@ export interface RunStepDetailsToolCallsCodeObject { code_interpreter: { input: string outputs: - | RunStepDetailsToolCallsCodeOutputLogsObject - | RunStepDetailsToolCallsCodeOutputImageObject[] + RunStepDetailsToolCallsCodeOutputLogsObject | RunStepDetailsToolCallsCodeOutputImageObject[] } } @@ -6702,9 +6679,7 @@ export interface SubmitToolOutputsRunRequest { } export type TextResponseFormatConfiguration = - | ResponseFormatText - | TextResponseFormatJsonSchema - | ResponseFormatJsonObject + ResponseFormatText | TextResponseFormatJsonSchema | ResponseFormatJsonObject export interface TextResponseFormatJsonSchema { type: 'json_schema' @@ -7536,14 +7511,7 @@ export type MessageStatus = 'in_progress' | 'completed' | 'incomplete' export const MessageStatusValues = ['in_progress', 'completed', 'incomplete'] as const export type MessageRole = - | 'unknown' - | 'user' - | 'assistant' - | 'system' - | 'critic' - | 'discriminator' - | 'developer' - | 'tool' + 'unknown' | 'user' | 'assistant' | 'system' | 'critic' | 'discriminator' | 'developer' | 'tool' export const MessageRoleValues = [ 'unknown', 'user', @@ -8065,9 +8033,7 @@ export interface ApplyPatchToolCall { call_id: string status: ApplyPatchCallStatus operation: - | ApplyPatchCreateFileOperation - | ApplyPatchDeleteFileOperation - | ApplyPatchUpdateFileOperation + ApplyPatchCreateFileOperation | ApplyPatchDeleteFileOperation | ApplyPatchUpdateFileOperation created_by?: string } diff --git a/examples/generated-rq/redocly-museum/client-config.ts b/examples/generated-rq/redocly-museum/client-config.ts index 84224c4f..bb4d7921 100644 --- a/examples/generated-rq/redocly-museum/client-config.ts +++ b/examples/generated-rq/redocly-museum/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * Fetch credentials mode. Use 'include' for cookie-based auth. * Defaults to 'same-origin'. diff --git a/examples/generated-rq/resend/hooks.ts b/examples/generated-rq/resend/hooks.ts index 2f2d2d4a..5619a178 100644 --- a/examples/generated-rq/resend/hooks.ts +++ b/examples/generated-rq/resend/hooks.ts @@ -940,9 +940,7 @@ export function useGetEmailsByEmailIdAttachments( export function useGetEmailsByEmailIdAttachmentsByAttachmentId( emailId: Parameters[0] | undefined | null, attachmentId: - | Parameters[1] - | undefined - | null, + Parameters[1] | undefined | null, options?: Omit< UseQueryOptions< Awaited>, @@ -1048,13 +1046,9 @@ export function useGetEmailsReceivingByEmailIdAttachments( export function useGetEmailsReceivingByEmailIdAttachmentsByAttachmentId( emailId: - | Parameters[0] - | undefined - | null, + Parameters[0] | undefined | null, attachmentId: - | Parameters[1] - | undefined - | null, + Parameters[1] | undefined | null, options?: Omit< UseQueryOptions< Awaited>, diff --git a/examples/generated-rq/resend/models.ts b/examples/generated-rq/resend/models.ts index 81417c3b..c3571c23 100644 --- a/examples/generated-rq/resend/models.ts +++ b/examples/generated-rq/resend/models.ts @@ -103,12 +103,7 @@ export interface CreateDomainResponse { name?: string created_at?: string /* date-time */ status?: - | 'pending' - | 'verified' - | 'failed' - | 'not_started' - | 'partially_verified' - | 'partially_failed' + 'pending' | 'verified' | 'failed' | 'not_started' | 'partially_verified' | 'partially_failed' capabilities?: DomainCapabilities records?: DomainRecord[] region?: string @@ -140,12 +135,7 @@ export interface Domain { id?: string name?: string status?: - | 'pending' - | 'verified' - | 'failed' - | 'not_started' - | 'partially_verified' - | 'partially_failed' + 'pending' | 'verified' | 'failed' | 'not_started' | 'partially_verified' | 'partially_failed' created_at?: string /* date-time */ region?: string open_tracking?: boolean @@ -170,12 +160,7 @@ export interface ListDomainsItem { id?: string name?: string status?: - | 'pending' - | 'verified' - | 'failed' - | 'not_started' - | 'partially_verified' - | 'partially_failed' + 'pending' | 'verified' | 'failed' | 'not_started' | 'partially_verified' | 'partially_failed' created_at?: string /* date-time */ region?: string capabilities?: DomainCapabilities diff --git a/examples/generated-rq/twitter/hooks.ts b/examples/generated-rq/twitter/hooks.ts index 47128803..545764ff 100644 --- a/examples/generated-rq/twitter/hooks.ts +++ b/examples/generated-rq/twitter/hooks.ts @@ -1142,9 +1142,7 @@ export function useGetBatchComplianceJob( export function useGetDmConversationsWithParticipantIdDmEvents( participantId: - | Parameters[0] - | undefined - | null, + Parameters[0] | undefined | null, params?: Parameters[1], options?: Omit< UseQueryOptions< diff --git a/examples/generated/adyen-checkout/client-config.ts b/examples/generated/adyen-checkout/client-config.ts index 50aa9f0b..0fb24906 100644 --- a/examples/generated/adyen-checkout/client-config.ts +++ b/examples/generated/adyen-checkout/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * API key or a function that returns one. * Sent as header 'X-API-Key' on every request. diff --git a/examples/generated/adyen-checkout/models.ts b/examples/generated/adyen-checkout/models.ts index 4c3fce60..3ac3b989 100644 --- a/examples/generated/adyen-checkout/models.ts +++ b/examples/generated/adyen-checkout/models.ts @@ -663,11 +663,7 @@ export interface PaymentLinkResponseWritable { recurringProcessingModel?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile' reference: string requiredShopperFields?: - | 'billingAddress' - | 'deliveryAddress' - | 'shopperEmail' - | 'shopperName' - | 'telephoneNumber'[] + 'billingAddress' | 'deliveryAddress' | 'shopperEmail' | 'shopperName' | 'telephoneNumber'[] returnUrl?: string reusable?: boolean riskData?: RiskData diff --git a/examples/generated/adyen-legal-entity/client-config.ts b/examples/generated/adyen-legal-entity/client-config.ts index 50aa9f0b..0fb24906 100644 --- a/examples/generated/adyen-legal-entity/client-config.ts +++ b/examples/generated/adyen-legal-entity/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * API key or a function that returns one. * Sent as header 'X-API-Key' on every request. diff --git a/examples/generated/adyen-legal-entity/models.ts b/examples/generated/adyen-legal-entity/models.ts index f6e715d5..7840d700 100644 --- a/examples/generated/adyen-legal-entity/models.ts +++ b/examples/generated/adyen-legal-entity/models.ts @@ -322,11 +322,7 @@ export interface LegalEntityWritable { soleProprietorship?: SoleProprietorship trust?: TrustWritable type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnershipWritable verificationPlan?: string } @@ -376,11 +372,7 @@ export interface LegalEntityInfo { soleProprietorship?: SoleProprietorship trust?: Trust type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnership verificationPlan?: string } @@ -394,11 +386,7 @@ export interface LegalEntityInfoWritable { soleProprietorship?: SoleProprietorship trust?: TrustWritable type?: - | 'individual' - | 'organization' - | 'soleProprietorship' - | 'trust' - | 'unincorporatedPartnership' + 'individual' | 'organization' | 'soleProprietorship' | 'trust' | 'unincorporatedPartnership' unincorporatedPartnership?: UnincorporatedPartnershipWritable verificationPlan?: string } diff --git a/examples/generated/openai/models.ts b/examples/generated/openai/models.ts index 2e34bd21..fa492e04 100644 --- a/examples/generated/openai/models.ts +++ b/examples/generated/openai/models.ts @@ -188,10 +188,7 @@ export interface AssistantToolsFunction { } export type AssistantsApiResponseFormatOption = - | 'auto' - | ResponseFormatText - | ResponseFormatJsonObject - | ResponseFormatJsonSchema + 'auto' | ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema export type AssistantsApiToolChoiceOption = 'none' | 'auto' | 'required' | AssistantsNamedToolChoice @@ -776,8 +773,7 @@ export interface ChatCompletionMessageToolCallChunk { } export type ChatCompletionMessageToolCalls = - | ChatCompletionMessageToolCall - | ChatCompletionMessageCustomToolCall[] + ChatCompletionMessageToolCall | ChatCompletionMessageCustomToolCall[] export type ChatCompletionModalities = 'text' | 'audio'[] | null @@ -1541,13 +1537,7 @@ export interface CreateImageEditRequest { export interface CreateImageRequest { prompt: string model?: - | string - | 'gpt-image-1.5' - | 'dall-e-2' - | 'dall-e-3' - | 'gpt-image-1' - | 'gpt-image-1-mini' - | null + string | 'gpt-image-1.5' | 'dall-e-2' | 'dall-e-3' | 'gpt-image-1' | 'gpt-image-1-mini' | null n?: number | null quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null response_format?: 'url' | 'b64_json' | null @@ -2031,12 +2021,7 @@ export interface EasyInputMessage { export interface EditImageBodyJsonParam { model?: - | string - | 'gpt-image-1.5' - | 'gpt-image-1' - | 'gpt-image-1-mini' - | 'chatgpt-image-latest' - | null + string | 'gpt-image-1.5' | 'gpt-image-1' | 'gpt-image-1-mini' | 'chatgpt-image-latest' | null images: ImageRefParam[] mask?: ImageRefParam prompt: string @@ -2080,9 +2065,7 @@ export interface Eval { id: string name: string data_source_config: - | EvalCustomDataSourceConfig - | EvalLogsDataSourceConfig - | EvalStoredCompletionsDataSourceConfig + EvalCustomDataSourceConfig | EvalLogsDataSourceConfig | EvalStoredCompletionsDataSourceConfig testing_criteria: | EvalGraderLabelModel | EvalGraderStringCheck @@ -2514,11 +2497,7 @@ export interface GraderMulti { type: 'multi' name: string graders: - | GraderStringCheck - | GraderTextSimilarity - | GraderPython - | GraderScoreModel - | GraderLabelModel + GraderStringCheck | GraderTextSimilarity | GraderPython | GraderScoreModel | GraderLabelModel calculate_output: string } @@ -6421,8 +6400,7 @@ export interface RunStepDeltaObject { object: 'thread.run.step.delta' delta: { step_details?: - | RunStepDeltaStepDetailsMessageCreationObject - | RunStepDeltaStepDetailsToolCallsObject + RunStepDeltaStepDetailsMessageCreationObject | RunStepDeltaStepDetailsToolCallsObject } } @@ -6498,8 +6476,7 @@ export interface RunStepDetailsToolCallsCodeObject { code_interpreter: { input: string outputs: - | RunStepDetailsToolCallsCodeOutputLogsObject - | RunStepDetailsToolCallsCodeOutputImageObject[] + RunStepDetailsToolCallsCodeOutputLogsObject | RunStepDetailsToolCallsCodeOutputImageObject[] } } @@ -6702,9 +6679,7 @@ export interface SubmitToolOutputsRunRequest { } export type TextResponseFormatConfiguration = - | ResponseFormatText - | TextResponseFormatJsonSchema - | ResponseFormatJsonObject + ResponseFormatText | TextResponseFormatJsonSchema | ResponseFormatJsonObject export interface TextResponseFormatJsonSchema { type: 'json_schema' @@ -7536,14 +7511,7 @@ export type MessageStatus = 'in_progress' | 'completed' | 'incomplete' export const MessageStatusValues = ['in_progress', 'completed', 'incomplete'] as const export type MessageRole = - | 'unknown' - | 'user' - | 'assistant' - | 'system' - | 'critic' - | 'discriminator' - | 'developer' - | 'tool' + 'unknown' | 'user' | 'assistant' | 'system' | 'critic' | 'discriminator' | 'developer' | 'tool' export const MessageRoleValues = [ 'unknown', 'user', @@ -8065,9 +8033,7 @@ export interface ApplyPatchToolCall { call_id: string status: ApplyPatchCallStatus operation: - | ApplyPatchCreateFileOperation - | ApplyPatchDeleteFileOperation - | ApplyPatchUpdateFileOperation + ApplyPatchCreateFileOperation | ApplyPatchDeleteFileOperation | ApplyPatchUpdateFileOperation created_by?: string } diff --git a/examples/generated/redocly-museum/client-config.ts b/examples/generated/redocly-museum/client-config.ts index 84224c4f..bb4d7921 100644 --- a/examples/generated/redocly-museum/client-config.ts +++ b/examples/generated/redocly-museum/client-config.ts @@ -15,8 +15,7 @@ export interface ClientConfig { basicAuth?: | { username: string; password: string } | (() => - | { username: string; password: string } - | Promise<{ username: string; password: string }>) + { username: string; password: string } | Promise<{ username: string; password: string }>) /** * Fetch credentials mode. Use 'include' for cookie-based auth. * Defaults to 'same-origin'. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b3a621a4..af73d779 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,8 +46,8 @@ catalogs: specifier: ^12.1.3 version: 12.1.3 prettier: - specifier: ^3.8.4 - version: 3.8.4 + specifier: ^3.9.4 + version: 3.9.4 react: specifier: ^19.2.7 version: 19.2.7 @@ -85,7 +85,7 @@ importers: version: 3.0.0 prettier: specifier: 'catalog:' - version: 3.8.4 + version: 3.9.4 typescript: specifier: ^6.0.3 version: 6.0.3 @@ -195,10 +195,10 @@ importers: version: 19.2.3(@types/react@19.2.17) fastify: specifier: ^5.8.5 - version: 5.8.5 + version: 5.9.0 fastify-type-provider-zod: specifier: ^7.0.0 - version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.8.5)(openapi-types@12.1.3)(zod@4.4.3) + version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.9.0)(openapi-types@12.1.3)(zod@4.4.3) jsdom: specifier: ^29.1.1 version: 29.1.1(@noble/hashes@1.8.0) @@ -231,7 +231,7 @@ importers: version: link:../openapi-zod-ts prettier: specifier: 'catalog:' - version: 3.8.4 + version: 3.9.4 devDependencies: '@faker-js/faker': specifier: ^10.5.0 @@ -268,7 +268,7 @@ importers: version: link:../openapi-zod-ts prettier: specifier: 'catalog:' - version: 3.8.4 + version: 3.9.4 devDependencies: '@stryker-mutator/core': specifier: 'catalog:' @@ -314,7 +314,7 @@ importers: version: link:../openapi-zod-ts prettier: specifier: 'catalog:' - version: 3.8.4 + version: 3.9.4 devDependencies: '@stryker-mutator/core': specifier: 'catalog:' @@ -363,7 +363,7 @@ importers: version: 12.1.3 prettier: specifier: 'catalog:' - version: 3.8.4 + version: 3.9.4 devDependencies: '@stryker-mutator/core': specifier: 'catalog:' @@ -409,10 +409,10 @@ importers: version: 5.2.1 fastify: specifier: ^5.8.5 - version: 5.8.5 + version: 5.9.0 fastify-type-provider-zod: specifier: ^7.0.0 - version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.8.5)(openapi-types@12.1.3)(zod@4.4.3) + version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.9.0)(openapi-types@12.1.3)(zod@4.4.3) hono: specifier: ^4.12.26 version: 4.12.27 @@ -501,10 +501,10 @@ importers: version: 5.101.0(react@19.2.7) fastify: specifier: ^5.8.5 - version: 5.8.5 + version: 5.9.0 fastify-type-provider-zod: specifier: ^7.0.0 - version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.8.5)(openapi-types@12.1.3)(zod@4.4.3) + version: 7.0.0(@fastify/swagger@9.7.0)(fastify@5.9.0)(openapi-types@12.1.3)(zod@4.4.3) openapi-zod-ts: specifier: workspace:* version: link:../openapi-zod-ts @@ -2993,6 +2993,9 @@ packages: fastify@5.8.5: resolution: {integrity: sha512-Yqptv59pQzPgQUSIm87hMqHJmdkb1+GPxdE6vW6FRyVE9G86mt7rOghitiU4JHRaTyDUk9pfeKmDeu70lAwM4Q==} + fastify@5.9.0: + resolution: {integrity: sha512-VMS5lE0zj+MZlJpQa3Qv5iGjfun0H2N7VRgoBwpcTNQ2bdIQpv7fDpb+HGteGbicBsGkzGS+X+hdx9mmrfWuHQ==} + fastq@1.20.1: resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==} @@ -4014,8 +4017,8 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - prettier@3.8.4: - resolution: {integrity: sha512-N2MylSdi48+5N/6S5j+maeHbUSIzzZ5uOcX5Hm4QpV8Dkb1HFjfAKTKX6yNPJQD9AhcT3ifHNB66tWTTJDi11Q==} + prettier@3.9.4: + resolution: {integrity: sha512-yWG/o/4oJfo036EKAfK6ACAoDOfHeRHx4tuxkfBZiauURiaSmYwlpOr5LQqKtIkRD2z1PLteme2WoxEnj4tHTg==} engines: {node: '>=14'} hasBin: true @@ -4489,6 +4492,10 @@ packages: resolution: {integrity: sha512-5DXWzE4Vz7xNHsv+xQ+MGfJYyC78Aok3tEr0MNwHoRf7vZnga1mQXZ4/Nsodld4VR6Wd+VhfmqnNrsRJyYPfrQ==} engines: {node: '>=20'} + toad-cache@3.7.4: + resolution: {integrity: sha512-m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==} + engines: {node: '>=20'} + toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} @@ -5619,7 +5626,7 @@ snapshots: dependencies: ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) - fast-uri: 3.1.2 + fast-uri: 3.1.3 '@fastify/busboy@3.2.0': {} @@ -7365,7 +7372,7 @@ snapshots: '@fastify/merge-json-schemas': 0.2.1 ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) - fast-uri: 3.1.2 + fast-uri: 3.1.3 json-schema-ref-resolver: 3.0.0 rfdc: 1.4.1 @@ -7401,11 +7408,11 @@ snapshots: openapi-types: 12.1.3 zod: 4.4.3 - fastify-type-provider-zod@7.0.0(@fastify/swagger@9.7.0)(fastify@5.8.5)(openapi-types@12.1.3)(zod@4.4.3): + fastify-type-provider-zod@7.0.0(@fastify/swagger@9.7.0)(fastify@5.9.0)(openapi-types@12.1.3)(zod@4.4.3): dependencies: '@fastify/error': 4.2.0 '@fastify/swagger': 9.7.0 - fastify: 5.8.5 + fastify: 5.9.0 openapi-types: 12.1.3 zod: 4.4.3 @@ -7427,6 +7434,24 @@ snapshots: semver: 7.8.5 toad-cache: 3.7.1 + fastify@5.9.0: + dependencies: + '@fastify/ajv-compiler': 4.0.5 + '@fastify/error': 4.2.0 + '@fastify/fast-json-stringify-compiler': 5.0.3 + '@fastify/proxy-addr': 5.1.0 + abstract-logging: 2.0.1 + avvio: 9.2.0 + fast-json-stringify: 6.4.0 + find-my-way: 9.6.0 + light-my-request: 6.6.0 + pino: 10.3.1 + process-warning: 5.0.0 + rfdc: 1.4.1 + secure-json-parse: 4.1.0 + semver: 7.8.5 + toad-cache: 3.7.4 + fastq@1.20.1: dependencies: reusify: 1.1.0 @@ -8820,7 +8845,7 @@ snapshots: prelude-ls@1.2.1: {} - prettier@3.8.4: {} + prettier@3.9.4: {} pretty-format@27.5.1: dependencies: @@ -9464,6 +9489,8 @@ snapshots: toad-cache@3.7.1: {} + toad-cache@3.7.4: {} + toidentifier@1.0.1: {} tough-cookie@6.0.1: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 41864324..09a5342e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -21,7 +21,7 @@ catalog: fast-check: ^4.8.0 # Formatter - prettier: ^3.8.4 + prettier: ^3.9.4 # Bundler (CLI packages) esbuild: ^0.28.1