diff --git a/.changeset/chatty-owls-grow.md b/.changeset/chatty-owls-grow.md
new file mode 100644
index 000000000..329f4b707
--- /dev/null
+++ b/.changeset/chatty-owls-grow.md
@@ -0,0 +1,5 @@
+---
+"@kubb/swagger-tanstack-query": minor
+---
+
+useQuery with Zod validation
diff --git a/.changeset/eight-plums-try.md b/.changeset/eight-plums-try.md
new file mode 100644
index 000000000..445345381
--- /dev/null
+++ b/.changeset/eight-plums-try.md
@@ -0,0 +1,5 @@
+---
+"@kubb/swagger-zod": patch
+---
+
+Add types with `@kubb/swagger.ts` for zodSchemas
diff --git a/.changeset/yellow-roses-push.md b/.changeset/yellow-roses-push.md
new file mode 100644
index 000000000..043747711
--- /dev/null
+++ b/.changeset/yellow-roses-push.md
@@ -0,0 +1,5 @@
+---
+"@kubb/swagger-zod": patch
+---
+
+dateType for zod
diff --git a/docs/package.json b/docs/package.json
index 5faf66610..b3c475059 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -19,13 +19,13 @@
"serve": "vitepress serve"
},
"dependencies": {
- "@vercel/analytics": "^1.1.1",
+ "@vercel/analytics": "^1.1.2",
"sitemap": "^7.1.1",
- "vitepress": "^1.0.0-rc.36",
- "vue": "^3.4.13"
+ "vitepress": "^1.0.0-rc.39",
+ "vue": "^3.4.15"
},
"devDependencies": {
- "@types/node": "^20.11.0"
+ "@types/node": "^20.11.5"
},
"packageManager": "pnpm@8.3.0",
"engines": {
diff --git a/docs/plugins/swagger-zod/index.md b/docs/plugins/swagger-zod/index.md
index 2f8f4ec1a..32317c6ef 100644
--- a/docs/plugins/swagger-zod/index.md
+++ b/docs/plugins/swagger-zod/index.md
@@ -296,6 +296,112 @@ export default defineConfig({
})
```
+### typed
+
+Use TypeScript(`@kubb/swagger-ts`) to add type annotation.
+
+::: info
+
+Type: `boolean`
+
+::: code-group
+
+```typescript [kubb.config.js]
+import { defineConfig } from '@kubb/core'
+import createSwagger from '@kubb/swagger'
+import createSwaggerZod from '@kubb/swagger-zod'
+import createSwaggerTs from '@kubb/swagger-ts'
+
+export default defineConfig({
+ input: {
+ path: './petStore.yaml',
+ },
+ output: {
+ path: './src/gen',
+ },
+ plugins: [
+ createSwagger({ output: false }),
+ createSwaggerZod(
+ {
+ typed: true,
+ },
+ ),
+ createSwaggerTs(
+ {},
+ ),
+ ],
+})
+```
+
+:::
+
+### dateType
+
+Choose to use `date` or `datetime` as JavaScript `Date` instead of `string`.
+
+::: info type
+
+::: code-group
+
+```typescript ['string']
+date: string
+```
+
+```typescript ['date']
+date: Date
+```
+
+:::
+
+::: info
+
+Type: `'string' | 'date'`
+Default: `'string'`
+
+```typescript ['string']
+import { defineConfig } from '@kubb/core'
+import createSwagger from '@kubb/swagger'
+import createSwaggerZod from '@kubb/swagger-zod'
+
+export default defineConfig({
+ input: {
+ path: './petStore.yaml',
+ },
+ output: {
+ path: './src/gen',
+ },
+ plugins: [
+ createSwagger({ output: false }),
+ createSwaggerZod({
+ dateType: 'string',
+ }),
+ ],
+})
+```
+
+```typescript ['date']
+import { defineConfig } from '@kubb/core'
+import createSwagger from '@kubb/swagger'
+import createSwaggerZod from '@kubb/swagger-zod'
+
+export default defineConfig({
+ input: {
+ path: './petStore.yaml',
+ },
+ output: {
+ path: './src/gen',
+ },
+ plugins: [
+ createSwagger({ output: false }),
+ createSwaggerZod({
+ dateType: 'date',
+ }),
+ ],
+})
+```
+
+:::
+
:::
### transformers
diff --git a/e2e/package.json b/e2e/package.json
index b29c201f3..ab8f62648 100644
--- a/e2e/package.json
+++ b/e2e/package.json
@@ -32,10 +32,10 @@
"@kubb/swagger-ts": "workspace:*",
"@kubb/swagger-zod": "workspace:*",
"@kubb/swagger-zodios": "workspace:*",
- "@tanstack/react-query": "^5.17.10",
- "@tanstack/solid-query": "^5.17.10",
- "@tanstack/svelte-query": "^5.17.10",
- "@tanstack/vue-query": "^5.17.10",
+ "@tanstack/react-query": "^5.17.15",
+ "@tanstack/solid-query": "^5.17.15",
+ "@tanstack/svelte-query": "^5.17.15",
+ "@tanstack/vue-query": "^5.17.15",
"@zodios/core": "^10.9.6",
"axios": "^1.6.5",
"msw": "^1.3.2",
@@ -44,7 +44,7 @@
"svelte": "^3.59.2",
"swr": "^2.2.4",
"tsup": "^8.0.1",
- "vue": "^3.4.13",
+ "vue": "^3.4.15",
"zod": "^3.22.4"
},
"devDependencies": {
diff --git a/examples/advanced/configs/kubb.config.ts b/examples/advanced/configs/kubb.config.ts
index 60bbe88c9..107cda121 100644
--- a/examples/advanced/configs/kubb.config.ts
+++ b/examples/advanced/configs/kubb.config.ts
@@ -142,6 +142,8 @@ export default defineConfig(async () => {
},
],
group: { type: 'tag' },
+ dateType: 'date',
+ typed: true,
},
],
[
diff --git a/examples/advanced/package.json b/examples/advanced/package.json
index 377a45801..260605e09 100644
--- a/examples/advanced/package.json
+++ b/examples/advanced/package.json
@@ -47,7 +47,7 @@
"solid-js": "^1.8.11",
"svelte": "^3.59.2",
"swr": "^2.2.4",
- "vue": "^3.4.13",
+ "vue": "^3.4.15",
"zod": "^3.22.4"
},
"devDependencies": {
diff --git a/examples/advanced/src/gen/models/ts/petController/DeletePet.ts b/examples/advanced/src/gen/models/ts/petController/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/advanced/src/gen/models/ts/petController/DeletePet.ts
+++ b/examples/advanced/src/gen/models/ts/petController/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/advanced/src/gen/models/ts/petController/FindPetsByStatus.ts b/examples/advanced/src/gen/models/ts/petController/FindPetsByStatus.ts
index ff9733596..0c31a28c2 100644
--- a/examples/advanced/src/gen/models/ts/petController/FindPetsByStatus.ts
+++ b/examples/advanced/src/gen/models/ts/petController/FindPetsByStatus.ts
@@ -17,7 +17,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/models/ts/petController/FindPetsByTags.ts b/examples/advanced/src/gen/models/ts/petController/FindPetsByTags.ts
index 1eb7a2682..1b7d80c17 100644
--- a/examples/advanced/src/gen/models/ts/petController/FindPetsByTags.ts
+++ b/examples/advanced/src/gen/models/ts/petController/FindPetsByTags.ts
@@ -35,7 +35,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/models/ts/petController/UpdatePetWithForm.ts b/examples/advanced/src/gen/models/ts/petController/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/advanced/src/gen/models/ts/petController/UpdatePetWithForm.ts
+++ b/examples/advanced/src/gen/models/ts/petController/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/advanced/src/gen/models/ts/petController/UploadFile.ts b/examples/advanced/src/gen/models/ts/petController/UploadFile.ts
index 91de3ce6c..4d00591a1 100644
--- a/examples/advanced/src/gen/models/ts/petController/UploadFile.ts
+++ b/examples/advanced/src/gen/models/ts/petController/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/models/ts/petsController/CreatePets.ts b/examples/advanced/src/gen/models/ts/petsController/CreatePets.ts
index e61497690..1e594b774 100644
--- a/examples/advanced/src/gen/models/ts/petsController/CreatePets.ts
+++ b/examples/advanced/src/gen/models/ts/petsController/CreatePets.ts
@@ -46,7 +46,7 @@ export type CreatePetsQueryParams = {
* @type integer | undefined
*/
offset?: number
-}
+} | undefined
/**
* @description unexpected error
diff --git a/examples/advanced/src/gen/models/ts/userController/LoginUser.ts b/examples/advanced/src/gen/models/ts/userController/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/advanced/src/gen/models/ts/userController/LoginUser.ts
+++ b/examples/advanced/src/gen/models/ts/userController/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/zod/addPetRequestSchema.ts b/examples/advanced/src/gen/zod/addPetRequestSchema.ts
index 50051e0b8..5b2e6d7d7 100644
--- a/examples/advanced/src/gen/zod/addPetRequestSchema.ts
+++ b/examples/advanced/src/gen/zod/addPetRequestSchema.ts
@@ -1,8 +1,9 @@
import { categorySchema } from './categorySchema'
import { tagSchema } from './tagSchema'
import { z } from 'zod'
+import type { AddPetRequest } from '../models/ts/AddPetRequest'
-export const addPetRequestSchema = z.object({
+export const addPetRequestSchema: z.ZodType = z.object({
'id': z.number().optional(),
'name': z.string(),
'category': z.lazy(() => categorySchema).optional(),
diff --git a/examples/advanced/src/gen/zod/addressSchema.ts b/examples/advanced/src/gen/zod/addressSchema.ts
index fe2c50522..de2506e3a 100644
--- a/examples/advanced/src/gen/zod/addressSchema.ts
+++ b/examples/advanced/src/gen/zod/addressSchema.ts
@@ -1,6 +1,7 @@
import { z } from 'zod'
+import type { Address } from '../models/ts/Address'
-export const addressSchema = z.object({
+export const addressSchema: z.ZodType = z.object({
'street': z.string().optional(),
'city': z.string().optional(),
'state': z.string().optional(),
diff --git a/examples/advanced/src/gen/zod/apiResponseSchema.ts b/examples/advanced/src/gen/zod/apiResponseSchema.ts
index 26c7e34a8..638bf6e36 100644
--- a/examples/advanced/src/gen/zod/apiResponseSchema.ts
+++ b/examples/advanced/src/gen/zod/apiResponseSchema.ts
@@ -1,3 +1,8 @@
import { z } from 'zod'
+import type { ApiResponse } from '../models/ts/ApiResponse'
-export const apiResponseSchema = z.object({ 'code': z.number().optional(), 'type': z.string().optional(), 'message': z.string().optional() })
+export const apiResponseSchema: z.ZodType = z.object({
+ 'code': z.number().optional(),
+ 'type': z.string().optional(),
+ 'message': z.string().optional(),
+})
diff --git a/examples/advanced/src/gen/zod/categorySchema.ts b/examples/advanced/src/gen/zod/categorySchema.ts
index ec84ca4e8..33c9d5ad8 100644
--- a/examples/advanced/src/gen/zod/categorySchema.ts
+++ b/examples/advanced/src/gen/zod/categorySchema.ts
@@ -1,3 +1,4 @@
import { z } from 'zod'
+import type { Category } from '../models/ts/Category'
-export const categorySchema = z.object({ 'id': z.number().optional(), 'name': z.string().optional() })
+export const categorySchema: z.ZodType = z.object({ 'id': z.number().optional(), 'name': z.string().optional() })
diff --git a/examples/advanced/src/gen/zod/customerSchema.ts b/examples/advanced/src/gen/zod/customerSchema.ts
index c6cac4071..7c1b841cd 100644
--- a/examples/advanced/src/gen/zod/customerSchema.ts
+++ b/examples/advanced/src/gen/zod/customerSchema.ts
@@ -1,7 +1,8 @@
import { addressSchema } from './addressSchema'
import { z } from 'zod'
+import type { Customer } from '../models/ts/Customer'
-export const customerSchema = z.object({
+export const customerSchema: z.ZodType = z.object({
'id': z.number().optional(),
'username': z.string().optional(),
'address': z.array(z.lazy(() => addressSchema)).optional(),
diff --git a/examples/advanced/src/gen/zod/orderSchema.ts b/examples/advanced/src/gen/zod/orderSchema.ts
index 3eb669ff8..f3b14e617 100644
--- a/examples/advanced/src/gen/zod/orderSchema.ts
+++ b/examples/advanced/src/gen/zod/orderSchema.ts
@@ -1,11 +1,12 @@
import { z } from 'zod'
+import type { Order } from '../models/ts/Order'
-export const orderSchema = z.object({
+export const orderSchema: z.ZodType = z.object({
'id': z.number().optional(),
'petId': z.number().optional(),
'quantity': z.number().optional(),
- 'shipDate': z.string().datetime().optional(),
+ 'shipDate': z.date().optional(),
'status': z.enum([`placed`, `approved`, `delivered`]).describe(`Order Status`).optional(),
- 'http_status': z.enum([`ok`, `not_found`]).describe(`HTTP Status`).optional(),
+ 'http_status': z.union([z.literal(200), z.literal(400)]).describe(`HTTP Status`).optional(),
'complete': z.boolean().optional(),
})
diff --git a/examples/advanced/src/gen/zod/petController/addPetSchema.ts b/examples/advanced/src/gen/zod/petController/addPetSchema.ts
index f8c101de4..cf0125bbf 100644
--- a/examples/advanced/src/gen/zod/petController/addPetSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/addPetSchema.ts
@@ -12,4 +12,4 @@ export const addPetMutationRequestSchema = z.lazy(() => addPetRequestSchema)
/**
* @description Successful operation
*/
-export const addPetMutationResponseSchema = z.lazy(() => petSchema).schema.omit({ name: true })
+export const addPetMutationResponseSchema = z.lazy(() => petSchema).schema.and(z.object({ name: z.never() }))
diff --git a/examples/advanced/src/gen/zod/petController/deletePetSchema.ts b/examples/advanced/src/gen/zod/petController/deletePetSchema.ts
index 04030039b..bedb75f24 100644
--- a/examples/advanced/src/gen/zod/petController/deletePetSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/deletePetSchema.ts
@@ -4,6 +4,6 @@ import { z } from 'zod'
* @description Invalid pet value
*/
export const deletePet400Schema = z.any()
-export const deletePetHeaderParamsSchema = z.object({ 'api_key': z.string().optional() })
+export const deletePetHeaderParamsSchema = z.object({ 'api_key': z.string().optional() }).optional()
export const deletePetMutationResponseSchema = z.any()
export const deletePetPathParamsSchema = z.object({ 'petId': z.number().describe(`Pet id to delete`) })
diff --git a/examples/advanced/src/gen/zod/petController/findPetsByStatusSchema.ts b/examples/advanced/src/gen/zod/petController/findPetsByStatusSchema.ts
index e9c98eec4..1c4d2c4ff 100644
--- a/examples/advanced/src/gen/zod/petController/findPetsByStatusSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/findPetsByStatusSchema.ts
@@ -7,7 +7,7 @@ import { petSchema } from '../petSchema'
export const findPetsByStatus400Schema = z.any()
export const findPetsByStatusQueryParamsSchema = z.object({
'status': z.enum([`available`, `pending`, `sold`]).default('available').describe(`Status values that need to be considered for filter`).optional(),
-})
+}).optional()
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/zod/petController/findPetsByTagsSchema.ts b/examples/advanced/src/gen/zod/petController/findPetsByTagsSchema.ts
index 210f7b3ed..ddf31d375 100644
--- a/examples/advanced/src/gen/zod/petController/findPetsByTagsSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/findPetsByTagsSchema.ts
@@ -10,7 +10,7 @@ export const findPetsByTagsQueryParamsSchema = z.object({
'tags': z.array(z.string()).describe(`Tags to filter by`).optional(),
'page': z.string().describe(`to request with required page number or pagination`).optional(),
'pageSize': z.string().describe(`to request with required page size`).optional(),
-})
+}).optional()
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/zod/petController/getPetByIdSchema.ts b/examples/advanced/src/gen/zod/petController/getPetByIdSchema.ts
index b36f32616..322423412 100644
--- a/examples/advanced/src/gen/zod/petController/getPetByIdSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/getPetByIdSchema.ts
@@ -15,4 +15,4 @@ export const getPetByIdPathParamsSchema = z.object({ 'petId': z.number().describ
/**
* @description successful operation
*/
-export const getPetByIdQueryResponseSchema = z.lazy(() => petSchema).schema.omit({ name: true })
+export const getPetByIdQueryResponseSchema = z.lazy(() => petSchema).schema.and(z.object({ name: z.never() }))
diff --git a/examples/advanced/src/gen/zod/petController/updatePetSchema.ts b/examples/advanced/src/gen/zod/petController/updatePetSchema.ts
index 26d06c3f9..55cb16c7c 100644
--- a/examples/advanced/src/gen/zod/petController/updatePetSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/updatePetSchema.ts
@@ -19,9 +19,9 @@ export const updatePet405Schema = z.any()
/**
* @description Update an existent pet in the store
*/
-export const updatePetMutationRequestSchema = z.lazy(() => petSchema).schema.omit({ id: true })
+export const updatePetMutationRequestSchema = z.lazy(() => petSchema).schema.and(z.object({ id: z.never() }))
/**
* @description Successful operation
*/
-export const updatePetMutationResponseSchema = z.lazy(() => petSchema).schema.omit({ name: true })
+export const updatePetMutationResponseSchema = z.lazy(() => petSchema).schema.and(z.object({ name: z.never() }))
diff --git a/examples/advanced/src/gen/zod/petController/updatePetWithFormSchema.ts b/examples/advanced/src/gen/zod/petController/updatePetWithFormSchema.ts
index 8a0533383..bab344794 100644
--- a/examples/advanced/src/gen/zod/petController/updatePetWithFormSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/updatePetWithFormSchema.ts
@@ -9,4 +9,4 @@ export const updatePetWithFormPathParamsSchema = z.object({ 'petId': z.number().
export const updatePetWithFormQueryParamsSchema = z.object({
'name': z.string().describe(`Name of pet that needs to be updated`).optional(),
'status': z.string().describe(`Status of pet that needs to be updated`).optional(),
-})
+}).optional()
diff --git a/examples/advanced/src/gen/zod/petController/uploadFileSchema.ts b/examples/advanced/src/gen/zod/petController/uploadFileSchema.ts
index 1c27d28ed..6502c983e 100644
--- a/examples/advanced/src/gen/zod/petController/uploadFileSchema.ts
+++ b/examples/advanced/src/gen/zod/petController/uploadFileSchema.ts
@@ -3,7 +3,7 @@ import { apiResponseSchema } from '../apiResponseSchema'
export const uploadFileMutationRequestSchema = z.string()
export const uploadFilePathParamsSchema = z.object({ 'petId': z.number().describe(`ID of pet to update`) })
-export const uploadFileQueryParamsSchema = z.object({ 'additionalMetadata': z.string().describe(`Additional Metadata`).optional() })
+export const uploadFileQueryParamsSchema = z.object({ 'additionalMetadata': z.string().describe(`Additional Metadata`).optional() }).optional()
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/zod/petNotFoundSchema.ts b/examples/advanced/src/gen/zod/petNotFoundSchema.ts
index 9a930ca89..ab26ba548 100644
--- a/examples/advanced/src/gen/zod/petNotFoundSchema.ts
+++ b/examples/advanced/src/gen/zod/petNotFoundSchema.ts
@@ -1,3 +1,4 @@
import { z } from 'zod'
+import type { PetNotFound } from '../models/ts/PetNotFound'
-export const petNotFoundSchema = z.object({ 'code': z.number().optional(), 'message': z.string().optional() })
+export const petNotFoundSchema: z.ZodType = z.object({ 'code': z.number().optional(), 'message': z.string().optional() })
diff --git a/examples/advanced/src/gen/zod/petSchema.ts b/examples/advanced/src/gen/zod/petSchema.ts
index 22d6e8cb8..d496ea5b7 100644
--- a/examples/advanced/src/gen/zod/petSchema.ts
+++ b/examples/advanced/src/gen/zod/petSchema.ts
@@ -1,8 +1,9 @@
import { categorySchema } from './categorySchema'
import { tagSchema } from './tagSchema'
import { z } from 'zod'
+import type { Pet } from '../models/ts/Pet'
-export const petSchema = z.object({
+export const petSchema: z.ZodType = z.object({
'id': z.number().readonly().optional(),
'name': z.string(),
'category': z.lazy(() => categorySchema).optional(),
diff --git a/examples/advanced/src/gen/zod/petsController/createPetsSchema.ts b/examples/advanced/src/gen/zod/petsController/createPetsSchema.ts
index d00f4ec68..2ae242ba1 100644
--- a/examples/advanced/src/gen/zod/petsController/createPetsSchema.ts
+++ b/examples/advanced/src/gen/zod/petsController/createPetsSchema.ts
@@ -9,7 +9,7 @@ export const createPetsHeaderParamsSchema = z.object({ 'X-EXAMPLE': z.enum([`ONE
export const createPetsMutationRequestSchema = z.object({ 'name': z.string(), 'tag': z.string() })
export const createPetsMutationResponseSchema = z.any()
export const createPetsPathParamsSchema = z.object({ 'uuid': z.string().describe(`UUID`) })
-export const createPetsQueryParamsSchema = z.object({ 'offset': z.number().describe(`Offset`).optional() })
+export const createPetsQueryParamsSchema = z.object({ 'offset': z.number().describe(`Offset`).optional() }).optional()
/**
* @description unexpected error
diff --git a/examples/advanced/src/gen/zod/tagSchema.ts b/examples/advanced/src/gen/zod/tagSchema.ts
index 2886a2b85..d8a4b5c18 100644
--- a/examples/advanced/src/gen/zod/tagSchema.ts
+++ b/examples/advanced/src/gen/zod/tagSchema.ts
@@ -1,3 +1,4 @@
import { z } from 'zod'
+import type { Tag } from '../models/ts/Tag'
-export const tagSchema = z.object({ 'id': z.number().optional(), 'name': z.string().optional() })
+export const tagSchema: z.ZodType = z.object({ 'id': z.number().optional(), 'name': z.string().optional() })
diff --git a/examples/advanced/src/gen/zod/userArraySchema.ts b/examples/advanced/src/gen/zod/userArraySchema.ts
index 89abb9ad3..49a670f60 100644
--- a/examples/advanced/src/gen/zod/userArraySchema.ts
+++ b/examples/advanced/src/gen/zod/userArraySchema.ts
@@ -1,4 +1,5 @@
import { userSchema } from './userSchema'
import { z } from 'zod'
+import type { UserArray } from '../models/ts/UserArray'
-export const userArraySchema = z.array(z.lazy(() => userSchema))
+export const userArraySchema: z.ZodType = z.array(z.lazy(() => userSchema))
diff --git a/examples/advanced/src/gen/zod/userController/loginUserSchema.ts b/examples/advanced/src/gen/zod/userController/loginUserSchema.ts
index 3aecd59c2..b94e32d43 100644
--- a/examples/advanced/src/gen/zod/userController/loginUserSchema.ts
+++ b/examples/advanced/src/gen/zod/userController/loginUserSchema.ts
@@ -7,7 +7,7 @@ export const loginUser400Schema = z.any()
export const loginUserQueryParamsSchema = z.object({
'username': z.string().describe(`The user name for login`).optional(),
'password': z.string().describe(`The password for login in clear text`).optional(),
-})
+}).optional()
/**
* @description successful operation
diff --git a/examples/advanced/src/gen/zod/userSchema.ts b/examples/advanced/src/gen/zod/userSchema.ts
index a051dcf63..1ad8c1e5e 100644
--- a/examples/advanced/src/gen/zod/userSchema.ts
+++ b/examples/advanced/src/gen/zod/userSchema.ts
@@ -1,6 +1,7 @@
import { z } from 'zod'
+import type { User } from '../models/ts/User'
-export const userSchema = z.object({
+export const userSchema: z.ZodType = z.object({
'id': z.number().optional(),
'username': z.string().optional(),
'firstName': z.string().optional(),
diff --git a/examples/advanced/src/gen/zodios.ts b/examples/advanced/src/gen/zodios.ts
index 7eef78bb5..8f80a4bb8 100644
--- a/examples/advanced/src/gen/zodios.ts
+++ b/examples/advanced/src/gen/zodios.ts
@@ -74,7 +74,7 @@ export const endpoints = makeApi([
name: 'offset',
description: `Offset`,
type: 'Query',
- schema: createPetsQueryParamsSchema.shape['offset'],
+ schema: createPetsQueryParamsSchema.unwrap().shape['offset'],
},
{
name: 'X-EXAMPLE',
@@ -162,7 +162,7 @@ export const endpoints = makeApi([
name: 'status',
description: `Status values that need to be considered for filter`,
type: 'Query',
- schema: findPetsByStatusQueryParamsSchema.shape['status'],
+ schema: findPetsByStatusQueryParamsSchema.unwrap().shape['status'],
},
],
response: findPetsByStatusQueryResponseSchema,
@@ -184,19 +184,19 @@ export const endpoints = makeApi([
name: 'tags',
description: `Tags to filter by`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['tags'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['tags'],
},
{
name: 'page',
description: `to request with required page number or pagination`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['page'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['page'],
},
{
name: 'pageSize',
description: `to request with required page size`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['pageSize'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['pageSize'],
},
{
name: 'X-EXAMPLE',
@@ -257,13 +257,13 @@ export const endpoints = makeApi([
name: 'name',
description: `Name of pet that needs to be updated`,
type: 'Query',
- schema: updatePetWithFormQueryParamsSchema.shape['name'],
+ schema: updatePetWithFormQueryParamsSchema.unwrap().shape['name'],
},
{
name: 'status',
description: `Status of pet that needs to be updated`,
type: 'Query',
- schema: updatePetWithFormQueryParamsSchema.shape['status'],
+ schema: updatePetWithFormQueryParamsSchema.unwrap().shape['status'],
},
],
response: updatePetWithFormMutationResponseSchema,
@@ -291,7 +291,7 @@ export const endpoints = makeApi([
name: 'api_key',
description: ``,
type: 'Header',
- schema: deletePetHeaderParamsSchema.shape['api_key'],
+ schema: deletePetHeaderParamsSchema.unwrap().shape['api_key'],
},
],
response: deletePetMutationResponseSchema,
@@ -319,7 +319,7 @@ export const endpoints = makeApi([
name: 'additionalMetadata',
description: `Additional Metadata`,
type: 'Query',
- schema: uploadFileQueryParamsSchema.shape['additionalMetadata'],
+ schema: uploadFileQueryParamsSchema.unwrap().shape['additionalMetadata'],
},
{
name: 'UploadFileMutationRequest',
@@ -373,13 +373,13 @@ export const endpoints = makeApi([
name: 'username',
description: `The user name for login`,
type: 'Query',
- schema: loginUserQueryParamsSchema.shape['username'],
+ schema: loginUserQueryParamsSchema.unwrap().shape['username'],
},
{
name: 'password',
description: `The password for login in clear text`,
type: 'Query',
- schema: loginUserQueryParamsSchema.shape['password'],
+ schema: loginUserQueryParamsSchema.unwrap().shape['password'],
},
],
response: loginUserQueryResponseSchema,
diff --git a/examples/client/src/gen/models/ts/petController/DeletePet.ts b/examples/client/src/gen/models/ts/petController/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/client/src/gen/models/ts/petController/DeletePet.ts
+++ b/examples/client/src/gen/models/ts/petController/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/client/src/gen/models/ts/petController/FindPetsByStatus.ts b/examples/client/src/gen/models/ts/petController/FindPetsByStatus.ts
index 4eb2836f5..c6e253621 100644
--- a/examples/client/src/gen/models/ts/petController/FindPetsByStatus.ts
+++ b/examples/client/src/gen/models/ts/petController/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/client/src/gen/models/ts/petController/FindPetsByTags.ts b/examples/client/src/gen/models/ts/petController/FindPetsByTags.ts
index 1eb7a2682..1b7d80c17 100644
--- a/examples/client/src/gen/models/ts/petController/FindPetsByTags.ts
+++ b/examples/client/src/gen/models/ts/petController/FindPetsByTags.ts
@@ -35,7 +35,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/client/src/gen/models/ts/petController/UpdatePetWithForm.ts b/examples/client/src/gen/models/ts/petController/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/client/src/gen/models/ts/petController/UpdatePetWithForm.ts
+++ b/examples/client/src/gen/models/ts/petController/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/client/src/gen/models/ts/petController/UploadFile.ts b/examples/client/src/gen/models/ts/petController/UploadFile.ts
index 91de3ce6c..4d00591a1 100644
--- a/examples/client/src/gen/models/ts/petController/UploadFile.ts
+++ b/examples/client/src/gen/models/ts/petController/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/client/src/gen/models/ts/petsController/CreatePets.ts b/examples/client/src/gen/models/ts/petsController/CreatePets.ts
index e61497690..1e594b774 100644
--- a/examples/client/src/gen/models/ts/petsController/CreatePets.ts
+++ b/examples/client/src/gen/models/ts/petsController/CreatePets.ts
@@ -46,7 +46,7 @@ export type CreatePetsQueryParams = {
* @type integer | undefined
*/
offset?: number
-}
+} | undefined
/**
* @description unexpected error
diff --git a/examples/client/src/gen/models/ts/userController/LoginUser.ts b/examples/client/src/gen/models/ts/userController/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/client/src/gen/models/ts/userController/LoginUser.ts
+++ b/examples/client/src/gen/models/ts/userController/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/faker/src/gen/models/DeletePet.ts b/examples/faker/src/gen/models/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/faker/src/gen/models/DeletePet.ts
+++ b/examples/faker/src/gen/models/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/faker/src/gen/models/FindPetsByStatus.ts b/examples/faker/src/gen/models/FindPetsByStatus.ts
index ee89e038f..49f3f3365 100644
--- a/examples/faker/src/gen/models/FindPetsByStatus.ts
+++ b/examples/faker/src/gen/models/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/faker/src/gen/models/FindPetsByTags.ts b/examples/faker/src/gen/models/FindPetsByTags.ts
index 0cb8dcce6..c4f5af655 100644
--- a/examples/faker/src/gen/models/FindPetsByTags.ts
+++ b/examples/faker/src/gen/models/FindPetsByTags.ts
@@ -11,7 +11,7 @@ export type FindPetsByTagsQueryParams = {
* @type array | undefined
*/
tags?: string[]
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/faker/src/gen/models/LoginUser.ts b/examples/faker/src/gen/models/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/faker/src/gen/models/LoginUser.ts
+++ b/examples/faker/src/gen/models/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/faker/src/gen/models/UpdatePetWithForm.ts b/examples/faker/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/faker/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/faker/src/gen/models/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/faker/src/gen/models/UploadFile.ts b/examples/faker/src/gen/models/UploadFile.ts
index 3d823f09a..51d060f41 100644
--- a/examples/faker/src/gen/models/UploadFile.ts
+++ b/examples/faker/src/gen/models/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw-v2/package.json b/examples/msw-v2/package.json
index 0d30e790f..dc6a7eb96 100644
--- a/examples/msw-v2/package.json
+++ b/examples/msw-v2/package.json
@@ -33,7 +33,7 @@
"@kubb/swagger-msw": "workspace:*",
"@kubb/swagger-ts": "workspace:*",
"@mswjs/http-middleware": "^0.9.2",
- "msw": "^2.0.14",
+ "msw": "^2.1.2",
"react": "^18.2.0",
"tsup": "^8.0.1"
},
diff --git a/examples/msw-v2/src/gen/models/DeletePet.ts b/examples/msw-v2/src/gen/models/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/msw-v2/src/gen/models/DeletePet.ts
+++ b/examples/msw-v2/src/gen/models/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/msw-v2/src/gen/models/FindPetsByStatus.ts b/examples/msw-v2/src/gen/models/FindPetsByStatus.ts
index ee89e038f..49f3f3365 100644
--- a/examples/msw-v2/src/gen/models/FindPetsByStatus.ts
+++ b/examples/msw-v2/src/gen/models/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw-v2/src/gen/models/FindPetsByTags.ts b/examples/msw-v2/src/gen/models/FindPetsByTags.ts
index 135a247e5..9eb895f2b 100644
--- a/examples/msw-v2/src/gen/models/FindPetsByTags.ts
+++ b/examples/msw-v2/src/gen/models/FindPetsByTags.ts
@@ -21,7 +21,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw-v2/src/gen/models/LoginUser.ts b/examples/msw-v2/src/gen/models/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/msw-v2/src/gen/models/LoginUser.ts
+++ b/examples/msw-v2/src/gen/models/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw-v2/src/gen/models/UpdatePetWithForm.ts b/examples/msw-v2/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/msw-v2/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/msw-v2/src/gen/models/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/msw-v2/src/gen/models/UploadFile.ts b/examples/msw-v2/src/gen/models/UploadFile.ts
index 3d823f09a..51d060f41 100644
--- a/examples/msw-v2/src/gen/models/UploadFile.ts
+++ b/examples/msw-v2/src/gen/models/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw/src/gen/models/DeletePet.ts b/examples/msw/src/gen/models/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/msw/src/gen/models/DeletePet.ts
+++ b/examples/msw/src/gen/models/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/msw/src/gen/models/FindPetsByStatus.ts b/examples/msw/src/gen/models/FindPetsByStatus.ts
index ee89e038f..49f3f3365 100644
--- a/examples/msw/src/gen/models/FindPetsByStatus.ts
+++ b/examples/msw/src/gen/models/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw/src/gen/models/FindPetsByTags.ts b/examples/msw/src/gen/models/FindPetsByTags.ts
index 135a247e5..9eb895f2b 100644
--- a/examples/msw/src/gen/models/FindPetsByTags.ts
+++ b/examples/msw/src/gen/models/FindPetsByTags.ts
@@ -21,7 +21,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw/src/gen/models/LoginUser.ts b/examples/msw/src/gen/models/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/msw/src/gen/models/LoginUser.ts
+++ b/examples/msw/src/gen/models/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/msw/src/gen/models/UpdatePetWithForm.ts b/examples/msw/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/msw/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/msw/src/gen/models/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/msw/src/gen/models/UploadFile.ts b/examples/msw/src/gen/models/UploadFile.ts
index 3d823f09a..51d060f41 100644
--- a/examples/msw/src/gen/models/UploadFile.ts
+++ b/examples/msw/src/gen/models/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query-v5/package.json b/examples/react-query-v5/package.json
index 22f0eab78..259c7abe7 100644
--- a/examples/react-query-v5/package.json
+++ b/examples/react-query-v5/package.json
@@ -28,7 +28,7 @@
"@kubb/swagger-client": "workspace:*",
"@kubb/swagger-tanstack-query": "workspace:*",
"@kubb/swagger-ts": "workspace:*",
- "@tanstack/react-query": "^5.17.10",
+ "@tanstack/react-query": "^5.17.15",
"@tanstack/react-query-devtools": "5.0.0",
"axios": "^1.6.5",
"react": "^18.2.0",
@@ -36,7 +36,7 @@
"tsup": "^8.0.1"
},
"devDependencies": {
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"msw": "^1.3.2",
diff --git a/examples/react-query-v5/src/gen/models/DeletePet.ts b/examples/react-query-v5/src/gen/models/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/react-query-v5/src/gen/models/DeletePet.ts
+++ b/examples/react-query-v5/src/gen/models/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/react-query-v5/src/gen/models/FindPetsByStatus.ts b/examples/react-query-v5/src/gen/models/FindPetsByStatus.ts
index ee89e038f..49f3f3365 100644
--- a/examples/react-query-v5/src/gen/models/FindPetsByStatus.ts
+++ b/examples/react-query-v5/src/gen/models/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query-v5/src/gen/models/FindPetsByTags.ts b/examples/react-query-v5/src/gen/models/FindPetsByTags.ts
index 135a247e5..9eb895f2b 100644
--- a/examples/react-query-v5/src/gen/models/FindPetsByTags.ts
+++ b/examples/react-query-v5/src/gen/models/FindPetsByTags.ts
@@ -21,7 +21,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query-v5/src/gen/models/LoginUser.ts b/examples/react-query-v5/src/gen/models/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/react-query-v5/src/gen/models/LoginUser.ts
+++ b/examples/react-query-v5/src/gen/models/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query-v5/src/gen/models/UpdatePetWithForm.ts b/examples/react-query-v5/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/react-query-v5/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/react-query-v5/src/gen/models/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/react-query-v5/src/gen/models/UploadFile.ts b/examples/react-query-v5/src/gen/models/UploadFile.ts
index 3d823f09a..51d060f41 100644
--- a/examples/react-query-v5/src/gen/models/UploadFile.ts
+++ b/examples/react-query-v5/src/gen/models/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query/package.json b/examples/react-query/package.json
index 3142dee2c..be151b5cc 100644
--- a/examples/react-query/package.json
+++ b/examples/react-query/package.json
@@ -36,7 +36,7 @@
"tsup": "^8.0.1"
},
"devDependencies": {
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"msw": "^1.3.2",
diff --git a/examples/react-query/src/gen/models/DeletePet.ts b/examples/react-query/src/gen/models/DeletePet.ts
index c33aa24fe..081532e5d 100644
--- a/examples/react-query/src/gen/models/DeletePet.ts
+++ b/examples/react-query/src/gen/models/DeletePet.ts
@@ -8,7 +8,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/react-query/src/gen/models/FindPetsByStatus.ts b/examples/react-query/src/gen/models/FindPetsByStatus.ts
index ee89e038f..49f3f3365 100644
--- a/examples/react-query/src/gen/models/FindPetsByStatus.ts
+++ b/examples/react-query/src/gen/models/FindPetsByStatus.ts
@@ -18,7 +18,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query/src/gen/models/FindPetsByTags.ts b/examples/react-query/src/gen/models/FindPetsByTags.ts
index 135a247e5..9eb895f2b 100644
--- a/examples/react-query/src/gen/models/FindPetsByTags.ts
+++ b/examples/react-query/src/gen/models/FindPetsByTags.ts
@@ -21,7 +21,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query/src/gen/models/LoginUser.ts b/examples/react-query/src/gen/models/LoginUser.ts
index 16589cf45..9b9306081 100644
--- a/examples/react-query/src/gen/models/LoginUser.ts
+++ b/examples/react-query/src/gen/models/LoginUser.ts
@@ -14,7 +14,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/react-query/src/gen/models/UpdatePetWithForm.ts b/examples/react-query/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..3502b2eb7 100644
--- a/examples/react-query/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/react-query/src/gen/models/UpdatePetWithForm.ts
@@ -24,7 +24,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/react-query/src/gen/models/UploadFile.ts b/examples/react-query/src/gen/models/UploadFile.ts
index 3d823f09a..51d060f41 100644
--- a/examples/react-query/src/gen/models/UploadFile.ts
+++ b/examples/react-query/src/gen/models/UploadFile.ts
@@ -16,7 +16,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/simple-single/src/gen/models.ts b/examples/simple-single/src/gen/models.ts
index 7153fdeae..df512e9d2 100644
--- a/examples/simple-single/src/gen/models.ts
+++ b/examples/simple-single/src/gen/models.ts
@@ -324,7 +324,7 @@ export type FindPetsByStatusQueryParams = {
* @default 'available'
*/
status?: FindPetsByStatusQueryParamsStatus
-}
+} | undefined
/**
* @description successful operation
@@ -357,7 +357,7 @@ export type FindPetsByTagsQueryParams = {
* @type string | undefined
*/
pageSize?: string
-}
+} | undefined
/**
* @description successful operation
@@ -423,7 +423,7 @@ export type UpdatePetWithFormQueryParams = {
* @type string | undefined
*/
status?: string
-}
+} | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -441,7 +441,7 @@ export type DeletePetHeaderParams = {
* @type string | undefined
*/
api_key?: string
-}
+} | undefined
export type DeletePetMutationResponse = any | null
@@ -475,7 +475,7 @@ export type UploadFileQueryParams = {
* @type string | undefined
*/
additionalMetadata?: string
-}
+} | undefined
/**
* @description successful operation
@@ -635,7 +635,7 @@ export type LoginUserQueryParams = {
* @type string | undefined
*/
password?: string
-}
+} | undefined
/**
* @description successful operation
diff --git a/examples/solid-query/src/gen/models/DeletePet.ts b/examples/solid-query/src/gen/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/solid-query/src/gen/models/DeletePet.ts
+++ b/examples/solid-query/src/gen/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/solid-query/src/gen/models/FindPetsByStatus.ts b/examples/solid-query/src/gen/models/FindPetsByStatus.ts
index a1659b564..6441349f0 100644
--- a/examples/solid-query/src/gen/models/FindPetsByStatus.ts
+++ b/examples/solid-query/src/gen/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/solid-query/src/gen/models/FindPetsByTags.ts b/examples/solid-query/src/gen/models/FindPetsByTags.ts
index 135a247e5..8ffb6a72e 100644
--- a/examples/solid-query/src/gen/models/FindPetsByTags.ts
+++ b/examples/solid-query/src/gen/models/FindPetsByTags.ts
@@ -5,23 +5,25 @@ import type { Pet } from './Pet'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/solid-query/src/gen/models/LoginUser.ts b/examples/solid-query/src/gen/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/solid-query/src/gen/models/LoginUser.ts
+++ b/examples/solid-query/src/gen/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/solid-query/src/gen/models/UpdatePetWithForm.ts b/examples/solid-query/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/solid-query/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/solid-query/src/gen/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/solid-query/src/gen/models/UploadFile.ts b/examples/solid-query/src/gen/models/UploadFile.ts
index 3d823f09a..109c2f634 100644
--- a/examples/solid-query/src/gen/models/UploadFile.ts
+++ b/examples/solid-query/src/gen/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/svelte-query/src/gen/models/DeletePet.ts b/examples/svelte-query/src/gen/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/svelte-query/src/gen/models/DeletePet.ts
+++ b/examples/svelte-query/src/gen/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/svelte-query/src/gen/models/FindPetsByStatus.ts b/examples/svelte-query/src/gen/models/FindPetsByStatus.ts
index a1659b564..6441349f0 100644
--- a/examples/svelte-query/src/gen/models/FindPetsByStatus.ts
+++ b/examples/svelte-query/src/gen/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/svelte-query/src/gen/models/FindPetsByTags.ts b/examples/svelte-query/src/gen/models/FindPetsByTags.ts
index 135a247e5..8ffb6a72e 100644
--- a/examples/svelte-query/src/gen/models/FindPetsByTags.ts
+++ b/examples/svelte-query/src/gen/models/FindPetsByTags.ts
@@ -5,23 +5,25 @@ import type { Pet } from './Pet'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/svelte-query/src/gen/models/LoginUser.ts b/examples/svelte-query/src/gen/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/svelte-query/src/gen/models/LoginUser.ts
+++ b/examples/svelte-query/src/gen/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/svelte-query/src/gen/models/UpdatePetWithForm.ts b/examples/svelte-query/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/svelte-query/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/svelte-query/src/gen/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/svelte-query/src/gen/models/UploadFile.ts b/examples/svelte-query/src/gen/models/UploadFile.ts
index 3d823f09a..109c2f634 100644
--- a/examples/svelte-query/src/gen/models/UploadFile.ts
+++ b/examples/svelte-query/src/gen/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/swr/src/gen/models/DeletePet.ts b/examples/swr/src/gen/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/swr/src/gen/models/DeletePet.ts
+++ b/examples/swr/src/gen/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/swr/src/gen/models/FindPetsByStatus.ts b/examples/swr/src/gen/models/FindPetsByStatus.ts
index a1659b564..6441349f0 100644
--- a/examples/swr/src/gen/models/FindPetsByStatus.ts
+++ b/examples/swr/src/gen/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/swr/src/gen/models/FindPetsByTags.ts b/examples/swr/src/gen/models/FindPetsByTags.ts
index 135a247e5..8ffb6a72e 100644
--- a/examples/swr/src/gen/models/FindPetsByTags.ts
+++ b/examples/swr/src/gen/models/FindPetsByTags.ts
@@ -5,23 +5,25 @@ import type { Pet } from './Pet'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/swr/src/gen/models/LoginUser.ts b/examples/swr/src/gen/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/swr/src/gen/models/LoginUser.ts
+++ b/examples/swr/src/gen/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/swr/src/gen/models/UpdatePetWithForm.ts b/examples/swr/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/swr/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/swr/src/gen/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/swr/src/gen/models/UploadFile.ts b/examples/swr/src/gen/models/UploadFile.ts
index 3d823f09a..109c2f634 100644
--- a/examples/swr/src/gen/models/UploadFile.ts
+++ b/examples/swr/src/gen/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/models.ts b/examples/typescript/src/gen/models.ts
index b4f7ab649..06a18424a 100644
--- a/examples/typescript/src/gen/models.ts
+++ b/examples/typescript/src/gen/models.ts
@@ -312,14 +312,16 @@ export enum FindPetsByStatusQueryParamsStatus {
'pending' = 'pending',
'sold' = 'sold',
}
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
@@ -336,23 +338,25 @@ export namespace FindPetsByStatusQuery {
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -407,18 +411,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -431,12 +437,14 @@ export namespace UpdatePetWithFormMutation {
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
@@ -464,13 +472,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -619,18 +629,20 @@ export namespace CreateUsersWithListInputMutation {
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/modelsConst.ts b/examples/typescript/src/gen/modelsConst.ts
index a1ce63543..2758fc0c6 100644
--- a/examples/typescript/src/gen/modelsConst.ts
+++ b/examples/typescript/src/gen/modelsConst.ts
@@ -317,14 +317,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
@@ -341,23 +343,25 @@ export namespace FindPetsByStatusQuery {
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -412,18 +416,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -436,12 +442,14 @@ export namespace UpdatePetWithFormMutation {
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
@@ -469,13 +477,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -624,18 +634,20 @@ export namespace CreateUsersWithListInputMutation {
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/modelsConstEnum.ts b/examples/typescript/src/gen/modelsConstEnum.ts
index e391b24e4..596a0b10a 100644
--- a/examples/typescript/src/gen/modelsConstEnum.ts
+++ b/examples/typescript/src/gen/modelsConstEnum.ts
@@ -312,14 +312,16 @@ export const enum FindPetsByStatusQueryParamsStatus {
'pending' = 'pending',
'sold' = 'sold',
}
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
@@ -336,23 +338,25 @@ export namespace FindPetsByStatusQuery {
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -407,18 +411,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -431,12 +437,14 @@ export namespace UpdatePetWithFormMutation {
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
@@ -464,13 +472,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -619,18 +629,20 @@ export namespace CreateUsersWithListInputMutation {
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/modelsLiteral.ts b/examples/typescript/src/gen/modelsLiteral.ts
index 8fab7fcf5..9e6254067 100644
--- a/examples/typescript/src/gen/modelsLiteral.ts
+++ b/examples/typescript/src/gen/modelsLiteral.ts
@@ -292,14 +292,16 @@ export namespace AddPetMutation {
export type FindPetsByStatus400 = any | null
export type FindPetsByStatusQueryParamsStatus = 'available' | 'pending' | 'sold'
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
@@ -316,23 +318,25 @@ export namespace FindPetsByStatusQuery {
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -387,18 +391,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -411,12 +417,14 @@ export namespace UpdatePetWithFormMutation {
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
@@ -444,13 +452,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -599,18 +609,20 @@ export namespace CreateUsersWithListInputMutation {
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/modelsPascalConst.ts b/examples/typescript/src/gen/modelsPascalConst.ts
index e4e0ba668..3df623154 100644
--- a/examples/typescript/src/gen/modelsPascalConst.ts
+++ b/examples/typescript/src/gen/modelsPascalConst.ts
@@ -317,14 +317,16 @@ export const FindPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof FindPetsByStatusQueryParamsStatus)[keyof typeof FindPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
@@ -341,23 +343,25 @@ export namespace FindPetsByStatusQuery {
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -412,18 +416,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
@@ -436,12 +442,14 @@ export namespace UpdatePetWithFormMutation {
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
@@ -469,13 +477,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
@@ -624,18 +634,20 @@ export namespace CreateUsersWithListInputMutation {
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/ts/models/DeletePet.ts b/examples/typescript/src/gen/ts/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/typescript/src/gen/ts/models/DeletePet.ts
+++ b/examples/typescript/src/gen/ts/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/typescript/src/gen/ts/models/FindPetsByStatus.ts b/examples/typescript/src/gen/ts/models/FindPetsByStatus.ts
index 6c45eee3f..6c276a67d 100644
--- a/examples/typescript/src/gen/ts/models/FindPetsByStatus.ts
+++ b/examples/typescript/src/gen/ts/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/ts/models/FindPetsByTags.ts b/examples/typescript/src/gen/ts/models/FindPetsByTags.ts
index 7d46df0b7..d0fdfbd7b 100644
--- a/examples/typescript/src/gen/ts/models/FindPetsByTags.ts
+++ b/examples/typescript/src/gen/ts/models/FindPetsByTags.ts
@@ -5,23 +5,25 @@ import type { Pet } from '../../models'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
- /**
- * @description to request with required page number or pagination
- * @type string | undefined
- */
- page?: string
- /**
- * @description to request with required page size
- * @type string | undefined
- */
- pageSize?: string
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/ts/models/LoginUser.ts b/examples/typescript/src/gen/ts/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/typescript/src/gen/ts/models/LoginUser.ts
+++ b/examples/typescript/src/gen/ts/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/typescript/src/gen/ts/models/UpdatePetWithForm.ts b/examples/typescript/src/gen/ts/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/typescript/src/gen/ts/models/UpdatePetWithForm.ts
+++ b/examples/typescript/src/gen/ts/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/typescript/src/gen/ts/models/UploadFile.ts b/examples/typescript/src/gen/ts/models/UploadFile.ts
index 8a9e03740..41de588b2 100644
--- a/examples/typescript/src/gen/ts/models/UploadFile.ts
+++ b/examples/typescript/src/gen/ts/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query-v5/package.json b/examples/vue-query-v5/package.json
index e1f5f3100..7bcae11ae 100644
--- a/examples/vue-query-v5/package.json
+++ b/examples/vue-query-v5/package.json
@@ -29,9 +29,9 @@
"@kubb/swagger-tanstack-query": "workspace:*",
"@kubb/swagger-ts": "workspace:*",
"@kubb/swagger-zod": "workspace:*",
- "@tanstack/vue-query": "^5.17.10",
+ "@tanstack/vue-query": "^5.17.15",
"axios": "^1.6.5",
- "vue": "^3.4.13"
+ "vue": "^3.4.15"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
diff --git a/examples/vue-query-v5/src/gen/models/DeletePet.ts b/examples/vue-query-v5/src/gen/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/vue-query-v5/src/gen/models/DeletePet.ts
+++ b/examples/vue-query-v5/src/gen/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/vue-query-v5/src/gen/models/FindPetsByStatus.ts b/examples/vue-query-v5/src/gen/models/FindPetsByStatus.ts
index a1659b564..6441349f0 100644
--- a/examples/vue-query-v5/src/gen/models/FindPetsByStatus.ts
+++ b/examples/vue-query-v5/src/gen/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query-v5/src/gen/models/FindPetsByTags.ts b/examples/vue-query-v5/src/gen/models/FindPetsByTags.ts
index 0cb8dcce6..4bc167995 100644
--- a/examples/vue-query-v5/src/gen/models/FindPetsByTags.ts
+++ b/examples/vue-query-v5/src/gen/models/FindPetsByTags.ts
@@ -5,13 +5,15 @@ import type { Pet } from './Pet'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query-v5/src/gen/models/LoginUser.ts b/examples/vue-query-v5/src/gen/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/vue-query-v5/src/gen/models/LoginUser.ts
+++ b/examples/vue-query-v5/src/gen/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query-v5/src/gen/models/UpdatePetWithForm.ts b/examples/vue-query-v5/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/vue-query-v5/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/vue-query-v5/src/gen/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/vue-query-v5/src/gen/models/UploadFile.ts b/examples/vue-query-v5/src/gen/models/UploadFile.ts
index 3d823f09a..109c2f634 100644
--- a/examples/vue-query-v5/src/gen/models/UploadFile.ts
+++ b/examples/vue-query-v5/src/gen/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query/package.json b/examples/vue-query/package.json
index b06cf4d3e..286bbaa01 100644
--- a/examples/vue-query/package.json
+++ b/examples/vue-query/package.json
@@ -31,7 +31,7 @@
"@kubb/swagger-zod": "workspace:*",
"@tanstack/vue-query": "^4.37.1",
"axios": "^1.6.5",
- "vue": "^3.4.13"
+ "vue": "^3.4.15"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
diff --git a/examples/vue-query/src/gen/models/DeletePet.ts b/examples/vue-query/src/gen/models/DeletePet.ts
index c33aa24fe..b413d2341 100644
--- a/examples/vue-query/src/gen/models/DeletePet.ts
+++ b/examples/vue-query/src/gen/models/DeletePet.ts
@@ -3,12 +3,14 @@
*/
export type DeletePet400 = any | null
-export type DeletePetHeaderParams = {
- /**
- * @type string | undefined
- */
- api_key?: string
-}
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
export type DeletePetMutationResponse = any | null
diff --git a/examples/vue-query/src/gen/models/FindPetsByStatus.ts b/examples/vue-query/src/gen/models/FindPetsByStatus.ts
index a1659b564..6441349f0 100644
--- a/examples/vue-query/src/gen/models/FindPetsByStatus.ts
+++ b/examples/vue-query/src/gen/models/FindPetsByStatus.ts
@@ -11,14 +11,16 @@ export const findPetsByStatusQueryParamsStatus = {
sold: 'sold',
} as const
export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
-export type FindPetsByStatusQueryParams = {
- /**
- * @description Status values that need to be considered for filter
- * @type string | undefined
- * @default 'available'
- */
- status?: FindPetsByStatusQueryParamsStatus
-}
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query/src/gen/models/FindPetsByTags.ts b/examples/vue-query/src/gen/models/FindPetsByTags.ts
index 0cb8dcce6..4bc167995 100644
--- a/examples/vue-query/src/gen/models/FindPetsByTags.ts
+++ b/examples/vue-query/src/gen/models/FindPetsByTags.ts
@@ -5,13 +5,15 @@ import type { Pet } from './Pet'
*/
export type FindPetsByTags400 = any | null
-export type FindPetsByTagsQueryParams = {
- /**
- * @description Tags to filter by
- * @type array | undefined
- */
- tags?: string[]
-}
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query/src/gen/models/LoginUser.ts b/examples/vue-query/src/gen/models/LoginUser.ts
index 16589cf45..d922e6f3f 100644
--- a/examples/vue-query/src/gen/models/LoginUser.ts
+++ b/examples/vue-query/src/gen/models/LoginUser.ts
@@ -3,18 +3,20 @@
*/
export type LoginUser400 = any | null
-export type LoginUserQueryParams = {
- /**
- * @description The user name for login
- * @type string | undefined
- */
- username?: string
- /**
- * @description The password for login in clear text
- * @type string | undefined
- */
- password?: string
-}
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/vue-query/src/gen/models/UpdatePetWithForm.ts b/examples/vue-query/src/gen/models/UpdatePetWithForm.ts
index 1073a59e5..721bed470 100644
--- a/examples/vue-query/src/gen/models/UpdatePetWithForm.ts
+++ b/examples/vue-query/src/gen/models/UpdatePetWithForm.ts
@@ -13,18 +13,20 @@ export type UpdatePetWithFormPathParams = {
petId: number
}
-export type UpdatePetWithFormQueryParams = {
- /**
- * @description Name of pet that needs to be updated
- * @type string | undefined
- */
- name?: string
- /**
- * @description Status of pet that needs to be updated
- * @type string | undefined
- */
- status?: string
-}
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
export namespace UpdatePetWithFormMutation {
export type Response = UpdatePetWithFormMutationResponse
export type PathParams = UpdatePetWithFormPathParams
diff --git a/examples/vue-query/src/gen/models/UploadFile.ts b/examples/vue-query/src/gen/models/UploadFile.ts
index 3d823f09a..109c2f634 100644
--- a/examples/vue-query/src/gen/models/UploadFile.ts
+++ b/examples/vue-query/src/gen/models/UploadFile.ts
@@ -10,13 +10,15 @@ export type UploadFilePathParams = {
petId: number
}
-export type UploadFileQueryParams = {
- /**
- * @description Additional Metadata
- * @type string | undefined
- */
- additionalMetadata?: string
-}
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
/**
* @description successful operation
diff --git a/examples/zod/kubb.config.js b/examples/zod/kubb.config.js
index c105cc45c..9c46a6e3c 100644
--- a/examples/zod/kubb.config.js
+++ b/examples/zod/kubb.config.js
@@ -26,6 +26,11 @@ export default defineConfig(async () => {
path: './zod',
},
}],
+ ['@kubb/swagger-ts', {
+ output: {
+ path: './ts',
+ },
+ }],
],
}
})
diff --git a/examples/zod/src/gen/index.ts b/examples/zod/src/gen/index.ts
index b7a612644..3301ad0b4 100644
--- a/examples/zod/src/gen/index.ts
+++ b/examples/zod/src/gen/index.ts
@@ -1 +1,2 @@
+export * from './ts/index'
export * from './zod/index'
diff --git a/examples/zod/src/gen/ts/AddPet.ts b/examples/zod/src/gen/ts/AddPet.ts
new file mode 100644
index 000000000..c8349c827
--- /dev/null
+++ b/examples/zod/src/gen/ts/AddPet.ts
@@ -0,0 +1,28 @@
+import type { AddPetRequest } from './AddPetRequest'
+import type { Pet } from './Pet'
+
+export type AddPet405 = {
+ /**
+ * @type integer | undefined int32
+ */
+ code?: number
+ /**
+ * @type string | undefined
+ */
+ message?: string
+}
+
+/**
+ * @description Create a new pet in the store
+ */
+export type AddPetMutationRequest = AddPetRequest
+
+/**
+ * @description Successful operation
+ */
+export type AddPetMutationResponse = Pet
+export namespace AddPetMutation {
+ export type Response = AddPetMutationResponse
+ export type Request = AddPetMutationRequest
+ export type Errors = AddPet405
+}
diff --git a/examples/zod/src/gen/ts/AddPetRequest.ts b/examples/zod/src/gen/ts/AddPetRequest.ts
new file mode 100644
index 000000000..f2a35d74a
--- /dev/null
+++ b/examples/zod/src/gen/ts/AddPetRequest.ts
@@ -0,0 +1,35 @@
+import type { Category } from './Category'
+import type { Tag } from './Tag'
+
+export const addPetRequestStatus = {
+ available: 'available',
+ pending: 'pending',
+ sold: 'sold',
+} as const
+export type AddPetRequestStatus = (typeof addPetRequestStatus)[keyof typeof addPetRequestStatus]
+export type AddPetRequest = {
+ /**
+ * @type integer | undefined int64
+ * @example 10
+ */
+ id?: number
+ /**
+ * @type string
+ * @example doggie
+ */
+ name: string
+ category?: Category
+ /**
+ * @type array
+ */
+ photoUrls: string[]
+ /**
+ * @type array | undefined
+ */
+ tags?: Tag[]
+ /**
+ * @description pet status in the store
+ * @type string | undefined
+ */
+ status?: AddPetRequestStatus
+}
diff --git a/examples/zod/src/gen/ts/Address.ts b/examples/zod/src/gen/ts/Address.ts
new file mode 100644
index 000000000..dd04fd4a1
--- /dev/null
+++ b/examples/zod/src/gen/ts/Address.ts
@@ -0,0 +1,22 @@
+export type Address = {
+ /**
+ * @type string | undefined
+ * @example 437 Lytton
+ */
+ street?: string
+ /**
+ * @type string | undefined
+ * @example Palo Alto
+ */
+ city?: string
+ /**
+ * @type string | undefined
+ * @example CA
+ */
+ state?: string
+ /**
+ * @type string | undefined
+ * @example 94301
+ */
+ zip?: string
+}
diff --git a/examples/zod/src/gen/ts/ApiResponse.ts b/examples/zod/src/gen/ts/ApiResponse.ts
new file mode 100644
index 000000000..499e9e9ca
--- /dev/null
+++ b/examples/zod/src/gen/ts/ApiResponse.ts
@@ -0,0 +1,14 @@
+export type ApiResponse = {
+ /**
+ * @type integer | undefined int32
+ */
+ code?: number
+ /**
+ * @type string | undefined
+ */
+ type?: string
+ /**
+ * @type string | undefined
+ */
+ message?: string
+}
diff --git a/examples/zod/src/gen/ts/Category.ts b/examples/zod/src/gen/ts/Category.ts
new file mode 100644
index 000000000..04c882cef
--- /dev/null
+++ b/examples/zod/src/gen/ts/Category.ts
@@ -0,0 +1,12 @@
+export type Category = {
+ /**
+ * @type integer | undefined int64
+ * @example 1
+ */
+ id?: number
+ /**
+ * @type string | undefined
+ * @example Dogs
+ */
+ name?: string
+}
diff --git a/examples/zod/src/gen/ts/CreateUser.ts b/examples/zod/src/gen/ts/CreateUser.ts
new file mode 100644
index 000000000..40b1e23c7
--- /dev/null
+++ b/examples/zod/src/gen/ts/CreateUser.ts
@@ -0,0 +1,18 @@
+import type { User } from './User'
+
+export type CreateUserMutationResponse = any | null
+
+/**
+ * @description successful operation
+ */
+export type CreateUserError = User
+
+/**
+ * @description Created user object
+ */
+export type CreateUserMutationRequest = User
+export namespace CreateUserMutation {
+ export type Response = CreateUserMutationResponse
+ export type Request = CreateUserMutationRequest
+ export type Errors = CreateUserError
+}
diff --git a/examples/zod/src/gen/ts/CreateUsersWithListInput.ts b/examples/zod/src/gen/ts/CreateUsersWithListInput.ts
new file mode 100644
index 000000000..66918deab
--- /dev/null
+++ b/examples/zod/src/gen/ts/CreateUsersWithListInput.ts
@@ -0,0 +1,18 @@
+import type { User } from './User'
+
+/**
+ * @description successful operation
+ */
+export type CreateUsersWithListInputError = any | null
+
+export type CreateUsersWithListInputMutationRequest = User[]
+
+/**
+ * @description Successful operation
+ */
+export type CreateUsersWithListInputMutationResponse = User
+export namespace CreateUsersWithListInputMutation {
+ export type Response = CreateUsersWithListInputMutationResponse
+ export type Request = CreateUsersWithListInputMutationRequest
+ export type Errors = CreateUsersWithListInputError
+}
diff --git a/examples/zod/src/gen/ts/Customer.ts b/examples/zod/src/gen/ts/Customer.ts
new file mode 100644
index 000000000..39bbb4a6e
--- /dev/null
+++ b/examples/zod/src/gen/ts/Customer.ts
@@ -0,0 +1,18 @@
+import type { Address } from './Address'
+
+export type Customer = {
+ /**
+ * @type integer | undefined int64
+ * @example 100000
+ */
+ id?: number
+ /**
+ * @type string | undefined
+ * @example fehguy
+ */
+ username?: string
+ /**
+ * @type array | undefined
+ */
+ address?: Address[]
+}
diff --git a/examples/zod/src/gen/ts/DeleteOrder.ts b/examples/zod/src/gen/ts/DeleteOrder.ts
new file mode 100644
index 000000000..ae14aa7d0
--- /dev/null
+++ b/examples/zod/src/gen/ts/DeleteOrder.ts
@@ -0,0 +1,24 @@
+/**
+ * @description Invalid ID supplied
+ */
+export type DeleteOrder400 = any | null
+
+/**
+ * @description Order not found
+ */
+export type DeleteOrder404 = any | null
+
+export type DeleteOrderMutationResponse = any | null
+
+export type DeleteOrderPathParams = {
+ /**
+ * @description ID of the order that needs to be deleted
+ * @type integer int64
+ */
+ orderId: number
+}
+export namespace DeleteOrderMutation {
+ export type Response = DeleteOrderMutationResponse
+ export type PathParams = DeleteOrderPathParams
+ export type Errors = DeleteOrder400 | DeleteOrder404
+}
diff --git a/examples/zod/src/gen/ts/DeletePet.ts b/examples/zod/src/gen/ts/DeletePet.ts
new file mode 100644
index 000000000..b413d2341
--- /dev/null
+++ b/examples/zod/src/gen/ts/DeletePet.ts
@@ -0,0 +1,29 @@
+/**
+ * @description Invalid pet value
+ */
+export type DeletePet400 = any | null
+
+export type DeletePetHeaderParams =
+ | {
+ /**
+ * @type string | undefined
+ */
+ api_key?: string
+ }
+ | undefined
+
+export type DeletePetMutationResponse = any | null
+
+export type DeletePetPathParams = {
+ /**
+ * @description Pet id to delete
+ * @type integer int64
+ */
+ petId: number
+}
+export namespace DeletePetMutation {
+ export type Response = DeletePetMutationResponse
+ export type PathParams = DeletePetPathParams
+ export type HeaderParams = DeletePetHeaderParams
+ export type Errors = DeletePet400
+}
diff --git a/examples/zod/src/gen/ts/DeleteUser.ts b/examples/zod/src/gen/ts/DeleteUser.ts
new file mode 100644
index 000000000..410f821e2
--- /dev/null
+++ b/examples/zod/src/gen/ts/DeleteUser.ts
@@ -0,0 +1,24 @@
+/**
+ * @description Invalid username supplied
+ */
+export type DeleteUser400 = any | null
+
+/**
+ * @description User not found
+ */
+export type DeleteUser404 = any | null
+
+export type DeleteUserMutationResponse = any | null
+
+export type DeleteUserPathParams = {
+ /**
+ * @description The name that needs to be deleted
+ * @type string
+ */
+ username: string
+}
+export namespace DeleteUserMutation {
+ export type Response = DeleteUserMutationResponse
+ export type PathParams = DeleteUserPathParams
+ export type Errors = DeleteUser400 | DeleteUser404
+}
diff --git a/examples/zod/src/gen/ts/FindPetsByStatus.ts b/examples/zod/src/gen/ts/FindPetsByStatus.ts
new file mode 100644
index 000000000..6441349f0
--- /dev/null
+++ b/examples/zod/src/gen/ts/FindPetsByStatus.ts
@@ -0,0 +1,33 @@
+import type { Pet } from './Pet'
+
+/**
+ * @description Invalid status value
+ */
+export type FindPetsByStatus400 = any | null
+
+export const findPetsByStatusQueryParamsStatus = {
+ available: 'available',
+ pending: 'pending',
+ sold: 'sold',
+} as const
+export type FindPetsByStatusQueryParamsStatus = (typeof findPetsByStatusQueryParamsStatus)[keyof typeof findPetsByStatusQueryParamsStatus]
+export type FindPetsByStatusQueryParams =
+ | {
+ /**
+ * @description Status values that need to be considered for filter
+ * @type string | undefined
+ * @default 'available'
+ */
+ status?: FindPetsByStatusQueryParamsStatus
+ }
+ | undefined
+
+/**
+ * @description successful operation
+ */
+export type FindPetsByStatusQueryResponse = Pet[]
+export namespace FindPetsByStatusQuery {
+ export type Response = FindPetsByStatusQueryResponse
+ export type QueryParams = FindPetsByStatusQueryParams
+ export type Errors = FindPetsByStatus400
+}
diff --git a/examples/zod/src/gen/ts/FindPetsByTags.ts b/examples/zod/src/gen/ts/FindPetsByTags.ts
new file mode 100644
index 000000000..8ffb6a72e
--- /dev/null
+++ b/examples/zod/src/gen/ts/FindPetsByTags.ts
@@ -0,0 +1,36 @@
+import type { Pet } from './Pet'
+
+/**
+ * @description Invalid tag value
+ */
+export type FindPetsByTags400 = any | null
+
+export type FindPetsByTagsQueryParams =
+ | {
+ /**
+ * @description Tags to filter by
+ * @type array | undefined
+ */
+ tags?: string[]
+ /**
+ * @description to request with required page number or pagination
+ * @type string | undefined
+ */
+ page?: string
+ /**
+ * @description to request with required page size
+ * @type string | undefined
+ */
+ pageSize?: string
+ }
+ | undefined
+
+/**
+ * @description successful operation
+ */
+export type FindPetsByTagsQueryResponse = Pet[]
+export namespace FindPetsByTagsQuery {
+ export type Response = FindPetsByTagsQueryResponse
+ export type QueryParams = FindPetsByTagsQueryParams
+ export type Errors = FindPetsByTags400
+}
diff --git a/examples/zod/src/gen/ts/GetInventory.ts b/examples/zod/src/gen/ts/GetInventory.ts
new file mode 100644
index 000000000..324e4150a
--- /dev/null
+++ b/examples/zod/src/gen/ts/GetInventory.ts
@@ -0,0 +1,9 @@
+/**
+ * @description successful operation
+ */
+export type GetInventoryQueryResponse = {
+ [key: string]: number
+}
+export namespace GetInventoryQuery {
+ export type Response = GetInventoryQueryResponse
+}
diff --git a/examples/zod/src/gen/ts/GetOrderById.ts b/examples/zod/src/gen/ts/GetOrderById.ts
new file mode 100644
index 000000000..0a3fa5d98
--- /dev/null
+++ b/examples/zod/src/gen/ts/GetOrderById.ts
@@ -0,0 +1,29 @@
+import type { Order } from './Order'
+
+/**
+ * @description Invalid ID supplied
+ */
+export type GetOrderById400 = any | null
+
+/**
+ * @description Order not found
+ */
+export type GetOrderById404 = any | null
+
+export type GetOrderByIdPathParams = {
+ /**
+ * @description ID of order that needs to be fetched
+ * @type integer int64
+ */
+ orderId: number
+}
+
+/**
+ * @description successful operation
+ */
+export type GetOrderByIdQueryResponse = Order
+export namespace GetOrderByIdQuery {
+ export type Response = GetOrderByIdQueryResponse
+ export type PathParams = GetOrderByIdPathParams
+ export type Errors = GetOrderById400 | GetOrderById404
+}
diff --git a/examples/zod/src/gen/ts/GetPetById.ts b/examples/zod/src/gen/ts/GetPetById.ts
new file mode 100644
index 000000000..282d8593c
--- /dev/null
+++ b/examples/zod/src/gen/ts/GetPetById.ts
@@ -0,0 +1,29 @@
+import type { Pet } from './Pet'
+
+/**
+ * @description Invalid ID supplied
+ */
+export type GetPetById400 = any | null
+
+/**
+ * @description Pet not found
+ */
+export type GetPetById404 = any | null
+
+export type GetPetByIdPathParams = {
+ /**
+ * @description ID of pet to return
+ * @type integer int64
+ */
+ petId: number
+}
+
+/**
+ * @description successful operation
+ */
+export type GetPetByIdQueryResponse = Pet
+export namespace GetPetByIdQuery {
+ export type Response = GetPetByIdQueryResponse
+ export type PathParams = GetPetByIdPathParams
+ export type Errors = GetPetById400 | GetPetById404
+}
diff --git a/examples/zod/src/gen/ts/GetUserByName.ts b/examples/zod/src/gen/ts/GetUserByName.ts
new file mode 100644
index 000000000..dde7d23e6
--- /dev/null
+++ b/examples/zod/src/gen/ts/GetUserByName.ts
@@ -0,0 +1,29 @@
+import type { User } from './User'
+
+/**
+ * @description Invalid username supplied
+ */
+export type GetUserByName400 = any | null
+
+/**
+ * @description User not found
+ */
+export type GetUserByName404 = any | null
+
+export type GetUserByNamePathParams = {
+ /**
+ * @description The name that needs to be fetched. Use user1 for testing.
+ * @type string
+ */
+ username: string
+}
+
+/**
+ * @description successful operation
+ */
+export type GetUserByNameQueryResponse = User
+export namespace GetUserByNameQuery {
+ export type Response = GetUserByNameQueryResponse
+ export type PathParams = GetUserByNamePathParams
+ export type Errors = GetUserByName400 | GetUserByName404
+}
diff --git a/examples/zod/src/gen/ts/LoginUser.ts b/examples/zod/src/gen/ts/LoginUser.ts
new file mode 100644
index 000000000..d922e6f3f
--- /dev/null
+++ b/examples/zod/src/gen/ts/LoginUser.ts
@@ -0,0 +1,29 @@
+/**
+ * @description Invalid username/password supplied
+ */
+export type LoginUser400 = any | null
+
+export type LoginUserQueryParams =
+ | {
+ /**
+ * @description The user name for login
+ * @type string | undefined
+ */
+ username?: string
+ /**
+ * @description The password for login in clear text
+ * @type string | undefined
+ */
+ password?: string
+ }
+ | undefined
+
+/**
+ * @description successful operation
+ */
+export type LoginUserQueryResponse = string
+export namespace LoginUserQuery {
+ export type Response = LoginUserQueryResponse
+ export type QueryParams = LoginUserQueryParams
+ export type Errors = LoginUser400
+}
diff --git a/examples/zod/src/gen/ts/LogoutUser.ts b/examples/zod/src/gen/ts/LogoutUser.ts
new file mode 100644
index 000000000..e26dc60fb
--- /dev/null
+++ b/examples/zod/src/gen/ts/LogoutUser.ts
@@ -0,0 +1,10 @@
+/**
+ * @description successful operation
+ */
+export type LogoutUserError = any | null
+
+export type LogoutUserQueryResponse = any | null
+export namespace LogoutUserQuery {
+ export type Response = LogoutUserQueryResponse
+ export type Errors = LogoutUserError
+}
diff --git a/examples/zod/src/gen/ts/Order.ts b/examples/zod/src/gen/ts/Order.ts
new file mode 100644
index 000000000..b28c7b7e8
--- /dev/null
+++ b/examples/zod/src/gen/ts/Order.ts
@@ -0,0 +1,49 @@
+export const orderStatus = {
+ placed: 'placed',
+ approved: 'approved',
+ delivered: 'delivered',
+} as const
+export type OrderStatus = (typeof orderStatus)[keyof typeof orderStatus]
+export const orderHttpStatus = {
+ '200': 200,
+ '400': 400,
+ '500': 500,
+} as const
+export type OrderHttpStatus = (typeof orderHttpStatus)[keyof typeof orderHttpStatus]
+export type Order = {
+ /**
+ * @type integer | undefined int64
+ * @example 10
+ */
+ id?: number
+ /**
+ * @type integer | undefined int64
+ * @example 198772
+ */
+ petId?: number
+ /**
+ * @type integer | undefined int32
+ * @example 7
+ */
+ quantity?: number
+ /**
+ * @type string | undefined date-time
+ */
+ shipDate?: string
+ /**
+ * @description Order Status
+ * @type string | undefined
+ * @example approved
+ */
+ status?: OrderStatus
+ /**
+ * @description HTTP Status
+ * @type number | undefined
+ * @example 200
+ */
+ http_status?: OrderHttpStatus
+ /**
+ * @type boolean | undefined
+ */
+ complete?: boolean
+}
diff --git a/examples/zod/src/gen/ts/Pet.ts b/examples/zod/src/gen/ts/Pet.ts
new file mode 100644
index 000000000..afc67d382
--- /dev/null
+++ b/examples/zod/src/gen/ts/Pet.ts
@@ -0,0 +1,35 @@
+import type { Category } from './Category'
+import type { Tag } from './Tag'
+
+export const petStatus = {
+ available: 'available',
+ pending: 'pending',
+ sold: 'sold',
+} as const
+export type PetStatus = (typeof petStatus)[keyof typeof petStatus]
+export type Pet = {
+ /**
+ * @type integer | undefined int64
+ * @example 10
+ */
+ id?: number
+ /**
+ * @type string
+ * @example doggie
+ */
+ name: string
+ category?: Category
+ /**
+ * @type array
+ */
+ photoUrls: string[]
+ /**
+ * @type array | undefined
+ */
+ tags?: Tag[]
+ /**
+ * @description pet status in the store
+ * @type string | undefined
+ */
+ status?: PetStatus
+}
diff --git a/examples/zod/src/gen/ts/PetNotFound.ts b/examples/zod/src/gen/ts/PetNotFound.ts
new file mode 100644
index 000000000..676a15893
--- /dev/null
+++ b/examples/zod/src/gen/ts/PetNotFound.ts
@@ -0,0 +1,10 @@
+export type PetNotFound = {
+ /**
+ * @type integer | undefined int32
+ */
+ code?: number
+ /**
+ * @type string | undefined
+ */
+ message?: string
+}
diff --git a/examples/zod/src/gen/ts/PlaceOrder.ts b/examples/zod/src/gen/ts/PlaceOrder.ts
new file mode 100644
index 000000000..44611f953
--- /dev/null
+++ b/examples/zod/src/gen/ts/PlaceOrder.ts
@@ -0,0 +1,18 @@
+import type { Order } from './Order'
+
+/**
+ * @description Invalid input
+ */
+export type PlaceOrder405 = any | null
+
+export type PlaceOrderMutationRequest = Order
+
+/**
+ * @description successful operation
+ */
+export type PlaceOrderMutationResponse = Order
+export namespace PlaceOrderMutation {
+ export type Response = PlaceOrderMutationResponse
+ export type Request = PlaceOrderMutationRequest
+ export type Errors = PlaceOrder405
+}
diff --git a/examples/zod/src/gen/ts/PlaceOrderPatch.ts b/examples/zod/src/gen/ts/PlaceOrderPatch.ts
new file mode 100644
index 000000000..b6a277f61
--- /dev/null
+++ b/examples/zod/src/gen/ts/PlaceOrderPatch.ts
@@ -0,0 +1,18 @@
+import type { Order } from './Order'
+
+/**
+ * @description Invalid input
+ */
+export type PlaceOrderPatch405 = any | null
+
+export type PlaceOrderPatchMutationRequest = Order
+
+/**
+ * @description successful operation
+ */
+export type PlaceOrderPatchMutationResponse = Order
+export namespace PlaceOrderPatchMutation {
+ export type Response = PlaceOrderPatchMutationResponse
+ export type Request = PlaceOrderPatchMutationRequest
+ export type Errors = PlaceOrderPatch405
+}
diff --git a/examples/zod/src/gen/ts/Tag.ts b/examples/zod/src/gen/ts/Tag.ts
new file mode 100644
index 000000000..5145ac12c
--- /dev/null
+++ b/examples/zod/src/gen/ts/Tag.ts
@@ -0,0 +1,10 @@
+export type Tag = {
+ /**
+ * @type integer | undefined int64
+ */
+ id?: number
+ /**
+ * @type string | undefined
+ */
+ name?: string
+}
diff --git a/examples/zod/src/gen/ts/UpdatePet.ts b/examples/zod/src/gen/ts/UpdatePet.ts
new file mode 100644
index 000000000..0aa4475c0
--- /dev/null
+++ b/examples/zod/src/gen/ts/UpdatePet.ts
@@ -0,0 +1,31 @@
+import type { Pet } from './Pet'
+
+/**
+ * @description Invalid ID supplied
+ */
+export type UpdatePet400 = any | null
+
+/**
+ * @description Pet not found
+ */
+export type UpdatePet404 = any | null
+
+/**
+ * @description Validation exception
+ */
+export type UpdatePet405 = any | null
+
+/**
+ * @description Update an existent pet in the store
+ */
+export type UpdatePetMutationRequest = Pet
+
+/**
+ * @description Successful operation
+ */
+export type UpdatePetMutationResponse = Pet
+export namespace UpdatePetMutation {
+ export type Response = UpdatePetMutationResponse
+ export type Request = UpdatePetMutationRequest
+ export type Errors = UpdatePet400 | UpdatePet404 | UpdatePet405
+}
diff --git a/examples/zod/src/gen/ts/UpdatePetWithForm.ts b/examples/zod/src/gen/ts/UpdatePetWithForm.ts
new file mode 100644
index 000000000..721bed470
--- /dev/null
+++ b/examples/zod/src/gen/ts/UpdatePetWithForm.ts
@@ -0,0 +1,35 @@
+/**
+ * @description Invalid input
+ */
+export type UpdatePetWithForm405 = any | null
+
+export type UpdatePetWithFormMutationResponse = any | null
+
+export type UpdatePetWithFormPathParams = {
+ /**
+ * @description ID of pet that needs to be updated
+ * @type integer int64
+ */
+ petId: number
+}
+
+export type UpdatePetWithFormQueryParams =
+ | {
+ /**
+ * @description Name of pet that needs to be updated
+ * @type string | undefined
+ */
+ name?: string
+ /**
+ * @description Status of pet that needs to be updated
+ * @type string | undefined
+ */
+ status?: string
+ }
+ | undefined
+export namespace UpdatePetWithFormMutation {
+ export type Response = UpdatePetWithFormMutationResponse
+ export type PathParams = UpdatePetWithFormPathParams
+ export type QueryParams = UpdatePetWithFormQueryParams
+ export type Errors = UpdatePetWithForm405
+}
diff --git a/examples/zod/src/gen/ts/UpdateUser.ts b/examples/zod/src/gen/ts/UpdateUser.ts
new file mode 100644
index 000000000..a200acb1c
--- /dev/null
+++ b/examples/zod/src/gen/ts/UpdateUser.ts
@@ -0,0 +1,27 @@
+import type { User } from './User'
+
+/**
+ * @description successful operation
+ */
+export type UpdateUserError = any | null
+
+export type UpdateUserMutationResponse = any | null
+
+export type UpdateUserPathParams = {
+ /**
+ * @description name that need to be deleted
+ * @type string
+ */
+ username: string
+}
+
+/**
+ * @description Update an existent user in the store
+ */
+export type UpdateUserMutationRequest = User
+export namespace UpdateUserMutation {
+ export type Response = UpdateUserMutationResponse
+ export type Request = UpdateUserMutationRequest
+ export type PathParams = UpdateUserPathParams
+ export type Errors = UpdateUserError
+}
diff --git a/examples/zod/src/gen/ts/UploadFile.ts b/examples/zod/src/gen/ts/UploadFile.ts
new file mode 100644
index 000000000..109c2f634
--- /dev/null
+++ b/examples/zod/src/gen/ts/UploadFile.ts
@@ -0,0 +1,32 @@
+import type { ApiResponse } from './ApiResponse'
+
+export type UploadFileMutationRequest = string
+
+export type UploadFilePathParams = {
+ /**
+ * @description ID of pet to update
+ * @type integer int64
+ */
+ petId: number
+}
+
+export type UploadFileQueryParams =
+ | {
+ /**
+ * @description Additional Metadata
+ * @type string | undefined
+ */
+ additionalMetadata?: string
+ }
+ | undefined
+
+/**
+ * @description successful operation
+ */
+export type UploadFileMutationResponse = ApiResponse
+export namespace UploadFileMutation {
+ export type Response = UploadFileMutationResponse
+ export type Request = UploadFileMutationRequest
+ export type PathParams = UploadFilePathParams
+ export type QueryParams = UploadFileQueryParams
+}
diff --git a/examples/zod/src/gen/ts/User.ts b/examples/zod/src/gen/ts/User.ts
new file mode 100644
index 000000000..7db228615
--- /dev/null
+++ b/examples/zod/src/gen/ts/User.ts
@@ -0,0 +1,43 @@
+export type User = {
+ /**
+ * @type integer | undefined int64
+ * @example 10
+ */
+ id?: number
+ /**
+ * @type string | undefined
+ * @example theUser
+ */
+ username?: string
+ /**
+ * @type string | undefined
+ * @example John
+ */
+ firstName?: string
+ /**
+ * @type string | undefined
+ * @example James
+ */
+ lastName?: string
+ /**
+ * @type string | undefined
+ * @example john@email.com
+ */
+ email?: string
+ /**
+ * @type string | undefined
+ * @example 12345
+ */
+ password?: string
+ /**
+ * @type string | undefined
+ * @example 12345
+ */
+ phone?: string
+ /**
+ * @description User Status
+ * @type integer | undefined int32
+ * @example 1
+ */
+ userStatus?: number
+}
diff --git a/examples/zod/src/gen/ts/UserArray.ts b/examples/zod/src/gen/ts/UserArray.ts
new file mode 100644
index 000000000..effb23af2
--- /dev/null
+++ b/examples/zod/src/gen/ts/UserArray.ts
@@ -0,0 +1,3 @@
+import type { User } from './User'
+
+export type UserArray = User[]
diff --git a/examples/zod/src/gen/ts/index.ts b/examples/zod/src/gen/ts/index.ts
new file mode 100644
index 000000000..dbeb82e28
--- /dev/null
+++ b/examples/zod/src/gen/ts/index.ts
@@ -0,0 +1,31 @@
+export * from './AddPet'
+export * from './AddPetRequest'
+export * from './Address'
+export * from './ApiResponse'
+export * from './Category'
+export * from './CreateUser'
+export * from './CreateUsersWithListInput'
+export * from './Customer'
+export * from './DeleteOrder'
+export * from './DeletePet'
+export * from './DeleteUser'
+export * from './FindPetsByStatus'
+export * from './FindPetsByTags'
+export * from './GetInventory'
+export * from './GetOrderById'
+export * from './GetPetById'
+export * from './GetUserByName'
+export * from './LoginUser'
+export * from './LogoutUser'
+export * from './Order'
+export * from './Pet'
+export * from './PetNotFound'
+export * from './PlaceOrder'
+export * from './PlaceOrderPatch'
+export * from './Tag'
+export * from './UpdatePet'
+export * from './UpdatePetWithForm'
+export * from './UpdateUser'
+export * from './UploadFile'
+export * from './User'
+export * from './UserArray'
diff --git a/examples/zod/src/gen/zod/deletePetSchema.ts b/examples/zod/src/gen/zod/deletePetSchema.ts
index 07ef7890f..2ef4e34cc 100644
--- a/examples/zod/src/gen/zod/deletePetSchema.ts
+++ b/examples/zod/src/gen/zod/deletePetSchema.ts
@@ -4,6 +4,6 @@ import { z } from 'zod'
* @description Invalid pet value
*/
export const deletePet400Schema = z.any()
-export const deletePetHeaderParamsSchema = z.object({ api_key: z.string().optional() })
+export const deletePetHeaderParamsSchema = z.object({ api_key: z.string().optional() }).optional()
export const deletePetMutationResponseSchema = z.any()
export const deletePetPathParamsSchema = z.object({ petId: z.number().describe(`Pet id to delete`) })
diff --git a/examples/zod/src/gen/zod/findPetsByStatusSchema.ts b/examples/zod/src/gen/zod/findPetsByStatusSchema.ts
index da67b51c3..2e73e8560 100644
--- a/examples/zod/src/gen/zod/findPetsByStatusSchema.ts
+++ b/examples/zod/src/gen/zod/findPetsByStatusSchema.ts
@@ -5,9 +5,9 @@ import { petSchema } from './petSchema'
* @description Invalid status value
*/
export const findPetsByStatus400Schema = z.any()
-export const findPetsByStatusQueryParamsSchema = z.object({
- status: z.enum([`available`, `pending`, `sold`]).default('available').describe(`Status values that need to be considered for filter`).optional(),
-})
+export const findPetsByStatusQueryParamsSchema = z
+ .object({ status: z.enum([`available`, `pending`, `sold`]).default('available').describe(`Status values that need to be considered for filter`).optional() })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zod/src/gen/zod/findPetsByTagsSchema.ts b/examples/zod/src/gen/zod/findPetsByTagsSchema.ts
index b467f6896..7b2a04c41 100644
--- a/examples/zod/src/gen/zod/findPetsByTagsSchema.ts
+++ b/examples/zod/src/gen/zod/findPetsByTagsSchema.ts
@@ -5,11 +5,13 @@ import { petSchema } from './petSchema'
* @description Invalid tag value
*/
export const findPetsByTags400Schema = z.any()
-export const findPetsByTagsQueryParamsSchema = z.object({
- tags: z.array(z.string()).describe(`Tags to filter by`).optional(),
- page: z.string().describe(`to request with required page number or pagination`).optional(),
- pageSize: z.string().describe(`to request with required page size`).optional(),
-})
+export const findPetsByTagsQueryParamsSchema = z
+ .object({
+ tags: z.array(z.string()).describe(`Tags to filter by`).optional(),
+ page: z.string().describe(`to request with required page number or pagination`).optional(),
+ pageSize: z.string().describe(`to request with required page size`).optional(),
+ })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zod/src/gen/zod/loginUserSchema.ts b/examples/zod/src/gen/zod/loginUserSchema.ts
index ad825f17a..28ac9b174 100644
--- a/examples/zod/src/gen/zod/loginUserSchema.ts
+++ b/examples/zod/src/gen/zod/loginUserSchema.ts
@@ -4,10 +4,12 @@ import { z } from 'zod'
* @description Invalid username/password supplied
*/
export const loginUser400Schema = z.any()
-export const loginUserQueryParamsSchema = z.object({
- username: z.string().describe(`The user name for login`).optional(),
- password: z.string().describe(`The password for login in clear text`).optional(),
-})
+export const loginUserQueryParamsSchema = z
+ .object({
+ username: z.string().describe(`The user name for login`).optional(),
+ password: z.string().describe(`The password for login in clear text`).optional(),
+ })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zod/src/gen/zod/updatePetWithFormSchema.ts b/examples/zod/src/gen/zod/updatePetWithFormSchema.ts
index 050c716e7..fd33cddc5 100644
--- a/examples/zod/src/gen/zod/updatePetWithFormSchema.ts
+++ b/examples/zod/src/gen/zod/updatePetWithFormSchema.ts
@@ -6,7 +6,9 @@ import { z } from 'zod'
export const updatePetWithForm405Schema = z.any()
export const updatePetWithFormMutationResponseSchema = z.any()
export const updatePetWithFormPathParamsSchema = z.object({ petId: z.number().describe(`ID of pet that needs to be updated`) })
-export const updatePetWithFormQueryParamsSchema = z.object({
- name: z.string().describe(`Name of pet that needs to be updated`).optional(),
- status: z.string().describe(`Status of pet that needs to be updated`).optional(),
-})
+export const updatePetWithFormQueryParamsSchema = z
+ .object({
+ name: z.string().describe(`Name of pet that needs to be updated`).optional(),
+ status: z.string().describe(`Status of pet that needs to be updated`).optional(),
+ })
+ .optional()
diff --git a/examples/zod/src/gen/zod/uploadFileSchema.ts b/examples/zod/src/gen/zod/uploadFileSchema.ts
index 8e19b84ea..ce4c80037 100644
--- a/examples/zod/src/gen/zod/uploadFileSchema.ts
+++ b/examples/zod/src/gen/zod/uploadFileSchema.ts
@@ -3,7 +3,7 @@ import { apiResponseSchema } from './apiResponseSchema'
export const uploadFileMutationRequestSchema = z.string()
export const uploadFilePathParamsSchema = z.object({ petId: z.number().describe(`ID of pet to update`) })
-export const uploadFileQueryParamsSchema = z.object({ additionalMetadata: z.string().describe(`Additional Metadata`).optional() })
+export const uploadFileQueryParamsSchema = z.object({ additionalMetadata: z.string().describe(`Additional Metadata`).optional() }).optional()
/**
* @description successful operation
diff --git a/examples/zodios/src/gen/zod/deletePetSchema.ts b/examples/zodios/src/gen/zod/deletePetSchema.ts
index 07ef7890f..2ef4e34cc 100644
--- a/examples/zodios/src/gen/zod/deletePetSchema.ts
+++ b/examples/zodios/src/gen/zod/deletePetSchema.ts
@@ -4,6 +4,6 @@ import { z } from 'zod'
* @description Invalid pet value
*/
export const deletePet400Schema = z.any()
-export const deletePetHeaderParamsSchema = z.object({ api_key: z.string().optional() })
+export const deletePetHeaderParamsSchema = z.object({ api_key: z.string().optional() }).optional()
export const deletePetMutationResponseSchema = z.any()
export const deletePetPathParamsSchema = z.object({ petId: z.number().describe(`Pet id to delete`) })
diff --git a/examples/zodios/src/gen/zod/findPetsByStatusSchema.ts b/examples/zodios/src/gen/zod/findPetsByStatusSchema.ts
index da67b51c3..2e73e8560 100644
--- a/examples/zodios/src/gen/zod/findPetsByStatusSchema.ts
+++ b/examples/zodios/src/gen/zod/findPetsByStatusSchema.ts
@@ -5,9 +5,9 @@ import { petSchema } from './petSchema'
* @description Invalid status value
*/
export const findPetsByStatus400Schema = z.any()
-export const findPetsByStatusQueryParamsSchema = z.object({
- status: z.enum([`available`, `pending`, `sold`]).default('available').describe(`Status values that need to be considered for filter`).optional(),
-})
+export const findPetsByStatusQueryParamsSchema = z
+ .object({ status: z.enum([`available`, `pending`, `sold`]).default('available').describe(`Status values that need to be considered for filter`).optional() })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zodios/src/gen/zod/findPetsByTagsSchema.ts b/examples/zodios/src/gen/zod/findPetsByTagsSchema.ts
index b467f6896..7b2a04c41 100644
--- a/examples/zodios/src/gen/zod/findPetsByTagsSchema.ts
+++ b/examples/zodios/src/gen/zod/findPetsByTagsSchema.ts
@@ -5,11 +5,13 @@ import { petSchema } from './petSchema'
* @description Invalid tag value
*/
export const findPetsByTags400Schema = z.any()
-export const findPetsByTagsQueryParamsSchema = z.object({
- tags: z.array(z.string()).describe(`Tags to filter by`).optional(),
- page: z.string().describe(`to request with required page number or pagination`).optional(),
- pageSize: z.string().describe(`to request with required page size`).optional(),
-})
+export const findPetsByTagsQueryParamsSchema = z
+ .object({
+ tags: z.array(z.string()).describe(`Tags to filter by`).optional(),
+ page: z.string().describe(`to request with required page number or pagination`).optional(),
+ pageSize: z.string().describe(`to request with required page size`).optional(),
+ })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zodios/src/gen/zod/loginUserSchema.ts b/examples/zodios/src/gen/zod/loginUserSchema.ts
index ad825f17a..28ac9b174 100644
--- a/examples/zodios/src/gen/zod/loginUserSchema.ts
+++ b/examples/zodios/src/gen/zod/loginUserSchema.ts
@@ -4,10 +4,12 @@ import { z } from 'zod'
* @description Invalid username/password supplied
*/
export const loginUser400Schema = z.any()
-export const loginUserQueryParamsSchema = z.object({
- username: z.string().describe(`The user name for login`).optional(),
- password: z.string().describe(`The password for login in clear text`).optional(),
-})
+export const loginUserQueryParamsSchema = z
+ .object({
+ username: z.string().describe(`The user name for login`).optional(),
+ password: z.string().describe(`The password for login in clear text`).optional(),
+ })
+ .optional()
/**
* @description successful operation
diff --git a/examples/zodios/src/gen/zod/updatePetWithFormSchema.ts b/examples/zodios/src/gen/zod/updatePetWithFormSchema.ts
index 050c716e7..fd33cddc5 100644
--- a/examples/zodios/src/gen/zod/updatePetWithFormSchema.ts
+++ b/examples/zodios/src/gen/zod/updatePetWithFormSchema.ts
@@ -6,7 +6,9 @@ import { z } from 'zod'
export const updatePetWithForm405Schema = z.any()
export const updatePetWithFormMutationResponseSchema = z.any()
export const updatePetWithFormPathParamsSchema = z.object({ petId: z.number().describe(`ID of pet that needs to be updated`) })
-export const updatePetWithFormQueryParamsSchema = z.object({
- name: z.string().describe(`Name of pet that needs to be updated`).optional(),
- status: z.string().describe(`Status of pet that needs to be updated`).optional(),
-})
+export const updatePetWithFormQueryParamsSchema = z
+ .object({
+ name: z.string().describe(`Name of pet that needs to be updated`).optional(),
+ status: z.string().describe(`Status of pet that needs to be updated`).optional(),
+ })
+ .optional()
diff --git a/examples/zodios/src/gen/zod/uploadFileSchema.ts b/examples/zodios/src/gen/zod/uploadFileSchema.ts
index 8e19b84ea..ce4c80037 100644
--- a/examples/zodios/src/gen/zod/uploadFileSchema.ts
+++ b/examples/zodios/src/gen/zod/uploadFileSchema.ts
@@ -3,7 +3,7 @@ import { apiResponseSchema } from './apiResponseSchema'
export const uploadFileMutationRequestSchema = z.string()
export const uploadFilePathParamsSchema = z.object({ petId: z.number().describe(`ID of pet to update`) })
-export const uploadFileQueryParamsSchema = z.object({ additionalMetadata: z.string().describe(`Additional Metadata`).optional() })
+export const uploadFileQueryParamsSchema = z.object({ additionalMetadata: z.string().describe(`Additional Metadata`).optional() }).optional()
/**
* @description successful operation
diff --git a/examples/zodios/src/gen/zodios.ts b/examples/zodios/src/gen/zodios.ts
index 7adc07b39..c60e02ec9 100644
--- a/examples/zodios/src/gen/zodios.ts
+++ b/examples/zodios/src/gen/zodios.ts
@@ -101,7 +101,7 @@ export const endpoints = makeApi([
name: 'status',
description: `Status values that need to be considered for filter`,
type: 'Query',
- schema: findPetsByStatusQueryParamsSchema.shape['status'],
+ schema: findPetsByStatusQueryParamsSchema.unwrap().shape['status'],
},
],
response: findPetsByStatusQueryResponseSchema,
@@ -123,19 +123,19 @@ export const endpoints = makeApi([
name: 'tags',
description: `Tags to filter by`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['tags'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['tags'],
},
{
name: 'page',
description: `to request with required page number or pagination`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['page'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['page'],
},
{
name: 'pageSize',
description: `to request with required page size`,
type: 'Query',
- schema: findPetsByTagsQueryParamsSchema.shape['pageSize'],
+ schema: findPetsByTagsQueryParamsSchema.unwrap().shape['pageSize'],
},
],
response: findPetsByTagsQueryResponseSchema,
@@ -190,13 +190,13 @@ export const endpoints = makeApi([
name: 'name',
description: `Name of pet that needs to be updated`,
type: 'Query',
- schema: updatePetWithFormQueryParamsSchema.shape['name'],
+ schema: updatePetWithFormQueryParamsSchema.unwrap().shape['name'],
},
{
name: 'status',
description: `Status of pet that needs to be updated`,
type: 'Query',
- schema: updatePetWithFormQueryParamsSchema.shape['status'],
+ schema: updatePetWithFormQueryParamsSchema.unwrap().shape['status'],
},
],
response: updatePetWithFormMutationResponseSchema,
@@ -224,7 +224,7 @@ export const endpoints = makeApi([
name: 'api_key',
description: ``,
type: 'Header',
- schema: deletePetHeaderParamsSchema.shape['api_key'],
+ schema: deletePetHeaderParamsSchema.unwrap().shape['api_key'],
},
],
response: deletePetMutationResponseSchema,
@@ -252,7 +252,7 @@ export const endpoints = makeApi([
name: 'additionalMetadata',
description: `Additional Metadata`,
type: 'Query',
- schema: uploadFileQueryParamsSchema.shape['additionalMetadata'],
+ schema: uploadFileQueryParamsSchema.unwrap().shape['additionalMetadata'],
},
{
name: 'UploadFileMutationRequest',
@@ -413,13 +413,13 @@ export const endpoints = makeApi([
name: 'username',
description: `The user name for login`,
type: 'Query',
- schema: loginUserQueryParamsSchema.shape['username'],
+ schema: loginUserQueryParamsSchema.unwrap().shape['username'],
},
{
name: 'password',
description: `The password for login in clear text`,
type: 'Query',
- schema: loginUserQueryParamsSchema.shape['password'],
+ schema: loginUserQueryParamsSchema.unwrap().shape['password'],
},
],
response: loginUserQueryResponseSchema,
diff --git a/package.json b/package.json
index 8e88ebe4b..32048ee93 100644
--- a/package.json
+++ b/package.json
@@ -60,19 +60,19 @@
"@changesets/cli": "^2.27.1",
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
- "@types/node": "^20.11.0",
- "@vitest/coverage-v8": "^1.2.0",
- "@vitest/ui": "^1.2.0",
- "bun-types": "^1.0.22",
+ "@types/node": "^20.11.5",
+ "@vitest/coverage-v8": "^1.2.1",
+ "@vitest/ui": "^1.2.1",
+ "bun-types": "^1.0.23",
"dprint": "^0.45.0",
- "prettier": "^3.2.2",
+ "prettier": "^3.2.4",
"prettier-eslint": "^16.2.0",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"turbo": "^1.11.3",
"typescript": "^5.3.3",
- "vite-tsconfig-paths": "^4.2.3",
- "vitest": "^1.2.0"
+ "vite-tsconfig-paths": "^4.3.1",
+ "vitest": "^1.2.1"
},
"namespace": "@kubb",
"packageManager": "pnpm@8.3.0",
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 7754fc9af..65a68040f 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -66,7 +66,7 @@
"@kubb/swagger": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/node": "^20.11.0",
+ "@types/node": "^20.11.5",
"source-map-support": "^0.5.21",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
diff --git a/packages/config/eslint-config/package.json b/packages/config/eslint-config/package.json
index de4065261..9f2b5dd2a 100644
--- a/packages/config/eslint-config/package.json
+++ b/packages/config/eslint-config/package.json
@@ -45,7 +45,7 @@
"dependencies": {
"@eslint/js": "^8.56.0",
"@types/eslint": "~8.56.2",
- "@typescript-eslint/eslint-plugin": "^6.18.1",
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "~6.15.0",
"eslint-config-prettier": "~9.1.0",
"eslint-config-turbo": "^1.11.3",
diff --git a/packages/config/tsup-config/package.json b/packages/config/tsup-config/package.json
index a50ea2bb8..7c9ccc5ad 100644
--- a/packages/config/tsup-config/package.json
+++ b/packages/config/tsup-config/package.json
@@ -38,7 +38,7 @@
},
"devDependencies": {
"@kubb/ts-config": "workspace:*",
- "@types/node": "^20.11.0",
+ "@types/node": "^20.11.5",
"tsup": "^8.0.1"
},
"peerDependencies": {
diff --git a/packages/core/package.json b/packages/core/package.json
index 561ec3cac..c4ac8b79c 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -80,7 +80,7 @@
"dependencies": {
"@kubb/parser": "workspace:*",
"@kubb/types": "workspace:*",
- "change-case": "^5.4.1",
+ "change-case": "^5.4.2",
"directory-tree": "^3.5.1",
"find-up": "^7.0.0",
"fs-extra": "^11.2.0",
@@ -96,7 +96,7 @@
"@kubb/tsup-config": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/lodash.isequal": "^4.5.8",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"@types/seedrandom": "^3.0.8",
"@types/semver": "^7.5.6",
"eslint": "^8.56.0",
diff --git a/packages/kubb/package.json b/packages/kubb/package.json
index edc784d21..b43a01653 100644
--- a/packages/kubb/package.json
+++ b/packages/kubb/package.json
@@ -49,7 +49,7 @@
"devDependencies": {
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/node": "^20.11.0",
+ "@types/node": "^20.11.5",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
diff --git a/packages/react/package.json b/packages/react/package.json
index 520462a46..948a5c307 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -76,7 +76,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"@types/react-reconciler": "^0.28.8",
"eslint": "^8.56.0",
"react": "^18.2.0",
diff --git a/packages/swagger-client/package.json b/packages/swagger-client/package.json
index bea1462c1..761aacca7 100644
--- a/packages/swagger-client/package.json
+++ b/packages/swagger-client/package.json
@@ -78,7 +78,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"axios": "^1.6.5",
"eslint": "^8.56.0",
"react": "^18.2.0",
diff --git a/packages/swagger-faker/package.json b/packages/swagger-faker/package.json
index 5d1237060..229632d81 100644
--- a/packages/swagger-faker/package.json
+++ b/packages/swagger-faker/package.json
@@ -67,7 +67,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger-msw/package.json b/packages/swagger-msw/package.json
index cd8eb898e..9ceeac9f0 100644
--- a/packages/swagger-msw/package.json
+++ b/packages/swagger-msw/package.json
@@ -69,7 +69,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger-swr/package.json b/packages/swagger-swr/package.json
index c65e5dd85..2c5293fc3 100644
--- a/packages/swagger-swr/package.json
+++ b/packages/swagger-swr/package.json
@@ -70,7 +70,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger-tanstack-query/package.json b/packages/swagger-tanstack-query/package.json
index d63ce9413..28cb99a94 100644
--- a/packages/swagger-tanstack-query/package.json
+++ b/packages/swagger-tanstack-query/package.json
@@ -70,7 +70,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger-ts/package.json b/packages/swagger-ts/package.json
index 92aec3048..3774b3090 100644
--- a/packages/swagger-ts/package.json
+++ b/packages/swagger-ts/package.json
@@ -70,7 +70,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"expect-type": "^0.17.3",
"react": "^18.2.0",
diff --git a/packages/swagger-ts/src/TypeBuilder.ts b/packages/swagger-ts/src/TypeBuilder.ts
index bd8d0f423..e10dd808a 100644
--- a/packages/swagger-ts/src/TypeBuilder.ts
+++ b/packages/swagger-ts/src/TypeBuilder.ts
@@ -19,11 +19,14 @@ export class TypeBuilder extends OasBuilder {
.sort(transformers.nameSorter)
.map((operationSchema) => {
const generator = new TypeGenerator(this.options, this.context)
+ const required = Array.isArray(operationSchema.schema?.required) ? !!operationSchema.schema.required.length : !!operationSchema.schema?.required
+
const sources = generator.build({
schema: operationSchema.schema,
baseName: operationSchema.name,
description: operationSchema.description,
keysToOmit: operationSchema.keysToOmit,
+ optional: !required && !!operationSchema.name.includes('Params'),
})
importMeta.push(...generator.imports)
diff --git a/packages/swagger-ts/src/TypeGenerator.ts b/packages/swagger-ts/src/TypeGenerator.ts
index ee99ae82f..99ee96e1d 100644
--- a/packages/swagger-ts/src/TypeGenerator.ts
+++ b/packages/swagger-ts/src/TypeGenerator.ts
@@ -33,6 +33,7 @@ export class TypeGenerator extends Generator [GET] should generate with optionalType \`question
* @type string | undefined
*/
limit?: string;
-};
+} | undefined;
/**
* @description unexpected error
diff --git a/packages/swagger-zod/package.json b/packages/swagger-zod/package.json
index c4289edac..7635f63ce 100644
--- a/packages/swagger-zod/package.json
+++ b/packages/swagger-zod/package.json
@@ -57,13 +57,14 @@
"@kubb/core": "workspace:*",
"@kubb/parser": "workspace:*",
"@kubb/react": "workspace:*",
- "@kubb/swagger": "workspace:*"
+ "@kubb/swagger": "workspace:*",
+ "@kubb/swagger-ts": "workspace:*"
},
"devDependencies": {
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger-zod/src/ZodBuilder.ts b/packages/swagger-zod/src/ZodBuilder.ts
index 03135d817..965cb8f58 100644
--- a/packages/swagger-zod/src/ZodBuilder.ts
+++ b/packages/swagger-zod/src/ZodBuilder.ts
@@ -25,6 +25,7 @@ export class ZodBuilder extends OasBuilder {
baseName: operationSchema.name,
description: operationSchema.description,
keysToOmit: operationSchema.keysToOmit,
+ operation: operationSchema.operation,
optional: !required && !!operationSchema.name.includes('Params'),
})
importMeta.push(...generator.imports)
diff --git a/packages/swagger-zod/src/ZodGenerator.test.ts b/packages/swagger-zod/src/ZodGenerator.test.ts
index ac725d95c..f2324be74 100644
--- a/packages/swagger-zod/src/ZodGenerator.test.ts
+++ b/packages/swagger-zod/src/ZodGenerator.test.ts
@@ -17,6 +17,8 @@ describe('ZodGenerator PetStore', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -34,6 +36,8 @@ describe('ZodGenerator PetStore', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -51,6 +55,27 @@ describe('ZodGenerator PetStore', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
+ }, {
+ oas,
+ pluginManager: mockedPluginManager,
+ })
+
+ const schemas = oas.getDefinition().components?.schemas
+ const node = generator.build({ schema: schemas?.OptionalPet as OasTypes.SchemaObject, baseName: 'OptionalPet' })
+
+ expect(node).toMatchSnapshot()
+ })
+
+ test('generate schema for OptionalPet typed', async () => {
+ const generator = new ZodGenerator({
+ exclude: undefined,
+ include: undefined,
+ override: undefined,
+ transformers: {},
+ typed: true,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -71,6 +96,8 @@ describe('ZodGenerator constCases', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -145,6 +172,8 @@ describe('ZodGenerator lazy', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -165,6 +194,8 @@ describe('ZodGenerator enums', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
@@ -195,6 +226,8 @@ describe('ZodGenerator recursive', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}, {
oas,
pluginManager: mockedPluginManager,
diff --git a/packages/swagger-zod/src/ZodGenerator.ts b/packages/swagger-zod/src/ZodGenerator.ts
index b5d8cbe43..6ea03a6a9 100644
--- a/packages/swagger-zod/src/ZodGenerator.ts
+++ b/packages/swagger-zod/src/ZodGenerator.ts
@@ -2,6 +2,7 @@ import { Generator } from '@kubb/core'
import transformers from '@kubb/core/transformers'
import { getUniqueName } from '@kubb/core/utils'
import { getSchemaFactory, isReference } from '@kubb/swagger/utils'
+import { pluginKey as swaggerTypeScriptPluginKey } from '@kubb/swagger-ts'
import { pluginKey } from './plugin.ts'
import { zodKeywords, zodParser } from './zodParser.ts'
@@ -9,7 +10,7 @@ import { zodKeywords, zodParser } from './zodParser.ts'
import type { PluginManager } from '@kubb/core'
import type { ts } from '@kubb/parser'
import type { ImportMeta, Refs } from '@kubb/swagger'
-import type { Oas, OasTypes, OpenAPIV3 } from '@kubb/swagger/oas'
+import type { Oas, OasTypes, OpenAPIV3, Operation } from '@kubb/swagger/oas'
import type { PluginOptions } from './types.ts'
import type { ZodMeta } from './zodParser.ts'
@@ -35,12 +36,14 @@ export class ZodGenerator extends Generator extensionKey in schema)
.map((extensionKey) => {
- return [
- {
- keyword: zodKeywords.enum,
- args: [...new Set(schema[extensionKey as keyof typeof schema] as string[])].map((value: string) => `\`${value}\``),
- },
- ...baseItems,
- ]
+ return [{
+ keyword: zodKeywords.enum,
+ args: [...new Set(schema[extensionKey as keyof typeof schema] as string[])].map((_value, index) => `\`${schema.enum![index]}\``),
+ }, ...baseItems]
})
- if (extensionEnums.length > 0 && extensionEnums[0]) {
- return extensionEnums[0]
- }
-
if (schema.type === 'number' || schema.type === 'integer') {
// we cannot use z.enum when enum type is number/integer
+ const enumNames = extensionEnums[0]?.find(item => item.keyword === zodKeywords.enum) as {
+ keyword: typeof zodKeywords.enum
+ args?: Array
+ }
return [
{
keyword: zodKeywords.union,
- args: [...new Set(schema.enum)].map((value: string) => {
- return {
- keyword: zodKeywords.literal,
- args: value,
- }
- }),
+ args: enumNames
+ ? enumNames?.args?.map((_value, index) => {
+ return {
+ keyword: zodKeywords.literal,
+ args: schema.enum![index],
+ }
+ })
+ : [...new Set(schema.enum)].map((value: string) => {
+ return {
+ keyword: zodKeywords.literal,
+ args: value,
+ }
+ }),
},
...baseItems,
]
}
+ if (extensionEnums.length > 0 && extensionEnums[0]) {
+ return extensionEnums[0]
+ }
+
return [
{
keyword: zodKeywords.enum,
@@ -384,7 +420,13 @@ export class ZodGenerator extends Generator item === schema.format)) {
+ baseItems.unshift({ keyword: zodKeywords.date })
+
+ return baseItems
+ } else {
+ baseItems.unshift({ keyword: zodKeywords.datetime })
+ }
}
if (schema.format === 'email' || baseName === 'email') {
diff --git a/packages/swagger-zod/src/__snapshots__/ZodGenerator.test.ts.snap b/packages/swagger-zod/src/__snapshots__/ZodGenerator.test.ts.snap
index d82e63195..4d8db99f0 100644
--- a/packages/swagger-zod/src/__snapshots__/ZodGenerator.test.ts.snap
+++ b/packages/swagger-zod/src/__snapshots__/ZodGenerator.test.ts.snap
@@ -6,6 +6,12 @@ exports[`ZodGenerator PetStore > generate schema for OptionalPet 1`] = `
]
`;
+exports[`ZodGenerator PetStore > generate schema for OptionalPet typed 1`] = `
+[
+ "export const OptionalPet: z.ZodType = z.object({"id": z.number().optional(),"name": z.string().optional(),"tag": z.string().optional()});",
+]
+`;
+
exports[`ZodGenerator PetStore > generate schema for Pet 1`] = `
[
"export const Pet = z.object({"id": z.number(),"name": z.string(),"tag": z.string().min(5).max(100).optional()});",
@@ -68,13 +74,13 @@ exports[`ZodGenerator constCases > UuidSchema generates a string with uuid forma
exports[`ZodGenerator enums > generate x-enum-varnames types 1`] = `
[
- "export const enumVarNames = z.enum([\`Pending\`,\`Received\`]);",
+ "export const enumVarNames = z.union([z.literal(0),z.literal(1)]);",
]
`;
exports[`ZodGenerator enums > generate x-enumNames types 1`] = `
[
- "export const enumNames = z.enum([\`Pending\`,\`Received\`]);",
+ "export const enumNames = z.enum([\`0\`,\`1\`]);",
]
`;
diff --git a/packages/swagger-zod/src/components/Mutation.test.tsx b/packages/swagger-zod/src/components/Mutation.test.tsx
index fe3ad7cde..d7dd3ed53 100644
--- a/packages/swagger-zod/src/components/Mutation.test.tsx
+++ b/packages/swagger-zod/src/components/Mutation.test.tsx
@@ -22,6 +22,8 @@ describe('', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}
const plugin = { options } as KubbPlugin
diff --git a/packages/swagger-zod/src/components/Query.test.tsx b/packages/swagger-zod/src/components/Query.test.tsx
index accf4e1d0..617c7263c 100644
--- a/packages/swagger-zod/src/components/Query.test.tsx
+++ b/packages/swagger-zod/src/components/Query.test.tsx
@@ -22,6 +22,8 @@ describe('', async () => {
include: undefined,
override: undefined,
transformers: {},
+ typed: false,
+ dateType: 'string',
}
const plugin = { options } as KubbPlugin
diff --git a/packages/swagger-zod/src/plugin.ts b/packages/swagger-zod/src/plugin.ts
index 6d3e2f035..7dc3a6814 100644
--- a/packages/swagger-zod/src/plugin.ts
+++ b/packages/swagger-zod/src/plugin.ts
@@ -5,6 +5,7 @@ import { camelCase } from '@kubb/core/transformers'
import { renderTemplate } from '@kubb/core/utils'
import { pluginName as swaggerPluginName } from '@kubb/swagger'
import { getGroupedByTagFiles } from '@kubb/swagger/utils'
+import { pluginName as swaggerTypeScriptPluginName } from '@kubb/swagger-ts'
import { OperationGenerator } from './OperationGenerator.tsx'
import { ZodBuilder } from './ZodBuilder.ts'
@@ -18,7 +19,7 @@ export const pluginName = 'swagger-zod' satisfies PluginOptions['name']
export const pluginKey: PluginOptions['key'] = [pluginName] satisfies PluginOptions['key']
export const definePlugin = createPlugin((options) => {
- const { output = { path: 'zod' }, group, exclude = [], include, override = [], transformers = {} } = options
+ const { output = { path: 'zod' }, group, exclude = [], include, override = [], transformers = {}, dateType = 'string', typed = false } = options
const template = group?.output ? group.output : `${output.path}/{{tag}}Controller`
return {
@@ -28,8 +29,10 @@ export const definePlugin = createPlugin((options) => {
include,
exclude,
override,
+ typed,
+ dateType,
},
- pre: [swaggerPluginName],
+ pre: [swaggerPluginName, typed ? swaggerTypeScriptPluginName : undefined].filter(Boolean),
resolvePath(baseName, directory, options) {
const root = path.resolve(this.config.root, this.config.output.path)
const mode = FileManager.getMode(path.resolve(root, output.path))
diff --git a/packages/swagger-zod/src/types.ts b/packages/swagger-zod/src/types.ts
index daf1e840c..1ec768555 100644
--- a/packages/swagger-zod/src/types.ts
+++ b/packages/swagger-zod/src/types.ts
@@ -63,6 +63,15 @@ export type Options = {
*/
name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string
}
+ /**
+ * Choose to use `date` or `datetime` as JavaScript `Date` instead of `string`.
+ * @default 'string'
+ */
+ dateType?: 'string' | 'date'
+ /**
+ * Use TypeScript(`@kubb/swagger-ts`) to add type annotation.
+ */
+ typed?: boolean
}
type ResolvedOptions = {
@@ -70,6 +79,8 @@ type ResolvedOptions = {
exclude: Options['exclude']
include: Options['include']
override: Options['override']
+ dateType: NonNullable
+ typed: NonNullable
}
export type FileMeta = {
diff --git a/packages/swagger-zod/src/zodParser.test.ts b/packages/swagger-zod/src/zodParser.test.ts
index 4cd17c8a2..7f3d7ed22 100644
--- a/packages/swagger-zod/src/zodParser.test.ts
+++ b/packages/swagger-zod/src/zodParser.test.ts
@@ -166,7 +166,6 @@ const input = [
}),
expected: 'z.object({})',
},
-
{
input: parseZodMeta({
keyword: 'default',
@@ -180,6 +179,12 @@ const input = [
}),
expected: '.default()',
},
+ {
+ input: parseZodMeta({
+ keyword: 'date',
+ }),
+ expected: 'z.date()',
+ },
]
describe('parseZod', () => {
diff --git a/packages/swagger-zod/src/zodParser.ts b/packages/swagger-zod/src/zodParser.ts
index 675e4a178..8daadcfac 100644
--- a/packages/swagger-zod/src/zodParser.ts
+++ b/packages/swagger-zod/src/zodParser.ts
@@ -16,6 +16,7 @@ export const zodKeywords = {
union: 'union',
literal: 'literal',
datetime: 'datetime',
+ date: 'date',
email: 'email',
uuid: 'uuid',
url: 'url',
@@ -54,6 +55,7 @@ export const zodKeywordMapper: Record = {
union: 'z.union',
literal: 'z.literal',
datetime: '.datetime',
+ date: 'z.date',
email: '.email',
uuid: '.uuid',
url: '.url',
@@ -120,6 +122,8 @@ type ZodMetaDefault = { keyword: typeof zodKeywords.default; args?: string | num
type ZodMetaDatetime = { keyword: typeof zodKeywords.datetime }
+type ZodMetaDate = { keyword: typeof zodKeywords.date }
+
type ZodMetaEmail = { keyword: typeof zodKeywords.email }
type ZodMetaUuid = { keyword: typeof zodKeywords.uuid }
@@ -153,6 +157,7 @@ export type ZodMeta =
| ZodMetaTuple
| ZodMetaDefault
| ZodMetaDatetime
+ | ZodMetaDate
| ZodMetaEmail
| ZodMetaUuid
| ZodMetaLiteral
@@ -258,15 +263,20 @@ export function parseZodMeta(item: ZodMeta, mapper: Record =
return '""'
}
-export function zodParser(items: ZodMeta[], options: { required?: boolean; keysToOmit?: string[]; mapper?: Record; name: string }): string {
+export function zodParser(
+ items: ZodMeta[],
+ options: { required?: boolean; keysToOmit?: string[]; mapper?: Record; name: string; typeName?: string },
+): string {
if (!items.length) {
return `export const ${options.name} = '';`
}
+ const constName = options.typeName ? `export const ${options.name}: z.ZodType<${options.typeName}>` : `export const ${options.name}`
+
if (options.keysToOmit?.length) {
- const omitText = `.schema.omit({ ${options.keysToOmit.map((key) => `${key}: true`).join(',')} })`
- return `export const ${options.name} = ${items.map((item) => parseZodMeta(item, { ...zodKeywordMapper, ...options.mapper })).join('')}${omitText};`
+ const omitText = `.schema.and(z.object({ ${options.keysToOmit.map((key) => `${key}: z.never()`).join(',')} }))`
+ return `${constName} = ${items.map((item) => parseZodMeta(item, { ...zodKeywordMapper, ...options.mapper })).join('')}${omitText};`
}
- return `export const ${options.name} = ${items.map((item) => parseZodMeta(item, { ...zodKeywordMapper, ...options.mapper })).join('')};`
+ return `${constName} = ${items.map((item) => parseZodMeta(item, { ...zodKeywordMapper, ...options.mapper })).join('')};`
}
diff --git a/packages/swagger-zodios/package.json b/packages/swagger-zodios/package.json
index 3fdcbc462..06da611ea 100644
--- a/packages/swagger-zodios/package.json
+++ b/packages/swagger-zodios/package.json
@@ -65,7 +65,7 @@
"@kubb/eslint-config": "workspace:*",
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"eslint": "^8.56.0",
"react": "^18.2.0",
"tsup": "^8.0.1",
diff --git a/packages/swagger/package.json b/packages/swagger/package.json
index f14e9a574..2453946d1 100644
--- a/packages/swagger/package.json
+++ b/packages/swagger/package.json
@@ -78,7 +78,7 @@
"@kubb/ts-config": "workspace:*",
"@kubb/tsup-config": "workspace:*",
"@types/js-yaml": "^4.0.9",
- "@types/react": "^18.2.47",
+ "@types/react": "^18.2.48",
"@types/swagger2openapi": "^7.0.4",
"eslint": "^8.56.0",
"tsup": "^8.0.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 419dd4213..bdfb1cee5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -26,23 +26,23 @@ importers:
specifier: workspace:*
version: link:packages/config/ts-config
'@types/node':
- specifier: ^20.11.0
- version: 20.11.0
+ specifier: ^20.11.5
+ version: 20.11.5
'@vitest/coverage-v8':
- specifier: ^1.2.0
- version: 1.2.0(vitest@1.2.0)
+ specifier: ^1.2.1
+ version: 1.2.1(vitest@1.2.1)
'@vitest/ui':
- specifier: ^1.2.0
- version: 1.2.0(vitest@1.2.0)
+ specifier: ^1.2.1
+ version: 1.2.1(vitest@1.2.1)
bun-types:
- specifier: ^1.0.22
- version: 1.0.22
+ specifier: ^1.0.23
+ version: 1.0.23
dprint:
specifier: ^0.45.0
version: 0.45.0
prettier:
- specifier: ^3.2.2
- version: 3.2.2
+ specifier: ^3.2.4
+ version: 3.2.4
prettier-eslint:
specifier: ^16.2.0
version: 16.2.0
@@ -51,7 +51,7 @@ importers:
version: 5.0.5
ts-node:
specifier: ^10.9.2
- version: 10.9.2(@types/node@20.11.0)(typescript@5.3.3)
+ version: 10.9.2(@types/node@20.11.5)(typescript@5.3.3)
turbo:
specifier: ^1.11.3
version: 1.11.3
@@ -59,30 +59,30 @@ importers:
specifier: ^5.3.3
version: 5.3.3
vite-tsconfig-paths:
- specifier: ^4.2.3
- version: 4.2.3(typescript@5.3.3)
+ specifier: ^4.3.1
+ version: 4.3.1(typescript@5.3.3)
vitest:
- specifier: ^1.2.0
- version: 1.2.0(@types/node@20.11.0)(@vitest/ui@1.2.0)
+ specifier: ^1.2.1
+ version: 1.2.1(@types/node@20.11.5)(@vitest/ui@1.2.1)
docs:
dependencies:
'@vercel/analytics':
- specifier: ^1.1.1
- version: 1.1.1
+ specifier: ^1.1.2
+ version: 1.1.2
sitemap:
specifier: ^7.1.1
version: 7.1.1
vitepress:
- specifier: ^1.0.0-rc.36
- version: 1.0.0-rc.36(@algolia/client-search@4.21.1)(@types/node@20.11.0)(search-insights@2.13.0)(typescript@5.3.3)
+ specifier: ^1.0.0-rc.39
+ version: 1.0.0-rc.39(@algolia/client-search@4.21.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@5.3.3)
vue:
- specifier: ^3.4.13
- version: 3.4.13(typescript@5.3.3)
+ specifier: ^3.4.15
+ version: 3.4.15(typescript@5.3.3)
devDependencies:
'@types/node':
- specifier: ^20.11.0
- version: 20.11.0
+ specifier: ^20.11.5
+ version: 20.11.5
e2e:
dependencies:
@@ -123,17 +123,17 @@ importers:
specifier: workspace:*
version: link:../packages/swagger-zodios
'@tanstack/react-query':
- specifier: ^5.17.10
- version: 5.17.10(react@18.2.0)
+ specifier: ^5.17.15
+ version: 5.17.15(react@18.2.0)
'@tanstack/solid-query':
- specifier: ^5.17.10
- version: 5.17.10(solid-js@1.8.11)
+ specifier: ^5.17.15
+ version: 5.17.15(solid-js@1.8.11)
'@tanstack/svelte-query':
- specifier: ^5.17.10
- version: 5.17.10(svelte@3.59.2)
+ specifier: ^5.17.15
+ version: 5.17.15(svelte@3.59.2)
'@tanstack/vue-query':
- specifier: ^5.17.10
- version: 5.17.10(vue@3.4.13)
+ specifier: ^5.17.15
+ version: 5.17.15(vue@3.4.15)
'@zodios/core':
specifier: ^10.9.6
version: 10.9.6(axios@1.6.5)(zod@3.22.4)
@@ -159,8 +159,8 @@ importers:
specifier: ^8.0.1
version: 8.0.1(ts-node@10.9.2)(typescript@5.2.2)
vue:
- specifier: ^3.4.13
- version: 3.4.13(typescript@5.2.2)
+ specifier: ^3.4.15
+ version: 3.4.15(typescript@5.2.2)
zod:
specifier: ^3.22.4
version: 3.22.4
@@ -224,7 +224,7 @@ importers:
version: 4.36.1(svelte@3.59.2)
'@tanstack/vue-query':
specifier: ^4.37.1
- version: 4.37.1(vue@3.4.13)
+ version: 4.37.1(vue@3.4.15)
'@zodios/core':
specifier: ^10.9.6
version: 10.9.6(axios@1.6.5)(zod@3.22.4)
@@ -247,8 +247,8 @@ importers:
specifier: ^2.2.4
version: 2.2.4(react@18.2.0)
vue:
- specifier: ^3.4.13
- version: 3.4.13(typescript@5.2.2)
+ specifier: ^3.4.15
+ version: 3.4.15(typescript@5.2.2)
zod:
specifier: ^3.22.4
version: 3.22.4
@@ -411,10 +411,10 @@ importers:
version: link:../../packages/swagger-ts
'@mswjs/http-middleware':
specifier: ^0.9.2
- version: 0.9.2(msw@2.0.14)
+ version: 0.9.2(msw@2.1.2)
msw:
- specifier: ^2.0.14
- version: 2.0.14(typescript@5.2.2)
+ specifier: ^2.1.2
+ version: 2.1.2(typescript@5.2.2)
react:
specifier: ^18.2.0
version: 18.2.0
@@ -472,8 +472,8 @@ importers:
version: 8.0.1(ts-node@10.9.2)(typescript@5.2.2)
devDependencies:
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
'@types/react-dom':
specifier: ^18.2.18
version: 18.2.18
@@ -488,7 +488,7 @@ importers:
version: 5.2.2
vite:
specifier: ^4.5.1
- version: 4.5.1(@types/node@20.11.0)
+ version: 4.5.1(@types/node@20.11.5)
examples/react-query-v5:
dependencies:
@@ -511,11 +511,11 @@ importers:
specifier: workspace:*
version: link:../../packages/swagger-ts
'@tanstack/react-query':
- specifier: ^5.17.10
- version: 5.17.10(react@18.2.0)
+ specifier: ^5.17.15
+ version: 5.17.15(react@18.2.0)
'@tanstack/react-query-devtools':
specifier: 5.0.0
- version: 5.0.0(@tanstack/react-query@5.17.10)(react-dom@18.2.0)(react@18.2.0)
+ version: 5.0.0(@tanstack/react-query@5.17.15)(react-dom@18.2.0)(react@18.2.0)
axios:
specifier: ^1.6.5
version: 1.6.5
@@ -530,8 +530,8 @@ importers:
version: 8.0.1(ts-node@10.9.2)(typescript@5.2.2)
devDependencies:
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
'@types/react-dom':
specifier: ^18.2.18
version: 18.2.18
@@ -546,7 +546,7 @@ importers:
version: 5.2.2
vite:
specifier: ^4.5.1
- version: 4.5.1(@types/node@20.11.0)
+ version: 4.5.1(@types/node@20.11.5)
examples/simple-single:
dependencies:
@@ -747,17 +747,17 @@ importers:
version: link:../../packages/swagger-zod
'@tanstack/vue-query':
specifier: ^4.37.1
- version: 4.37.1(vue@3.4.13)
+ version: 4.37.1(vue@3.4.15)
axios:
specifier: ^1.6.5
version: 1.6.5
vue:
- specifier: ^3.4.13
- version: 3.4.13(typescript@5.2.2)
+ specifier: ^3.4.15
+ version: 3.4.15(typescript@5.2.2)
devDependencies:
'@vitejs/plugin-vue':
specifier: ^4.6.2
- version: 4.6.2(vite@4.5.1)(vue@3.4.13)
+ version: 4.6.2(vite@4.5.1)(vue@3.4.15)
msw:
specifier: ^1.3.2
version: 1.3.2(typescript@5.2.2)
@@ -769,7 +769,7 @@ importers:
version: 5.2.2
vite:
specifier: ^4.5.1
- version: 4.5.1(@types/node@20.11.0)
+ version: 4.5.1(@types/node@20.11.5)
examples/vue-query-v5:
dependencies:
@@ -795,18 +795,18 @@ importers:
specifier: workspace:*
version: link:../../packages/swagger-zod
'@tanstack/vue-query':
- specifier: ^5.17.10
- version: 5.17.10(vue@3.4.13)
+ specifier: ^5.17.15
+ version: 5.17.15(vue@3.4.15)
axios:
specifier: ^1.6.5
version: 1.6.5
vue:
- specifier: ^3.4.13
- version: 3.4.13(typescript@5.2.2)
+ specifier: ^3.4.15
+ version: 3.4.15(typescript@5.2.2)
devDependencies:
'@vitejs/plugin-vue':
specifier: ^4.6.2
- version: 4.6.2(vite@4.5.1)(vue@3.4.13)
+ version: 4.6.2(vite@4.5.1)(vue@3.4.15)
msw:
specifier: ^1.3.2
version: 1.3.2(typescript@5.2.2)
@@ -818,7 +818,7 @@ importers:
version: 5.2.2
vite:
specifier: ^4.5.1
- version: 4.5.1(@types/node@20.11.0)
+ version: 4.5.1(@types/node@20.11.5)
examples/zod:
dependencies:
@@ -961,8 +961,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/node':
- specifier: ^20.11.0
- version: 20.11.0
+ specifier: ^20.11.5
+ version: 20.11.5
source-map-support:
specifier: ^0.5.21
version: 0.5.21
@@ -982,8 +982,8 @@ importers:
specifier: ~8.56.2
version: 8.56.2
'@typescript-eslint/eslint-plugin':
- specifier: ^6.18.1
- version: 6.18.1(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
+ specifier: ^6.19.0
+ version: 6.19.0(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
'@typescript-eslint/parser':
specifier: ~6.15.0
version: 6.15.0(eslint@8.56.0)(typescript@5.3.3)
@@ -1013,10 +1013,10 @@ importers:
version: 1.11.3(eslint@8.56.0)
eslint-plugin-unused-imports:
specifier: ~3.0.0
- version: 3.0.0(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)
+ version: 3.0.0(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0)
eslint-plugin-vitest:
specifier: ~0.3.20
- version: 0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.0)
+ version: 0.3.20(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.1)
eslint-plugin-vitest-globals:
specifier: ~1.4.0
version: 1.4.0
@@ -1050,7 +1050,7 @@ importers:
dependencies:
'@microsoft/api-extractor':
specifier: ^7.39.1
- version: 7.39.1(@types/node@20.11.0)
+ version: 7.39.1(@types/node@20.11.5)
esbuild-plugin-file-path-extensions:
specifier: ^2.0.0
version: 2.0.0
@@ -1059,8 +1059,8 @@ importers:
specifier: workspace:*
version: link:../ts-config
'@types/node':
- specifier: ^20.11.0
- version: 20.11.0
+ specifier: ^20.11.5
+ version: 20.11.5
tsup:
specifier: ^8.0.1
version: 8.0.1(@microsoft/api-extractor@7.39.1)(ts-node@10.9.2)(typescript@5.3.3)
@@ -1074,8 +1074,8 @@ importers:
specifier: workspace:*
version: link:../types
change-case:
- specifier: ^5.4.1
- version: 5.4.1
+ specifier: ^5.4.2
+ version: 5.4.2
directory-tree:
specifier: ^3.5.1
version: 3.5.1
@@ -1117,8 +1117,8 @@ importers:
specifier: ^4.5.8
version: 4.5.8
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
'@types/seedrandom':
specifier: ^3.0.8
version: 3.0.8
@@ -1160,8 +1160,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/node':
- specifier: ^20.11.0
- version: 20.11.0
+ specifier: ^20.11.5
+ version: 20.11.5
tsup:
specifier: ^8.0.1
version: 8.0.1(@microsoft/api-extractor@7.39.1)(ts-node@10.9.2)(typescript@5.3.3)
@@ -1210,8 +1210,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
'@types/react-reconciler':
specifier: ^0.28.8
version: 0.28.8
@@ -1271,8 +1271,8 @@ importers:
specifier: ^4.0.9
version: 4.0.9
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
'@types/swagger2openapi':
specifier: ^7.0.4
version: 7.0.4
@@ -1314,8 +1314,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
axios:
specifier: ^1.6.5
version: 1.6.5
@@ -1360,8 +1360,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1406,8 +1406,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1452,8 +1452,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1501,8 +1501,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1553,8 +1553,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1582,6 +1582,9 @@ importers:
'@kubb/swagger':
specifier: workspace:*
version: link:../swagger
+ '@kubb/swagger-ts':
+ specifier: workspace:*
+ version: link:../swagger-ts
devDependencies:
'@kubb/eslint-config':
specifier: workspace:*
@@ -1593,8 +1596,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -1636,8 +1639,8 @@ importers:
specifier: workspace:*
version: link:../config/tsup-config
'@types/react':
- specifier: ^18.2.47
- version: 18.2.47
+ specifier: ^18.2.48
+ version: 18.2.48
eslint:
specifier: ^8.56.0
version: 8.56.0
@@ -3098,23 +3101,23 @@ packages:
read-yaml-file: 1.1.0
dev: true
- /@microsoft/api-extractor-model@7.28.4(@types/node@20.11.0):
+ /@microsoft/api-extractor-model@7.28.4(@types/node@20.11.5):
resolution: {integrity: sha512-vucgyPmgHrJ/D4/xQywAmjTmSfxAx2/aDmD6TkIoLu51FdsAfuWRbijWA48AePy60OO+l+mmy9p2P/CEeBZqig==}
dependencies:
'@microsoft/tsdoc': 0.14.2
'@microsoft/tsdoc-config': 0.16.2
- '@rushstack/node-core-library': 3.63.0(@types/node@20.11.0)
+ '@rushstack/node-core-library': 3.63.0(@types/node@20.11.5)
transitivePeerDependencies:
- '@types/node'
- /@microsoft/api-extractor@7.39.1(@types/node@20.11.0):
+ /@microsoft/api-extractor@7.39.1(@types/node@20.11.5):
resolution: {integrity: sha512-V0HtCufWa8hZZvSmlEzQZfINcJkHAU/bmpyJQj6w+zpI87EkR8DuBOW6RWrO9c7mUYFZoDaNgUTyKo83ytv+QQ==}
hasBin: true
dependencies:
- '@microsoft/api-extractor-model': 7.28.4(@types/node@20.11.0)
+ '@microsoft/api-extractor-model': 7.28.4(@types/node@20.11.5)
'@microsoft/tsdoc': 0.14.2
'@microsoft/tsdoc-config': 0.16.2
- '@rushstack/node-core-library': 3.63.0(@types/node@20.11.0)
+ '@rushstack/node-core-library': 3.63.0(@types/node@20.11.5)
'@rushstack/rig-package': 0.5.1
'@rushstack/ts-command-line': 4.17.1
colors: 1.2.5
@@ -3162,14 +3165,14 @@ packages:
- supports-color
dev: false
- /@mswjs/http-middleware@0.9.2(msw@2.0.14):
+ /@mswjs/http-middleware@0.9.2(msw@2.1.2):
resolution: {integrity: sha512-Ie8CZLP632xxOPq3yTNnaIt51NUsmah5YtBU88x0UvYzLH3lsFPBf9hX0FW4mlFwnSFcen1tdU8FpM7qHlvNzg==}
engines: {node: '>=18'}
peerDependencies:
msw: '>=2.0.0'
dependencies:
express: 4.18.2
- msw: 2.0.14(typescript@5.2.2)
+ msw: 2.1.2(typescript@5.2.2)
strict-event-emitter: 0.5.1
transitivePeerDependencies:
- supports-color
@@ -3198,7 +3201,7 @@ packages:
'@open-draft/logger': 0.3.0
'@open-draft/until': 2.1.0
is-node-process: 1.2.0
- outvariant: 1.4.0
+ outvariant: 1.4.2
strict-event-emitter: 0.5.1
dev: false
@@ -3228,7 +3231,7 @@ packages:
resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}
dependencies:
is-node-process: 1.2.0
- outvariant: 1.4.0
+ outvariant: 1.4.2
dev: false
/@open-draft/until@1.0.3:
@@ -3397,7 +3400,7 @@ packages:
requiresBuild: true
optional: true
- /@rushstack/node-core-library@3.63.0(@types/node@20.11.0):
+ /@rushstack/node-core-library@3.63.0(@types/node@20.11.5):
resolution: {integrity: sha512-Q7B3dVpBQF1v+mUfxNcNZh5uHVR8ntcnkN5GYjbBLrxUYHBGKbnCM+OdcN+hzCpFlLBH6Ob0dEHhZ0spQwf24A==}
peerDependencies:
'@types/node': '*'
@@ -3405,7 +3408,7 @@ packages:
'@types/node':
optional: true
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
colors: 1.2.5
fs-extra: 7.0.1
import-lazy: 4.0.0
@@ -3442,8 +3445,8 @@ packages:
resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==}
dev: false
- /@tanstack/query-core@5.17.10:
- resolution: {integrity: sha512-bJ2oQUDBftvHcEkLS3gyzzShSeZpJyzNNRu8oHK13iNdsofyaDXtNO/c1Zy/PZYVX+PhqOXwoT42gMiEMRSSfQ==}
+ /@tanstack/query-core@5.17.15:
+ resolution: {integrity: sha512-QURxpu77/ICA4d61aPvV7EcJ2MwmksxUejKBaq/xLcO2TUJAlXf4PFKHC/WxnVFI/7F1jeLx85AO3Vpk0+uBXw==}
dev: false
/@tanstack/query-devtools@5.0.0:
@@ -3465,7 +3468,7 @@ packages:
use-sync-external-store: 1.2.0(react@18.2.0)
dev: false
- /@tanstack/react-query-devtools@5.0.0(@tanstack/react-query@5.17.10)(react-dom@18.2.0)(react@18.2.0):
+ /@tanstack/react-query-devtools@5.0.0(@tanstack/react-query@5.17.15)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-4yw29d89eOqUmliRKGmEOjuq2AGSM3i4jjw/YFMrErg0neVITy2bkoU3fPXZ339czlupqq0b4e20uFVtqkEqGQ==}
peerDependencies:
'@tanstack/react-query': ^5.0.0
@@ -3473,7 +3476,7 @@ packages:
react-dom: ^18.0.0
dependencies:
'@tanstack/query-devtools': 5.0.0
- '@tanstack/react-query': 5.17.10(react@18.2.0)
+ '@tanstack/react-query': 5.17.15(react@18.2.0)
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
dev: false
@@ -3496,12 +3499,12 @@ packages:
use-sync-external-store: 1.2.0(react@18.2.0)
dev: false
- /@tanstack/react-query@5.17.10(react@18.2.0):
- resolution: {integrity: sha512-TNmJN7LkSLzmv01Jen3JbcvhXZyRhc/ETJNjssmmlyMB8IoNvicfgvDRX2gX3q1FTONq+mfsmWintwI+ejmEUw==}
+ /@tanstack/react-query@5.17.15(react@18.2.0):
+ resolution: {integrity: sha512-9qur91mOihaUN7pXm6ioDtS+4qgkBcCiIaZyvi3lZNcQZsrMGCYZ+eP3hiFrV4khoJyJrFUX1W0NcCVlgwNZxQ==}
peerDependencies:
react: ^18.0.0
dependencies:
- '@tanstack/query-core': 5.17.10
+ '@tanstack/query-core': 5.17.15
react: 18.2.0
dev: false
@@ -3514,12 +3517,12 @@ packages:
solid-js: 1.8.11
dev: false
- /@tanstack/solid-query@5.17.10(solid-js@1.8.11):
- resolution: {integrity: sha512-2eo2qVVlavV7msgDhDquaKebTdYjCXGnwVGlZof0TziFdC89ENr5XaUT16x5ey9WLGHrY/XAa9yyA8EO5R5rUg==}
+ /@tanstack/solid-query@5.17.15(solid-js@1.8.11):
+ resolution: {integrity: sha512-O8RUqvv630MyU2PpUq7uMPO0nCL/RsIp4aLUGJclPovf9PvdgNuzQM0cFCYPHyegM2pZRjMK7Ek4wTAOKXdBhg==}
peerDependencies:
solid-js: ^1.6.0
dependencies:
- '@tanstack/query-core': 5.17.10
+ '@tanstack/query-core': 5.17.15
solid-js: 1.8.11
dev: false
@@ -3532,16 +3535,16 @@ packages:
svelte: 3.59.2
dev: false
- /@tanstack/svelte-query@5.17.10(svelte@3.59.2):
- resolution: {integrity: sha512-KmX6DbfJwhhCRwOED6hObT8aBp0XZ6Aa9HN1WpIcEkZaSRJfbPRjx48N7j2CZXNpngY3NX0/D6cSeiIszaZQZQ==}
+ /@tanstack/svelte-query@5.17.15(svelte@3.59.2):
+ resolution: {integrity: sha512-pg2fpU05px00GsjZw5j5MYDXcianqPnRQQX/a4uGsyx/yyktqEplbs2aQgE1IJcJLZ/sER8ez2cwUgj3r0/sOg==}
peerDependencies:
svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0
dependencies:
- '@tanstack/query-core': 5.17.10
+ '@tanstack/query-core': 5.17.15
svelte: 3.59.2
dev: false
- /@tanstack/vue-query@4.37.1(vue@3.4.13):
+ /@tanstack/vue-query@4.37.1(vue@3.4.15):
resolution: {integrity: sha512-QzCQ94g2oZQcEfI4nfqa6Qr3aFXtXiEH17Jho+QFl73c7epqsWNcyP3ovF1fgJz5jEOE5OYtwgkoaRKIRaSigg==}
peerDependencies:
'@vue/composition-api': ^1.1.2
@@ -3553,12 +3556,12 @@ packages:
'@tanstack/match-sorter-utils': 8.8.4
'@tanstack/query-core': 4.36.1
'@vue/devtools-api': 6.5.1
- vue: 3.4.13(typescript@5.2.2)
- vue-demi: 0.13.11(vue@3.4.13)
+ vue: 3.4.15(typescript@5.2.2)
+ vue-demi: 0.13.11(vue@3.4.15)
dev: false
- /@tanstack/vue-query@5.17.10(vue@3.4.13):
- resolution: {integrity: sha512-YDDYHrv4qXfXOoO9fsx9WfTsK/G2k2qiHqh/5NpBF0ic7s4XSEtZ2xOziq2+ORgLKywA+WenDruUPenTlAnRIw==}
+ /@tanstack/vue-query@5.17.15(vue@3.4.15):
+ resolution: {integrity: sha512-Rw32liAftueRpB5Q9+qOtZ3LJhpeI9/TtRdVv2Gn1re9Um9Swvk0GbocGsPncire2gRexV0zJJ16LX1Dvnanjw==}
peerDependencies:
'@vue/composition-api': ^1.1.2
vue: ^2.6.0 || ^3.3.0
@@ -3567,10 +3570,10 @@ packages:
optional: true
dependencies:
'@tanstack/match-sorter-utils': 8.8.4
- '@tanstack/query-core': 5.17.10
+ '@tanstack/query-core': 5.17.15
'@vue/devtools-api': 6.5.1
- vue: 3.4.13(typescript@5.2.2)
- vue-demi: 0.14.6(vue@3.4.13)
+ vue: 3.4.15(typescript@5.2.2)
+ vue-demi: 0.14.6(vue@3.4.15)
dev: false
/@tsconfig/node10@1.0.9:
@@ -3621,22 +3624,26 @@ packages:
resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==}
dependencies:
'@types/connect': 3.4.38
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/connect@3.4.38:
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/cookie@0.4.1:
resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==}
+ /@types/cookie@0.6.0:
+ resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
+ dev: false
+
/@types/cors@2.8.17:
resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/debug@4.1.12:
@@ -3657,7 +3664,7 @@ packages:
/@types/express-serve-static-core@4.17.41:
resolution: {integrity: sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
'@types/qs': 6.9.10
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
@@ -3676,7 +3683,7 @@ packages:
resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}
dependencies:
'@types/jsonfile': 6.1.4
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/http-errors@2.0.4:
@@ -3705,7 +3712,7 @@ packages:
/@types/jsonfile@6.1.4:
resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/linkify-it@3.0.5:
@@ -3756,8 +3763,8 @@ packages:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
dev: false
- /@types/node@20.11.0:
- resolution: {integrity: sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==}
+ /@types/node@20.11.5:
+ resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}
dependencies:
undici-types: 5.26.5
@@ -3780,17 +3787,17 @@ packages:
/@types/react-dom@18.2.18:
resolution: {integrity: sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==}
dependencies:
- '@types/react': 18.2.47
+ '@types/react': 18.2.48
dev: true
/@types/react-reconciler@0.28.8:
resolution: {integrity: sha512-SN9c4kxXZonFhbX4hJrZy37yw9e7EIxcpHCxQv5JUS18wDE5ovkQKlqQEkufdJCCMfuI9BnjUJvhYeJ9x5Ra7g==}
dependencies:
- '@types/react': 18.2.47
+ '@types/react': 18.2.48
dev: true
- /@types/react@18.2.47:
- resolution: {integrity: sha512-xquNkkOirwyCgoClNk85BjP+aqnIS+ckAJ8i37gAbDs14jfW/J23f2GItAf33oiUPQnqNMALiFeoM9Y5mbjpVQ==}
+ /@types/react@18.2.48:
+ resolution: {integrity: sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==}
dependencies:
'@types/prop-types': 15.7.11
'@types/scheduler': 0.16.8
@@ -3800,7 +3807,7 @@ packages:
/@types/sax@1.2.7:
resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: false
/@types/scheduler@0.16.8:
@@ -3818,7 +3825,7 @@ packages:
resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==}
dependencies:
'@types/mime': 1.3.5
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/serve-static@1.15.5:
@@ -3826,13 +3833,13 @@ packages:
dependencies:
'@types/http-errors': 2.0.4
'@types/mime': 3.0.4
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
/@types/set-cookie-parser@2.4.7:
resolution: {integrity: sha512-+ge/loa0oTozxip6zmhRIk8Z/boU51wl9Q6QdLZcokIGMzY5lFXYy/x7Htj2HTC6/KZP1hUbZ1ekx8DYXICvWg==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
/@types/statuses@2.0.4:
resolution: {integrity: sha512-eqNDvZsCNY49OAXB0Firg/Sc2BgoWsntsLUdybGFOhAfCD6QJ2n9HXUIHGqt5qjrxmMv4wS8WLAw43ZkKcJ8Pw==}
@@ -3841,7 +3848,7 @@ packages:
/@types/swagger2openapi@7.0.4:
resolution: {integrity: sha512-ffMqzciTDihOKH4Q//9Ond1yb5JP1P5FC/aFPsLK4blea1Fwk2aYctiNCkAh5etDYFswFXS+5LV/vuGkf+PU6A==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
openapi-types: 12.1.3
dev: true
@@ -3852,11 +3859,11 @@ packages:
/@types/ws@8.5.10:
resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
dev: true
- /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==}
+ /@typescript-eslint/eslint-plugin@6.19.0(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3):
+ resolution: {integrity: sha512-DUCUkQNklCQYnrBSSikjVChdc84/vMPDQSgJTHBZ64G9bA9w0Crc0rd2diujKbTdp6w2J47qkeHQLoi0rpLCdg==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
'@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
@@ -3868,10 +3875,10 @@ packages:
dependencies:
'@eslint-community/regexpp': 4.10.0
'@typescript-eslint/parser': 6.15.0(eslint@8.56.0)(typescript@5.3.3)
- '@typescript-eslint/scope-manager': 6.18.1
- '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
- '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
- '@typescript-eslint/visitor-keys': 6.18.1
+ '@typescript-eslint/scope-manager': 6.19.0
+ '@typescript-eslint/type-utils': 6.19.0(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/utils': 6.19.0(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/visitor-keys': 6.19.0
debug: 4.3.4
eslint: 8.56.0
graphemer: 1.4.0
@@ -3911,16 +3918,16 @@ packages:
'@typescript-eslint/types': 6.15.0
'@typescript-eslint/visitor-keys': 6.15.0
- /@typescript-eslint/scope-manager@6.18.1:
- resolution: {integrity: sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==}
+ /@typescript-eslint/scope-manager@6.19.0:
+ resolution: {integrity: sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==}
engines: {node: ^16.0.0 || >=18.0.0}
dependencies:
- '@typescript-eslint/types': 6.18.1
- '@typescript-eslint/visitor-keys': 6.18.1
+ '@typescript-eslint/types': 6.19.0
+ '@typescript-eslint/visitor-keys': 6.19.0
dev: false
- /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==}
+ /@typescript-eslint/type-utils@6.19.0(eslint@8.56.0)(typescript@5.3.3):
+ resolution: {integrity: sha512-mcvS6WSWbjiSxKCwBcXtOM5pRkPQ6kcDds/juxcy/727IQr3xMEcwr/YLHW2A2+Fp5ql6khjbKBzOyjuPqGi/w==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
@@ -3929,8 +3936,8 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3)
- '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/typescript-estree': 6.19.0(typescript@5.3.3)
+ '@typescript-eslint/utils': 6.19.0(eslint@8.56.0)(typescript@5.3.3)
debug: 4.3.4
eslint: 8.56.0
ts-api-utils: 1.0.3(typescript@5.3.3)
@@ -3943,8 +3950,8 @@ packages:
resolution: {integrity: sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==}
engines: {node: ^16.0.0 || >=18.0.0}
- /@typescript-eslint/types@6.18.1:
- resolution: {integrity: sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==}
+ /@typescript-eslint/types@6.19.0:
+ resolution: {integrity: sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==}
engines: {node: ^16.0.0 || >=18.0.0}
dev: false
@@ -3968,8 +3975,8 @@ packages:
transitivePeerDependencies:
- supports-color
- /@typescript-eslint/typescript-estree@6.18.1(typescript@5.3.3):
- resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==}
+ /@typescript-eslint/typescript-estree@6.19.0(typescript@5.3.3):
+ resolution: {integrity: sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
typescript: '*'
@@ -3977,8 +3984,8 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 6.18.1
- '@typescript-eslint/visitor-keys': 6.18.1
+ '@typescript-eslint/types': 6.19.0
+ '@typescript-eslint/visitor-keys': 6.19.0
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@@ -4009,8 +4016,8 @@ packages:
- typescript
dev: false
- /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@5.3.3):
- resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==}
+ /@typescript-eslint/utils@6.19.0(eslint@8.56.0)(typescript@5.3.3):
+ resolution: {integrity: sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
@@ -4018,9 +4025,9 @@ packages:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
'@types/json-schema': 7.0.15
'@types/semver': 7.5.6
- '@typescript-eslint/scope-manager': 6.18.1
- '@typescript-eslint/types': 6.18.1
- '@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3)
+ '@typescript-eslint/scope-manager': 6.19.0
+ '@typescript-eslint/types': 6.19.0
+ '@typescript-eslint/typescript-estree': 6.19.0(typescript@5.3.3)
eslint: 8.56.0
semver: 7.5.4
transitivePeerDependencies:
@@ -4035,19 +4042,19 @@ packages:
'@typescript-eslint/types': 6.15.0
eslint-visitor-keys: 3.4.3
- /@typescript-eslint/visitor-keys@6.18.1:
- resolution: {integrity: sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==}
+ /@typescript-eslint/visitor-keys@6.19.0:
+ resolution: {integrity: sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==}
engines: {node: ^16.0.0 || >=18.0.0}
dependencies:
- '@typescript-eslint/types': 6.18.1
+ '@typescript-eslint/types': 6.19.0
eslint-visitor-keys: 3.4.3
dev: false
/@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
- /@vercel/analytics@1.1.1:
- resolution: {integrity: sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==}
+ /@vercel/analytics@1.1.2:
+ resolution: {integrity: sha512-CodhkLCQ/EHzjX8k+Qg+OzTBY0UadykrcfolfSOJVZZY/ZJM5nbhztm9KdbYvMfqKlasAr1+OYy0ThZnDA/MYA==}
dependencies:
server-only: 0.0.1
dev: false
@@ -4063,35 +4070,35 @@ packages:
'@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.6)
'@types/babel__core': 7.20.5
react-refresh: 0.14.0
- vite: 4.5.1(@types/node@20.11.0)
+ vite: 4.5.1(@types/node@20.11.5)
transitivePeerDependencies:
- supports-color
dev: true
- /@vitejs/plugin-vue@4.6.2(vite@4.5.1)(vue@3.4.13):
+ /@vitejs/plugin-vue@4.6.2(vite@4.5.1)(vue@3.4.15):
resolution: {integrity: sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
vite: ^4.0.0 || ^5.0.0
vue: ^3.2.25
dependencies:
- vite: 4.5.1(@types/node@20.11.0)
- vue: 3.4.13(typescript@5.2.2)
+ vite: 4.5.1(@types/node@20.11.5)
+ vue: 3.4.15(typescript@5.2.2)
dev: true
- /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.13):
- resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==}
+ /@vitejs/plugin-vue@5.0.3(vite@5.0.11)(vue@3.4.15):
+ resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==}
engines: {node: ^18.0.0 || >=20.0.0}
peerDependencies:
vite: ^5.0.0
vue: ^3.2.25
dependencies:
- vite: 5.0.11(@types/node@20.11.0)
- vue: 3.4.13(typescript@5.3.3)
+ vite: 5.0.11(@types/node@20.11.5)
+ vue: 3.4.15(typescript@5.3.3)
dev: false
- /@vitest/coverage-v8@1.2.0(vitest@1.2.0):
- resolution: {integrity: sha512-YvX8ULTUm1+zkvkl14IqXYGxE1h13OXKPoDsxazARKlp4YLrP28hHEBdplaU7ZTN/Yn6zy6Z3JadWNRJwcmyrQ==}
+ /@vitest/coverage-v8@1.2.1(vitest@1.2.1):
+ resolution: {integrity: sha512-fJEhKaDwGMZtJUX7BRcGxooGwg1Hl0qt53mVup/ZJeznhvL5EodteVnb/mcByhEcvVWbK83ZF31c7nPEDi4LOQ==}
peerDependencies:
vitest: ^1.0.0
dependencies:
@@ -4103,146 +4110,146 @@ packages:
istanbul-lib-source-maps: 4.0.1
istanbul-reports: 3.1.6
magic-string: 0.30.5
- magicast: 0.3.2
+ magicast: 0.3.3
picocolors: 1.0.0
std-env: 3.6.0
test-exclude: 6.0.0
v8-to-istanbul: 9.2.0
- vitest: 1.2.0(@types/node@20.11.0)(@vitest/ui@1.2.0)
+ vitest: 1.2.1(@types/node@20.11.5)(@vitest/ui@1.2.1)
transitivePeerDependencies:
- supports-color
dev: true
- /@vitest/expect@1.2.0:
- resolution: {integrity: sha512-H+2bHzhyvgp32o7Pgj2h9RTHN0pgYaoi26Oo3mE+dCi1PAqV31kIIVfTbqMO3Bvshd5mIrJLc73EwSRrbol9Lw==}
+ /@vitest/expect@1.2.1:
+ resolution: {integrity: sha512-/bqGXcHfyKgFWYwIgFr1QYDaR9e64pRKxgBNWNXPefPFRhgm+K3+a/dS0cUGEreWngets3dlr8w8SBRw2fCfFQ==}
dependencies:
- '@vitest/spy': 1.2.0
- '@vitest/utils': 1.2.0
+ '@vitest/spy': 1.2.1
+ '@vitest/utils': 1.2.1
chai: 4.3.10
- /@vitest/runner@1.2.0:
- resolution: {integrity: sha512-vaJkDoQaNUTroT70OhM0NPznP7H3WyRwt4LvGwCVYs/llLaqhoSLnlIhUClZpbF5RgAee29KRcNz0FEhYcgxqA==}
+ /@vitest/runner@1.2.1:
+ resolution: {integrity: sha512-zc2dP5LQpzNzbpaBt7OeYAvmIsRS1KpZQw4G3WM/yqSV1cQKNKwLGmnm79GyZZjMhQGlRcSFMImLjZaUQvNVZQ==}
dependencies:
- '@vitest/utils': 1.2.0
+ '@vitest/utils': 1.2.1
p-limit: 5.0.0
pathe: 1.1.1
- /@vitest/snapshot@1.2.0:
- resolution: {integrity: sha512-P33EE7TrVgB3HDLllrjK/GG6WSnmUtWohbwcQqmm7TAk9AVHpdgf7M3F3qRHKm6vhr7x3eGIln7VH052Smo6Kw==}
+ /@vitest/snapshot@1.2.1:
+ resolution: {integrity: sha512-Tmp/IcYEemKaqAYCS08sh0vORLJkMr0NRV76Gl8sHGxXT5151cITJCET20063wk0Yr/1koQ6dnmP6eEqezmd/Q==}
dependencies:
magic-string: 0.30.5
pathe: 1.1.1
pretty-format: 29.7.0
- /@vitest/spy@1.2.0:
- resolution: {integrity: sha512-MNxSAfxUaCeowqyyGwC293yZgk7cECZU9wGb8N1pYQ0yOn/SIr8t0l9XnGRdQZvNV/ZHBYu6GO/W3tj5K3VN1Q==}
+ /@vitest/spy@1.2.1:
+ resolution: {integrity: sha512-vG3a/b7INKH7L49Lbp0IWrG6sw9j4waWAucwnksPB1r1FTJgV7nkBByd9ufzu6VWya/QTvQW4V9FShZbZIB2UQ==}
dependencies:
tinyspy: 2.2.0
- /@vitest/ui@1.2.0(vitest@1.2.0):
- resolution: {integrity: sha512-AFU8FBiSioYacEd0b8+2R/4GJJhxseD6bNIiEVntb505u1B/mcNMTVRepZql7r3RQJZQ7uijY9QyLdhlbh4XvA==}
+ /@vitest/ui@1.2.1(vitest@1.2.1):
+ resolution: {integrity: sha512-5kyEDpH18TB13Keutk5VScWG+LUDfPJOL2Yd1hqX+jv6+V74tp4ZYcmTgx//WDngiZA5PvX3qCHQ5KrhGzPbLg==}
peerDependencies:
vitest: ^1.0.0
dependencies:
- '@vitest/utils': 1.2.0
+ '@vitest/utils': 1.2.1
fast-glob: 3.3.2
fflate: 0.8.1
flatted: 3.2.9
pathe: 1.1.1
picocolors: 1.0.0
sirv: 2.0.4
- vitest: 1.2.0(@types/node@20.11.0)(@vitest/ui@1.2.0)
+ vitest: 1.2.1(@types/node@20.11.5)(@vitest/ui@1.2.1)
- /@vitest/utils@1.2.0:
- resolution: {integrity: sha512-FyD5bpugsXlwVpTcGLDf3wSPYy8g541fQt14qtzo8mJ4LdEpDKZ9mQy2+qdJm2TZRpjY5JLXihXCgIxiRJgi5g==}
+ /@vitest/utils@1.2.1:
+ resolution: {integrity: sha512-bsH6WVZYe/J2v3+81M5LDU8kW76xWObKIURpPrOXm2pjBniBu2MERI/XP60GpS4PHU3jyK50LUutOwrx4CyHUg==}
dependencies:
diff-sequences: 29.6.3
estree-walker: 3.0.3
loupe: 2.3.7
pretty-format: 29.7.0
- /@vue/compiler-core@3.4.13:
- resolution: {integrity: sha512-zGUdmB3j3Irn9z51GXLJ5s0EAHxmsm5/eXl0y6MBaajMeOAaiT4+zaDoxui4Ets98dwIRr8BBaqXXHtHSfm+KA==}
+ /@vue/compiler-core@3.4.15:
+ resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==}
dependencies:
'@babel/parser': 7.23.6
- '@vue/shared': 3.4.13
+ '@vue/shared': 3.4.15
entities: 4.5.0
estree-walker: 2.0.2
source-map-js: 1.0.2
- /@vue/compiler-dom@3.4.13:
- resolution: {integrity: sha512-XSNbpr5Rs3kCfVAmBqMu/HDwOS+RL6y28ZZjDlnDUuf146pRWt2sQkwhsOYc9uu2lxjjJy2NcyOkK7MBLVEc7w==}
+ /@vue/compiler-dom@3.4.15:
+ resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==}
dependencies:
- '@vue/compiler-core': 3.4.13
- '@vue/shared': 3.4.13
+ '@vue/compiler-core': 3.4.15
+ '@vue/shared': 3.4.15
- /@vue/compiler-sfc@3.4.13:
- resolution: {integrity: sha512-SkpmQN8xIFBd5onT413DFSDdjxULJf6jmJg/t3w/DZ9I8ZzyNlLIBLO0qFLewVHyHCiAgpPZlWqSRZXYrawk3Q==}
+ /@vue/compiler-sfc@3.4.15:
+ resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==}
dependencies:
'@babel/parser': 7.23.6
- '@vue/compiler-core': 3.4.13
- '@vue/compiler-dom': 3.4.13
- '@vue/compiler-ssr': 3.4.13
- '@vue/shared': 3.4.13
+ '@vue/compiler-core': 3.4.15
+ '@vue/compiler-dom': 3.4.15
+ '@vue/compiler-ssr': 3.4.15
+ '@vue/shared': 3.4.15
estree-walker: 2.0.2
magic-string: 0.30.5
- postcss: 8.4.32
+ postcss: 8.4.33
source-map-js: 1.0.2
- /@vue/compiler-ssr@3.4.13:
- resolution: {integrity: sha512-rwnw9SVBgD6eGKh8UucnwztieQo/R3RQrEGpE0b0cxb2xxvJeLs/fe7DoYlhEfaSyzM/qD5odkK87hl3G3oW+A==}
+ /@vue/compiler-ssr@3.4.15:
+ resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==}
dependencies:
- '@vue/compiler-dom': 3.4.13
- '@vue/shared': 3.4.13
+ '@vue/compiler-dom': 3.4.15
+ '@vue/shared': 3.4.15
/@vue/devtools-api@6.5.1:
resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==}
dev: false
- /@vue/reactivity@3.4.13:
- resolution: {integrity: sha512-/ZdUOrGKkGVONzVJkfDqNcn2fLMvaa5VlYx2KwTbnRbX06YZ4GJE0PVTmWzIxtBYdpSTLLXgw3pDggO+96KXzg==}
+ /@vue/reactivity@3.4.15:
+ resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==}
dependencies:
- '@vue/shared': 3.4.13
+ '@vue/shared': 3.4.15
- /@vue/runtime-core@3.4.13:
- resolution: {integrity: sha512-Ov4d4At7z3goxqzSqQxdfVYEcN5HY4dM1uDYL6Hu/Es9Za9BEN602zyjWhhi2+BEki5F9NizRSvn02k/tqNWlg==}
+ /@vue/runtime-core@3.4.15:
+ resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==}
dependencies:
- '@vue/reactivity': 3.4.13
- '@vue/shared': 3.4.13
+ '@vue/reactivity': 3.4.15
+ '@vue/shared': 3.4.15
- /@vue/runtime-dom@3.4.13:
- resolution: {integrity: sha512-ynde9p16eEV3u1VCxUre2e0nKzD0l3NzH0r599+bXeLT1Yhac8Atcot3iL9XNqwolxYCI89KBII+2MSVzfrz6w==}
+ /@vue/runtime-dom@3.4.15:
+ resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==}
dependencies:
- '@vue/runtime-core': 3.4.13
- '@vue/shared': 3.4.13
+ '@vue/runtime-core': 3.4.15
+ '@vue/shared': 3.4.15
csstype: 3.1.3
- /@vue/server-renderer@3.4.13(vue@3.4.13):
- resolution: {integrity: sha512-hkw+UQyDZZtSn1q30nObMfc8beVEQv2pG08nghigxGw+iOWodR+tWSuJak0mzWAHlP/xt/qLc//dG6igfgvGEA==}
+ /@vue/server-renderer@3.4.15(vue@3.4.15):
+ resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==}
peerDependencies:
- vue: 3.4.13
+ vue: 3.4.15
dependencies:
- '@vue/compiler-ssr': 3.4.13
- '@vue/shared': 3.4.13
- vue: 3.4.13(typescript@5.2.2)
+ '@vue/compiler-ssr': 3.4.15
+ '@vue/shared': 3.4.15
+ vue: 3.4.15(typescript@5.2.2)
- /@vue/shared@3.4.13:
- resolution: {integrity: sha512-56crFKLPpzk85WXX1L1c0QzPOuoapWlPVys8eMG8kkRmqdMjWUqK8KpFdE2d7BQA4CEbXwyyHPq6MpFr8H9rcg==}
+ /@vue/shared@3.4.15:
+ resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==}
- /@vueuse/core@10.7.1(vue@3.4.13):
- resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==}
+ /@vueuse/core@10.7.2(vue@3.4.15):
+ resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==}
dependencies:
'@types/web-bluetooth': 0.0.20
- '@vueuse/metadata': 10.7.1
- '@vueuse/shared': 10.7.1(vue@3.4.13)
- vue-demi: 0.14.6(vue@3.4.13)
+ '@vueuse/metadata': 10.7.2
+ '@vueuse/shared': 10.7.2(vue@3.4.15)
+ vue-demi: 0.14.6(vue@3.4.15)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
dev: false
- /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.13):
- resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==}
+ /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.15):
+ resolution: {integrity: sha512-+u3RLPFedjASs5EKPc69Ge49WNgqeMfSxFn+qrQTzblPXZg6+EFzhjarS5edj2qAf6xQ93f95TUxRwKStXj/sQ==}
peerDependencies:
async-validator: '*'
axios: '*'
@@ -4282,23 +4289,23 @@ packages:
universal-cookie:
optional: true
dependencies:
- '@vueuse/core': 10.7.1(vue@3.4.13)
- '@vueuse/shared': 10.7.1(vue@3.4.13)
+ '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/shared': 10.7.2(vue@3.4.15)
focus-trap: 7.5.4
- vue-demi: 0.14.6(vue@3.4.13)
+ vue-demi: 0.14.6(vue@3.4.15)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
dev: false
- /@vueuse/metadata@10.7.1:
- resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==}
+ /@vueuse/metadata@10.7.2:
+ resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==}
dev: false
- /@vueuse/shared@10.7.1(vue@3.4.13):
- resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==}
+ /@vueuse/shared@10.7.2(vue@3.4.15):
+ resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==}
dependencies:
- vue-demi: 0.14.6(vue@3.4.13)
+ vue-demi: 0.14.6(vue@3.4.15)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
@@ -4354,6 +4361,10 @@ packages:
resolution: {integrity: sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==}
engines: {node: '>=0.4.0'}
+ /acorn-walk@8.3.2:
+ resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==}
+ engines: {node: '>=0.4.0'}
+
/acorn@8.11.2:
resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==}
engines: {node: '>=0.4.0'}
@@ -4697,10 +4708,10 @@ packages:
base64-js: 1.5.1
ieee754: 1.2.1
- /bun-types@1.0.22:
- resolution: {integrity: sha512-JxmXAx6cXb37+rMsn30WRXlz9lbPFR9rQE78hNSoy5wJ8m/nUktkmHpo7xZb/YKDds23ifxWLjDtyni9MeXLgw==}
+ /bun-types@1.0.23:
+ resolution: {integrity: sha512-K3eFQrZk2LWAdp7qcMz+m40Mz+RQc3jpgroQRlQqvQLSFL4qQ3tULBrKHzSwh0P9P7vyHbhyJ5IGKj/cmQFLGg==}
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
'@types/ws': 8.5.10
undici-types: 5.26.5
dev: true
@@ -4807,8 +4818,8 @@ packages:
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
- /change-case@5.4.1:
- resolution: {integrity: sha512-Agf3w7rZRy4aLy0gQ0M/fhufTIxN17rFfUuQ8OxETDJhB8QdoxgDpd9FbbFOMocR7+3wiSv8KKrFVL6HfM1Ylw==}
+ /change-case@5.4.2:
+ resolution: {integrity: sha512-WB3UiTDpT+vrTilAWaJS4gaIH/jc1He4H9f6erQvraUYas90uWT0JOYFkG1imdNv710XJ6gJvqynrgOHc4ihDA==}
dev: false
/chardet@0.7.0:
@@ -5740,7 +5751,7 @@ packages:
eslint: 8.56.0
dev: false
- /eslint-plugin-unused-imports@3.0.0(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0):
+ /eslint-plugin-unused-imports@3.0.0(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0):
resolution: {integrity: sha512-sduiswLJfZHeeBJ+MQaG+xYzSWdRXoSw61DpU13mzWumCkR0ufD0HmO4kdNokjrkluMHpj/7PJeN35pgbhW3kw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -5750,7 +5761,7 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
- '@typescript-eslint/eslint-plugin': 6.18.1(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/eslint-plugin': 6.19.0(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
eslint: 8.56.0
eslint-rule-composer: 0.3.0
dev: false
@@ -5759,7 +5770,7 @@ packages:
resolution: {integrity: sha512-WE+YlK9X9s4vf5EaYRU0Scw7WItDZStm+PapFSYlg2ABNtaQ4zIG7wEqpoUB3SlfM+SgkhgmzR0TeJOO5k3/Nw==}
dev: false
- /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.0):
+ /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0)(typescript@5.3.3)(vitest@1.2.1):
resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==}
engines: {node: ^18.0.0 || >= 20.0.0}
peerDependencies:
@@ -5772,10 +5783,10 @@ packages:
vitest:
optional: true
dependencies:
- '@typescript-eslint/eslint-plugin': 6.18.1(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/eslint-plugin': 6.19.0(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
'@typescript-eslint/utils': 6.15.0(eslint@8.56.0)(typescript@5.3.3)
eslint: 8.56.0
- vitest: 1.2.0(@types/node@20.11.0)(@vitest/ui@1.2.0)
+ vitest: 1.2.1(@types/node@20.11.5)(@vitest/ui@1.2.1)
transitivePeerDependencies:
- supports-color
- typescript
@@ -7119,8 +7130,8 @@ packages:
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
- /magicast@0.3.2:
- resolution: {integrity: sha512-Fjwkl6a0syt9TFN0JSYpOybxiMCkYNEeOTnOTNRbjphirLakznZXAqrXgj/7GG3D1dvETONNwrBfinvAbpunDg==}
+ /magicast@0.3.3:
+ resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==}
dependencies:
'@babel/parser': 7.23.6
'@babel/types': 7.23.6
@@ -7340,8 +7351,8 @@ packages:
- encoding
- supports-color
- /msw@2.0.14(typescript@5.2.2):
- resolution: {integrity: sha512-RcKx/JM/IOvjBjOA+cfNzLkSoMv408Tf+5TdgvzitM8/cPeN68004wBLXvbc2Jvwm1Sj4h8azR/WdO1wJg9iSw==}
+ /msw@2.1.2(typescript@5.2.2):
+ resolution: {integrity: sha512-7OKbeZNFQTCPFe++o+zZHMkQRIUi4D/5N1dAD3lOlaV+2Wpv3Srp3VFrFeH+2ftZJbb4jAiC0caZoW1efr80KQ==}
engines: {node: '>=18'}
hasBin: true
requiresBuild: true
@@ -7357,7 +7368,7 @@ packages:
'@mswjs/cookies': 1.1.0
'@mswjs/interceptors': 0.25.14
'@open-draft/until': 2.1.0
- '@types/cookie': 0.4.1
+ '@types/cookie': 0.6.0
'@types/js-levenshtein': 1.1.3
'@types/statuses': 2.0.4
chalk: 4.1.2
@@ -7367,10 +7378,10 @@ packages:
inquirer: 8.2.6
is-node-process: 1.2.0
js-levenshtein: 1.1.6
- outvariant: 1.4.0
+ outvariant: 1.4.2
path-to-regexp: 6.2.1
strict-event-emitter: 0.5.1
- type-fest: 2.19.0
+ type-fest: 4.9.0
typescript: 5.2.2
yargs: 17.7.2
dev: false
@@ -7684,6 +7695,10 @@ packages:
/outvariant@1.4.0:
resolution: {integrity: sha512-AlWY719RF02ujitly7Kk/0QlV+pXGFDHrHf9O2OKqyqgBieaPOIeuSkL8sRK6j2WK+/ZAURq2kZsY0d8JapUiw==}
+ /outvariant@1.4.2:
+ resolution: {integrity: sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==}
+ dev: false
+
/p-filter@2.1.0:
resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==}
engines: {node: '>=8'}
@@ -7879,7 +7894,7 @@ packages:
optional: true
dependencies:
lilconfig: 3.0.0
- ts-node: 10.9.2(@types/node@20.11.0)(typescript@5.3.3)
+ ts-node: 10.9.2(@types/node@20.11.5)(typescript@5.3.3)
yaml: 2.3.4
/postcss@8.4.32:
@@ -7890,6 +7905,14 @@ packages:
picocolors: 1.0.0
source-map-js: 1.0.2
+ /postcss@8.4.33:
+ resolution: {integrity: sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.0
+ source-map-js: 1.0.2
+
/preact@10.19.3:
resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==}
dev: false
@@ -7919,7 +7942,7 @@ packages:
indent-string: 4.0.0
lodash.merge: 4.6.2
loglevel-colored-level-prefix: 1.0.0
- prettier: 3.2.2
+ prettier: 3.2.4
pretty-format: 29.7.0
require-relative: 0.8.7
typescript: 5.3.3
@@ -7934,8 +7957,8 @@ packages:
hasBin: true
dev: true
- /prettier@3.2.2:
- resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==}
+ /prettier@3.2.4:
+ resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==}
engines: {node: '>=14'}
hasBin: true
dev: true
@@ -8431,20 +8454,20 @@ packages:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
- /shikiji-core@0.9.17:
- resolution: {integrity: sha512-r1FWTXk6SO2aYqfWgcsJ11MuVQ1ymPSdXzJjK7q8EXuyqu8yc2N5qrQy5+BL6gTVOaF4yLjbxFjF+KTRM1Sp8Q==}
+ /shikiji-core@0.9.19:
+ resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==}
dev: false
- /shikiji-transformers@0.9.17:
- resolution: {integrity: sha512-2CCG9qSLS6Bn/jbeUTEuvC6YSuP8gm8VyX5VjmCvDKyCPGhlLJbH1k/kg9wfRt7cJqpYjhdMDgT5rkdYrOZnsA==}
+ /shikiji-transformers@0.9.19:
+ resolution: {integrity: sha512-lGLI7Z8frQrIBbhZ74/eiJtxMoCQRbpaHEB+gcfvdIy+ZFaAtXncJGnc52932/UET+Y4GyKtwwC/vjWUCp+c/Q==}
dependencies:
- shikiji: 0.9.17
+ shikiji: 0.9.19
dev: false
- /shikiji@0.9.17:
- resolution: {integrity: sha512-0z/1NfkhBkm3ijrfFeHg3G9yDNuHhXdAGbQm7tRxj4WQ5z2y0XDbnagFyKyuV2ebCTS1Mwy1I3n0Fzcc/4xdmw==}
+ /shikiji@0.9.19:
+ resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==}
dependencies:
- shikiji-core: 0.9.17
+ shikiji-core: 0.9.19
dev: false
/should-equal@2.0.0:
@@ -8956,7 +8979,7 @@ packages:
/ts-interface-checker@0.1.13:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
- /ts-node@10.9.2(@types/node@20.11.0)(typescript@5.3.3):
+ /ts-node@10.9.2(@types/node@20.11.5)(typescript@5.3.3):
resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}
hasBin: true
peerDependencies:
@@ -8975,7 +8998,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
acorn: 8.11.2
acorn-walk: 8.3.1
arg: 4.1.3
@@ -8990,12 +9013,12 @@ packages:
resolution: {integrity: sha512-nsZd8ZeNUzukXPlJmTBwUAuABDe/9qtVDelJeT/qW0ow3ZS3BsQJtNkan1802aM9Uf68/Y8ljw86Hu0h5IUW3w==}
dev: false
- /tsconfck@2.1.2(typescript@5.3.3):
- resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==}
- engines: {node: ^14.13.1 || ^16 || >=18}
+ /tsconfck@3.0.1(typescript@5.3.3):
+ resolution: {integrity: sha512-7ppiBlF3UEddCLeI1JRx5m2Ryq+xk4JrZuq4EuYXykipebaq1dV0Fhgr1hb7CkmHt32QSgOZlcqVLEtHBG4/mg==}
+ engines: {node: ^18 || >=20}
hasBin: true
peerDependencies:
- typescript: ^4.3.5 || ^5.0.0
+ typescript: ^5.0.0
peerDependenciesMeta:
typescript:
optional: true
@@ -9034,7 +9057,7 @@ packages:
typescript:
optional: true
dependencies:
- '@microsoft/api-extractor': 7.39.1(@types/node@20.11.0)
+ '@microsoft/api-extractor': 7.39.1(@types/node@20.11.5)
bundle-require: 4.0.2(esbuild@0.19.11)
cac: 6.7.14
chokidar: 3.5.3
@@ -9208,6 +9231,11 @@ packages:
engines: {node: '>=14.16'}
dev: false
+ /type-fest@4.9.0:
+ resolution: {integrity: sha512-KS/6lh/ynPGiHD/LnAobrEFq3Ad4pBzOlJ1wAnJx9N4EYoqFhMfLIBjUT2UEx4wg5ZE+cC1ob6DCSpppVo+rtg==}
+ engines: {node: '>=16'}
+ dev: false
+
/type-is@1.6.18:
resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}
engines: {node: '>= 0.6'}
@@ -9409,8 +9437,8 @@ packages:
engines: {node: '>= 0.8'}
dev: false
- /vite-node@1.2.0(@types/node@20.11.0):
- resolution: {integrity: sha512-ETnQTHeAbbOxl7/pyBck9oAPZZZo+kYnFt1uQDD+hPReOc+wCjXw4r4jHriBRuVDB5isHmPXxrfc1yJnfBERqg==}
+ /vite-node@1.2.1(@types/node@20.11.5):
+ resolution: {integrity: sha512-fNzHmQUSOY+y30naohBvSW7pPn/xn3Ib/uqm+5wAJQJiqQsU0NBR78XdRJb04l4bOFKjpTWld0XAfkKlrDbySg==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
dependencies:
@@ -9418,7 +9446,7 @@ packages:
debug: 4.3.4
pathe: 1.1.1
picocolors: 1.0.0
- vite: 5.0.11(@types/node@20.11.0)
+ vite: 5.0.11(@types/node@20.11.5)
transitivePeerDependencies:
- '@types/node'
- less
@@ -9429,8 +9457,8 @@ packages:
- supports-color
- terser
- /vite-tsconfig-paths@4.2.3(typescript@5.3.3):
- resolution: {integrity: sha512-xVsA2xe6QSlzBujtWF8q2NYexh7PAUYfzJ4C8Axpe/7d2pcERYxuxGgph9F4f0iQO36g5tyGq6eBUYIssdUrVw==}
+ /vite-tsconfig-paths@4.3.1(typescript@5.3.3):
+ resolution: {integrity: sha512-cfgJwcGOsIxXOLU/nELPny2/LUD/lcf1IbfyeKTv2bsupVbTH/xpFtdQlBmIP1GEK2CjjLxYhFfB+QODFAx5aw==}
peerDependencies:
vite: '*'
peerDependenciesMeta:
@@ -9439,13 +9467,13 @@ packages:
dependencies:
debug: 4.3.4
globrex: 0.1.2
- tsconfck: 2.1.2(typescript@5.3.3)
+ tsconfck: 3.0.1(typescript@5.3.3)
transitivePeerDependencies:
- supports-color
- typescript
dev: true
- /vite@4.5.1(@types/node@20.11.0):
+ /vite@4.5.1(@types/node@20.11.5):
resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -9473,7 +9501,7 @@ packages:
terser:
optional: true
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
esbuild: 0.18.20
postcss: 8.4.32
rollup: 3.29.4
@@ -9481,7 +9509,7 @@ packages:
fsevents: 2.3.3
dev: true
- /vite@5.0.11(@types/node@20.11.0):
+ /vite@5.0.11(@types/node@20.11.5):
resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
@@ -9509,15 +9537,15 @@ packages:
terser:
optional: true
dependencies:
- '@types/node': 20.11.0
+ '@types/node': 20.11.5
esbuild: 0.19.11
postcss: 8.4.32
rollup: 4.9.0
optionalDependencies:
fsevents: 2.3.3
- /vitepress@1.0.0-rc.36(@algolia/client-search@4.21.1)(@types/node@20.11.0)(search-insights@2.13.0)(typescript@5.3.3):
- resolution: {integrity: sha512-2z4dpM9PplN/yvTifhavOIAazlCR6OJ5PvLoRbc+7LdcFeIlCsuDGENLX4HjMW18jQZF5/j7++PNqdBfeazxUA==}
+ /vitepress@1.0.0-rc.39(@algolia/client-search@4.21.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@5.3.3):
+ resolution: {integrity: sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==}
hasBin: true
peerDependencies:
markdown-it-mathjax3: ^4.3.2
@@ -9531,18 +9559,18 @@ packages:
'@docsearch/css': 3.5.2
'@docsearch/js': 3.5.2(@algolia/client-search@4.21.1)(search-insights@2.13.0)
'@types/markdown-it': 13.0.7
- '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.13)
+ '@vitejs/plugin-vue': 5.0.3(vite@5.0.11)(vue@3.4.15)
'@vue/devtools-api': 6.5.1
- '@vueuse/core': 10.7.1(vue@3.4.13)
- '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.13)
+ '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/integrations': 10.7.2(focus-trap@7.5.4)(vue@3.4.15)
focus-trap: 7.5.4
mark.js: 8.11.1
minisearch: 6.3.0
- shikiji: 0.9.17
- shikiji-core: 0.9.17
- shikiji-transformers: 0.9.17
- vite: 5.0.11(@types/node@20.11.0)
- vue: 3.4.13(typescript@5.3.3)
+ shikiji: 0.9.19
+ shikiji-core: 0.9.19
+ shikiji-transformers: 0.9.19
+ vite: 5.0.11(@types/node@20.11.5)
+ vue: 3.4.15(typescript@5.3.3)
transitivePeerDependencies:
- '@algolia/client-search'
- '@types/node'
@@ -9571,8 +9599,8 @@ packages:
- universal-cookie
dev: false
- /vitest@1.2.0(@types/node@20.11.0)(@vitest/ui@1.2.0):
- resolution: {integrity: sha512-Ixs5m7BjqvLHXcibkzKRQUvD/XLw0E3rvqaCMlrm/0LMsA0309ZqYvTlPzkhh81VlEyVZXFlwWnkhb6/UMtcaQ==}
+ /vitest@1.2.1(@types/node@20.11.5)(@vitest/ui@1.2.1):
+ resolution: {integrity: sha512-TRph8N8rnSDa5M2wKWJCMnztCZS9cDcgVTQ6tsTFTG/odHJ4l5yNVqvbeDJYJRZ6is3uxaEpFs8LL6QM+YFSdA==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -9596,14 +9624,14 @@ packages:
jsdom:
optional: true
dependencies:
- '@types/node': 20.11.0
- '@vitest/expect': 1.2.0
- '@vitest/runner': 1.2.0
- '@vitest/snapshot': 1.2.0
- '@vitest/spy': 1.2.0
- '@vitest/ui': 1.2.0(vitest@1.2.0)
- '@vitest/utils': 1.2.0
- acorn-walk: 8.3.1
+ '@types/node': 20.11.5
+ '@vitest/expect': 1.2.1
+ '@vitest/runner': 1.2.1
+ '@vitest/snapshot': 1.2.1
+ '@vitest/spy': 1.2.1
+ '@vitest/ui': 1.2.1(vitest@1.2.1)
+ '@vitest/utils': 1.2.1
+ acorn-walk: 8.3.2
cac: 6.7.14
chai: 4.3.10
debug: 4.3.4
@@ -9616,8 +9644,8 @@ packages:
strip-literal: 1.3.0
tinybench: 2.5.1
tinypool: 0.8.1
- vite: 5.0.11(@types/node@20.11.0)
- vite-node: 1.2.0(@types/node@20.11.0)
+ vite: 5.0.11(@types/node@20.11.5)
+ vite-node: 1.2.1(@types/node@20.11.5)
why-is-node-running: 2.2.2
transitivePeerDependencies:
- less
@@ -9628,7 +9656,7 @@ packages:
- supports-color
- terser
- /vue-demi@0.13.11(vue@3.4.13):
+ /vue-demi@0.13.11(vue@3.4.15):
resolution: {integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==}
engines: {node: '>=12'}
hasBin: true
@@ -9640,10 +9668,10 @@ packages:
'@vue/composition-api':
optional: true
dependencies:
- vue: 3.4.13(typescript@5.2.2)
+ vue: 3.4.15(typescript@5.2.2)
dev: false
- /vue-demi@0.14.6(vue@3.4.13):
+ /vue-demi@0.14.6(vue@3.4.15):
resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==}
engines: {node: '>=12'}
hasBin: true
@@ -9655,7 +9683,7 @@ packages:
'@vue/composition-api':
optional: true
dependencies:
- vue: 3.4.13(typescript@5.2.2)
+ vue: 3.4.15(typescript@5.2.2)
dev: false
/vue-eslint-parser@9.3.2(eslint@8.56.0):
@@ -9676,34 +9704,34 @@ packages:
- supports-color
dev: true
- /vue@3.4.13(typescript@5.2.2):
- resolution: {integrity: sha512-FE3UZ0p+oUZTwz+SzlH/hDFg+XsVRFvwmx0LXjdD1pRK/cO4fu5v6ltAZji4za4IBih3dV78elUK3di8v3pWIg==}
+ /vue@3.4.15(typescript@5.2.2):
+ resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
- '@vue/compiler-dom': 3.4.13
- '@vue/compiler-sfc': 3.4.13
- '@vue/runtime-dom': 3.4.13
- '@vue/server-renderer': 3.4.13(vue@3.4.13)
- '@vue/shared': 3.4.13
+ '@vue/compiler-dom': 3.4.15
+ '@vue/compiler-sfc': 3.4.15
+ '@vue/runtime-dom': 3.4.15
+ '@vue/server-renderer': 3.4.15(vue@3.4.15)
+ '@vue/shared': 3.4.15
typescript: 5.2.2
- /vue@3.4.13(typescript@5.3.3):
- resolution: {integrity: sha512-FE3UZ0p+oUZTwz+SzlH/hDFg+XsVRFvwmx0LXjdD1pRK/cO4fu5v6ltAZji4za4IBih3dV78elUK3di8v3pWIg==}
+ /vue@3.4.15(typescript@5.3.3):
+ resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
- '@vue/compiler-dom': 3.4.13
- '@vue/compiler-sfc': 3.4.13
- '@vue/runtime-dom': 3.4.13
- '@vue/server-renderer': 3.4.13(vue@3.4.13)
- '@vue/shared': 3.4.13
+ '@vue/compiler-dom': 3.4.15
+ '@vue/compiler-sfc': 3.4.15
+ '@vue/runtime-dom': 3.4.15
+ '@vue/server-renderer': 3.4.15(vue@3.4.15)
+ '@vue/shared': 3.4.15
typescript: 5.3.3
dev: false