From daa96136b4a71d13e036f31634ab3b8f1ef7bd11 Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Sat, 18 Nov 2023 16:05:23 -0800 Subject: [PATCH] chore: Switching over to trpc-openapi fork --- apps/web/lib-server/appRouter.ts | 2 +- apps/web/package.json | 4 +- apps/web/pages/api/v0/[[...trpc]].ts | 3 +- package.json | 3 +- packages/cdk/package.json | 2 +- packages/engine-backend/package.json | 2 +- packages/engine-backend/router/_base.ts | 2 +- patches/trpc-openapi@1.2.0.patch | 53 ---------- pnpm-lock.yaml | 134 ++++++++++++------------ 9 files changed, 78 insertions(+), 127 deletions(-) delete mode 100644 patches/trpc-openapi@1.2.0.patch diff --git a/apps/web/lib-server/appRouter.ts b/apps/web/lib-server/appRouter.ts index 73dd0128..737e396b 100644 --- a/apps/web/lib-server/appRouter.ts +++ b/apps/web/lib-server/appRouter.ts @@ -1,6 +1,5 @@ import {clerkClient} from '@clerk/nextjs' import {TRPCError} from '@trpc/server' -import {generateOpenApiDocument} from 'trpc-openapi' import {getServerUrl} from '@usevenice/app-config/constants' import {flatRouter} from '@usevenice/engine-backend' @@ -9,6 +8,7 @@ import { publicProcedure, trpc, } from '@usevenice/engine-backend/router/_base' +import {generateOpenApiDocument} from '@usevenice/trpc-openapi' import {z} from '@usevenice/util' import {zAuth} from '@/lib-common/schemas' diff --git a/apps/web/package.json b/apps/web/package.json index f09d4f17..a98a173d 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -29,6 +29,7 @@ "@usevenice/engine-backend": "workspace:*", "@usevenice/engine-frontend": "workspace:*", "@usevenice/integration-postgres": "workspace:*", + "@usevenice/trpc-openapi": "1.3.6", "@usevenice/ui": "workspace:*", "@usevenice/util": "workspace:*", "commandbar": "1.7.3", @@ -48,8 +49,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "superjson": "1.9.1", - "swagger2openapi": "7.0.8", - "trpc-openapi": "1.2.0" + "swagger2openapi": "7.0.8" }, "devDependencies": { "@sentry/cli": "2.13.0", diff --git a/apps/web/pages/api/v0/[[...trpc]].ts b/apps/web/pages/api/v0/[[...trpc]].ts index e8c937a1..578183a4 100644 --- a/apps/web/pages/api/v0/[[...trpc]].ts +++ b/apps/web/pages/api/v0/[[...trpc]].ts @@ -1,7 +1,8 @@ import '@usevenice/app-config/register.node' import type {NextApiHandler} from 'next' -import {createOpenApiNextHandler} from 'trpc-openapi' + +import {createOpenApiNextHandler} from '@usevenice/trpc-openapi' import {respondToCORS} from '@/lib-server' import {appRouter} from '@/lib-server/appRouter' diff --git a/package.json b/package.json index 65529a40..5f511a47 100644 --- a/package.json +++ b/package.json @@ -98,8 +98,7 @@ "firebase@9.8.1": "patches/firebase@9.8.1.patch", "micro-memoize@4.0.10": "patches/micro-memoize@4.0.10.patch", "zod@3.21.4": "patches/zod@3.21.4.patch", - "@nangohq/frontend@0.33.8": "patches/@nangohq__frontend@0.33.8.patch", - "trpc-openapi@1.2.0": "patches/trpc-openapi@1.2.0.patch" + "@nangohq/frontend@0.33.8": "patches/@nangohq__frontend@0.33.8.patch" }, "peerDependencyRules": { "allowedVersions": { diff --git a/packages/cdk/package.json b/packages/cdk/package.json index c9c53abb..e9512eb4 100644 --- a/packages/cdk/package.json +++ b/packages/cdk/package.json @@ -14,7 +14,7 @@ "@nangohq/frontend": "0.33.8", "@types/jsonwebtoken": "9.0.2", "@types/react": "*", - "trpc-openapi": "1.2.0" + "@usevenice/trpc-openapi": "1.3.6" }, "peerDependencies": { "react": "*" diff --git a/packages/engine-backend/package.json b/packages/engine-backend/package.json index d7cd9f32..1c626e24 100644 --- a/packages/engine-backend/package.json +++ b/packages/engine-backend/package.json @@ -11,6 +11,6 @@ "inngest": "1.3.1" }, "devDependencies": { - "trpc-openapi": "1.2.0" + "@usevenice/trpc-openapi": "1.3.6" } } diff --git a/packages/engine-backend/router/_base.ts b/packages/engine-backend/router/_base.ts index 7c53a235..17d336c9 100644 --- a/packages/engine-backend/router/_base.ts +++ b/packages/engine-backend/router/_base.ts @@ -1,7 +1,7 @@ import {initTRPC, TRPCError} from '@trpc/server' -import type {OpenApiMeta} from 'trpc-openapi' import {getExtEndUserId, hasRole} from '@usevenice/cdk' +import type {OpenApiMeta} from '@usevenice/trpc-openapi' import {HTTPError} from '@usevenice/util' import type {RouterContext} from '../context' diff --git a/patches/trpc-openapi@1.2.0.patch b/patches/trpc-openapi@1.2.0.patch deleted file mode 100644 index 4249b29d..00000000 --- a/patches/trpc-openapi@1.2.0.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff --git a/dist/adapters/node-http/core.js b/dist/adapters/node-http/core.js -index ad1b3e5d8fc9d5a9dcdcb5c719f2a3a66fc5f29a..d55f2fcff198112d7faca321d886f60eb1514fcc 100644 ---- a/dist/adapters/node-http/core.js -+++ b/dist/adapters/node-http/core.js -@@ -122,6 +122,7 @@ const createOpenApiNodeHttpHandler = (opts) => { - const statusCode = (_h = (_g = meta === null || meta === void 0 ? void 0 : meta.status) !== null && _g !== void 0 ? _g : errors_1.TRPC_ERROR_CODE_HTTP_STATUS[error.code]) !== null && _h !== void 0 ? _h : 500; - const headers = (_j = meta === null || meta === void 0 ? void 0 : meta.headers) !== null && _j !== void 0 ? _j : {}; - const body = { -+ ...errorShape, // Pass the formatting through... - message: isInputValidationError - ? 'Input validation failed' - : (_l = (_k = errorShape === null || errorShape === void 0 ? void 0 : errorShape.message) !== null && _k !== void 0 ? _k : error.message) !== null && _l !== void 0 ? _l : 'An error occurred', -diff --git a/dist/types.d.ts b/dist/types.d.ts -index d93e38e020d89bef3e615c44fe687b10c8874417..956b349a0dda132bcdd7c255e8ae9946f41ccffd 100644 ---- a/dist/types.d.ts -+++ b/dist/types.d.ts -@@ -1,7 +1,8 @@ - import { Procedure, ProcedureParams, Router } from '@trpc/server'; - import type { RootConfig } from '@trpc/server/dist/core/internals/config'; --import { TRPC_ERROR_CODE_KEY } from '@trpc/server/rpc'; --import type { RouterDef } from '@trpc/server/src/core/router'; -+// PATCH: Courtesy of https://github.com/jlalmes/trpc-openapi/pull/411 -+import type { RouterDef } from '@trpc/server/dist/core/router'; -+import { TRPC_ERROR_CODE_KEY } from '@trpc/server/dist/rpc'; - import { OpenAPIV3 } from 'openapi-types'; - import { ZodIssue } from 'zod'; - export type OpenApiMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE'; -diff --git a/dist/utils/zod.js b/dist/utils/zod.js -index f9b479f56b52ceea1cab9b581c7dcd27d500d5d6..89cc069f92ea530e94a8cb4016bbd54011aaabde 100644 ---- a/dist/utils/zod.js -+++ b/dist/utils/zod.js -@@ -27,6 +27,21 @@ const instanceofZodTypeLikeVoid = (type) => { - }; - exports.instanceofZodTypeLikeVoid = instanceofZodTypeLikeVoid; - const unwrapZodType = (type, unwrapPreprocess) => { -+ // This will fail at runtime because we are not properly coercing to array type yet -+ if ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodArray)) { -+ return (0, exports.unwrapZodType)(type.element, unwrapPreprocess); -+ } -+ // Works fine -+ if ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodEnum)) { -+ return (0, exports.unwrapZodType)(zod_1.z.string(), unwrapPreprocess); -+ } -+ if ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodNullable)) { -+ return (0, exports.unwrapZodType)(type.unwrap(), unwrapPreprocess); -+ } -+ if ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodBranded)) { -+ return (0, exports.unwrapZodType)(type.unwrap(), unwrapPreprocess); -+ } -+ // --- end of patch --- - if ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodOptional)) { - return (0, exports.unwrapZodType)(type.unwrap(), unwrapPreprocess); - } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 63d6120a..e61a2943 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,9 +33,6 @@ patchedDependencies: micro-memoize@4.0.10: hash: hko3q5jvea7ey3trpjtkqgcale path: patches/micro-memoize@4.0.10.patch - trpc-openapi@1.2.0: - hash: nbzkatuunrxf3p26z77zyuzudy - path: patches/trpc-openapi@1.2.0.patch zod@3.21.4: hash: bzwjzhue3hmpww5lnv24u5k2ru path: patches/zod@3.21.4.patch @@ -533,6 +530,9 @@ importers: '@usevenice/integration-postgres': specifier: workspace:* version: link:../../integrations/integration-postgres + '@usevenice/trpc-openapi': + specifier: 1.3.6 + version: 1.3.6(@trpc/server@10.40.0)(zod@3.21.4) '@usevenice/ui': specifier: workspace:* version: link:../../packages/ui @@ -593,9 +593,6 @@ importers: swagger2openapi: specifier: 7.0.8 version: 7.0.8 - trpc-openapi: - specifier: 1.2.0 - version: 1.2.0(patch_hash=nbzkatuunrxf3p26z77zyuzudy)(@trpc/server@10.40.0)(zod@3.21.4) devDependencies: '@sentry/cli': specifier: 2.13.0 @@ -1056,6 +1053,12 @@ importers: specifier: workspace:* version: link:../../packages/util + integrations/integration-vercel: + devDependencies: + openapi-typescript: + specifier: 6.7.1 + version: 6.7.1 + integrations/integration-webhook: dependencies: '@usevenice/cdk': @@ -1126,9 +1129,9 @@ importers: '@types/react': specifier: 18.0.27 version: 18.0.27 - trpc-openapi: - specifier: 1.2.0 - version: 1.2.0(patch_hash=nbzkatuunrxf3p26z77zyuzudy)(@trpc/server@10.40.0)(zod@3.21.4) + '@usevenice/trpc-openapi': + specifier: 1.3.6 + version: 1.3.6(@trpc/server@10.40.0)(zod@3.21.4) packages/connect: dependencies: @@ -1164,9 +1167,9 @@ importers: specifier: 1.3.1 version: 1.3.1 devDependencies: - trpc-openapi: - specifier: 1.2.0 - version: 1.2.0(patch_hash=nbzkatuunrxf3p26z77zyuzudy)(@trpc/server@10.40.0)(zod@3.21.4) + '@usevenice/trpc-openapi': + specifier: 1.3.6 + version: 1.3.6(@trpc/server@10.40.0)(zod@3.21.4) packages/engine-frontend: dependencies: @@ -6784,6 +6787,21 @@ packages: eslint-visitor-keys: 3.3.0 dev: true + /@usevenice/trpc-openapi@1.3.6(@trpc/server@10.40.0)(zod@3.21.4): + resolution: {integrity: sha512-XA8fIuR6Zc/Fsf15DUdNLjwyP+55ldg7s/q/9av3io+pmxvwYZosDiBiDBzsOYB40h92aPZwXdx/wuZ9mUqKgQ==} + peerDependencies: + '@trpc/server': ^10.0.0 + zod: ^3.14.4 + dependencies: + '@trpc/server': 10.40.0 + co-body: 6.1.0 + h3: 1.8.2 + lodash.clonedeep: 4.5.0 + node-mocks-http: 1.13.0 + openapi3-ts: 4.1.2 + zod: 3.21.4(patch_hash=bzwjzhue3hmpww5lnv24u5k2ru) + zod-openapi: 2.11.0(zod@3.21.4) + /@webassemblyjs/ast@1.11.1: resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==} dependencies: @@ -7198,7 +7216,7 @@ packages: resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 get-intrinsic: 1.2.2 @@ -7219,7 +7237,7 @@ packages: resolution: {integrity: sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.0 @@ -7230,7 +7248,7 @@ packages: resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.0 @@ -7240,7 +7258,7 @@ packages: resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.0 @@ -7249,7 +7267,7 @@ packages: /array.prototype.tosorted@1.1.2: resolution: {integrity: sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 es-shim-unscopables: 1.0.0 @@ -7821,7 +7839,6 @@ packages: function-bind: 1.1.2 get-intrinsic: 1.2.2 set-function-length: 1.1.1 - dev: true /call-me-maybe@1.0.1: resolution: {integrity: sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==} @@ -8710,7 +8727,6 @@ packages: get-intrinsic: 1.2.2 gopd: 1.0.1 has-property-descriptors: 1.0.0 - dev: true /define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} @@ -9024,11 +9040,11 @@ packages: resolution: {integrity: sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 es-to-primitive: 1.2.1 - function-bind: 1.1.1 + function-bind: 1.1.2 function.prototype.name: 1.1.5 - get-intrinsic: 1.1.3 + get-intrinsic: 1.2.2 get-symbol-description: 1.0.0 has: 1.0.3 has-property-descriptors: 1.0.0 @@ -9040,7 +9056,7 @@ packages: is-shared-array-buffer: 1.0.2 is-string: 1.0.7 is-weakref: 1.0.2 - object-inspect: 1.12.2 + object-inspect: 1.13.1 object-keys: 1.1.1 object.assign: 4.1.4 regexp.prototype.flags: 1.4.3 @@ -9099,7 +9115,7 @@ packages: resolution: {integrity: sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==} dependencies: asynciterator.prototype: 1.0.0 - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 es-set-tostringtag: 2.0.2 @@ -10236,7 +10252,7 @@ packages: resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.1.4 es-abstract: 1.20.4 functions-have-names: 1.2.3 @@ -10816,7 +10832,7 @@ packages: resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} engines: {node: '>= 0.4.0'} dependencies: - function-bind: 1.1.1 + function-bind: 1.1.2 /hash-stream-validation@0.2.4: resolution: {integrity: sha512-Gjzu0Xn7IagXVkSu9cSFuK1fqzwtLwFhNhVL8IFJijRNMgUttFbBSIAzKuSIrsFMO1+g1RlsoN49zPIbwPDMGQ==} @@ -11180,7 +11196,7 @@ packages: resolution: {integrity: sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.1.3 + get-intrinsic: 1.2.2 has: 1.0.3 side-channel: 1.0.4 dev: true @@ -11264,7 +11280,7 @@ packages: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: false @@ -11414,7 +11430,7 @@ packages: /is-finalizationregistry@1.0.2: resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 dev: true /is-fullwidth-code-point@1.0.0: @@ -11585,7 +11601,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 @@ -11613,7 +11629,7 @@ packages: /is-weakset@2.0.2: resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 get-intrinsic: 1.2.2 dev: true @@ -14101,7 +14117,7 @@ packages: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.1.4 has-symbols: 1.0.3 object-keys: 1.1.1 @@ -14111,7 +14127,7 @@ packages: resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -14120,7 +14136,7 @@ packages: resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -14128,7 +14144,7 @@ packages: /object.groupby@1.0.1: resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 get-intrinsic: 1.2.2 @@ -14152,7 +14168,7 @@ packages: resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 dev: true @@ -14209,9 +14225,6 @@ packages: resolution: {integrity: sha512-XpeCy01X6L5EpP+6Hc3jWN7rMZJ+/k1lwki/kTmWzbVhdPie3jd5O2ZtedEx8Yp58icJ0osVldLMrTB/zslQXA==} dev: true - /openapi-types@12.1.3: - resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==} - /openapi-typescript-codegen@0.23.0: resolution: {integrity: sha512-gOJXy5g3H3HlLpVNN+USrNK2i2KYBmDczk9Xk34u6JorwrGiDJZUj+al4S+i9TXdfUQ/ZaLxE59Xf3wqkxGfqA==} hasBin: true @@ -14278,7 +14291,6 @@ packages: resolution: {integrity: sha512-B7gOkwsYMZO7BZXwJzXCuVagym2xhqsrilVvV0dnq2Di4+iLUXKVX9gOK23ZqaAHZOwABXN0QTdW8QnkUTX6DA==} dependencies: yaml: 2.3.0 - dev: false /optionator@0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} @@ -15828,7 +15840,7 @@ packages: resolution: {integrity: sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 get-intrinsic: 1.2.2 @@ -15863,7 +15875,7 @@ packages: resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.1.4 functions-have-names: 1.2.3 dev: true @@ -15872,7 +15884,7 @@ packages: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 set-function-name: 2.0.1 dev: true @@ -16174,7 +16186,7 @@ packages: resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 get-intrinsic: 1.2.2 has-symbols: 1.0.3 isarray: 2.0.5 @@ -16343,7 +16355,6 @@ packages: get-intrinsic: 1.2.2 gopd: 1.0.1 has-property-descriptors: 1.0.0 - dev: true /set-function-name@2.0.1: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} @@ -17063,7 +17074,7 @@ packages: /string.prototype.matchall@4.0.10: resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 es-abstract: 1.22.3 get-intrinsic: 1.2.2 @@ -17108,7 +17119,7 @@ packages: /string.prototype.trimend@1.0.5: resolution: {integrity: sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.1.4 es-abstract: 1.20.4 dev: true @@ -17124,7 +17135,7 @@ packages: /string.prototype.trimstart@1.0.5: resolution: {integrity: sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.1.4 es-abstract: 1.20.4 dev: true @@ -17738,22 +17749,6 @@ packages: resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==} dev: false - /trpc-openapi@1.2.0(patch_hash=nbzkatuunrxf3p26z77zyuzudy)(@trpc/server@10.40.0)(zod@3.21.4): - resolution: {integrity: sha512-pfYoCd/3KYXWXvUPZBKJw455OOwngKN/6SIcj7Yit19OMLJ+8yVZkEvGEeg5wUSwfsiTdRsKuvqkRPXVSwV7ew==} - peerDependencies: - '@trpc/server': ^10.0.0 - zod: ^3.14.4 - dependencies: - '@trpc/server': 10.40.0 - co-body: 6.1.0 - h3: 1.8.2 - lodash.clonedeep: 4.5.0 - node-mocks-http: 1.13.0 - openapi-types: 12.1.3 - zod: 3.21.4(patch_hash=bzwjzhue3hmpww5lnv24u5k2ru) - zod-to-json-schema: 3.21.1(zod@3.21.4) - patched: true - /ts-brand@0.0.2: resolution: {integrity: sha512-UhSzWY4On9ZHIj6DKkRYVN/8OaprbLAZ3b/Y2AJwdl6oozSABsQ0PvwDh4vOVdkvOtWQOkIrjctZ1kj8YfF3jA==} @@ -18661,7 +18656,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 @@ -18940,12 +18935,21 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + /zod-openapi@2.11.0(zod@3.21.4): + resolution: {integrity: sha512-nG/l7AzEguGnnWrLmVLZfk80c6G79LQFlIVG3oby203DLcQ1X8lged82pkxPZoD6ytdutoKTyKLles760+mZUw==} + engines: {node: '>=16.11'} + peerDependencies: + zod: ^3.21.4 + dependencies: + zod: 3.21.4(patch_hash=bzwjzhue3hmpww5lnv24u5k2ru) + /zod-to-json-schema@3.21.1(zod@3.21.4): resolution: {integrity: sha512-y5g0MPxDq+YG/T+cHGPYH4PcBpyCqwK6wxeJ76MR563y0gk/14HKfebq8xHiItY7lkc9GDFygCnkvNDTvAhYAg==} peerDependencies: zod: ^3.21.4 dependencies: zod: 3.21.4(patch_hash=bzwjzhue3hmpww5lnv24u5k2ru) + dev: false /zod@3.21.4(patch_hash=bzwjzhue3hmpww5lnv24u5k2ru): resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==}