🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
sdks
Max Deichmannfb07e45cfa15
diff --git a/package-lock.json b/package-lock.jsonindex ba5b81e44b..3e42b041a1 100644--- a/package-lock.json+++ b/package-lock.json@@ -10,6 +10,7 @@"hasInstallScript": true,"dependencies": {"@next-auth/prisma-adapter": "^1.0.5",+ "@openapitools/openapi-generator-cli": "^2.6.0","@prisma/client": "^4.11.0","@t3-oss/env-nextjs": "^0.2.1","@tanstack/react-query": "^4.28.0",@@ -19,16 +20,18 @@"@trpc/server": "^10.18.0","next": "^13.4.1","next-auth": "^4.21.0",+ "next-swagger-doc": "^0.3.6","react": "18.2.0","react-dom": "18.2.0","superjson": "1.12.2",+ "swagger-ui-react": "^4.18.3","zod": "^3.21.4"},"devDependencies": {"@types/eslint": "^8.21.3","@types/node": "^18.16.13","@types/prettier": "^2.7.2",- "@types/react": "^18.0.28",+ "@types/react": "^18.2.6","@types/react-dom": "^18.0.11","@typescript-eslint/eslint-plugin": "^5.56.0","@typescript-eslint/parser": "^5.56.0",@@ -39,6 +42,7 @@"prettier": "^2.8.6","prettier-plugin-tailwindcss": "^0.2.6","prisma": "^4.11.0",+ "swagger-jsdoc": "^6.2.8","tailwindcss": "^3.3.0","ts-node": "^10.9.1","typescript": "^5.0.4"@@ -56,6 +60,47 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/@apidevtools/json-schema-ref-parser": {+ "version": "9.1.2",+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz",+ "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==",+ "dependencies": {+ "@jsdevtools/ono": "^7.1.3",+ "@types/json-schema": "^7.0.6",+ "call-me-maybe": "^1.0.1",+ "js-yaml": "^4.1.0"+ }+ },+ "node_modules/@apidevtools/openapi-schemas": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz",+ "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@apidevtools/swagger-methods": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz",+ "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg=="+ },+ "node_modules/@apidevtools/swagger-parser": {+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.3.tgz",+ "integrity": "sha512-sNiLY51vZOmSPFZA5TF35KZ2HbgYklQnTSDnkghamzLb3EkNtcQnrBQEj5AOCxHpTtXpqMCRM1CrmV2rG6nw4g==",+ "dev": true,+ "dependencies": {+ "@apidevtools/json-schema-ref-parser": "^9.0.6",+ "@apidevtools/openapi-schemas": "^2.0.4",+ "@apidevtools/swagger-methods": "^3.0.2",+ "@jsdevtools/ono": "^7.1.3",+ "call-me-maybe": "^1.0.1",+ "z-schema": "^5.0.1"+ },+ "peerDependencies": {+ "openapi-types": ">=7"+ }+ },"node_modules/@babel/runtime": {"version": "7.21.5","resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.5.tgz",@@ -67,6 +112,23 @@"node": ">=6.9.0"}},+ "node_modules/@babel/runtime-corejs3": {+ "version": "7.21.5",+ "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.21.5.tgz",+ "integrity": "sha512-FRqFlFKNazWYykft5zvzuEl1YyTDGsIRrjV9rvxvYkUC7W/ueBng1X68Xd6uRMzAaJ0xMKn08/wem5YS1lpX8w==",+ "dependencies": {+ "core-js-pure": "^3.25.1",+ "regenerator-runtime": "^0.13.11"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@braintree/sanitize-url": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz",+ "integrity": "sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg=="+ },"node_modules/@cspotcode/source-map-support": {"version": "0.8.1","resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",@@ -232,6 +294,72 @@"integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==","dev": true},+ "node_modules/@jsdevtools/ono": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",+ "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg=="+ },+ "node_modules/@lukeed/csprng": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz",+ "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@nestjs/axios": {+ "version": "0.0.8",+ "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-0.0.8.tgz",+ "integrity": "sha512-oJyfR9/h9tVk776il0829xyj3b2e81yTu6HjPraxynwNtMNGqZBHHmAQL24yMB3tVbBM0RvG3eUXH8+pRCGwlg==",+ "dependencies": {+ "axios": "0.27.2"+ },+ "peerDependencies": {+ "@nestjs/common": "^7.0.0 || ^8.0.0",+ "reflect-metadata": "^0.1.12",+ "rxjs": "^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/@nestjs/common": {+ "version": "8.4.7",+ "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-8.4.7.tgz",+ "integrity": "sha512-m/YsbcBal+gA5CFrDpqXqsSfylo+DIQrkFY3qhVIltsYRfu8ct8J9pqsTO6OPf3mvqdOpFGrV5sBjoyAzOBvsw==",+ "peer": true,+ "dependencies": {+ "axios": "0.27.2",+ "iterare": "1.2.1",+ "tslib": "2.4.0",+ "uuid": "8.3.2"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/nest"+ },+ "peerDependencies": {+ "cache-manager": "*",+ "class-transformer": "*",+ "class-validator": "*",+ "reflect-metadata": "^0.1.12",+ "rxjs": "^7.1.0"+ },+ "peerDependenciesMeta": {+ "cache-manager": {+ "optional": true+ },+ "class-transformer": {+ "optional": true+ },+ "class-validator": {+ "optional": true+ }+ }+ },+ "node_modules/@nestjs/common/node_modules/tslib": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",+ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",+ "peer": true+ },"node_modules/@next-auth/prisma-adapter": {"version": "1.0.6","resolved": "https://registry.npmjs.org/@next-auth/prisma-adapter/-/prisma-adapter-1.0.6.tgz",@@ -425,6 +553,168 @@"node": ">= 8"}},+ "node_modules/@nuxtjs/opencollective": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz",+ "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==",+ "dependencies": {+ "chalk": "^4.1.0",+ "consola": "^2.15.0",+ "node-fetch": "^2.6.1"+ },+ "bin": {+ "opencollective": "bin/opencollective.js"+ },+ "engines": {+ "node": ">=8.0.0",+ "npm": ">=5.0.0"+ }+ },+ "node_modules/@openapitools/openapi-generator-cli": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.6.0.tgz",+ "integrity": "sha512-M/aOpR7G+Y1nMf+ofuar8pGszajgfhs1aSPSijkcr2tHTxKAI3sA3YYcOGbszxaNRKFyvOcDq+KP9pcJvKoCHg==",+ "hasInstallScript": true,+ "dependencies": {+ "@nestjs/axios": "0.0.8",+ "@nestjs/common": "9.3.11",+ "@nestjs/core": "9.3.11",+ "@nuxtjs/opencollective": "0.3.2",+ "chalk": "4.1.2",+ "commander": "8.3.0",+ "compare-versions": "4.1.4",+ "concurrently": "6.5.1",+ "console.table": "0.10.0",+ "fs-extra": "10.1.0",+ "glob": "7.1.6",+ "inquirer": "8.2.5",+ "lodash": "4.17.21",+ "reflect-metadata": "0.1.13",+ "rxjs": "7.8.0",+ "tslib": "2.0.3"+ },+ "bin": {+ "openapi-generator-cli": "main.js"+ },+ "engines": {+ "node": ">=10.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/openapi_generator"+ }+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/@nestjs/common": {+ "version": "9.3.11",+ "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.3.11.tgz",+ "integrity": "sha512-IFZ2G/5UKWC2Uo7tJ4SxGed2+aiA+sJyWeWsGTogKVDhq90oxVBToh+uCDeI31HNUpqYGoWmkletfty42zUd8A==",+ "dependencies": {+ "iterare": "1.2.1",+ "tslib": "2.5.0",+ "uid": "2.0.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/nest"+ },+ "peerDependencies": {+ "cache-manager": "<=5",+ "class-transformer": "*",+ "class-validator": "*",+ "reflect-metadata": "^0.1.12",+ "rxjs": "^7.1.0"+ },+ "peerDependenciesMeta": {+ "cache-manager": {+ "optional": true+ },+ "class-transformer": {+ "optional": true+ },+ "class-validator": {+ "optional": true+ }+ }+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/@nestjs/common/node_modules/tslib": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",+ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/@nestjs/core": {+ "version": "9.3.11",+ "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-9.3.11.tgz",+ "integrity": "sha512-CI27a2JFd5rvvbgkalWqsiwQNhcP4EAG5BUK8usjp29wVp1kx30ghfBT8FLqIgmkRVo65A0IcEnWsxeXMntkxQ==",+ "hasInstallScript": true,+ "dependencies": {+ "@nuxtjs/opencollective": "0.3.2",+ "fast-safe-stringify": "2.1.1",+ "iterare": "1.2.1",+ "path-to-regexp": "3.2.0",+ "tslib": "2.5.0",+ "uid": "2.0.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/nest"+ },+ "peerDependencies": {+ "@nestjs/common": "^9.0.0",+ "@nestjs/microservices": "^9.0.0",+ "@nestjs/platform-express": "^9.0.0",+ "@nestjs/websockets": "^9.0.0",+ "reflect-metadata": "^0.1.12",+ "rxjs": "^7.1.0"+ },+ "peerDependenciesMeta": {+ "@nestjs/microservices": {+ "optional": true+ },+ "@nestjs/platform-express": {+ "optional": true+ },+ "@nestjs/websockets": {+ "optional": true+ }+ }+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/@nestjs/core/node_modules/tslib": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",+ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/commander": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": {+ "version": "7.1.6",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.0.4",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@openapitools/openapi-generator-cli/node_modules/tslib": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",+ "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ=="+ },"node_modules/@panva/hkdf": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@panva/hkdf/-/hkdf-1.1.1.tgz",@@ -491,6 +781,367 @@"integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==","dev": true},+ "node_modules/@swagger-api/apidom-ast": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ast/-/apidom-ast-0.69.3.tgz",+ "integrity": "sha512-orGw/gihk7RmorxibwalthDS58B7QaEBd31fK+/aFx6QqEO1tEO35F850BiL2B5C8TaK8C2Tey01AZTXCxYmfw==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2",+ "unraw": "=2.0.1"+ }+ },+ "node_modules/@swagger-api/apidom-core": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-core/-/apidom-core-0.69.3.tgz",+ "integrity": "sha512-EIQiJUuT/V9nGkHOYYFP0QNgAW7Y4QwrQzldDzy9ltcHbOKY3TNh/QzYvO0+HvKSv9W7u7WTMH/kaRaSsaZsGw==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-ast": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "minim": "=0.23.8",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "short-unique-id": "=4.4.4",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-json-pointer": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-json-pointer/-/apidom-json-pointer-0.69.3.tgz",+ "integrity": "sha512-VYXqLY8f2fkaS/d+vVQEMEOEZRXAgGm5tCMx4C7uaU+wC+SKPH/zTh+qElbkaXQr4nfLjbphBsHh31doCyBEjw==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-ns-api-design-systems": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-api-design-systems/-/apidom-ns-api-design-systems-0.69.3.tgz",+ "integrity": "sha512-oTwIG8LyKnU4/m8BtAOc+X572+nH4gjxITYtw0L8f4a8Iv1b8LHS0KRzG7c/LVUGtMijpv3aBKPV6QvWhjrrtg==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-1": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-asyncapi-2": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-asyncapi-2/-/apidom-ns-asyncapi-2-0.69.3.tgz",+ "integrity": "sha512-98HgNbZWqPHqf+EyXs/GcAnayA08/mfN7YlXIRRIys+rll4M/1b+ap+BkTnJ+le3Kra7DhIQ8ucQuEJ+Ik1Sxg==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-json-schema-draft-7": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-json-schema-draft-4": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-4/-/apidom-ns-json-schema-draft-4-0.69.3.tgz",+ "integrity": "sha512-/tMeoz1IHEblc3OwWC812NQFLITOnexjGVujG5Wvsr9ZnTkRb+0g7CbXuooujwfcEY+++o2+kCUgy4SBQFIIlQ==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-json-schema-draft-6": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-6/-/apidom-ns-json-schema-draft-6-0.69.3.tgz",+ "integrity": "sha512-B/6zPFYW1xE66Uc/jOdZVZMEe0+444heTMlpGJGejTy6pNRxCTOsv+B63QzctJv410dHPxGeMRZMeff9wQPBDA==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-json-schema-draft-4": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-json-schema-draft-7": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-7/-/apidom-ns-json-schema-draft-7-0.69.3.tgz",+ "integrity": "sha512-EkgPlKPQZ3XBkbxAFh2lXsLcyIwRikARFD3RlupsKjAHVFbH7cImbPxb+MnjacfwgVreMk34OWuXqjnGZ8lG1Q==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-json-schema-draft-6": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-openapi-3-0": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-openapi-3-0/-/apidom-ns-openapi-3-0-0.69.3.tgz",+ "integrity": "sha512-iScwP+SzX8SJMrgChZbdS60Ode/zXfesNaDA+HkNBLbfSrri4/C5FTB0gfWOG0gCGPq+1K5dHlgLrEgogfAARw==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-json-schema-draft-4": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-ns-openapi-3-1": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-openapi-3-1/-/apidom-ns-openapi-3-1-0.69.3.tgz",+ "integrity": "sha512-J+yIsTBTn7rzfj+vaCXRRdOCrL4kxwnS3P/h4lXb82EZnPU/EbJi+C0LK7O24/vXpeBVRr+OpDfnhpospanMJg==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-0": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-api-design-systems-json": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-api-design-systems-json/-/apidom-parser-adapter-api-design-systems-json-0.69.3.tgz",+ "integrity": "sha512-y8xOaSaZVphITajH12T1EHLuZB9kw79DTdQRYoMC+BqZQbsPv3/mLWXS1STQU9oR/PZBA9FJcgAFdThaRgi8UA==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-api-design-systems": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-json": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-api-design-systems-yaml": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-api-design-systems-yaml/-/apidom-parser-adapter-api-design-systems-yaml-0.69.3.tgz",+ "integrity": "sha512-zMc+Dy7zl7cT8YduaUEpvLkRDVfZp8jZ1v13VjueX/VhsSXK0DW+OX/Mc8CU1Qx6Gg6tUMKxqmILdXZwxCrh6Q==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-api-design-systems": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-asyncapi-json-2": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-asyncapi-json-2/-/apidom-parser-adapter-asyncapi-json-2-0.69.3.tgz",+ "integrity": "sha512-BbsBxxZxTMX2rKgVKJtqPoAsER0JvCe1pt3NUBLuQssugvpwaqimIsKC65dwspHFGSn0CVdBKA4n/XhZ3aT7tw==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-asyncapi-2": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-json": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-asyncapi-yaml-2/-/apidom-parser-adapter-asyncapi-yaml-2-0.69.3.tgz",+ "integrity": "sha512-lae39qaKrkls+iVzYuc9CUyCbRl80wNK8iBWriSVETv5IwlVS6wywtTxCqtzcpd5K+m9KqXAlSkd+Z2AS9cWuQ==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-asyncapi-2": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-json": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-json/-/apidom-parser-adapter-json-0.69.3.tgz",+ "integrity": "sha512-Z1CqG9OcV4WVESdQ1D0s5JUa2jeF8hpw4RupMDJ4lRoKTVeIDS5Qb7OOhIGeKpK2DgMep9SN2ULYJdgldPtq/A==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-ast": "^0.69.3",+ "@swagger-api/apidom-core": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2",+ "tree-sitter": "=0.20.1",+ "tree-sitter-json": "=0.20.0",+ "web-tree-sitter": "=0.20.7"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-openapi-json-3-0": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-json-3-0/-/apidom-parser-adapter-openapi-json-3-0-0.69.3.tgz",+ "integrity": "sha512-f5Xby5hAGy4VujkV74UA61UkSVRsNzhcBaW0IIapVVepFEclfU7J3dGvfkMIXv5Bg0infGeKddIUZUY61JN88w==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-0": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-json": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-openapi-json-3-1": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-json-3-1/-/apidom-parser-adapter-openapi-json-3-1-0.69.3.tgz",+ "integrity": "sha512-Yq3k/d89Nmf+ePD5EIIkhXNti2Ru5XMqOXDbNQGKHH00e252Q+c+QF2A7Pgdy0xP3oA9OoYTGHLtL0ncmzYB9A==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-1": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-json": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-yaml-3-0/-/apidom-parser-adapter-openapi-yaml-3-0-0.69.3.tgz",+ "integrity": "sha512-X4Qtg/0n0l2leWBBZC8+7Kj6eP3pqB4WCWlacoWuldz8WBDBuffTBmTV/qe6gKdI4DW6mX5ovxDf+tz2tr0ppQ==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-0": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-yaml-3-1/-/apidom-parser-adapter-openapi-yaml-3-1-0.69.3.tgz",+ "integrity": "sha512-ZW/2T92HZT2RQOPW1VOa78VyDYD5wwR9EGNKXBsfMCnl0zVHwhwwkn/GgsYS0VDk56t43ww5DHM976q4ukF6Ew==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-1": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-yaml-1-2/-/apidom-parser-adapter-yaml-1-2-0.69.3.tgz",+ "integrity": "sha512-HJ/OiXnVoUshwKrfaHDq4LfKeKxBsa6Bmo8NVdSZiRfeA1Y/fAx9mWW5xSzTADxmc6yA2MevnfIoq7W0NX6SSQ==",+ "optional": true,+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-ast": "^0.69.3",+ "@swagger-api/apidom-core": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2",+ "tree-sitter": "=0.20.1",+ "tree-sitter-yaml": "=0.5.0",+ "web-tree-sitter": "=0.20.7"+ }+ },+ "node_modules/@swagger-api/apidom-reference": {+ "version": "0.69.3",+ "resolved": "https://registry.npmjs.org/@swagger-api/apidom-reference/-/apidom-reference-0.69.3.tgz",+ "integrity": "sha512-dimoVsW4COR4TUTgOqTnXSZAIdYOepIudWOvca2fGOcXg85eBMS4xJlNHx1095Fm664y5y8DVxIYe1oLu9gjVA==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.7",+ "@swagger-api/apidom-core": "^0.69.3",+ "@types/ramda": "=0.29.0",+ "axios": "=1.3.6",+ "minimatch": "=7.4.3",+ "process": "=0.11.10",+ "ramda": "=0.29.0",+ "ramda-adjunct": "=4.0.0",+ "stampit": "=4.3.2"+ },+ "optionalDependencies": {+ "@swagger-api/apidom-json-pointer": "^0.69.3",+ "@swagger-api/apidom-ns-asyncapi-2": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-0": "^0.69.3",+ "@swagger-api/apidom-ns-openapi-3-1": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-api-design-systems-json": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-json": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "^0.69.3",+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.69.3"+ }+ },+ "node_modules/@swagger-api/apidom-reference/node_modules/axios": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.6.tgz",+ "integrity": "sha512-PEcdkk7JcdPiMDkvM4K6ZBRYq9keuVJsToxm2zQIM70Qqo2WHTdJZMXcG9X+RmRp2VPNUQC8W1RAGbgt6b1yMg==",+ "dependencies": {+ "follow-redirects": "^1.15.0",+ "form-data": "^4.0.0",+ "proxy-from-env": "^1.1.0"+ }+ },+ "node_modules/@swagger-api/apidom-reference/node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@swagger-api/apidom-reference/node_modules/minimatch": {+ "version": "7.4.3",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.3.tgz",+ "integrity": "sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/@swc/helpers": {"version": "0.5.1","resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.1.tgz",@@ -635,11 +1286,27 @@"integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==","dev": true},+ "node_modules/@types/hast": {+ "version": "2.3.4",+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz",+ "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/hoist-non-react-statics": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",+ "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",+ "dependencies": {+ "@types/react": "*",+ "hoist-non-react-statics": "^3.3.0"+ }+ },"node_modules/@types/json-schema": {"version": "7.0.11","resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",- "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",- "dev": true+ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ=="},"node_modules/@types/json5": {"version": "0.0.29",@@ -662,14 +1329,20 @@"node_modules/@types/prop-types": {"version": "15.7.5","resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",- "dev": true+ "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="+ },+ "node_modules/@types/ramda": {+ "version": "0.29.0",+ "resolved": "https://registry.npmjs.org/@types/ramda/-/ramda-0.29.0.tgz",+ "integrity": "sha512-TY9eKsklU43CmAbFJPKDUyBjleZ4EFAkbJeQRF4e8byGkOw1CjDcwg5EGa0Bgf0Kgs9BE9OU4UzQWnQDHnvMtA==",+ "dependencies": {+ "types-ramda": "^0.29.1"+ }},"node_modules/@types/react": {"version": "18.2.6","resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.6.tgz","integrity": "sha512-wRZClXn//zxCFW+ye/D2qY65UsYP1Fpex2YXorHc8awoNamkMZSvBxwxdYVInsHOZZd2Ppq8isnSzJL5Mpf8OA==",- "dev": true,"dependencies": {"@types/prop-types": "*","@types/scheduler": "*",@@ -680,7 +1353,7 @@"version": "18.2.4","resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz","integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==",- "dev": true,+ "devOptional": true,"dependencies": {"@types/react": "*"}@@ -688,8 +1361,7 @@"node_modules/@types/scheduler": {"version": "0.16.3","resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz",- "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==",- "dev": true+ "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ=="},"node_modules/@types/semver": {"version": "7.5.0",@@ -697,6 +1369,16 @@"integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==","dev": true},+ "node_modules/@types/unist": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz",+ "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ=="+ },+ "node_modules/@types/use-sync-external-store": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz",+ "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA=="+ },"node_modules/@typescript-eslint/eslint-plugin": {"version": "5.59.6","resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.6.tgz",@@ -885,6 +1567,11 @@"url": "https://opencollective.com/typescript-eslint"}},+ "node_modules/@yarnpkg/lockfile": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz",+ "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ=="+ },"node_modules/acorn": {"version": "8.8.2","resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",@@ -931,11 +1618,35 @@"url": "https://github.com/sponsors/epoberezkin"}},+ "node_modules/ansi-escapes": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",+ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",+ "dependencies": {+ "type-fest": "^0.21.3"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ansi-escapes/node_modules/type-fest": {+ "version": "0.21.3",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/ansi-regex": {"version": "5.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz","integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,"engines": {"node": ">=8"}@@ -944,7 +1655,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz","integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,"dependencies": {"color-convert": "^2.0.1"},@@ -974,18 +1684,69 @@"node": ">= 8"}},- "node_modules/arg": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",- "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",- "dev": true+ "node_modules/aproba": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",+ "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",+ "optional": true+ },+ "node_modules/are-we-there-yet": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",+ "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",+ "optional": true,+ "dependencies": {+ "delegates": "^1.0.0",+ "readable-stream": "^2.0.6"+ }},- "node_modules/argparse": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "node_modules/are-we-there-yet/node_modules/isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",+ "optional": true+ },+ "node_modules/are-we-there-yet/node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "optional": true,+ "dependencies": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "node_modules/are-we-there-yet/node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "optional": true+ },+ "node_modules/are-we-there-yet/node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "optional": true,+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==","dev": true},+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="+ },"node_modules/aria-query": {"version": "5.1.3","resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz",@@ -1091,6 +1852,27 @@"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==","dev": true},+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="+ },+ "node_modules/at-least-node": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/autolinker": {+ "version": "3.16.2",+ "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-3.16.2.tgz",+ "integrity": "sha512-JiYl7j2Z19F9NdTmirENSUUIIL/9MytEWtmzhfmsKPCp9E+G35Y0UNCMoM9tFigxT59qSc8Ml2dlZXOCVTYwuA==",+ "dependencies": {+ "tslib": "^2.3.0"+ }+ },"node_modules/autoprefixer": {"version": "10.4.14","resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz",@@ -1145,6 +1927,15 @@"node": ">=4"}},+ "node_modules/axios": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",+ "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",+ "dependencies": {+ "follow-redirects": "^1.14.9",+ "form-data": "^4.0.0"+ }+ },"node_modules/axobject-query": {"version": "3.1.1","resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz",@@ -1157,8 +1948,26 @@"node_modules/balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]},"node_modules/big-integer": {"version": "1.6.51",@@ -1178,6 +1987,16 @@"node": ">=8"}},+ "node_modules/bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "dependencies": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ }+ },"node_modules/bplist-parser": {"version": "0.2.0","resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz",@@ -1194,7 +2013,6 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",- "dev": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -1204,7 +2022,6 @@"version": "3.0.2","resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz","integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",- "dev": true,"dependencies": {"fill-range": "^7.0.1"},@@ -1240,6 +2057,29 @@"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"}},+ "node_modules/buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },"node_modules/bundle-name": {"version": "3.0.0","resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz",@@ -1270,7 +2110,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz","integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",- "dev": true,"dependencies": {"function-bind": "^1.1.1","get-intrinsic": "^1.0.2"@@ -1279,6 +2118,11 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/call-me-maybe": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz",+ "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ=="+ },"node_modules/callsites": {"version": "3.1.0","resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",@@ -1320,7 +2164,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz","integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,"dependencies": {"ansi-styles": "^4.1.0","supports-color": "^7.1.0"@@ -1332,6 +2175,38 @@"url": "https://github.com/chalk/chalk?sponsor=1"}},+ "node_modules/character-entities": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz",+ "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-legacy": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz",+ "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-reference-invalid": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz",+ "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chardet": {+ "version": "0.7.0",+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",+ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="+ },"node_modules/chokidar": {"version": "3.5.3","resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",@@ -1371,16 +2246,100 @@"node": ">= 6"}},+ "node_modules/chownr": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",+ "optional": true+ },+ "node_modules/ci-info": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",+ "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="+ },+ "node_modules/classnames": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz",+ "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="+ },+ "node_modules/cleye": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/cleye/-/cleye-1.2.1.tgz",+ "integrity": "sha512-DjoWA/dFn1rQypY4juFH4IvjVxXxld4o92bmkGPR+uZNqBMpvDXx1VUmL93p2R5CBwSWt83eEe/SLPqtQahZNg==",+ "dependencies": {+ "terminal-columns": "^1.4.1",+ "type-flag": "^2.1.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/cleye?sponsor=1"+ }+ },+ "node_modules/cli-cursor": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",+ "dependencies": {+ "restore-cursor": "^3.1.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-spinners": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz",+ "integrity": "sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-width": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",+ "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==",+ "engines": {+ "node": ">= 10"+ }+ },"node_modules/client-only": {"version": "0.0.1","resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz","integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="},+ "node_modules/cliui": {+ "version": "7.0.4",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.0",+ "wrap-ansi": "^7.0.0"+ }+ },+ "node_modules/clone": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/code-point-at": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",+ "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/color-convert": {"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz","integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,"dependencies": {"color-name": "~1.1.4"},@@ -1391,8 +2350,27 @@"node_modules/color-name": {"version": "1.1.4","resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/comma-separated-tokens": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",+ "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }},"node_modules/commander": {"version": "4.1.1",@@ -1403,11 +2381,88 @@"node": ">= 6"}},+ "node_modules/compare-versions": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz",+ "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw=="+ },"node_modules/concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="+ },+ "node_modules/concurrently": {+ "version": "6.5.1",+ "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.5.1.tgz",+ "integrity": "sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag==",+ "dependencies": {+ "chalk": "^4.1.0",+ "date-fns": "^2.16.1",+ "lodash": "^4.17.21",+ "rxjs": "^6.6.3",+ "spawn-command": "^0.0.2-1",+ "supports-color": "^8.1.0",+ "tree-kill": "^1.2.2",+ "yargs": "^16.2.0"+ },+ "bin": {+ "concurrently": "bin/concurrently.js"+ },+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/concurrently/node_modules/rxjs": {+ "version": "6.6.7",+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",+ "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",+ "dependencies": {+ "tslib": "^1.9.0"+ },+ "engines": {+ "npm": ">=2.0.0"+ }+ },+ "node_modules/concurrently/node_modules/supports-color": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "node_modules/concurrently/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/consola": {+ "version": "2.15.3",+ "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz",+ "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw=="+ },+ "node_modules/console-control-strings": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",+ "optional": true+ },+ "node_modules/console.table": {+ "version": "0.10.0",+ "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz",+ "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==",+ "dependencies": {+ "easy-table": "1.1.0"+ },+ "engines": {+ "node": "> 0.10"+ }},"node_modules/cookie": {"version": "0.5.0",@@ -1431,12 +2486,44 @@"url": "https://github.com/sponsors/mesqueeb"}},+ "node_modules/copy-to-clipboard": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz",+ "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==",+ "dependencies": {+ "toggle-selection": "^1.0.6"+ }+ },+ "node_modules/core-js-pure": {+ "version": "3.30.2",+ "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz",+ "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==",+ "hasInstallScript": true,+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/core-js"+ }+ },+ "node_modules/core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",+ "optional": true+ },"node_modules/create-require": {"version": "1.1.1","resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz","integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==","dev": true},+ "node_modules/cross-fetch": {+ "version": "3.1.6",+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz",+ "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==",+ "dependencies": {+ "node-fetch": "^2.6.11"+ }+ },"node_modules/cross-spawn": {"version": "7.0.3","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",@@ -1451,6 +2538,11 @@"node": ">= 8"}},+ "node_modules/css.escape": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="+ },"node_modules/cssesc": {"version": "3.0.0","resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",@@ -1466,8 +2558,7 @@"node_modules/csstype": {"version": "3.1.2","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",- "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",- "dev": true+ "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="},"node_modules/damerau-levenshtein": {"version": "1.0.8",@@ -1475,6 +2566,21 @@"integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==","dev": true},+ "node_modules/date-fns": {+ "version": "2.30.0",+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",+ "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",+ "dependencies": {+ "@babel/runtime": "^7.21.0"+ },+ "engines": {+ "node": ">=0.11"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/date-fns"+ }+ },"node_modules/debug": {"version": "4.3.4","resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",@@ -1492,6 +2598,18 @@}}},+ "node_modules/decompress-response": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",+ "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",+ "optional": true,+ "dependencies": {+ "mimic-response": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/deep-equal": {"version": "2.2.1","resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz",@@ -1521,12 +2639,28 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/deep-extend": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",+ "engines": {+ "node": ">=4.0.0"+ }+ },"node_modules/deep-is": {"version": "0.1.4","resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz","integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==","dev": true},+ "node_modules/deepmerge": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",+ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/default-browser": {"version": "4.0.0","resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz",@@ -1561,6 +2695,17 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/defaults": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",+ "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",+ "dependencies": {+ "clone": "^1.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/define-lazy-prop": {"version": "3.0.0","resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",@@ -1589,6 +2734,32 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/delegates": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",+ "optional": true+ },+ "node_modules/detect-libc": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",+ "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",+ "optional": true,+ "bin": {+ "detect-libc": "bin/detect-libc.js"+ },+ "engines": {+ "node": ">=0.10"+ }+ },"node_modules/didyoumean": {"version": "1.2.2","resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",@@ -1626,7 +2797,6 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz","integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",- "dev": true,"dependencies": {"esutils": "^2.0.2"},@@ -1634,18 +2804,48 @@"node": ">=6.0.0"}},- "node_modules/electron-to-chromium": {- "version": "1.4.400",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.400.tgz",- "integrity": "sha512-Lsvf7cvwbIxCfB8VqbnVtEsjGi3+48ejDiQZfWo5gkT+1vQ2DHQI5pl0nUvPD6z1IQk6JgFeMC5ZQJqVhalEHg==",- "dev": true+ "node_modules/dompurify": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.2.tgz",+ "integrity": "sha512-B8c6JdiEpxAKnd8Dm++QQxJL4lfuc757scZtcapj6qjTjrQzyq5iAyznLKVvK+77eYNiFblHBlt7MM0fOeqoKw=="},- "node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "node_modules/drange": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz",+ "integrity": "sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/easy-table": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz",+ "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==",+ "optionalDependencies": {+ "wcwidth": ">=1.0.1"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.4.400",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.400.tgz",+ "integrity": "sha512-Lsvf7cvwbIxCfB8VqbnVtEsjGi3+48ejDiQZfWo5gkT+1vQ2DHQI5pl0nUvPD6z1IQk6JgFeMC5ZQJqVhalEHg==",+ "dev": true+ },+ "node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==","dev": true},+ "node_modules/end-of-stream": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",+ "optional": true,+ "dependencies": {+ "once": "^1.4.0"+ }+ },"node_modules/enhanced-resolve": {"version": "5.14.0","resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.0.tgz",@@ -1771,7 +2971,6 @@"version": "3.1.1","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz","integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",- "dev": true,"engines": {"node": ">=6"}@@ -2255,7 +3454,6 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz","integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,"engines": {"node": ">=0.10.0"}@@ -2283,6 +3481,28 @@"url": "https://github.com/sindresorhus/execa?sponsor=1"}},+ "node_modules/expand-template": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",+ "optional": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/external-editor": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",+ "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",+ "dependencies": {+ "chardet": "^0.7.0",+ "iconv-lite": "^0.4.24",+ "tmp": "^0.0.33"+ },+ "engines": {+ "node": ">=4"+ }+ },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -2317,6 +3537,11 @@"node": ">= 6"}},+ "node_modules/fast-json-patch": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz",+ "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ=="+ },"node_modules/fast-json-stable-stringify": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",@@ -2329,6 +3554,11 @@"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==","dev": true},+ "node_modules/fast-safe-stringify": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",+ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA=="+ },"node_modules/fastq": {"version": "1.15.0","resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",@@ -2338,6 +3568,40 @@"reusify": "^1.0.4"}},+ "node_modules/fault": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz",+ "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==",+ "dependencies": {+ "format": "^0.2.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/figures": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",+ "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",+ "dependencies": {+ "escape-string-regexp": "^1.0.5"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/figures/node_modules/escape-string-regexp": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",+ "engines": {+ "node": ">=0.8.0"+ }+ },"node_modules/file-entry-cache": {"version": "6.0.1","resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",@@ -2354,7 +3618,6 @@"version": "7.0.1","resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz","integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",- "dev": true,"dependencies": {"to-regex-range": "^5.0.1"},@@ -2378,6 +3641,14 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/find-yarn-workspace-root": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz",+ "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==",+ "dependencies": {+ "micromatch": "^4.0.2"+ }+ },"node_modules/flat-cache": {"version": "3.0.4","resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",@@ -2397,6 +3668,25 @@"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==","dev": true},+ "node_modules/follow-redirects": {+ "version": "1.15.2",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",+ "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },"node_modules/for-each": {"version": "0.3.3","resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",@@ -2406,6 +3696,44 @@"is-callable": "^1.1.3"}},+ "node_modules/form-data": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data-encoder": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.9.0.tgz",+ "integrity": "sha512-rahaRMkN8P8d/tgK/BLPX+WBVM27NbvdXBxqQujBtkDAIFspaRqN7Od7lfdGQA6KAD+f82fYCLBq1ipvcu8qLw=="+ },+ "node_modules/format": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",+ "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==",+ "engines": {+ "node": ">=0.4.x"+ }+ },+ "node_modules/formdata-node": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",+ "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",+ "dependencies": {+ "node-domexception": "1.0.0",+ "web-streams-polyfill": "4.0.0-beta.3"+ },+ "engines": {+ "node": ">= 12.20"+ }+ },"node_modules/fraction.js": {"version": "4.2.0","resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",@@ -2419,11 +3747,29 @@"url": "https://www.patreon.com/infusion"}},+ "node_modules/fs-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",+ "optional": true+ },+ "node_modules/fs-extra": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "dependencies": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },"node_modules/fs.realpath": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",- "dev": true+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="},"node_modules/fsevents": {"version": "2.3.2",@@ -2442,8 +3788,7 @@"node_modules/function-bind": {"version": "1.1.1","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",- "dev": true+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="},"node_modules/function.prototype.name": {"version": "1.1.5",@@ -2472,11 +3817,81 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/gauge": {+ "version": "2.7.4",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",+ "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",+ "optional": true,+ "dependencies": {+ "aproba": "^1.0.3",+ "console-control-strings": "^1.0.0",+ "has-unicode": "^2.0.0",+ "object-assign": "^4.1.0",+ "signal-exit": "^3.0.0",+ "string-width": "^1.0.1",+ "strip-ansi": "^3.0.1",+ "wide-align": "^1.1.0"+ }+ },+ "node_modules/gauge/node_modules/ansi-regex": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/gauge/node_modules/is-fullwidth-code-point": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",+ "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",+ "optional": true,+ "dependencies": {+ "number-is-nan": "^1.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/gauge/node_modules/string-width": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",+ "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",+ "optional": true,+ "dependencies": {+ "code-point-at": "^1.0.0",+ "is-fullwidth-code-point": "^1.0.0",+ "strip-ansi": "^3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/gauge/node_modules/strip-ansi": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",+ "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",+ "optional": true,+ "dependencies": {+ "ansi-regex": "^2.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },"node_modules/get-intrinsic": {"version": "1.2.1","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz","integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",- "dev": true,"dependencies": {"function-bind": "^1.1.1","has": "^1.0.3",@@ -2524,11 +3939,16 @@"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"}},+ "node_modules/github-from-package": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",+ "optional": true+ },"node_modules/glob": {"version": "7.1.7","resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz","integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",- "dev": true,"dependencies": {"fs.realpath": "^1.0.0","inflight": "^1.0.4",@@ -2621,8 +4041,7 @@"node_modules/graceful-fs": {"version": "4.2.11","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",- "dev": true+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="},"node_modules/grapheme-splitter": {"version": "1.0.4",@@ -2634,7 +4053,6 @@"version": "1.0.3","resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz","integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",- "dev": true,"dependencies": {"function-bind": "^1.1.1"},@@ -2655,7 +4073,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz","integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true,"engines": {"node": ">=8"}@@ -2676,7 +4093,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz","integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",- "dev": true,"engines": {"node": ">= 0.4"},@@ -2688,7 +4104,6 @@"version": "1.0.3","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz","integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",- "dev": true,"engines": {"node": ">= 0.4"},@@ -2711,6 +4126,53 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/has-unicode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",+ "optional": true+ },+ "node_modules/hast-util-parse-selector": {+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",+ "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hastscript": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz",+ "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==",+ "dependencies": {+ "@types/hast": "^2.0.0",+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/highlight.js": {+ "version": "10.7.3",+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",+ "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/hoist-non-react-statics": {+ "version": "3.3.2",+ "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",+ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",+ "dependencies": {+ "react-is": "^16.7.0"+ }+ },"node_modules/human-signals": {"version": "4.3.1","resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz",@@ -2720,6 +4182,36 @@"node": ">=14.18.0"}},+ "node_modules/iconv-lite": {+ "version": "0.4.24",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },"node_modules/ignore": {"version": "5.2.4","resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",@@ -2729,6 +4221,14 @@"node": ">= 4"}},+ "node_modules/immutable": {+ "version": "3.8.2",+ "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.2.tgz",+ "integrity": "sha512-15gZoQ38eYjEjxkorfbcgBKBL6R7T459OuK+CpcWt7O3KF4uPCx2tD0uFETlUDIyo+1789crbMhTvQBSR5yBMg==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/import-fresh": {"version": "3.3.0","resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",@@ -2758,7 +4258,6 @@"version": "1.0.6","resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz","integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "dev": true,"dependencies": {"once": "^1.3.0","wrappy": "1"@@ -2767,8 +4266,38 @@"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "dev": true+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ },+ "node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",+ "optional": true+ },+ "node_modules/inquirer": {+ "version": "8.2.5",+ "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz",+ "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==",+ "dependencies": {+ "ansi-escapes": "^4.2.1",+ "chalk": "^4.1.1",+ "cli-cursor": "^3.1.0",+ "cli-width": "^3.0.0",+ "external-editor": "^3.0.3",+ "figures": "^3.0.0",+ "lodash": "^4.17.21",+ "mute-stream": "0.0.8",+ "ora": "^5.4.1",+ "run-async": "^2.4.0",+ "rxjs": "^7.5.5",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0",+ "through": "^2.3.6",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ }},"node_modules/internal-slot": {"version": "1.0.5",@@ -2784,6 +4313,36 @@"node": ">= 0.4"}},+ "node_modules/invariant": {+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",+ "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",+ "dependencies": {+ "loose-envify": "^1.0.0"+ }+ },+ "node_modules/is-alphabetical": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz",+ "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-alphanumerical": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz",+ "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==",+ "dependencies": {+ "is-alphabetical": "^1.0.0",+ "is-decimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/is-arguments": {"version": "1.1.1","resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",@@ -2866,6 +4425,17 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/is-ci": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",+ "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",+ "dependencies": {+ "ci-info": "^2.0.0"+ },+ "bin": {+ "is-ci": "bin.js"+ }+ },"node_modules/is-core-module": {"version": "2.12.1","resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",@@ -2893,6 +4463,15 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/is-decimal": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz",+ "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/is-docker": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",@@ -2917,6 +4496,14 @@"node": ">=0.10.0"}},+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -2929,6 +4516,15 @@"node": ">=0.10.0"}},+ "node_modules/is-hexadecimal": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz",+ "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/is-inside-container": {"version": "1.0.0","resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",@@ -2947,6 +4543,14 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-interactive": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",+ "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-map": {"version": "2.0.2","resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz",@@ -2972,7 +4576,6 @@"version": "7.0.0","resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz","integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",- "dev": true,"engines": {"node": ">=0.12.0"}@@ -3001,6 +4604,14 @@"node": ">=8"}},+ "node_modules/is-plain-object": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",+ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/is-regex": {"version": "1.1.4","resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",@@ -3099,11 +4710,22 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-weakmap": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz",- "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==",- "dev": true,+ "node_modules/is-unicode-supported": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-weakmap": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz",+ "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==",+ "dev": true,"funding": {"url": "https://github.com/sponsors/ljharb"}@@ -3148,7 +4770,6 @@"version": "2.2.0","resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz","integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",- "dev": true,"dependencies": {"is-docker": "^2.0.0"},@@ -3160,7 +4781,6 @@"version": "2.2.1","resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz","integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",- "dev": true,"bin": {"is-docker": "cli.js"},@@ -3174,14 +4794,20 @@"node_modules/isarray": {"version": "2.0.5","resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",- "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",- "dev": true+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="},"node_modules/isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "dev": true+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="+ },+ "node_modules/iterare": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz",+ "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==",+ "engines": {+ "node": ">=6"+ }},"node_modules/jiti": {"version": "1.18.2",@@ -3200,6 +4826,11 @@"url": "https://github.com/sponsors/panva"}},+ "node_modules/js-file-download": {+ "version": "0.4.12",+ "resolved": "https://registry.npmjs.org/js-file-download/-/js-file-download-0.4.12.tgz",+ "integrity": "sha512-rML+NkoD08p5Dllpjo0ffy4jRHeY6Zsapvr/W86N7E0yuzAO6qa5X9+xog6zQNlH102J7IXljNY2FtS6Lj3ucg=="+ },"node_modules/js-sdsl": {"version": "4.4.0","resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz",@@ -3219,7 +4850,6 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz","integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",- "dev": true,"dependencies": {"argparse": "^2.0.1"},@@ -3251,6 +4881,17 @@"json5": "lib/cli.js"}},+ "node_modules/jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },"node_modules/jsx-ast-utils": {"version": "3.3.3","resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz",@@ -3264,6 +4905,14 @@"node": ">=4.0"}},+ "node_modules/klaw-sync": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",+ "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",+ "dependencies": {+ "graceful-fs": "^4.1.11"+ }+ },"node_modules/language-subtag-registry": {"version": "0.3.22","resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz",@@ -3322,12 +4971,52 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/lodash": {+ "version": "4.17.21",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="+ },+ "node_modules/lodash.debounce": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",+ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="+ },+ "node_modules/lodash.get": {+ "version": "4.4.2",+ "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",+ "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ=="+ },+ "node_modules/lodash.isequal": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",+ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="+ },"node_modules/lodash.merge": {"version": "4.6.2","resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz","integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==","dev": true},+ "node_modules/lodash.mergewith": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",+ "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ=="+ },+ "node_modules/log-symbols": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",+ "dependencies": {+ "chalk": "^4.1.0",+ "is-unicode-supported": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/loose-envify": {"version": "1.4.0","resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",@@ -3339,6 +5028,19 @@"loose-envify": "cli.js"}},+ "node_modules/lowlight": {+ "version": "1.20.0",+ "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.20.0.tgz",+ "integrity": "sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==",+ "dependencies": {+ "fault": "^1.0.0",+ "highlight.js": "~10.7.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/lru-cache": {"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",@@ -3375,7 +5077,6 @@"version": "4.0.5","resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz","integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",- "dev": true,"dependencies": {"braces": "^3.0.2","picomatch": "^2.3.1"@@ -3384,6 +5085,25 @@"node": ">=8.6"}},+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/mimic-fn": {"version": "4.0.0","resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",@@ -3396,11 +5116,33 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/mimic-response": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",+ "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",+ "optional": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/minim": {+ "version": "0.23.8",+ "resolved": "https://registry.npmjs.org/minim/-/minim-0.23.8.tgz",+ "integrity": "sha512-bjdr2xW1dBCMsMGGsUeqM4eFI60m94+szhxWys+B1ztIt6gWSfeGBdSVCIawezeHYLYn0j6zrsXdQS/JllBzww==",+ "dependencies": {+ "lodash": "^4.15.0"+ },+ "engines": {+ "node": ">=6"+ }+ },"node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,"dependencies": {"brace-expansion": "^1.1.7"},@@ -3412,17 +5154,27 @@"version": "1.2.8","resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz","integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",- "dev": true,"funding": {"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/mkdirp-classic": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",+ "optional": true+ },"node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==","dev": true},+ "node_modules/mute-stream": {+ "version": "0.0.8",+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",+ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA=="+ },"node_modules/mz": {"version": "2.7.0","resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",@@ -3434,6 +5186,12 @@"thenify-all": "^1.0.0"}},+ "node_modules/nan": {+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",+ "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==",+ "optional": true+ },"node_modules/nanoid": {"version": "3.3.6","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",@@ -3451,6 +5209,12 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},+ "node_modules/napi-build-utils": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",+ "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",+ "optional": true+ },"node_modules/natural-compare": {"version": "1.4.0","resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",@@ -3543,6 +5307,131 @@}}},+ "node_modules/next-swagger-doc": {+ "version": "0.3.6",+ "resolved": "https://registry.npmjs.org/next-swagger-doc/-/next-swagger-doc-0.3.6.tgz",+ "integrity": "sha512-cfnWixZqBcOjitahkheK3+NVlpe+kSYh01SQlEuWJmRrj+2zeQrp9xOm4i50Ty0TGDZ95OLE2u8knyGpavX/BQ==",+ "dependencies": {+ "cleye": "1.2.1",+ "isarray": "2.0.5",+ "swagger-jsdoc": "6.2.5"+ },+ "bin": {+ "next-swagger-doc-cli": "dist/cli.js"+ },+ "engines": {+ "node": ">=12"+ },+ "peerDependencies": {+ "next": ">=9"+ }+ },+ "node_modules/next-swagger-doc/node_modules/@apidevtools/swagger-parser": {+ "version": "10.0.2",+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.2.tgz",+ "integrity": "sha512-JFxcEyp8RlNHgBCE98nwuTkZT6eNFPc1aosWV6wPcQph72TSEEu1k3baJD4/x1qznU+JiDdz8F5pTwabZh+Dhg==",+ "dependencies": {+ "@apidevtools/json-schema-ref-parser": "^9.0.6",+ "@apidevtools/openapi-schemas": "^2.0.4",+ "@apidevtools/swagger-methods": "^3.0.2",+ "@jsdevtools/ono": "^7.1.3",+ "call-me-maybe": "^1.0.1",+ "z-schema": "^4.2.3"+ },+ "peerDependencies": {+ "openapi-types": ">=7"+ }+ },+ "node_modules/next-swagger-doc/node_modules/commander": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",+ "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/next-swagger-doc/node_modules/glob": {+ "version": "7.1.6",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.0.4",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/next-swagger-doc/node_modules/swagger-jsdoc": {+ "version": "6.2.5",+ "resolved": "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.5.tgz",+ "integrity": "sha512-l+cdsKS2y+QDhrH1TJSUiE0y9XKuf5xaGSatjf0hR/wjTlMpO8WfubBK9d/nASdbHPMtj9iJZLBH2ogBEhL7Sw==",+ "dependencies": {+ "commander": "6.2.0",+ "doctrine": "3.0.0",+ "glob": "7.1.6",+ "lodash.mergewith": "^4.6.2",+ "swagger-parser": "10.0.2",+ "yaml": "2.0.0-1"+ },+ "bin": {+ "swagger-jsdoc": "bin/swagger-jsdoc.js"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/next-swagger-doc/node_modules/swagger-parser": {+ "version": "10.0.2",+ "resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.2.tgz",+ "integrity": "sha512-9jHkHM+QXyLGFLk1DkXBwV+4HyNm0Za3b8/zk/+mjr8jgOSiqm3FOTHBSDsBjtn9scdL+8eWcHdupp2NLM8tDw==",+ "dependencies": {+ "@apidevtools/swagger-parser": "10.0.2"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/next-swagger-doc/node_modules/yaml": {+ "version": "2.0.0-1",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz",+ "integrity": "sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ==",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/next-swagger-doc/node_modules/z-schema": {+ "version": "4.2.4",+ "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.4.tgz",+ "integrity": "sha512-YvBeW5RGNeNzKOUJs3rTL4+9rpcvHXt5I051FJbOcitV8bl40pEfcG0Q+dWSwS0/BIYrMZ/9HHoqLllMkFhD0w==",+ "dependencies": {+ "lodash.get": "^4.4.2",+ "lodash.isequal": "^4.5.0",+ "validator": "^13.6.0"+ },+ "bin": {+ "z-schema": "bin/z-schema"+ },+ "engines": {+ "node": ">=6.0.0"+ },+ "optionalDependencies": {+ "commander": "^2.7.1"+ }+ },+ "node_modules/next-swagger-doc/node_modules/z-schema/node_modules/commander": {+ "version": "2.20.3",+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",+ "optional": true+ },"node_modules/next/node_modules/postcss": {"version": "8.4.14","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz",@@ -3566,6 +5455,66 @@"node": "^10 || ^12 || >=14"}},+ "node_modules/nice-try": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",+ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="+ },+ "node_modules/node-abi": {+ "version": "2.30.1",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz",+ "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==",+ "optional": true,+ "dependencies": {+ "semver": "^5.4.1"+ }+ },+ "node_modules/node-abi/node_modules/semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "optional": true,+ "bin": {+ "semver": "bin/semver"+ }+ },+ "node_modules/node-domexception": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "github",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "engines": {+ "node": ">=10.5.0"+ }+ },+ "node_modules/node-fetch": {+ "version": "2.6.11",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz",+ "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },"node_modules/node-releases": {"version": "2.0.10","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz",@@ -3617,6 +5566,27 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/npmlog": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",+ "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",+ "optional": true,+ "dependencies": {+ "are-we-there-yet": "~1.1.2",+ "console-control-strings": "~1.1.0",+ "gauge": "~2.7.3",+ "set-blocking": "~2.0.0"+ }+ },+ "node_modules/number-is-nan": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",+ "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/oauth": {"version": "0.9.15","resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz",@@ -3626,7 +5596,6 @@"version": "4.1.1","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz","integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",- "dev": true,"engines": {"node": ">=0.10.0"}@@ -3643,7 +5612,6 @@"version": "1.12.3","resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz","integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",- "dev": true,"funding": {"url": "https://github.com/sponsors/ljharb"}@@ -3764,7 +5732,6 @@"version": "1.4.0","resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz","integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",- "dev": true,"dependencies": {"wrappy": "1"}@@ -3802,6 +5769,12 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/openapi-types": {+ "version": "12.1.0",+ "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.0.tgz",+ "integrity": "sha512-XpeCy01X6L5EpP+6Hc3jWN7rMZJ+/k1lwki/kTmWzbVhdPie3jd5O2ZtedEx8Yp58icJ0osVldLMrTB/zslQXA==",+ "peer": true+ },"node_modules/openid-client": {"version": "5.4.2","resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.2.tgz",@@ -3833,6 +5806,36 @@"node": ">= 0.8.0"}},+ "node_modules/ora": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",+ "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",+ "dependencies": {+ "bl": "^4.1.0",+ "chalk": "^4.1.0",+ "cli-cursor": "^3.1.0",+ "cli-spinners": "^2.5.0",+ "is-interactive": "^1.0.0",+ "is-unicode-supported": "^0.1.0",+ "log-symbols": "^4.1.0",+ "strip-ansi": "^6.0.0",+ "wcwidth": "^1.0.1"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/os-tmpdir": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",+ "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/p-limit": {"version": "3.1.0","resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",@@ -3875,39 +5878,219 @@"node": ">=6"}},- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,+ "node_modules/parse-entities": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz",+ "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==",+ "dependencies": {+ "character-entities": "^1.0.0",+ "character-entities-legacy": "^1.0.0",+ "character-reference-invalid": "^1.0.0",+ "is-alphanumerical": "^1.0.0",+ "is-decimal": "^1.0.0",+ "is-hexadecimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/patch-package": {+ "version": "6.5.1",+ "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz",+ "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==",+ "dependencies": {+ "@yarnpkg/lockfile": "^1.1.0",+ "chalk": "^4.1.2",+ "cross-spawn": "^6.0.5",+ "find-yarn-workspace-root": "^2.0.0",+ "fs-extra": "^9.0.0",+ "is-ci": "^2.0.0",+ "klaw-sync": "^6.0.0",+ "minimist": "^1.2.6",+ "open": "^7.4.2",+ "rimraf": "^2.6.3",+ "semver": "^5.6.0",+ "slash": "^2.0.0",+ "tmp": "^0.0.33",+ "yaml": "^1.10.2"+ },+ "bin": {+ "patch-package": "index.js"+ },"engines": {- "node": ">=8"+ "node": ">=10",+ "npm": ">5"}},- "node_modules/path-is-absolute": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",- "dev": true,+ "node_modules/patch-package/node_modules/cross-spawn": {+ "version": "6.0.5",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",+ "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",+ "dependencies": {+ "nice-try": "^1.0.4",+ "path-key": "^2.0.1",+ "semver": "^5.5.0",+ "shebang-command": "^1.2.0",+ "which": "^1.2.9"+ },"engines": {- "node": ">=0.10.0"+ "node": ">=4.8"}},- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true,+ "node_modules/patch-package/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },"engines": {- "node": ">=8"+ "node": ">=10"}},- "node_modules/path-parse": {- "version": "1.0.7",+ "node_modules/patch-package/node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/patch-package/node_modules/open": {+ "version": "7.4.2",+ "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",+ "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",+ "dependencies": {+ "is-docker": "^2.0.0",+ "is-wsl": "^2.1.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/patch-package/node_modules/path-key": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",+ "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/patch-package/node_modules/rimraf": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ }+ },+ "node_modules/patch-package/node_modules/semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "bin": {+ "semver": "bin/semver"+ }+ },+ "node_modules/patch-package/node_modules/shebang-command": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",+ "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",+ "dependencies": {+ "shebang-regex": "^1.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/patch-package/node_modules/shebang-regex": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",+ "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/patch-package/node_modules/slash": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",+ "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/patch-package/node_modules/which": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "which": "bin/which"+ }+ },+ "node_modules/patch-package/node_modules/yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7","resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz","integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==","dev": true},+ "node_modules/path-to-regexp": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz",+ "integrity": "sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA=="+ },"node_modules/path-type": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",@@ -3926,7 +6109,6 @@"version": "2.3.1","resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz","integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,"engines": {"node": ">=8.6"},@@ -4103,6 +6285,33 @@"preact": ">=10"}},+ "node_modules/prebuild-install": {+ "version": "6.1.4",+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz",+ "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==",+ "optional": true,+ "dependencies": {+ "detect-libc": "^1.0.3",+ "expand-template": "^2.0.3",+ "github-from-package": "0.0.0",+ "minimist": "^1.2.3",+ "mkdirp-classic": "^0.5.3",+ "napi-build-utils": "^1.0.1",+ "node-abi": "^2.21.0",+ "npmlog": "^4.0.1",+ "pump": "^3.0.0",+ "rc": "^1.2.7",+ "simple-get": "^3.0.3",+ "tar-fs": "^2.0.0",+ "tunnel-agent": "^0.6.0"+ },+ "bin": {+ "prebuild-install": "bin.js"+ },+ "engines": {+ "node": ">=6"+ }+ },"node_modules/prelude-ls": {"version": "1.2.1","resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",@@ -4219,17 +6428,65 @@"node": ">=14.17"}},+ "node_modules/prismjs": {+ "version": "1.29.0",+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz",+ "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/process": {+ "version": "0.11.10",+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",+ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",+ "engines": {+ "node": ">= 0.6.0"+ }+ },+ "node_modules/process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",+ "optional": true+ },"node_modules/prop-types": {"version": "15.8.1","resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz","integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",- "dev": true,"dependencies": {"loose-envify": "^1.4.0","object-assign": "^4.1.1","react-is": "^16.13.1"}},+ "node_modules/property-information": {+ "version": "5.6.0",+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz",+ "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==",+ "dependencies": {+ "xtend": "^4.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/proxy-from-env": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="+ },+ "node_modules/pump": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",+ "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",+ "optional": true,+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },"node_modules/punycode": {"version": "2.3.0","resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",@@ -4239,6 +6496,34 @@"node": ">=6"}},+ "node_modules/qs": {+ "version": "6.11.2",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",+ "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",+ "dependencies": {+ "side-channel": "^1.0.4"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/querystring": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",+ "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==",+ "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.",+ "engines": {+ "node": ">=0.4.x"+ }+ },+ "node_modules/querystringify": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",+ "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="+ },"node_modules/queue-microtask": {"version": "1.2.3","resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",@@ -4259,6 +6544,74 @@}]},+ "node_modules/ramda": {+ "version": "0.29.0",+ "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.29.0.tgz",+ "integrity": "sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/ramda"+ }+ },+ "node_modules/ramda-adjunct": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/ramda-adjunct/-/ramda-adjunct-4.0.0.tgz",+ "integrity": "sha512-W/NiJAlZdwZ/iUkWEQQgRdH5Szqqet1WoVH9cdqDVjFbVaZHuJfJRvsxqHhvq6tZse+yVbFatLDLdVa30wBlGQ==",+ "engines": {+ "node": ">=0.10.3"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/ramda-adjunct"+ },+ "peerDependencies": {+ "ramda": ">= 0.29.0"+ }+ },+ "node_modules/randexp": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.5.3.tgz",+ "integrity": "sha512-U+5l2KrcMNOUPYvazA3h5ekF80FHTUG+87SEAmHZmolh1M+i/WyTCxVzmi+tidIa1tM4BSe8g2Y/D3loWDjj+w==",+ "dependencies": {+ "drange": "^1.0.2",+ "ret": "^0.2.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/randombytes": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",+ "dependencies": {+ "safe-buffer": "^5.1.0"+ }+ },+ "node_modules/rc": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",+ "optional": true,+ "dependencies": {+ "deep-extend": "^0.6.0",+ "ini": "~1.3.0",+ "minimist": "^1.2.0",+ "strip-json-comments": "~2.0.1"+ },+ "bin": {+ "rc": "cli.js"+ }+ },+ "node_modules/rc/node_modules/strip-json-comments": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/react": {"version": "18.2.0","resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",@@ -4270,6 +6623,30 @@"node": ">=0.10.0"}},+ "node_modules/react-copy-to-clipboard": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/react-copy-to-clipboard/-/react-copy-to-clipboard-5.1.0.tgz",+ "integrity": "sha512-k61RsNgAayIJNoy9yDsYzDe/yAZAzEbEgcz3DZMhF686LEyukcE1hzurxe85JandPUG+yTfGVFzuEw3xt8WP/A==",+ "dependencies": {+ "copy-to-clipboard": "^3.3.1",+ "prop-types": "^15.8.1"+ },+ "peerDependencies": {+ "react": "^15.3.0 || 16 || 17 || 18"+ }+ },+ "node_modules/react-debounce-input": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/react-debounce-input/-/react-debounce-input-3.3.0.tgz",+ "integrity": "sha512-VEqkvs8JvY/IIZvh71Z0TC+mdbxERvYF33RcebnodlsUZ8RSgyKe2VWaHXv4+/8aoOgXLxWrdsYs2hDhcwbUgA==",+ "dependencies": {+ "lodash.debounce": "^4",+ "prop-types": "^15.8.1"+ },+ "peerDependencies": {+ "react": "^15.3.0 || 16 || 17 || 18"+ }+ },"node_modules/react-dom": {"version": "18.2.0","resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",@@ -4282,11 +6659,82 @@"react": "^18.2.0"}},+ "node_modules/react-immutable-proptypes": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/react-immutable-proptypes/-/react-immutable-proptypes-2.2.0.tgz",+ "integrity": "sha512-Vf4gBsePlwdGvSZoLSBfd4HAP93HDauMY4fDjXhreg/vg6F3Fj/MXDNyTbltPC/xZKmZc+cjLu3598DdYK6sgQ==",+ "dependencies": {+ "invariant": "^2.2.2"+ },+ "peerDependencies": {+ "immutable": ">=3.6.2"+ }+ },+ "node_modules/react-immutable-pure-component": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/react-immutable-pure-component/-/react-immutable-pure-component-2.2.2.tgz",+ "integrity": "sha512-vkgoMJUDqHZfXXnjVlG3keCxSO/U6WeDQ5/Sl0GK2cH8TOxEzQ5jXqDXHEL/jqk6fsNxV05oH5kD7VNMUE2k+A==",+ "peerDependencies": {+ "immutable": ">= 2 || >= 4.0.0-rc",+ "react": ">= 16.6",+ "react-dom": ">= 16.6"+ }+ },+ "node_modules/react-inspector": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/react-inspector/-/react-inspector-6.0.1.tgz",+ "integrity": "sha512-cxKSeFTf7jpSSVddm66sKdolG90qURAX3g1roTeaN6x0YEbtWc8JpmFN9+yIqLNH2uEkYerWLtJZIXRIFuBKrg==",+ "peerDependencies": {+ "react": "^16.8.4 || ^17.0.0 || ^18.0.0"+ }+ },"node_modules/react-is": {"version": "16.13.1","resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",- "dev": true+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="+ },+ "node_modules/react-redux": {+ "version": "8.0.5",+ "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.0.5.tgz",+ "integrity": "sha512-Q2f6fCKxPFpkXt1qNRZdEDLlScsDWyrgSj0mliK59qU6W5gvBiKkdMEG2lJzhd1rCctf0hb6EtePPLZ2e0m1uw==",+ "dependencies": {+ "@babel/runtime": "^7.12.1",+ "@types/hoist-non-react-statics": "^3.3.1",+ "@types/use-sync-external-store": "^0.0.3",+ "hoist-non-react-statics": "^3.3.2",+ "react-is": "^18.0.0",+ "use-sync-external-store": "^1.0.0"+ },+ "peerDependencies": {+ "@types/react": "^16.8 || ^17.0 || ^18.0",+ "@types/react-dom": "^16.8 || ^17.0 || ^18.0",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0",+ "react-native": ">=0.59",+ "redux": "^4"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ },+ "redux": {+ "optional": true+ }+ }+ },+ "node_modules/react-redux/node_modules/react-is": {+ "version": "18.2.0",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",+ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="},"node_modules/react-ssr-prepass": {"version": "1.5.0",@@ -4296,6 +6744,21 @@"react": "^16.8.0 || ^17.0.0 || ^18.0.0"}},+ "node_modules/react-syntax-highlighter": {+ "version": "15.5.0",+ "resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.5.0.tgz",+ "integrity": "sha512-+zq2myprEnQmH5yw6Gqc8lD55QHnpKaU8TOcFeC/Lg/MQSs8UknEA0JC4nTZGFAXC2J2Hyj/ijJ7NlabyPi2gg==",+ "dependencies": {+ "@babel/runtime": "^7.3.1",+ "highlight.js": "^10.4.1",+ "lowlight": "^1.17.0",+ "prismjs": "^1.27.0",+ "refractor": "^3.6.0"+ },+ "peerDependencies": {+ "react": ">= 0.14.0"+ }+ },"node_modules/read-cache": {"version": "1.0.0","resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",@@ -4305,6 +6768,19 @@"pify": "^2.3.0"}},+ "node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/readdirp": {"version": "3.6.0","resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",@@ -4317,6 +6793,49 @@"node": ">=8.10.0"}},+ "node_modules/redux": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz",+ "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==",+ "dependencies": {+ "@babel/runtime": "^7.9.2"+ }+ },+ "node_modules/redux-immutable": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/redux-immutable/-/redux-immutable-4.0.0.tgz",+ "integrity": "sha512-SchSn/DWfGb3oAejd+1hhHx01xUoxY+V7TeK0BKqpkLKiQPVFf7DYzEaKmrEVxsWxielKfSK9/Xq66YyxgR1cg==",+ "peerDependencies": {+ "immutable": "^3.8.1 || ^4.0.0-rc.1"+ }+ },+ "node_modules/reflect-metadata": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",+ "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="+ },+ "node_modules/refractor": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.6.0.tgz",+ "integrity": "sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==",+ "dependencies": {+ "hastscript": "^6.0.0",+ "parse-entities": "^2.0.0",+ "prismjs": "~1.27.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/refractor/node_modules/prismjs": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.27.0.tgz",+ "integrity": "sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/regenerator-runtime": {"version": "0.13.11","resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",@@ -4339,6 +6858,55 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/remarkable": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-2.0.1.tgz",+ "integrity": "sha512-YJyMcOH5lrR+kZdmB0aJJ4+93bEojRZ1HGDn9Eagu6ibg7aVZhc3OWbbShRid+Q5eAfsEqWxpe+g5W5nYNfNiA==",+ "dependencies": {+ "argparse": "^1.0.10",+ "autolinker": "^3.11.0"+ },+ "bin": {+ "remarkable": "bin/remarkable.js"+ },+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "node_modules/remarkable/node_modules/argparse": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",+ "dependencies": {+ "sprintf-js": "~1.0.2"+ }+ },+ "node_modules/repeat-string": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",+ "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==",+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/requires-port": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",+ "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="+ },+ "node_modules/reselect": {+ "version": "4.1.8",+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz",+ "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ=="+ },"node_modules/resolve": {"version": "1.22.2","resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz",@@ -4365,6 +6933,48 @@"node": ">=4"}},+ "node_modules/restore-cursor": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",+ "dependencies": {+ "onetime": "^5.1.0",+ "signal-exit": "^3.0.2"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/restore-cursor/node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/restore-cursor/node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ret": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/ret/-/ret-0.2.2.tgz",+ "integrity": "sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==",+ "engines": {+ "node": ">=4"+ }+ },"node_modules/reusify": {"version": "1.0.4","resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",@@ -4494,6 +7104,14 @@"node": ">=6"}},+ "node_modules/run-async": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",+ "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",+ "engines": {+ "node": ">=0.12.0"+ }+ },"node_modules/run-parallel": {"version": "1.2.0","resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",@@ -4517,6 +7135,33 @@"queue-microtask": "^1.2.2"}},+ "node_modules/rxjs": {+ "version": "7.8.0",+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz",+ "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==",+ "dependencies": {+ "tslib": "^2.1.0"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },"node_modules/safe-regex-test": {"version": "1.0.0","resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz",@@ -4531,6 +7176,11 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="+ },"node_modules/scheduler": {"version": "0.23.0","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",@@ -4554,6 +7204,38 @@"node": ">=10"}},+ "node_modules/serialize-error": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-8.1.0.tgz",+ "integrity": "sha512-3NnuWfM6vBYoy5gZFvHiYsVbafvI9vZv/+jlIigFn4oP4zjNPK3LhcY0xSCgeb1a5L8jO71Mit9LlNoi2UfDDQ==",+ "dependencies": {+ "type-fest": "^0.20.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/set-blocking": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",+ "optional": true+ },+ "node_modules/sha.js": {+ "version": "2.4.11",+ "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",+ "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==",+ "dependencies": {+ "inherits": "^2.0.1",+ "safe-buffer": "^5.0.1"+ },+ "bin": {+ "sha.js": "bin.js"+ }+ },"node_modules/shebang-command": {"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",@@ -4575,26 +7257,64 @@"node": ">=8"}},+ "node_modules/short-unique-id": {+ "version": "4.4.4",+ "resolved": "https://registry.npmjs.org/short-unique-id/-/short-unique-id-4.4.4.tgz",+ "integrity": "sha512-oLF1NCmtbiTWl2SqdXZQbo5KM1b7axdp0RgQLq8qCBBLoq+o3A5wmLrNM6bZIh54/a8BJ3l69kTXuxwZ+XCYuw==",+ "bin": {+ "short-unique-id": "bin/short-unique-id",+ "suid": "bin/short-unique-id"+ }+ },"node_modules/side-channel": {"version": "1.0.4","resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz","integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",- "dev": true,"dependencies": {- "call-bind": "^1.0.0",- "get-intrinsic": "^1.0.2",- "object-inspect": "^1.9.0"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "call-bind": "^1.0.0",+ "get-intrinsic": "^1.0.2",+ "object-inspect": "^1.9.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="+ },+ "node_modules/simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "optional": true+ },+ "node_modules/simple-get": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",+ "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",+ "optional": true,+ "dependencies": {+ "decompress-response": "^4.2.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"}},- "node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "dev": true- },"node_modules/slash": {"version": "3.0.0","resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",@@ -4612,6 +7332,30 @@"node": ">=0.10.0"}},+ "node_modules/space-separated-tokens": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",+ "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/spawn-command": {+ "version": "0.0.2-1",+ "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz",+ "integrity": "sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg=="+ },+ "node_modules/sprintf-js": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="+ },+ "node_modules/stampit": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/stampit/-/stampit-4.3.2.tgz",+ "integrity": "sha512-pE2org1+ZWQBnIxRPrBM2gVupkuDD0TTNIo1H6GdT/vO82NXli2z8lRE8cu/nBIHrcOCXFBAHpb9ZldrB2/qOA=="+ },"node_modules/stop-iteration-iterator": {"version": "1.0.0","resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz",@@ -4632,6 +7376,32 @@"node": ">=10.0.0"}},+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="+ },"node_modules/string.prototype.matchall": {"version": "4.0.8","resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",@@ -4700,7 +7470,6 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,"dependencies": {"ansi-regex": "^5.0.1"},@@ -4820,7 +7589,6 @@"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,"dependencies": {"has-flag": "^4.0.0"},@@ -4840,6 +7608,145 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/swagger-client": {+ "version": "3.19.7",+ "resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.19.7.tgz",+ "integrity": "sha512-5U4+tksrzVODZaLTtivzS9be6u7rX5ZSWFKDIYWsy8HCwt9FH1ANrrGpY1wDHydpOeaySbxMjMaqEM9cGWxOuQ==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.20.13",+ "@swagger-api/apidom-core": ">=0.69.3 <1.0.0",+ "@swagger-api/apidom-json-pointer": ">=0.69.3 <1.0.0",+ "@swagger-api/apidom-ns-openapi-3-1": ">=0.69.3 <1.0.0",+ "@swagger-api/apidom-reference": ">=0.69.3 <1.0.0",+ "cookie": "~0.5.0",+ "cross-fetch": "^3.1.5",+ "deepmerge": "~4.3.0",+ "fast-json-patch": "^3.0.0-1",+ "form-data-encoder": "^1.4.3",+ "formdata-node": "^4.0.0",+ "is-plain-object": "^5.0.0",+ "js-yaml": "^4.1.0",+ "lodash": "^4.17.21",+ "qs": "^6.10.2",+ "traverse": "~0.6.6",+ "url": "~0.11.0"+ }+ },+ "node_modules/swagger-jsdoc": {+ "version": "6.2.8",+ "resolved": "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.8.tgz",+ "integrity": "sha512-VPvil1+JRpmJ55CgAtn8DIcpBs0bL5L3q5bVQvF4tAW/k/9JYSj7dCpaYCAv5rufe0vcCbBRQXGvzpkWjvLklQ==",+ "dev": true,+ "dependencies": {+ "commander": "6.2.0",+ "doctrine": "3.0.0",+ "glob": "7.1.6",+ "lodash.mergewith": "^4.6.2",+ "swagger-parser": "^10.0.3",+ "yaml": "2.0.0-1"+ },+ "bin": {+ "swagger-jsdoc": "bin/swagger-jsdoc.js"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/swagger-jsdoc/node_modules/commander": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",+ "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==",+ "dev": true,+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/swagger-jsdoc/node_modules/glob": {+ "version": "7.1.6",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",+ "dev": true,+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.0.4",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/swagger-jsdoc/node_modules/yaml": {+ "version": "2.0.0-1",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz",+ "integrity": "sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ==",+ "dev": true,+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/swagger-parser": {+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.3.tgz",+ "integrity": "sha512-nF7oMeL4KypldrQhac8RyHerJeGPD1p2xDh900GPvc+Nk7nWP6jX2FcC7WmkinMoAmoO774+AFXcWsW8gMWEIg==",+ "dev": true,+ "dependencies": {+ "@apidevtools/swagger-parser": "10.0.3"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/swagger-ui-react": {+ "version": "4.18.3",+ "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.18.3.tgz",+ "integrity": "sha512-aOA/Ty1hKa5gXxWm+mqM+OQTz7VhGdwy4BGSwpy5iAm3oeacgpGJqOr6ySdqgV84KwzRAmW+5C5hK4Ss6xmODw==",+ "dependencies": {+ "@babel/runtime-corejs3": "^7.18.9",+ "@braintree/sanitize-url": "=6.0.2",+ "base64-js": "^1.5.1",+ "classnames": "^2.3.1",+ "css.escape": "1.5.1",+ "deep-extend": "0.6.0",+ "dompurify": "=3.0.2",+ "ieee754": "^1.2.1",+ "immutable": "^3.x.x",+ "js-file-download": "^0.4.12",+ "js-yaml": "=4.1.0",+ "lodash": "^4.17.21",+ "patch-package": "^6.5.0",+ "prop-types": "^15.8.1",+ "randexp": "^0.5.3",+ "randombytes": "^2.1.0",+ "react-copy-to-clipboard": "5.1.0",+ "react-debounce-input": "=3.3.0",+ "react-immutable-proptypes": "2.2.0",+ "react-immutable-pure-component": "^2.2.0",+ "react-inspector": "^6.0.1",+ "react-redux": "^8.0.5",+ "react-syntax-highlighter": "^15.5.0",+ "redux": "^4.1.2",+ "redux-immutable": "^4.0.0",+ "remarkable": "^2.0.1",+ "reselect": "^4.1.8",+ "serialize-error": "^8.1.0",+ "sha.js": "^2.4.11",+ "swagger-client": "^3.19.6",+ "url-parse": "^1.5.8",+ "xml": "=1.0.1",+ "xml-but-prettier": "^1.0.1",+ "zenscroll": "^4.0.2"+ },+ "peerDependencies": {+ "react": ">=17.0.0",+ "react-dom": ">=17.0.0"+ }+ },"node_modules/synckit": {"version": "0.8.5","resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz",@@ -4912,6 +7819,42 @@"node": ">=6"}},+ "node_modules/tar-fs": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",+ "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",+ "optional": true,+ "dependencies": {+ "chownr": "^1.1.1",+ "mkdirp-classic": "^0.5.2",+ "pump": "^3.0.0",+ "tar-stream": "^2.1.4"+ }+ },+ "node_modules/tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "optional": true,+ "dependencies": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/terminal-columns": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/terminal-columns/-/terminal-columns-1.4.1.tgz",+ "integrity": "sha512-IKVL/itiMy947XWVv4IHV7a0KQXvKjj4ptbi7Ew9MPMcOLzkiQeyx3Gyvh62hKrfJ0RZc4M1nbhzjNM39Kyujw==",+ "funding": {+ "url": "https://github.com/privatenumber/terminal-columns?sponsor=1"+ }+ },"node_modules/text-table": {"version": "0.2.0","resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",@@ -4939,6 +7882,11 @@"node": ">=0.8"}},+ "node_modules/through": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="+ },"node_modules/titleize": {"version": "3.0.0","resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz",@@ -4951,11 +7899,21 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/tmp": {+ "version": "0.0.33",+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",+ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",+ "dependencies": {+ "os-tmpdir": "~1.0.2"+ },+ "engines": {+ "node": ">=0.6.0"+ }+ },"node_modules/to-regex-range": {"version": "5.0.1","resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz","integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,"dependencies": {"is-number": "^7.0.0"},@@ -4963,6 +7921,63 @@"node": ">=8.0"}},+ "node_modules/toggle-selection": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz",+ "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ=="+ },+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="+ },+ "node_modules/traverse": {+ "version": "0.6.7",+ "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz",+ "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "bin": {+ "tree-kill": "cli.js"+ }+ },+ "node_modules/tree-sitter": {+ "version": "0.20.1",+ "resolved": "https://registry.npmjs.org/tree-sitter/-/tree-sitter-0.20.1.tgz",+ "integrity": "sha512-Cmb8V0ocamHbgWMVhZIa+78k/7r8VCQ6+ePG8eYEAO7AccwWi06Ct4ATNiI94KwhIkRl0+OwZ42/5nk3GnEMpQ==",+ "hasInstallScript": true,+ "optional": true,+ "dependencies": {+ "nan": "^2.14.0",+ "prebuild-install": "^6.0.1"+ }+ },+ "node_modules/tree-sitter-json": {+ "version": "0.20.0",+ "resolved": "https://registry.npmjs.org/tree-sitter-json/-/tree-sitter-json-0.20.0.tgz",+ "integrity": "sha512-PteOLH+Tx6Bz4ZA/d40/DbkiSXXRM/gKahhHI8hQ1lWNfFvdknnz9k3Mz84ol5srRyLboJ8wp8GSkhZ6ht9EGQ==",+ "hasInstallScript": true,+ "optional": true,+ "dependencies": {+ "nan": "^2.14.1"+ }+ },+ "node_modules/tree-sitter-yaml": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/tree-sitter-yaml/-/tree-sitter-yaml-0.5.0.tgz",+ "integrity": "sha512-POJ4ZNXXSWIG/W4Rjuyg36MkUD4d769YRUGKRqN+sVaj/VCo6Dh6Pkssn1Rtewd5kybx+jT1BWMyWN0CijXnMA==",+ "hasInstallScript": true,+ "optional": true,+ "dependencies": {+ "nan": "^2.14.0"+ }+ },"node_modules/ts-interface-checker": {"version": "0.1.13","resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",@@ -5018,6 +8033,11 @@"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==","dev": true},+ "node_modules/ts-toolbelt": {+ "version": "9.6.0",+ "resolved": "https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-9.6.0.tgz",+ "integrity": "sha512-nsZd8ZeNUzukXPlJmTBwUAuABDe/9qtVDelJeT/qW0ow3ZS3BsQJtNkan1802aM9Uf68/Y8ljw86Hu0h5IUW3w=="+ },"node_modules/tsconfig-paths": {"version": "3.14.2","resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",@@ -5056,6 +8076,18 @@"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==","dev": true},+ "node_modules/tunnel-agent": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",+ "optional": true,+ "dependencies": {+ "safe-buffer": "^5.0.1"+ },+ "engines": {+ "node": "*"+ }+ },"node_modules/type-check": {"version": "0.4.0","resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",@@ -5072,7 +8104,6 @@"version": "0.20.2","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz","integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",- "dev": true,"engines": {"node": ">=10"},@@ -5080,6 +8111,14 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/type-flag": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/type-flag/-/type-flag-2.2.0.tgz",+ "integrity": "sha512-zumH8ohtlidBe1aqRY99OxaUY1SCdtyQlCxiXlnAyPMby6GtMem4Y7+geySt/k3MFs0pnNzQpI/nSki4yJp5Jg==",+ "funding": {+ "url": "https://github.com/privatenumber/type-flag?sponsor=1"+ }+ },"node_modules/typed-array-length": {"version": "1.0.4","resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz",@@ -5094,6 +8133,14 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/types-ramda": {+ "version": "0.29.2",+ "resolved": "https://registry.npmjs.org/types-ramda/-/types-ramda-0.29.2.tgz",+ "integrity": "sha512-HpLcR0ly2EfXQwG8VSI5ov6ml7PvtT+u+cp+7lZLu7q4nhnPDVW+rUTC1uy/SNs4aAyTUXri5M/LyhgvjEXJDg==",+ "dependencies": {+ "ts-toolbelt": "^9.6.0"+ }+ },"node_modules/typescript": {"version": "5.0.4","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",@@ -5107,6 +8154,17 @@"node": ">=12.20"}},+ "node_modules/uid": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.1.tgz",+ "integrity": "sha512-PF+1AnZgycpAIEmNtjxGBVmKbZAQguaa4pBUq6KNaGEcpzZ2klCNZLM34tsjp76maN00TttiiUf6zkIBpJQm2A==",+ "dependencies": {+ "@lukeed/csprng": "^1.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/unbox-primitive": {"version": "1.0.2","resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",@@ -5122,6 +8180,19 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/universalify": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/unraw": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/unraw/-/unraw-2.0.1.tgz",+ "integrity": "sha512-tdOvLfRzHolwYcHS6HIX860MkK9LQ4+oLuNwFYL7bpgTEO64PZrcQxkisgwJYCfF8sKiWLwwu1c83DvMkbefIQ=="+ },"node_modules/untildify": {"version": "4.0.0","resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",@@ -5170,6 +8241,29 @@"punycode": "^2.1.0"}},+ "node_modules/url": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",+ "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==",+ "dependencies": {+ "punycode": "1.3.2",+ "querystring": "0.2.0"+ }+ },+ "node_modules/url-parse": {+ "version": "1.5.10",+ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",+ "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",+ "dependencies": {+ "querystringify": "^2.1.1",+ "requires-port": "^1.0.0"+ }+ },+ "node_modules/url/node_modules/punycode": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",+ "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw=="+ },"node_modules/use-sync-external-store": {"version": "1.2.0","resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",@@ -5181,8 +8275,7 @@"node_modules/util-deprecate": {"version": "1.0.2","resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",- "dev": true+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="},"node_modules/uuid": {"version": "8.3.2",@@ -5198,6 +8291,50 @@"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==","dev": true},+ "node_modules/validator": {+ "version": "13.9.0",+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.9.0.tgz",+ "integrity": "sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/wcwidth": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",+ "dependencies": {+ "defaults": "^1.0.3"+ }+ },+ "node_modules/web-streams-polyfill": {+ "version": "4.0.0-beta.3",+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",+ "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/web-tree-sitter": {+ "version": "0.20.7",+ "resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.20.7.tgz",+ "integrity": "sha512-flC9JJmTII9uAeeYpWF8hxDJ7bfY+leldQryetll8Nv4WgI+MXc6h7TiyAZASWl9uC9TvmfdgOjZn1DAQecb3A==",+ "optional": true+ },+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",@@ -5264,6 +8401,15 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/wide-align": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",+ "optional": true,+ "dependencies": {+ "string-width": "^1.0.2 || 2 || 3 || 4"+ }+ },"node_modules/word-wrap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",@@ -5273,11 +8419,55 @@"node": ">=0.10.0"}},+ "node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },"node_modules/wrappy": {"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",- "dev": true+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ },+ "node_modules/xml": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",+ "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw=="+ },+ "node_modules/xml-but-prettier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/xml-but-prettier/-/xml-but-prettier-1.0.1.tgz",+ "integrity": "sha512-C2CJaadHrZTqESlH03WOyw0oZTtoy2uEg6dSDF6YRg+9GnYNub53RRemLpnvtbHDFelxMx4LajiFsYeR6XJHgQ==",+ "dependencies": {+ "repeat-string": "^1.5.2"+ }+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "engines": {+ "node": ">=10"+ }},"node_modules/yallist": {"version": "4.0.0",@@ -5293,6 +8483,31 @@"node": ">= 14"}},+ "node_modules/yargs": {+ "version": "16.2.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",+ "dependencies": {+ "cliui": "^7.0.2",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.0",+ "y18n": "^5.0.5",+ "yargs-parser": "^20.2.2"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yargs-parser": {+ "version": "20.2.9",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",+ "engines": {+ "node": ">=10"+ }+ },"node_modules/yn": {"version": "3.1.1","resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",@@ -5314,6 +8529,41 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/z-schema": {+ "version": "5.0.5",+ "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz",+ "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==",+ "dev": true,+ "dependencies": {+ "lodash.get": "^4.4.2",+ "lodash.isequal": "^4.5.0",+ "validator": "^13.7.0"+ },+ "bin": {+ "z-schema": "bin/z-schema"+ },+ "engines": {+ "node": ">=8.0.0"+ },+ "optionalDependencies": {+ "commander": "^9.4.1"+ }+ },+ "node_modules/z-schema/node_modules/commander": {+ "version": "9.5.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",+ "dev": true,+ "optional": true,+ "engines": {+ "node": "^12.20.0 || >=14"+ }+ },+ "node_modules/zenscroll": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/zenscroll/-/zenscroll-4.0.2.tgz",+ "integrity": "sha512-jEA1znR7b4C/NnaycInCU6h/d15ZzCd1jmsruqOKnZP6WXQSMH3W2GL+OXbkruslU4h+Tzuos0HdswzRUk/Vgg=="+ },"node_modules/zod": {"version": "3.21.4","resolved": "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz",diff --git a/package.json b/package.jsonindex b1ccffe95c..72d90bb908 100644--- a/package.json+++ b/package.json@@ -14,6 +14,7 @@},"dependencies": {"@next-auth/prisma-adapter": "^1.0.5",+ "@openapitools/openapi-generator-cli": "^2.6.0","@prisma/client": "^4.11.0","@t3-oss/env-nextjs": "^0.2.1","@tanstack/react-query": "^4.28.0",@@ -23,16 +24,18 @@"@trpc/server": "^10.18.0","next": "^13.4.1","next-auth": "^4.21.0",+ "next-swagger-doc": "^0.3.6","react": "18.2.0","react-dom": "18.2.0","superjson": "1.12.2",+ "swagger-ui-react": "^4.18.3","zod": "^3.21.4"},"devDependencies": {"@types/eslint": "^8.21.3","@types/node": "^18.16.13","@types/prettier": "^2.7.2",- "@types/react": "^18.0.28",+ "@types/react": "^18.2.6","@types/react-dom": "^18.0.11","@typescript-eslint/eslint-plugin": "^5.56.0","@typescript-eslint/parser": "^5.56.0",@@ -43,6 +46,7 @@"prettier": "^2.8.6","prettier-plugin-tailwindcss": "^0.2.6","prisma": "^4.11.0",+ "swagger-jsdoc": "^6.2.8","tailwindcss": "^3.3.0","ts-node": "^10.9.1","typescript": "^5.0.4"diff --git a/sdk/python/.gitignore b/sdk/python/.gitignorenew file mode 100644index 0000000000..a62e8aba43--- /dev/null+++ b/sdk/python/.gitignore@@ -0,0 +1,67 @@+# Byte-compiled / optimized / DLL files+__pycache__/+*.py[cod]+*$py.class++# C extensions+*.so++# Distribution / packaging+.Python+env/+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+*.egg-info/+.installed.cfg+*.egg++# PyInstaller+# Usually these files are written by a python script from a template+# before PyInstaller builds the exe, so as to inject date/other infos into it.+*.manifest+*.spec++# Installer logs+pip-log.txt+pip-delete-this-directory.txt+dev-requirements.txt.log++# Unit test / coverage reports+htmlcov/+.tox/+.coverage+.coverage.*+.cache+nosetests.xml+coverage.xml+*,cover+.hypothesis/+venv/+.venv/+.python-version+.pytest_cache++# Translations+*.mo+*.pot++# Django stuff:+*.log++# Sphinx documentation+docs/_build/++# PyBuilder+target/++#Ipython Notebook+.ipynb_checkpointsdiff --git a/sdk/python/.gitlab-ci.yml b/sdk/python/.gitlab-ci.ymlnew file mode 100644index 0000000000..7b0e377bd7--- /dev/null+++ b/sdk/python/.gitlab-ci.yml@@ -0,0 +1,24 @@+# ref: https://docs.gitlab.com/ee/ci/README.html++stages:+ - test++.tests:+ stage: test+ script:+ - pip install -r requirements.txt+ - pip install -r test-requirements.txt+ - pytest --cov=openapi_client++test-3.5:+ extends: .tests+ image: python:3.5-alpine+test-3.6:+ extends: .tests+ image: python:3.6-alpine+test-3.7:+ extends: .tests+ image: python:3.7-alpine+test-3.8:+ extends: .tests+ image: python:3.8-alpinediff --git a/sdk/python/.openapi-generator-ignore b/sdk/python/.openapi-generator-ignorenew file mode 100644index 0000000000..7484ee590a--- /dev/null+++ b/sdk/python/.openapi-generator-ignore@@ -0,0 +1,23 @@+# OpenAPI Generator Ignore+# Generated by openapi-generator https://github.com/openapitools/openapi-generator++# Use this file to prevent files from being overwritten by the generator.+# The patterns follow closely to .gitignore or .dockerignore.++# As an example, the C# client generator defines ApiClient.cs.+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:+#ApiClient.cs++# You can match any string of characters against a directory, file or extension with a single asterisk (*):+#foo/*/qux+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux++# You can recursively match patterns against a directory, file or extension with a double asterisk (**):+#foo/**/qux+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux++# You can also negate patterns with an exclamation (!).+# For example, you can ignore all files in a docs folder with the file extension .md:+#docs/*.md+# Then explicitly reverse the ignore rule for a single file:+#!docs/README.mddiff --git a/sdk/python/.openapi-generator/FILES b/sdk/python/.openapi-generator/FILESnew file mode 100644index 0000000000..bf25a06ea2--- /dev/null+++ b/sdk/python/.openapi-generator/FILES@@ -0,0 +1,23 @@+.gitignore+.gitlab-ci.yml+.travis.yml+README.md+docs/apis/tags/DefaultApi.md+git_push.sh+openapi_client/__init__.py+openapi_client/api_client.py+openapi_client/apis/__init__.py+openapi_client/apis/tags/default_api.py+openapi_client/configuration.py+openapi_client/exceptions.py+openapi_client/model/__init__.py+openapi_client/models/__init__.py+openapi_client/rest.py+openapi_client/schemas.py+requirements.txt+setup.cfg+setup.py+test-requirements.txt+test/__init__.py+test/test_models/__init__.py+tox.inidiff --git a/sdk/python/.openapi-generator/VERSION b/sdk/python/.openapi-generator/VERSIONnew file mode 100644index 0000000000..cd802a1ec4--- /dev/null+++ b/sdk/python/.openapi-generator/VERSION@@ -0,0 +1 @@+6.6.0\ No newline at end of filediff --git a/sdk/python/.travis.yml b/sdk/python/.travis.ymlnew file mode 100644index 0000000000..43ac6b56cf--- /dev/null+++ b/sdk/python/.travis.yml@@ -0,0 +1,13 @@+# ref: https://docs.travis-ci.com/user/languages/python+language: python+python:+ - "3.5"+ - "3.6"+ - "3.7"+ - "3.8"+# command to install dependencies+install:+ - "pip install -r requirements.txt"+ - "pip install -r test-requirements.txt"+# command to run tests+script: pytest --cov=openapi_clientdiff --git a/sdk/python/README.md b/sdk/python/README.mdnew file mode 100644index 0000000000..820408534b--- /dev/null+++ b/sdk/python/README.md@@ -0,0 +1,210 @@+# openapi-client+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)++This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:++- API version: 0.1.0+- Package version: 1.0.0+- Build package: org.openapitools.codegen.languages.PythonClientCodegen++## Requirements.++Python >=3.7++## Migration from other generators like python and python-legacy++### Changes+1. This generator uses spec case for all (object) property names and parameter names.+ - So if the spec has a property name like camelCase, it will use camelCase rather than camel_case+ - So you will need to update how you input and read properties to use spec case+2. Endpoint parameters are stored in dictionaries to prevent collisions (explanation below)+ - So you will need to update how you pass data in to endpoints+3. Endpoint responses now include the original response, the deserialized response body, and (todo)the deserialized headers+ - So you will need to update your code to use response.body to access deserialized data+4. All validated data is instantiated in an instance that subclasses all validated Schema classes and Decimal/str/list/tuple/frozendict/NoneClass/BoolClass/bytes/io.FileIO+ - This means that you can use isinstance to check if a payload validated against a schema class+ - This means that no data will be of type None/True/False+ - ingested None will subclass NoneClass+ - ingested True will subclass BoolClass+ - ingested False will subclass BoolClass+ - So if you need to check is True/False/None, instead use instance.is_true_oapg()/.is_false_oapg()/.is_none_oapg()+5. All validated class instances are immutable except for ones based on io.File+ - This is because if properties were changed after validation, that validation would no longer apply+ - So no changing values or property values after a class has been instantiated+6. String + Number types with formats+ - String type data is stored as a string and if you need to access types based on its format like date,+ date-time, uuid, number etc then you will need to use accessor functions on the instance+ - type string + format: See .as_date_oapg, .as_datetime_oapg, .as_decimal_oapg, .as_uuid_oapg+ - type number + format: See .as_float_oapg, .as_int_oapg+ - this was done because openapi/json-schema defines constraints. string data may be type string with no format+ keyword in one schema, and include a format constraint in another schema+ - So if you need to access a string format based type, use as_date_oapg/as_datetime_oapg/as_decimal_oapg/as_uuid_oapg+ - So if you need to access a number format based type, use as_int_oapg/as_float_oapg+7. Property access on AnyType(type unset) or object(dict) schemas+ - Only required keys with valid python names are properties like .someProp and have type hints+ - All optional keys may not exist, so properties are not defined for them+ - One can access optional values with dict_instance['optionalProp'] and KeyError will be raised if it does not exist+ - Use get_item_oapg if you need a way to always get a value whether or not the key exists+ - If the key does not exist, schemas.unset is returned from calling dict_instance.get_item_oapg('optionalProp')+ - All required and optional keys have type hints for this method, and @typing.overload is used+ - A type hint is also generated for additionalProperties accessed using this method+ - So you will need to update you code to use some_instance['optionalProp'] to access optional property+ and additionalProperty values+8. The location of the api classes has changed+ - Api classes are located in your_package.apis.tags.some_api+ - This change was made to eliminate redundant code generation+ - Legacy generators generated the same endpoint twice if it had > 1 tag on it+ - This generator defines an endpoint in one class, then inherits that class to generate+ apis by tags and by paths+ - This change reduces code and allows quicker run time if you use the path apis+ - path apis are at your_package.apis.paths.some_path+ - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api+ - So you will need to update your import paths to the api classes++### Why are Oapg and _oapg used in class and method names?+Classes can have arbitrarily named properties set on them+Endpoints can have arbitrary operationId method names set+For those reasons, I use the prefix Oapg and _oapg to greatly reduce the likelihood of collisions+on protected + public classes/methods.+oapg stands for OpenApi Python Generator.++### Object property spec case+This was done because when payloads are ingested, they can be validated against N number of schemas.+If the input signature used a different property name then that has mutated the payload.+So SchemaA and SchemaB must both see the camelCase spec named variable.+Also it is possible to send in two properties, named camelCase and camel_case in the same payload.+That use case should be support so spec case is used.++### Parameter spec case+Parameters can be included in different locations including:+- query+- path+- header+- cookie++Any of those parameters could use the same parameter names, so if every parameter+was included as an endpoint parameter in a function signature, they would collide.+For that reason, each of those inputs have been separated out into separate typed dictionaries:+- query_params+- path_params+- header_params+- cookie_params++So when updating your code, you will need to pass endpoint parameters in using those+dictionaries.++### Endpoint responses+Endpoint responses have been enriched to now include more information.+Any response reom an endpoint will now include the following properties:+response: urllib3.HTTPResponse+body: typing.Union[Unset, Schema]+headers: typing.Union[Unset, TODO]+Note: response header deserialization has not yet been added+++## Installation & Usage+### pip install++If the python package is hosted on a repository, you can install directly using:++```sh+pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git+```+(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)++Then import the package:+```python+import openapi_client+```++### Setuptools++Install via [Setuptools](http://pypi.python.org/pypi/setuptools).++```sh+python setup.py install --user+```+(or `sudo python setup.py install` to install the package for all users)++Then import the package:+```python+import openapi_client+```++## Getting Started++Please follow the [installation procedure](#installation--usage) and then run the following:++```python++import time+import openapi_client+from pprint import pprint+from openapi_client.apis.tags import default_api+# Defining the host is optional and defaults to http://localhost+# See configuration.py for a list of all supported configuration parameters.+configuration = openapi_client.Configuration(+ host = "http://localhost"+)+++# Enter a context with an instance of the API client+with openapi_client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = default_api.DefaultApi(api_client)+ any_type = dict(+ trace_id="trace_id_example",+ type="span",+ name="name_example",+ start_time="1970-01-01T00:00:00.00Z",+ end_time="1970-01-01T00:00:00.00Z",+ attributes=dict(),+ parent_observation_id="parent_observation_id_example",+ ) # anyType |++ try:+ # Creates a new observation+ api_response = api_instance.api_observations_post(any_type)+ pprint(api_response)+ except openapi_client.ApiException as e:+ print("Exception when calling DefaultApi->api_observations_post: %s\n" % e)+```++## Documentation for API Endpoints++All URIs are relative to *http://localhost*++Class | Method | HTTP request | Description+------------ | ------------- | ------------- | -------------+*DefaultApi* | [**api_observations_post**](docs/apis/tags/DefaultApi.md#api_observations_post) | **post** /api/observations | Creates a new observation++## Documentation For Models+++## Documentation For Authorization++ Endpoints do not require authorization.+++## Author++++## Notes for Large OpenAPI documents+If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a+RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:++Solution 1:+Use specific imports for apis and models like:+- `from openapi_client.apis.default_api import DefaultApi`+- `from openapi_client.model.pet import Pet`++Solution 1:+Before importing the package, adjust the maximum recursion limit as shown below:+```+import sys+sys.setrecursionlimit(1500)+import openapi_client+from openapi_client.apis import *+from openapi_client.models import *+```diff --git a/sdk/python/docs/apis/tags/DefaultApi.md b/sdk/python/docs/apis/tags/DefaultApi.mdnew file mode 100644index 0000000000..878d6ba2d0--- /dev/null+++ b/sdk/python/docs/apis/tags/DefaultApi.md@@ -0,0 +1,194 @@+<a id="__pageTop"></a>+# openapi_client.apis.tags.default_api.DefaultApi++All URIs are relative to *http://localhost*++Method | HTTP request | Description+------------- | ------------- | -------------+[**api_observations_post**](#api_observations_post) | **post** /api/observations | Creates a new observation++# **api_observations_post**+<a id="api_observations_post"></a>+> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} api_observations_post(any_type)++Creates a new observation++### Example++```python+import openapi_client+from openapi_client.apis.tags import default_api+from pprint import pprint+# Defining the host is optional and defaults to http://localhost+# See configuration.py for a list of all supported configuration parameters.+configuration = openapi_client.Configuration(+ host = "http://localhost"+)++# Enter a context with an instance of the API client+with openapi_client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = default_api.DefaultApi(api_client)++ # example passing only required values which don't have defaults set+ body = dict(+ trace_id="trace_id_example",+ type="span",+ name="name_example",+ start_time="1970-01-01T00:00:00.00Z",+ end_time="1970-01-01T00:00:00.00Z",+ attributes=dict(),+ parent_observation_id="parent_observation_id_example",+ )+ try:+ # Creates a new observation+ api_response = api_instance.api_observations_post(+ body=body,+ )+ pprint(api_response)+ except openapi_client.ApiException as e:+ print("Exception when calling DefaultApi->api_observations_post: %s\n" % e)+```+### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+body | typing.Union[SchemaForRequestBodyApplicationJson] | required |+content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body+accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client+stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file+timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client+skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned++### body++# SchemaForRequestBodyApplicationJson++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**traceId** | str, | str, | The trace ID associated with the observation | [optional]+**type** | str, | str, | The type of the observation | [optional] must be one of ["span", "event", ]+**name** | str, | str, | The name of the observation | [optional]+**startTime** | str, datetime, | str, | The start time of the observation | [optional] value must conform to RFC-3339 date-time+**endTime** | str, datetime, | str, | The end time of the observation | [optional] value must conform to RFC-3339 date-time+**[attributes](#attributes)** | dict, frozendict.frozendict, | frozendict.frozendict, | Attributes of the observation | [optional]+**parentObservationId** | str, | str, | The parent observation ID associated with the observation | [optional]+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++# attributes++Attributes of the observation++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | Attributes of the observation |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++### Return Types, Responses++Code | Class | Description+------------- | ------------- | -------------+n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned+201 | [ApiResponseFor201](#api_observations_post.ApiResponseFor201) | Observation created successfully+400 | [ApiResponseFor400](#api_observations_post.ApiResponseFor400) | Invalid request data+405 | [ApiResponseFor405](#api_observations_post.ApiResponseFor405) | Method not allowed++#### api_observations_post.ApiResponseFor201+Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+response | urllib3.HTTPResponse | Raw response |+body | typing.Union[SchemaFor201ResponseBodyApplicationJson, ] | |+headers | Unset | headers were not defined |++# SchemaFor201ResponseBodyApplicationJson++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**success** | bool, | BoolClass, | | [optional]+**[observation](#observation)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional]+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++# observation++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**id** | str, | str, | | [optional]+**traceId** | str, | str, | | [optional]+**type** | str, | str, | | [optional]+**name** | str, | str, | | [optional]+**startTime** | str, datetime, | str, | | [optional] value must conform to RFC-3339 date-time+**endTime** | str, datetime, | str, | | [optional] value must conform to RFC-3339 date-time+**[attributes](#attributes)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional]+**parentObservationId** | str, | str, | | [optional]+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++# attributes++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++#### api_observations_post.ApiResponseFor400+Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+response | urllib3.HTTPResponse | Raw response |+body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | |+headers | Unset | headers were not defined |++# SchemaFor400ResponseBodyApplicationJson++## Model Type Info+Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | -------------+dict, frozendict.frozendict, | frozendict.frozendict, | |++### Dictionary Keys+Key | Input Type | Accessed Type | Description | Notes+------------ | ------------- | ------------- | ------------- | -------------+**success** | bool, | BoolClass, | | [optional]+**message** | str, | str, | | [optional]+**error** | str, | str, | | [optional]+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]++#### api_observations_post.ApiResponseFor405+Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+response | urllib3.HTTPResponse | Raw response |+body | Unset | body was not defined |+headers | Unset | headers were not defined |++### Authorization++No authorization required++[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)+diff --git a/sdk/python/git_push.sh b/sdk/python/git_push.shnew file mode 100644index 0000000000..200e975d21--- /dev/null+++ b/sdk/python/git_push.sh@@ -0,0 +1,58 @@+#!/bin/sh+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/+#+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"++git_user_id=$1+git_repo_id=$2+release_note=$3+git_host=$4++if [ "$git_host" = "" ]; then+ git_host="github.com"+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"+fi++if [ "$git_user_id" = "" ]; then+ git_user_id="GIT_USER_ID"+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"+fi++if [ "$git_repo_id" = "" ]; then+ git_repo_id="GIT_REPO_ID"+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"+fi++if [ "$release_note" = "" ]; then+ release_note="Minor update"+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"+fi++# Initialize the local directory as a Git repository+git init++# Adds the files in the local repository and stages them for commit.+git add .++# Commits the tracked changes and prepares them to be pushed to a remote repository.+git commit -m "$release_note"++# Sets the new remote+git_remote=`git remote`+if [ "$git_remote" = "" ]; then # git remote not defined++ if [ "$GIT_TOKEN" = "" ]; then+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git+ else+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git+ fi++fi++git pull origin master++# Pushes (Forces) the changes in the local repository up to the remote repository+echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"+git push origin master 2>&1 | grep -v 'To https'+diff --git a/sdk/python/openapi_client/__init__.py b/sdk/python/openapi_client/__init__.pynew file mode 100644index 0000000000..ba1173ab2b--- /dev/null+++ b/sdk/python/openapi_client/__init__.py@@ -0,0 +1,28 @@+# coding: utf-8++# flake8: noqa++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++__version__ = "1.0.0"++# import ApiClient+from openapi_client.api_client import ApiClient++# import Configuration+from openapi_client.configuration import Configuration++# import exceptions+from openapi_client.exceptions import OpenApiException+from openapi_client.exceptions import ApiAttributeError+from openapi_client.exceptions import ApiTypeError+from openapi_client.exceptions import ApiValueError+from openapi_client.exceptions import ApiKeyError+from openapi_client.exceptions import ApiExceptiondiff --git a/sdk/python/openapi_client/api_client.py b/sdk/python/openapi_client/api_client.pynew file mode 100644index 0000000000..80b75b0596--- /dev/null+++ b/sdk/python/openapi_client/api_client.py@@ -0,0 +1,1499 @@+# coding: utf-8+"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++from dataclasses import dataclass+from decimal import Decimal+import enum+import email+import json+import os+import io+import atexit+from multiprocessing.pool import ThreadPool+import re+import tempfile+import typing+import typing_extensions+import urllib3+from urllib3._collections import HTTPHeaderDict+from urllib.parse import urlparse, quote+from urllib3.fields import RequestField as RequestFieldBase++import frozendict++from openapi_client import rest+from openapi_client.configuration import Configuration+from openapi_client.exceptions import ApiTypeError, ApiValueError+from openapi_client.schemas import (+ NoneClass,+ BoolClass,+ Schema,+ FileIO,+ BinarySchema,+ date,+ datetime,+ none_type,+ Unset,+ unset,+)+++class RequestField(RequestFieldBase):+ def __eq__(self, other):+ if not isinstance(other, RequestField):+ return False+ return self.__dict__ == other.__dict__+++class JSONEncoder(json.JSONEncoder):+ compact_separators = (',', ':')++ def default(self, obj):+ if isinstance(obj, str):+ return str(obj)+ elif isinstance(obj, float):+ return float(obj)+ elif isinstance(obj, int):+ return int(obj)+ elif isinstance(obj, Decimal):+ if obj.as_tuple().exponent >= 0:+ return int(obj)+ return float(obj)+ elif isinstance(obj, NoneClass):+ return None+ elif isinstance(obj, BoolClass):+ return bool(obj)+ elif isinstance(obj, (dict, frozendict.frozendict)):+ return {key: self.default(val) for key, val in obj.items()}+ elif isinstance(obj, (list, tuple)):+ return [self.default(item) for item in obj]+ raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__))+++class ParameterInType(enum.Enum):+ QUERY = 'query'+ HEADER = 'header'+ PATH = 'path'+ COOKIE = 'cookie'+++class ParameterStyle(enum.Enum):+ MATRIX = 'matrix'+ LABEL = 'label'+ FORM = 'form'+ SIMPLE = 'simple'+ SPACE_DELIMITED = 'spaceDelimited'+ PIPE_DELIMITED = 'pipeDelimited'+ DEEP_OBJECT = 'deepObject'+++class PrefixSeparatorIterator:+ # A class to store prefixes and separators for rfc6570 expansions++ def __init__(self, prefix: str, separator: str):+ self.prefix = prefix+ self.separator = separator+ self.first = True+ if separator in {'.', '|', '%20'}:+ item_separator = separator+ else:+ item_separator = ','+ self.item_separator = item_separator++ def __iter__(self):+ return self++ def __next__(self):+ if self.first:+ self.first = False+ return self.prefix+ return self.separator+++class ParameterSerializerBase:+ @classmethod+ def _get_default_explode(cls, style: ParameterStyle) -> bool:+ return False++ @staticmethod+ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool):+ """+ Get representation if str/float/int/None/items in list/ values in dict+ None is returned if an item is undefined, use cases are value=+ - None+ - []+ - {}+ - [None, None None]+ - {'a': None, 'b': None}+ """+ if type(in_data) in {str, float, int}:+ if percent_encode:+ return quote(str(in_data))+ return str(in_data)+ elif isinstance(in_data, none_type):+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return None+ elif isinstance(in_data, list) and not in_data:+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return None+ elif isinstance(in_data, dict) and not in_data:+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return None+ raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data))++ @staticmethod+ def _to_dict(name: str, value: str):+ return {name: value}++ @classmethod+ def __ref6570_str_float_int_expansion(+ cls,+ variable_name: str,+ in_data: typing.Any,+ explode: bool,+ percent_encode: bool,+ prefix_separator_iterator: PrefixSeparatorIterator,+ var_name_piece: str,+ named_parameter_expansion: bool+ ) -> str:+ item_value = cls.__ref6570_item_value(in_data, percent_encode)+ if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'):+ return next(prefix_separator_iterator) + var_name_piece+ value_pair_equals = '=' if named_parameter_expansion else ''+ return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value++ @classmethod+ def __ref6570_list_expansion(+ cls,+ variable_name: str,+ in_data: typing.Any,+ explode: bool,+ percent_encode: bool,+ prefix_separator_iterator: PrefixSeparatorIterator,+ var_name_piece: str,+ named_parameter_expansion: bool+ ) -> str:+ item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data]+ item_values = [v for v in item_values if v is not None]+ if not item_values:+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return ""+ value_pair_equals = '=' if named_parameter_expansion else ''+ if not explode:+ return (+ next(prefix_separator_iterator) ++ var_name_piece ++ value_pair_equals ++ prefix_separator_iterator.item_separator.join(item_values)+ )+ # exploded+ return next(prefix_separator_iterator) + next(prefix_separator_iterator).join(+ [var_name_piece + value_pair_equals + val for val in item_values]+ )++ @classmethod+ def __ref6570_dict_expansion(+ cls,+ variable_name: str,+ in_data: typing.Any,+ explode: bool,+ percent_encode: bool,+ prefix_separator_iterator: PrefixSeparatorIterator,+ var_name_piece: str,+ named_parameter_expansion: bool+ ) -> str:+ in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()}+ in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None}+ if not in_data_transformed:+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return ""+ value_pair_equals = '=' if named_parameter_expansion else ''+ if not explode:+ return (+ next(prefix_separator_iterator) ++ var_name_piece + value_pair_equals ++ prefix_separator_iterator.item_separator.join(+ prefix_separator_iterator.item_separator.join(+ item_pair+ ) for item_pair in in_data_transformed.items()+ )+ )+ # exploded+ return next(prefix_separator_iterator) + next(prefix_separator_iterator).join(+ [key + '=' + val for key, val in in_data_transformed.items()]+ )++ @classmethod+ def _ref6570_expansion(+ cls,+ variable_name: str,+ in_data: typing.Any,+ explode: bool,+ percent_encode: bool,+ prefix_separator_iterator: PrefixSeparatorIterator+ ) -> str:+ """+ Separator is for separate variables like dict with explode true, not for array item separation+ """+ named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'}+ var_name_piece = variable_name if named_parameter_expansion else ''+ if type(in_data) in {str, float, int}:+ return cls.__ref6570_str_float_int_expansion(+ variable_name,+ in_data,+ explode,+ percent_encode,+ prefix_separator_iterator,+ var_name_piece,+ named_parameter_expansion+ )+ elif isinstance(in_data, none_type):+ # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1+ return ""+ elif isinstance(in_data, list):+ return cls.__ref6570_list_expansion(+ variable_name,+ in_data,+ explode,+ percent_encode,+ prefix_separator_iterator,+ var_name_piece,+ named_parameter_expansion+ )+ elif isinstance(in_data, dict):+ return cls.__ref6570_dict_expansion(+ variable_name,+ in_data,+ explode,+ percent_encode,+ prefix_separator_iterator,+ var_name_piece,+ named_parameter_expansion+ )+ # bool, bytes, etc+ raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data))+++class StyleFormSerializer(ParameterSerializerBase):+ @classmethod+ def _get_default_explode(cls, style: ParameterStyle) -> bool:+ if style is ParameterStyle.FORM:+ return True+ return super()._get_default_explode(style)++ def _serialize_form(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ name: str,+ explode: bool,+ percent_encode: bool,+ prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None+ ) -> str:+ if prefix_separator_iterator is None:+ prefix_separator_iterator = PrefixSeparatorIterator('', '&')+ return self._ref6570_expansion(+ variable_name=name,+ in_data=in_data,+ explode=explode,+ percent_encode=percent_encode,+ prefix_separator_iterator=prefix_separator_iterator+ )+++class StyleSimpleSerializer(ParameterSerializerBase):++ def _serialize_simple(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ name: str,+ explode: bool,+ percent_encode: bool+ ) -> str:+ prefix_separator_iterator = PrefixSeparatorIterator('', ',')+ return self._ref6570_expansion(+ variable_name=name,+ in_data=in_data,+ explode=explode,+ percent_encode=percent_encode,+ prefix_separator_iterator=prefix_separator_iterator+ )+++class JSONDetector:+ """+ Works for:+ application/json+ application/json; charset=UTF-8+ application/json-patch+json+ application/geo+json+ """+ __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*")++ @classmethod+ def _content_type_is_json(cls, content_type: str) -> bool:+ if cls.__json_content_type_pattern.match(content_type):+ return True+ return False+++@dataclass+class ParameterBase(JSONDetector):+ name: str+ in_type: ParameterInType+ required: bool+ style: typing.Optional[ParameterStyle]+ explode: typing.Optional[bool]+ allow_reserved: typing.Optional[bool]+ schema: typing.Optional[typing.Type[Schema]]+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]]++ __style_to_in_type = {+ ParameterStyle.MATRIX: {ParameterInType.PATH},+ ParameterStyle.LABEL: {ParameterInType.PATH},+ ParameterStyle.FORM: {ParameterInType.QUERY, ParameterInType.COOKIE},+ ParameterStyle.SIMPLE: {ParameterInType.PATH, ParameterInType.HEADER},+ ParameterStyle.SPACE_DELIMITED: {ParameterInType.QUERY},+ ParameterStyle.PIPE_DELIMITED: {ParameterInType.QUERY},+ ParameterStyle.DEEP_OBJECT: {ParameterInType.QUERY},+ }+ __in_type_to_default_style = {+ ParameterInType.QUERY: ParameterStyle.FORM,+ ParameterInType.PATH: ParameterStyle.SIMPLE,+ ParameterInType.HEADER: ParameterStyle.SIMPLE,+ ParameterInType.COOKIE: ParameterStyle.FORM,+ }+ __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'}+ _json_encoder = JSONEncoder()++ @classmethod+ def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType):+ if style is None:+ return+ in_type_set = cls.__style_to_in_type[style]+ if in_type not in in_type_set:+ raise ValueError(+ 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format(+ style, in_type_set+ )+ )++ def __init__(+ self,+ name: str,+ in_type: ParameterInType,+ required: bool = False,+ style: typing.Optional[ParameterStyle] = None,+ explode: bool = False,+ allow_reserved: typing.Optional[bool] = None,+ schema: typing.Optional[typing.Type[Schema]] = None,+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None+ ):+ if schema is None and content is None:+ raise ValueError('Value missing; Pass in either schema or content')+ if schema and content:+ raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input')+ if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER:+ raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names))+ self.__verify_style_to_in_type(style, in_type)+ if content is None and style is None:+ style = self.__in_type_to_default_style[in_type]+ if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1:+ raise ValueError('Invalid content length, content length must equal 1')+ self.in_type = in_type+ self.name = name+ self.required = required+ self.style = style+ self.explode = explode+ self.allow_reserved = allow_reserved+ self.schema = schema+ self.content = content++ def _serialize_json(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ eliminate_whitespace: bool = False+ ) -> str:+ if eliminate_whitespace:+ return json.dumps(in_data, separators=self._json_encoder.compact_separators)+ return json.dumps(in_data)+++class PathParameter(ParameterBase, StyleSimpleSerializer):++ def __init__(+ self,+ name: str,+ required: bool = False,+ style: typing.Optional[ParameterStyle] = None,+ explode: bool = False,+ allow_reserved: typing.Optional[bool] = None,+ schema: typing.Optional[typing.Type[Schema]] = None,+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None+ ):+ super().__init__(+ name,+ in_type=ParameterInType.PATH,+ required=required,+ style=style,+ explode=explode,+ allow_reserved=allow_reserved,+ schema=schema,+ content=content+ )++ def __serialize_label(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list]+ ) -> typing.Dict[str, str]:+ prefix_separator_iterator = PrefixSeparatorIterator('.', '.')+ value = self._ref6570_expansion(+ variable_name=self.name,+ in_data=in_data,+ explode=self.explode,+ percent_encode=True,+ prefix_separator_iterator=prefix_separator_iterator+ )+ return self._to_dict(self.name, value)++ def __serialize_matrix(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list]+ ) -> typing.Dict[str, str]:+ prefix_separator_iterator = PrefixSeparatorIterator(';', ';')+ value = self._ref6570_expansion(+ variable_name=self.name,+ in_data=in_data,+ explode=self.explode,+ percent_encode=True,+ prefix_separator_iterator=prefix_separator_iterator+ )+ return self._to_dict(self.name, value)++ def __serialize_simple(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ ) -> typing.Dict[str, str]:+ value = self._serialize_simple(+ in_data=in_data,+ name=self.name,+ explode=self.explode,+ percent_encode=True+ )+ return self._to_dict(self.name, value)++ def serialize(+ self,+ in_data: typing.Union[+ Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]+ ) -> typing.Dict[str, str]:+ if self.schema:+ cast_in_data = self.schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ """+ simple -> path+ path:+ returns path_params: dict+ label -> path+ returns path_params+ matrix -> path+ returns path_params+ """+ if self.style:+ if self.style is ParameterStyle.SIMPLE:+ return self.__serialize_simple(cast_in_data)+ elif self.style is ParameterStyle.LABEL:+ return self.__serialize_label(cast_in_data)+ elif self.style is ParameterStyle.MATRIX:+ return self.__serialize_matrix(cast_in_data)+ # self.content will be length one+ for content_type, schema in self.content.items():+ cast_in_data = schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ if self._content_type_is_json(content_type):+ value = self._serialize_json(cast_in_data)+ return self._to_dict(self.name, value)+ raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))+++class QueryParameter(ParameterBase, StyleFormSerializer):++ def __init__(+ self,+ name: str,+ required: bool = False,+ style: typing.Optional[ParameterStyle] = None,+ explode: typing.Optional[bool] = None,+ allow_reserved: typing.Optional[bool] = None,+ schema: typing.Optional[typing.Type[Schema]] = None,+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None+ ):+ used_style = ParameterStyle.FORM if style is None else style+ used_explode = self._get_default_explode(used_style) if explode is None else explode++ super().__init__(+ name,+ in_type=ParameterInType.QUERY,+ required=required,+ style=used_style,+ explode=used_explode,+ allow_reserved=allow_reserved,+ schema=schema,+ content=content+ )++ def __serialize_space_delimited(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]+ ) -> typing.Dict[str, str]:+ if prefix_separator_iterator is None:+ prefix_separator_iterator = self.get_prefix_separator_iterator()+ value = self._ref6570_expansion(+ variable_name=self.name,+ in_data=in_data,+ explode=self.explode,+ percent_encode=True,+ prefix_separator_iterator=prefix_separator_iterator+ )+ return self._to_dict(self.name, value)++ def __serialize_pipe_delimited(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]+ ) -> typing.Dict[str, str]:+ if prefix_separator_iterator is None:+ prefix_separator_iterator = self.get_prefix_separator_iterator()+ value = self._ref6570_expansion(+ variable_name=self.name,+ in_data=in_data,+ explode=self.explode,+ percent_encode=True,+ prefix_separator_iterator=prefix_separator_iterator+ )+ return self._to_dict(self.name, value)++ def __serialize_form(+ self,+ in_data: typing.Union[None, int, float, str, bool, dict, list],+ prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator]+ ) -> typing.Dict[str, str]:+ if prefix_separator_iterator is None:+ prefix_separator_iterator = self.get_prefix_separator_iterator()+ value = self._serialize_form(+ in_data,+ name=self.name,+ explode=self.explode,+ percent_encode=True,+ prefix_separator_iterator=prefix_separator_iterator+ )+ return self._to_dict(self.name, value)++ def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]:+ if self.style is ParameterStyle.FORM:+ return PrefixSeparatorIterator('?', '&')+ elif self.style is ParameterStyle.SPACE_DELIMITED:+ return PrefixSeparatorIterator('', '%20')+ elif self.style is ParameterStyle.PIPE_DELIMITED:+ return PrefixSeparatorIterator('', '|')++ def serialize(+ self,+ in_data: typing.Union[+ Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict],+ prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None+ ) -> typing.Dict[str, str]:+ if self.schema:+ cast_in_data = self.schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ """+ form -> query+ query:+ - GET/HEAD/DELETE: could use fields+ - PUT/POST: must use urlencode to send parameters+ returns fields: tuple+ spaceDelimited -> query+ returns fields+ pipeDelimited -> query+ returns fields+ deepObject -> query, https://github.com/OAI/OpenAPI-Specification/issues/1706+ returns fields+ """+ if self.style:+ # TODO update query ones to omit setting values when [] {} or None is input+ if self.style is ParameterStyle.FORM:+ return self.__serialize_form(cast_in_data, prefix_separator_iterator)+ elif self.style is ParameterStyle.SPACE_DELIMITED:+ return self.__serialize_space_delimited(cast_in_data, prefix_separator_iterator)+ elif self.style is ParameterStyle.PIPE_DELIMITED:+ return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator)+ # self.content will be length one+ if prefix_separator_iterator is None:+ prefix_separator_iterator = self.get_prefix_separator_iterator()+ for content_type, schema in self.content.items():+ cast_in_data = schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ if self._content_type_is_json(content_type):+ value = self._serialize_json(cast_in_data, eliminate_whitespace=True)+ return self._to_dict(+ self.name,+ next(prefix_separator_iterator) + self.name + '=' + quote(value)+ )+ raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))+++class CookieParameter(ParameterBase, StyleFormSerializer):++ def __init__(+ self,+ name: str,+ required: bool = False,+ style: typing.Optional[ParameterStyle] = None,+ explode: typing.Optional[bool] = None,+ allow_reserved: typing.Optional[bool] = None,+ schema: typing.Optional[typing.Type[Schema]] = None,+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None+ ):+ used_style = ParameterStyle.FORM if style is None and content is None and schema else style+ used_explode = self._get_default_explode(used_style) if explode is None else explode++ super().__init__(+ name,+ in_type=ParameterInType.COOKIE,+ required=required,+ style=used_style,+ explode=used_explode,+ allow_reserved=allow_reserved,+ schema=schema,+ content=content+ )++ def serialize(+ self,+ in_data: typing.Union[+ Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]+ ) -> typing.Dict[str, str]:+ if self.schema:+ cast_in_data = self.schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ """+ form -> cookie+ returns fields: tuple+ """+ if self.style:+ """+ TODO add escaping of comma, space, equals+ or turn encoding on+ """+ value = self._serialize_form(+ cast_in_data,+ explode=self.explode,+ name=self.name,+ percent_encode=False,+ prefix_separator_iterator=PrefixSeparatorIterator('', '&')+ )+ return self._to_dict(self.name, value)+ # self.content will be length one+ for content_type, schema in self.content.items():+ cast_in_data = schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ if self._content_type_is_json(content_type):+ value = self._serialize_json(cast_in_data)+ return self._to_dict(self.name, value)+ raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))+++class HeaderParameter(ParameterBase, StyleSimpleSerializer):+ def __init__(+ self,+ name: str,+ required: bool = False,+ style: typing.Optional[ParameterStyle] = None,+ explode: bool = False,+ allow_reserved: typing.Optional[bool] = None,+ schema: typing.Optional[typing.Type[Schema]] = None,+ content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None+ ):+ super().__init__(+ name,+ in_type=ParameterInType.HEADER,+ required=required,+ style=style,+ explode=explode,+ allow_reserved=allow_reserved,+ schema=schema,+ content=content+ )++ @staticmethod+ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict:+ data = tuple(t for t in in_data if t)+ headers = HTTPHeaderDict()+ if not data:+ return headers+ headers.extend(data)+ return headers++ def serialize(+ self,+ in_data: typing.Union[+ Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]+ ) -> HTTPHeaderDict:+ if self.schema:+ cast_in_data = self.schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ """+ simple -> header+ headers: PoolManager needs a mapping, tuple is close+ returns headers: dict+ """+ if self.style:+ value = self._serialize_simple(cast_in_data, self.name, self.explode, False)+ return self.__to_headers(((self.name, value),))+ # self.content will be length one+ for content_type, schema in self.content.items():+ cast_in_data = schema(in_data)+ cast_in_data = self._json_encoder.default(cast_in_data)+ if self._content_type_is_json(content_type):+ value = self._serialize_json(cast_in_data)+ return self.__to_headers(((self.name, value),))+ raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type))+++class Encoding:+ def __init__(+ self,+ content_type: str,+ headers: typing.Optional[typing.Dict[str, HeaderParameter]] = None,+ style: typing.Optional[ParameterStyle] = None,+ explode: bool = False,+ allow_reserved: bool = False,+ ):+ self.content_type = content_type+ self.headers = headers+ self.style = style+ self.explode = explode+ self.allow_reserved = allow_reserved+++@dataclass+class MediaType:+ """+ Used to store request and response body schema information+ encoding:+ A map between a property name and its encoding information.+ The key, being the property name, MUST exist in the schema as a property.+ The encoding object SHALL only apply to requestBody objects when the media type is+ multipart or application/x-www-form-urlencoded.+ """+ schema: typing.Optional[typing.Type[Schema]] = None+ encoding: typing.Optional[typing.Dict[str, Encoding]] = None+++@dataclass+class ApiResponse:+ response: urllib3.HTTPResponse+ body: typing.Union[Unset, Schema] = unset+ headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset++ def __init__(+ self,+ response: urllib3.HTTPResponse,+ body: typing.Union[Unset, Schema] = unset,+ headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset+ ):+ """+ pycharm needs this to prevent 'Unexpected argument' warnings+ """+ self.response = response+ self.body = body+ self.headers = headers+++@dataclass+class ApiResponseWithoutDeserialization(ApiResponse):+ response: urllib3.HTTPResponse+ body: typing.Union[Unset, typing.Type[Schema]] = unset+ headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset+++class OpenApiResponse(JSONDetector):+ __filename_content_disposition_pattern = re.compile('filename="(.+?)"')++ def __init__(+ self,+ response_cls: typing.Type[ApiResponse] = ApiResponse,+ content: typing.Optional[typing.Dict[str, MediaType]] = None,+ headers: typing.Optional[typing.List[HeaderParameter]] = None,+ ):+ self.headers = headers+ if content is not None and len(content) == 0:+ raise ValueError('Invalid value for content, the content dict must have >= 1 entry')+ self.content = content+ self.response_cls = response_cls++ @staticmethod+ def __deserialize_json(response: urllib3.HTTPResponse) -> typing.Any:+ # python must be >= 3.9 so we can pass in bytes into json.loads+ return json.loads(response.data)++ @staticmethod+ def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing.Optional[str]:+ if response_url is None:+ return None+ url_path = urlparse(response_url).path+ if url_path:+ path_basename = os.path.basename(url_path)+ if path_basename:+ _filename, ext = os.path.splitext(path_basename)+ if ext:+ return path_basename+ return None++ @classmethod+ def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]:+ if content_disposition is None:+ return None+ match = cls.__filename_content_disposition_pattern.search(content_disposition)+ if not match:+ return None+ return match.group(1)++ def __deserialize_application_octet_stream(+ self, response: urllib3.HTTPResponse+ ) -> typing.Union[bytes, io.BufferedReader]:+ """+ urllib3 use cases:+ 1. when preload_content=True (stream=False) then supports_chunked_reads is False and bytes are returned+ 2. when preload_content=False (stream=True) then supports_chunked_reads is True and+ a file will be written and returned+ """+ if response.supports_chunked_reads():+ file_name = (+ self.__file_name_from_content_disposition(response.headers.get('content-disposition'))+ or self.__file_name_from_response_url(response.geturl())+ )++ if file_name is None:+ _fd, path = tempfile.mkstemp()+ else:+ path = os.path.join(tempfile.gettempdir(), file_name)++ with open(path, 'wb') as new_file:+ chunk_size = 1024+ while True:+ data = response.read(chunk_size)+ if not data:+ break+ new_file.write(data)+ # release_conn is needed for streaming connections only+ response.release_conn()+ new_file = open(path, 'rb')+ return new_file+ else:+ return response.data++ @staticmethod+ def __deserialize_multipart_form_data(+ response: urllib3.HTTPResponse+ ) -> typing.Dict[str, typing.Any]:+ msg = email.message_from_bytes(response.data)+ return {+ part.get_param("name", header="Content-Disposition"): part.get_payload(+ decode=True+ ).decode(part.get_content_charset())+ if part.get_content_charset()+ else part.get_payload()+ for part in msg.get_payload()+ }++ def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse:+ content_type = response.getheader('content-type')+ deserialized_body = unset+ streamed = response.supports_chunked_reads()++ deserialized_headers = unset+ if self.headers is not None:+ # TODO add header deserialiation here+ pass++ if self.content is not None:+ if content_type not in self.content:+ raise ApiValueError(+ f"Invalid content_type returned. Content_type='{content_type}' was returned "+ f"when only {str(set(self.content))} are defined for status_code={str(response.status)}"+ )+ body_schema = self.content[content_type].schema+ if body_schema is None:+ # some specs do not define response content media type schemas+ return self.response_cls(+ response=response,+ headers=deserialized_headers,+ body=unset+ )++ if self._content_type_is_json(content_type):+ body_data = self.__deserialize_json(response)+ elif content_type == 'application/octet-stream':+ body_data = self.__deserialize_application_octet_stream(response)+ elif content_type.startswith('multipart/form-data'):+ body_data = self.__deserialize_multipart_form_data(response)+ content_type = 'multipart/form-data'+ else:+ raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type))+ deserialized_body = body_schema.from_openapi_data_oapg(+ body_data, _configuration=configuration)+ elif streamed:+ response.release_conn()++ return self.response_cls(+ response=response,+ headers=deserialized_headers,+ body=deserialized_body+ )+++class ApiClient:+ """Generic API client for OpenAPI client library builds.++ OpenAPI generic API client. This client handles the client-+ server communication, and is invariant across implementations. Specifics of+ the methods and models for each application are generated from the OpenAPI+ templates.++ NOTE: This class is auto generated by OpenAPI Generator.+ Ref: https://openapi-generator.tech+ Do not edit the class manually.++ :param configuration: .Configuration object for this client+ :param header_name: a header to pass when making calls to the API.+ :param header_value: a header value to pass when making calls to+ the API.+ :param cookie: a cookie to include in the header when making calls+ to the API+ :param pool_threads: The number of threads to use for async requests+ to the API. More threads means more concurrent API requests.+ """++ _pool = None++ def __init__(+ self,+ configuration: typing.Optional[Configuration] = None,+ header_name: typing.Optional[str] = None,+ header_value: typing.Optional[str] = None,+ cookie: typing.Optional[str] = None,+ pool_threads: int = 1+ ):+ if configuration is None:+ configuration = Configuration()+ self.configuration = configuration+ self.pool_threads = pool_threads++ self.rest_client = rest.RESTClientObject(configuration)+ self.default_headers = HTTPHeaderDict()+ if header_name is not None:+ self.default_headers[header_name] = header_value+ self.cookie = cookie+ # Set default User-Agent.+ self.user_agent = 'OpenAPI-Generator/1.0.0/python'++ def __enter__(self):+ return self++ def __exit__(self, exc_type, exc_value, traceback):+ self.close()++ def close(self):+ if self._pool:+ self._pool.close()+ self._pool.join()+ self._pool = None+ if hasattr(atexit, 'unregister'):+ atexit.unregister(self.close)++ @property+ def pool(self):+ """Create thread pool on first request+ avoids instantiating unused threadpool for blocking clients.+ """+ if self._pool is None:+ atexit.register(self.close)+ self._pool = ThreadPool(self.pool_threads)+ return self._pool++ @property+ def user_agent(self):+ """User agent for this API client"""+ return self.default_headers['User-Agent']++ @user_agent.setter+ def user_agent(self, value):+ self.default_headers['User-Agent'] = value++ def set_default_header(self, header_name, header_value):+ self.default_headers[header_name] = header_value++ def __call_api(+ self,+ resource_path: str,+ method: str,+ headers: typing.Optional[HTTPHeaderDict] = None,+ body: typing.Optional[typing.Union[str, bytes]] = None,+ fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,+ auth_settings: typing.Optional[typing.List[str]] = None,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ host: typing.Optional[str] = None,+ ) -> urllib3.HTTPResponse:++ # header parameters+ used_headers = HTTPHeaderDict(self.default_headers)+ if self.cookie:+ headers['Cookie'] = self.cookie++ # auth setting+ self.update_params_for_auth(used_headers,+ auth_settings, resource_path, method, body)++ # must happen after cookie setting and auth setting in case user is overriding those+ if headers:+ used_headers.update(headers)++ # request url+ if host is None:+ url = self.configuration.host + resource_path+ else:+ # use server/host defined in path or operation instead+ url = host + resource_path++ # perform request and return response+ response = self.request(+ method,+ url,+ headers=used_headers,+ fields=fields,+ body=body,+ stream=stream,+ timeout=timeout,+ )+ return response++ def call_api(+ self,+ resource_path: str,+ method: str,+ headers: typing.Optional[HTTPHeaderDict] = None,+ body: typing.Optional[typing.Union[str, bytes]] = None,+ fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,+ auth_settings: typing.Optional[typing.List[str]] = None,+ async_req: typing.Optional[bool] = None,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ host: typing.Optional[str] = None,+ ) -> urllib3.HTTPResponse:+ """Makes the HTTP request (synchronous) and returns deserialized data.++ To make an async_req request, set the async_req parameter.++ :param resource_path: Path to method endpoint.+ :param method: Method to call.+ :param headers: Header parameters to be+ placed in the request header.+ :param body: Request body.+ :param fields: Request post form parameters,+ for `application/x-www-form-urlencoded`, `multipart/form-data`.+ :param auth_settings: Auth Settings names for the request.+ :param async_req: execute request asynchronously+ :type async_req: bool, optional TODO remove, unused+ :param stream: if True, the urllib3.HTTPResponse object will+ be returned without reading/decoding response+ data. Also when True, if the openapi spec describes a file download,+ the data will be written to a local filesystme file and the BinarySchema+ instance will also inherit from FileSchema and FileIO+ Default is False.+ :type stream: bool, optional+ :param timeout: timeout setting for this request. If one+ number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.+ :param host: api endpoint host+ :return:+ If async_req parameter is True,+ the request will be called asynchronously.+ The method will return the request thread.+ If parameter async_req is False or missing,+ then the method will return the response directly.+ """++ if not async_req:+ return self.__call_api(+ resource_path,+ method,+ headers,+ body,+ fields,+ auth_settings,+ stream,+ timeout,+ host,+ )++ return self.pool.apply_async(+ self.__call_api,+ (+ resource_path,+ method,+ headers,+ body,+ json,+ fields,+ auth_settings,+ stream,+ timeout,+ host,+ )+ )++ def request(+ self,+ method: str,+ url: str,+ headers: typing.Optional[HTTPHeaderDict] = None,+ fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None,+ body: typing.Optional[typing.Union[str, bytes]] = None,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> urllib3.HTTPResponse:+ """Makes the HTTP request using RESTClient."""+ if method == "GET":+ return self.rest_client.GET(url,+ stream=stream,+ timeout=timeout,+ headers=headers)+ elif method == "HEAD":+ return self.rest_client.HEAD(url,+ stream=stream,+ timeout=timeout,+ headers=headers)+ elif method == "OPTIONS":+ return self.rest_client.OPTIONS(url,+ headers=headers,+ fields=fields,+ stream=stream,+ timeout=timeout,+ body=body)+ elif method == "POST":+ return self.rest_client.POST(url,+ headers=headers,+ fields=fields,+ stream=stream,+ timeout=timeout,+ body=body)+ elif method == "PUT":+ return self.rest_client.PUT(url,+ headers=headers,+ fields=fields,+ stream=stream,+ timeout=timeout,+ body=body)+ elif method == "PATCH":+ return self.rest_client.PATCH(url,+ headers=headers,+ fields=fields,+ stream=stream,+ timeout=timeout,+ body=body)+ elif method == "DELETE":+ return self.rest_client.DELETE(url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body)+ else:+ raise ApiValueError(+ "http method must be `GET`, `HEAD`, `OPTIONS`,"+ " `POST`, `PATCH`, `PUT` or `DELETE`."+ )++ def update_params_for_auth(self, headers, auth_settings,+ resource_path, method, body):+ """Updates header and query params based on authentication setting.++ :param headers: Header parameters dict to be updated.+ :param auth_settings: Authentication setting identifiers list.+ :param resource_path: A string representation of the HTTP request resource path.+ :param method: A string representation of the HTTP request method.+ :param body: A object representing the body of the HTTP request.+ The object type is the return value of _encoder.default().+ """+ if not auth_settings:+ return++ for auth in auth_settings:+ auth_setting = self.configuration.auth_settings().get(auth)+ if not auth_setting:+ continue+ if auth_setting['in'] == 'cookie':+ headers.add('Cookie', auth_setting['value'])+ elif auth_setting['in'] == 'header':+ if auth_setting['type'] != 'http-signature':+ headers.add(auth_setting['key'], auth_setting['value'])+ elif auth_setting['in'] == 'query':+ """ TODO implement auth in query+ need to pass in prefix_separator_iterator+ and need to output resource_path with query params added+ """+ raise ApiValueError("Auth in query not yet implemented")+ else:+ raise ApiValueError(+ 'Authentication token must be in `query` or `header`'+ )+++class Api:+ """NOTE: This class is auto generated by OpenAPI Generator+ Ref: https://openapi-generator.tech++ Do not edit the class manually.+ """++ def __init__(self, api_client: typing.Optional[ApiClient] = None):+ if api_client is None:+ api_client = ApiClient()+ self.api_client = api_client++ @staticmethod+ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]):+ """+ Ensures that:+ - required keys are present+ - additional properties are not input+ - value stored under required keys do not have the value unset+ Note: detailed value checking is done in schema classes+ """+ missing_required_keys = []+ required_keys_with_unset_values = []+ for required_key in cls.__required_keys__:+ if required_key not in data:+ missing_required_keys.append(required_key)+ continue+ value = data[required_key]+ if value is unset:+ required_keys_with_unset_values.append(required_key)+ if missing_required_keys:+ raise ApiTypeError(+ '{} missing {} required arguments: {}'.format(+ cls.__name__, len(missing_required_keys), missing_required_keys+ )+ )+ if required_keys_with_unset_values:+ raise ApiValueError(+ '{} contains invalid unset values for {} required keys: {}'.format(+ cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values+ )+ )++ disallowed_additional_keys = []+ for key in data:+ if key in cls.__required_keys__ or key in cls.__optional_keys__:+ continue+ disallowed_additional_keys.append(key)+ if disallowed_additional_keys:+ raise ApiTypeError(+ '{} got {} unexpected keyword arguments: {}'.format(+ cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys+ )+ )++ def _get_host_oapg(+ self,+ operation_id: str,+ servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(),+ host_index: typing.Optional[int] = None+ ) -> typing.Optional[str]:+ configuration = self.api_client.configuration+ try:+ if host_index is None:+ index = configuration.server_operation_index.get(+ operation_id, configuration.server_index+ )+ else:+ index = host_index+ server_variables = configuration.server_operation_variables.get(+ operation_id, configuration.server_variables+ )+ host = configuration.get_host_from_settings(+ index, variables=server_variables, servers=servers+ )+ except IndexError:+ if servers:+ raise ApiValueError(+ "Invalid host index. Must be 0 <= index < %s" %+ len(servers)+ )+ host = None+ return host+++class SerializedRequestBody(typing_extensions.TypedDict, total=False):+ body: typing.Union[str, bytes]+ fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]+++class RequestBody(StyleFormSerializer, JSONDetector):+ """+ A request body parameter+ content: content_type to MediaType Schema info+ """+ __json_encoder = JSONEncoder()++ def __init__(+ self,+ content: typing.Dict[str, MediaType],+ required: bool = False,+ ):+ self.required = required+ if len(content) == 0:+ raise ValueError('Invalid value for content, the content dict must have >= 1 entry')+ self.content = content++ def __serialize_json(+ self,+ in_data: typing.Any+ ) -> typing.Dict[str, bytes]:+ in_data = self.__json_encoder.default(in_data)+ json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode(+ "utf-8"+ )+ return dict(body=json_str)++ @staticmethod+ def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]:+ if isinstance(in_data, frozendict.frozendict):+ raise ValueError('Unable to serialize type frozendict.frozendict to text/plain')+ elif isinstance(in_data, tuple):+ raise ValueError('Unable to serialize type tuple to text/plain')+ elif isinstance(in_data, NoneClass):+ raise ValueError('Unable to serialize type NoneClass to text/plain')+ elif isinstance(in_data, BoolClass):+ raise ValueError('Unable to serialize type BoolClass to text/plain')+ return dict(body=str(in_data))++ def __multipart_json_item(self, key: str, value: Schema) -> RequestField:+ json_value = self.__json_encoder.default(value)+ request_field = RequestField(name=key, data=json.dumps(json_value))+ request_field.make_multipart(content_type='application/json')+ return request_field++ def __multipart_form_item(self, key: str, value: Schema) -> RequestField:+ if isinstance(value, str):+ request_field = RequestField(name=key, data=str(value))+ request_field.make_multipart(content_type='text/plain')+ elif isinstance(value, bytes):+ request_field = RequestField(name=key, data=value)+ request_field.make_multipart(content_type='application/octet-stream')+ elif isinstance(value, FileIO):+ # TODO use content.encoding to limit allowed content types if they are present+ request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read()))+ value.close()+ else:+ request_field = self.__multipart_json_item(key=key, value=value)+ return request_field++ def __serialize_multipart_form_data(+ self, in_data: Schema+ ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]:+ if not isinstance(in_data, frozendict.frozendict):+ raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data')+ """+ In a multipart/form-data request body, each schema property, or each element of a schema array property,+ takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy+ for each property of a multipart/form-data request body can be specified in an associated Encoding Object.++ When passing in multipart types, boundaries MAY be used to separate sections of the content being+ transferred – thus, the following default Content-Types are defined for multipart:++ If the (object) property is a primitive, or an array of primitive values, the default Content-Type is text/plain+ If the property is complex, or an array of complex values, the default Content-Type is application/json+ Question: how is the array of primitives encoded?+ If the property is a type: string with a contentEncoding, the default Content-Type is application/octet-stream+ """+ fields = []+ for key, value in in_data.items():+ if isinstance(value, tuple):+ if value:+ # values use explode = True, so the code makes a RequestField for each item with name=key+ for item in value:+ request_field = self.__multipart_form_item(key=key, value=item)+ fields.append(request_field)+ else:+ # send an empty array as json because exploding will not send it+ request_field = self.__multipart_json_item(key=key, value=value)+ fields.append(request_field)+ else:+ request_field = self.__multipart_form_item(key=key, value=value)+ fields.append(request_field)++ return dict(fields=tuple(fields))++ def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]:+ if isinstance(in_data, bytes):+ return dict(body=in_data)+ # FileIO type+ result = dict(body=in_data.read())+ in_data.close()+ return result++ def __serialize_application_x_www_form_data(+ self, in_data: typing.Any+ ) -> SerializedRequestBody:+ """+ POST submission of form data in body+ """+ if not isinstance(in_data, frozendict.frozendict):+ raise ValueError(+ f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data')+ cast_in_data = self.__json_encoder.default(in_data)+ value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True)+ return dict(body=value)++ def serialize(+ self, in_data: typing.Any, content_type: str+ ) -> SerializedRequestBody:+ """+ If a str is returned then the result will be assigned to data when making the request+ If a tuple is returned then the result will be used as fields input in encode_multipart_formdata+ Return a tuple of++ The key of the return dict is+ - body for application/json+ - encode_multipart and fields for multipart/form-data+ """+ media_type = self.content[content_type]+ if isinstance(in_data, media_type.schema):+ cast_in_data = in_data+ elif isinstance(in_data, (dict, frozendict.frozendict)) and in_data:+ cast_in_data = media_type.schema(**in_data)+ else:+ cast_in_data = media_type.schema(in_data)+ # TODO check for and use encoding if it exists+ # and content_type is multipart or application/x-www-form-urlencoded+ if self._content_type_is_json(content_type):+ return self.__serialize_json(cast_in_data)+ elif content_type == 'text/plain':+ return self.__serialize_text_plain(cast_in_data)+ elif content_type == 'multipart/form-data':+ return self.__serialize_multipart_form_data(cast_in_data)+ elif content_type == 'application/x-www-form-urlencoded':+ return self.__serialize_application_x_www_form_data(cast_in_data)+ elif content_type == 'application/octet-stream':+ return self.__serialize_application_octet_stream(cast_in_data)+ raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type))\ No newline at end of filediff --git a/sdk/python/openapi_client/apis/__init__.py b/sdk/python/openapi_client/apis/__init__.pynew file mode 100644index 0000000000..7840f7726f--- /dev/null+++ b/sdk/python/openapi_client/apis/__init__.py@@ -0,0 +1,3 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints then import them from+# tags, paths, or path_to_api, or tag_to_api\ No newline at end of filediff --git a/sdk/python/openapi_client/apis/path_to_api.py b/sdk/python/openapi_client/apis/path_to_api.pynew file mode 100644index 0000000000..4ae70a31bc--- /dev/null+++ b/sdk/python/openapi_client/apis/path_to_api.py@@ -0,0 +1,17 @@+import typing_extensions++from openapi_client.paths import PathValues+from openapi_client.apis.paths.api_observations import ApiObservations++PathToApi = typing_extensions.TypedDict(+ 'PathToApi',+ {+ PathValues.API_OBSERVATIONS: ApiObservations,+ }+)++path_to_api = PathToApi(+ {+ PathValues.API_OBSERVATIONS: ApiObservations,+ }+)diff --git a/sdk/python/openapi_client/apis/paths/__init__.py b/sdk/python/openapi_client/apis/paths/__init__.pynew file mode 100644index 0000000000..e459647786--- /dev/null+++ b/sdk/python/openapi_client/apis/paths/__init__.py@@ -0,0 +1,3 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints from this module, import them with+# from openapi_client.apis.path_to_api import path_to_apidiff --git a/sdk/python/openapi_client/apis/paths/api_hello.py b/sdk/python/openapi_client/apis/paths/api_hello.pynew file mode 100644index 0000000000..b62d054829--- /dev/null+++ b/sdk/python/openapi_client/apis/paths/api_hello.py@@ -0,0 +1,7 @@+from openapi_client.paths.api_hello.get import ApiForget+++class ApiHello(+ ApiForget,+):+ passdiff --git a/sdk/python/openapi_client/apis/paths/api_observations.py b/sdk/python/openapi_client/apis/paths/api_observations.pynew file mode 100644index 0000000000..81ae8ca2b2--- /dev/null+++ b/sdk/python/openapi_client/apis/paths/api_observations.py@@ -0,0 +1,7 @@+from openapi_client.paths.api_observations.post import ApiForpost+++class ApiObservations(+ ApiForpost,+):+ passdiff --git a/sdk/python/openapi_client/apis/tag_to_api.py b/sdk/python/openapi_client/apis/tag_to_api.pynew file mode 100644index 0000000000..49eefcd2b1--- /dev/null+++ b/sdk/python/openapi_client/apis/tag_to_api.py@@ -0,0 +1,17 @@+import typing_extensions++from openapi_client.apis.tags import TagValues+from openapi_client.apis.tags.default_api import DefaultApi++TagToApi = typing_extensions.TypedDict(+ 'TagToApi',+ {+ TagValues.DEFAULT: DefaultApi,+ }+)++tag_to_api = TagToApi(+ {+ TagValues.DEFAULT: DefaultApi,+ }+)diff --git a/sdk/python/openapi_client/apis/tags/__init__.py b/sdk/python/openapi_client/apis/tags/__init__.pynew file mode 100644index 0000000000..f6b77c0fb5--- /dev/null+++ b/sdk/python/openapi_client/apis/tags/__init__.py@@ -0,0 +1,9 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints from this module, import them with+# from openapi_client.apis.tag_to_api import tag_to_api++import enum+++class TagValues(str, enum.Enum):+ DEFAULT = "default"diff --git a/sdk/python/openapi_client/apis/tags/default_api.py b/sdk/python/openapi_client/apis/tags/default_api.pynew file mode 100644index 0000000000..b33dca04cd--- /dev/null+++ b/sdk/python/openapi_client/apis/tags/default_api.py@@ -0,0 +1,23 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++from openapi_client.paths.api_observations.post import ApiObservationsPost+++class DefaultApi(+ ApiObservationsPost,+):+ """NOTE: This class is auto generated by OpenAPI Generator+ Ref: https://openapi-generator.tech++ Do not edit the class manually.+ """+ passdiff --git a/sdk/python/openapi_client/configuration.py b/sdk/python/openapi_client/configuration.pynew file mode 100644index 0000000000..b83be85fdd--- /dev/null+++ b/sdk/python/openapi_client/configuration.py@@ -0,0 +1,426 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++import copy+import logging+import multiprocessing+import sys+import urllib3++from http import client as http_client+from openapi_client.exceptions import ApiValueError+++JSON_SCHEMA_VALIDATION_KEYWORDS = {+ 'multipleOf', 'maximum', 'exclusiveMaximum',+ 'minimum', 'exclusiveMinimum', 'maxLength',+ 'minLength', 'pattern', 'maxItems', 'minItems',+ 'uniqueItems', 'maxProperties', 'minProperties',+}++class Configuration(object):+ """NOTE: This class is auto generated by OpenAPI Generator++ Ref: https://openapi-generator.tech+ Do not edit the class manually.++ :param host: Base url+ :param api_key: Dict to store API key(s).+ Each entry in the dict specifies an API key.+ The dict key is the name of the security scheme in the OAS specification.+ The dict value is the API key secret.+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer)+ The dict key is the name of the security scheme in the OAS specification.+ The dict value is an API key prefix when generating the auth data.+ :param username: Username for HTTP basic authentication+ :param password: Password for HTTP basic authentication+ :param discard_unknown_keys: Boolean value indicating whether to discard+ unknown properties. A server may send a response that includes additional+ properties that are not known by the client in the following scenarios:+ 1. The OpenAPI document is incomplete, i.e. it does not match the server+ implementation.+ 2. The client was generated using an older version of the OpenAPI document+ and the server has been upgraded since then.+ If a schema in the OpenAPI document defines the additionalProperties attribute,+ then all undeclared properties received by the server are injected into the+ additional properties map. In that case, there are undeclared properties, and+ nothing to discard.+ :param disabled_client_side_validations (string): Comma-separated list of+ JSON schema validation keywords to disable JSON schema structural validation+ rules. The following keywords may be specified: multipleOf, maximum,+ exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,+ maxItems, minItems.+ By default, the validation is performed for data generated locally by the client+ and data received from the server, independent of any validation performed by+ the server side. If the input data does not satisfy the JSON schema validation+ rules specified in the OpenAPI document, an exception is raised.+ If disabled_client_side_validations is set, structural validation is+ disabled. This can be useful to troubleshoot data validation problem, such as+ when the OpenAPI document validation rules do not match the actual API data+ received by the server.+ :param server_index: Index to servers configuration.+ :param server_variables: Mapping with string values to replace variables in+ templated server configuration. The validation of enums is performed for+ variables with defined enum values before.+ :param server_operation_index: Mapping from operation ID to an index to server+ configuration.+ :param server_operation_variables: Mapping from operation ID to a mapping with+ string values to replace variables in templated server configuration.+ The validation of enums is performed for variables with defined enum values before.++ """++ _default = None++ def __init__(+ self,+ host=None,+ discard_unknown_keys=False,+ disabled_client_side_validations="",+ server_index=None,+ server_variables=None,+ server_operation_index=None,+ server_operation_variables=None,+ ):+ """Constructor+ """+ self._base_path = "http://localhost" if host is None else host+ """Default Base url+ """+ self.server_index = 0 if server_index is None and host is None else server_index+ self.server_operation_index = server_operation_index or {}+ """Default server index+ """+ self.server_variables = server_variables or {}+ self.server_operation_variables = server_operation_variables or {}+ """Default server variables+ """+ self.temp_folder_path = None+ """Temp file folder for downloading files+ """+ # Authentication Settings+ self.disabled_client_side_validations = disabled_client_side_validations+ self.logger = {}+ """Logging Settings+ """+ self.logger["package_logger"] = logging.getLogger("openapi_client")+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'+ """Log format+ """+ self.logger_stream_handler = None+ """Log stream handler+ """+ self.logger_file_handler = None+ """Log file handler+ """+ self.logger_file = None+ """Debug file location+ """+ self.debug = False+ """Debug switch+ """++ self.verify_ssl = True+ """SSL/TLS verification+ Set this to false to skip verifying SSL certificate when calling API+ from https server.+ """+ self.ssl_ca_cert = None+ """Set this to customize the certificate file to verify the peer.+ """+ self.cert_file = None+ """client certificate file+ """+ self.key_file = None+ """client key file+ """+ self.assert_hostname = None+ """Set this to True/False to enable/disable SSL hostname verification.+ """+ self.tls_server_name = None+ """SSL/TLS Server Name Indication (SNI)+ Set this to the SNI value expected by the server.+ """++ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5+ """urllib3 connection pool's maximum number of connections saved+ per pool. urllib3 uses 1 connection as default value, but this is+ not the best value when you are making a lot of possibly parallel+ requests to the same host, which is often the case here.+ cpu_count * 5 is used as default value to increase performance.+ """++ self.proxy = None+ """Proxy URL+ """+ self.proxy_headers = None+ """Proxy headers+ """+ self.safe_chars_for_path_param = ''+ """Safe chars for path_param+ """+ self.retries = None+ """Adding retries to override urllib3 default value 3+ """+ # Enable client side validation+ self.client_side_validation = True++ # Options to pass down to the underlying urllib3 socket+ self.socket_options = None++ def __deepcopy__(self, memo):+ cls = self.__class__+ result = cls.__new__(cls)+ memo[id(self)] = result+ for k, v in self.__dict__.items():+ if k not in ('logger', 'logger_file_handler'):+ setattr(result, k, copy.deepcopy(v, memo))+ # shallow copy of loggers+ result.logger = copy.copy(self.logger)+ # use setters to configure loggers+ result.logger_file = self.logger_file+ result.debug = self.debug+ return result++ def __setattr__(self, name, value):+ object.__setattr__(self, name, value)+ if name == 'disabled_client_side_validations':+ s = set(filter(None, value.split(',')))+ for v in s:+ if v not in JSON_SCHEMA_VALIDATION_KEYWORDS:+ raise ApiValueError(+ "Invalid keyword: '{0}''".format(v))+ self._disabled_client_side_validations = s++ @classmethod+ def set_default(cls, default):+ """Set default instance of configuration.++ It stores default configuration, which can be+ returned by get_default_copy method.++ :param default: object of Configuration+ """+ cls._default = copy.deepcopy(default)++ @classmethod+ def get_default_copy(cls):+ """Return new instance of configuration.++ This method returns newly created, based on default constructor,+ object of Configuration class or returns a copy of default+ configuration passed by the set_default method.++ :return: The configuration object.+ """+ if cls._default is not None:+ return copy.deepcopy(cls._default)+ return Configuration()++ @property+ def logger_file(self):+ """The logger file.++ If the logger_file is None, then add stream handler and remove file+ handler. Otherwise, add file handler and remove stream handler.++ :param value: The logger_file path.+ :type: str+ """+ return self.__logger_file++ @logger_file.setter+ def logger_file(self, value):+ """The logger file.++ If the logger_file is None, then add stream handler and remove file+ handler. Otherwise, add file handler and remove stream handler.++ :param value: The logger_file path.+ :type: str+ """+ self.__logger_file = value+ if self.__logger_file:+ # If set logging file,+ # then add file handler and remove stream handler.+ self.logger_file_handler = logging.FileHandler(self.__logger_file)+ self.logger_file_handler.setFormatter(self.logger_formatter)+ for _, logger in self.logger.items():+ logger.addHandler(self.logger_file_handler)++ @property+ def debug(self):+ """Debug status++ :param value: The debug status, True or False.+ :type: bool+ """+ return self.__debug++ @debug.setter+ def debug(self, value):+ """Debug status++ :param value: The debug status, True or False.+ :type: bool+ """+ self.__debug = value+ if self.__debug:+ # if debug status is True, turn on debug logging+ for _, logger in self.logger.items():+ logger.setLevel(logging.DEBUG)+ # turn on http_client debug+ http_client.HTTPConnection.debuglevel = 1+ else:+ # if debug status is False, turn off debug logging,+ # setting log level to default `logging.WARNING`+ for _, logger in self.logger.items():+ logger.setLevel(logging.WARNING)+ # turn off http_client debug+ http_client.HTTPConnection.debuglevel = 0++ @property+ def logger_format(self):+ """The logger format.++ The logger_formatter will be updated when sets logger_format.++ :param value: The format string.+ :type: str+ """+ return self.__logger_format++ @logger_format.setter+ def logger_format(self, value):+ """The logger format.++ The logger_formatter will be updated when sets logger_format.++ :param value: The format string.+ :type: str+ """+ self.__logger_format = value+ self.logger_formatter = logging.Formatter(self.__logger_format)++ def get_api_key_with_prefix(self, identifier, alias=None):+ """Gets API key (with prefix if set).++ :param identifier: The identifier of apiKey.+ :param alias: The alternative identifier of apiKey.+ :return: The token for api key authentication.+ """+ if self.refresh_api_key_hook is not None:+ self.refresh_api_key_hook(self)+ key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)+ if key:+ prefix = self.api_key_prefix.get(identifier)+ if prefix:+ return "%s %s" % (prefix, key)+ else:+ return key++ def get_basic_auth_token(self):+ """Gets HTTP basic authentication header (string).++ :return: The token for basic HTTP authentication.+ """+ username = ""+ if self.username is not None:+ username = self.username+ password = ""+ if self.password is not None:+ password = self.password+ return urllib3.util.make_headers(+ basic_auth=username + ':' + password+ ).get('authorization')++ def auth_settings(self):+ """Gets Auth Settings dict for api client.++ :return: The Auth Settings information dict.+ """+ auth = {}+ return auth++ def to_debug_report(self):+ """Gets the essential information for debugging.++ :return: The report for debugging.+ """+ return "Python SDK Debug Report:\n"\+ "OS: {env}\n"\+ "Python Version: {pyversion}\n"\+ "Version of the API: 0.1.0\n"\+ "SDK Package Version: 1.0.0".\+ format(env=sys.platform, pyversion=sys.version)++ def get_host_settings(self):+ """Gets an array of host settings++ :return: An array of host settings+ """+ return [+ {+ 'url': "",+ 'description': "No description provided",+ }+ ]++ def get_host_from_settings(self, index, variables=None, servers=None):+ """Gets host URL based on the index and variables+ :param index: array index of the host settings+ :param variables: hash of variable and the corresponding value+ :param servers: an array of host settings or None+ :return: URL based on host settings+ """+ if index is None:+ return self._base_path++ variables = {} if variables is None else variables+ servers = self.get_host_settings() if servers is None else servers++ try:+ server = servers[index]+ except IndexError:+ raise ValueError(+ "Invalid index {0} when selecting the host settings. "+ "Must be less than {1}".format(index, len(servers)))++ url = server['url']++ # go through variables and replace placeholders+ for variable_name, variable in server.get('variables', {}).items():+ used_value = variables.get(+ variable_name, variable['default_value'])++ if 'enum_values' in variable \+ and used_value not in variable['enum_values']:+ raise ValueError(+ "The variable `{0}` in the host URL has invalid value "+ "{1}. Must be {2}.".format(+ variable_name, variables[variable_name],+ variable['enum_values']))++ url = url.replace("{" + variable_name + "}", used_value)++ return url++ @property+ def host(self):+ """Return generated host."""+ return self.get_host_from_settings(self.server_index, variables=self.server_variables)++ @host.setter+ def host(self, value):+ """Fix base path."""+ self._base_path = value+ self.server_index = Nonediff --git a/sdk/python/openapi_client/exceptions.py b/sdk/python/openapi_client/exceptions.pynew file mode 100644index 0000000000..8e47cd4457--- /dev/null+++ b/sdk/python/openapi_client/exceptions.py@@ -0,0 +1,147 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""+import dataclasses+import typing++from urllib3._collections import HTTPHeaderDict+++class OpenApiException(Exception):+ """The base exception class for all OpenAPIExceptions"""+++class ApiTypeError(OpenApiException, TypeError):+ def __init__(self, msg, path_to_item=None, valid_classes=None,+ key_type=None):+ """ Raises an exception for TypeErrors++ Args:+ msg (str): the exception message++ Keyword Args:+ path_to_item (list): a list of keys an indices to get to the+ current_item+ None if unset+ valid_classes (tuple): the primitive classes that current item+ should be an instance of+ None if unset+ key_type (bool): False if our value is a value in a dict+ True if it is a key in a dict+ False if our item is an item in a list+ None if unset+ """+ self.path_to_item = path_to_item+ self.valid_classes = valid_classes+ self.key_type = key_type+ full_msg = msg+ if path_to_item:+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))+ super(ApiTypeError, self).__init__(full_msg)+++class ApiValueError(OpenApiException, ValueError):+ def __init__(self, msg, path_to_item=None):+ """+ Args:+ msg (str): the exception message++ Keyword Args:+ path_to_item (list) the path to the exception in the+ received_data dict. None if unset+ """++ self.path_to_item = path_to_item+ full_msg = msg+ if path_to_item:+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))+ super(ApiValueError, self).__init__(full_msg)+++class ApiAttributeError(OpenApiException, AttributeError):+ def __init__(self, msg, path_to_item=None):+ """+ Raised when an attribute reference or assignment fails.++ Args:+ msg (str): the exception message++ Keyword Args:+ path_to_item (None/list) the path to the exception in the+ received_data dict+ """+ self.path_to_item = path_to_item+ full_msg = msg+ if path_to_item:+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))+ super(ApiAttributeError, self).__init__(full_msg)+++class ApiKeyError(OpenApiException, KeyError):+ def __init__(self, msg, path_to_item=None):+ """+ Args:+ msg (str): the exception message++ Keyword Args:+ path_to_item (None/list) the path to the exception in the+ received_data dict+ """+ self.path_to_item = path_to_item+ full_msg = msg+ if path_to_item:+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))+ super(ApiKeyError, self).__init__(full_msg)+++T = typing.TypeVar("T")+++class ApiException(OpenApiException, typing.Generic[T]):+ status: int+ reason: str+ api_response: typing.Optional[T] = None++ @property+ def body(self) -> typing.Union[str, bytes, None]:+ if not self.api_response:+ return None+ return self.api_response.response.data++ @property+ def headers(self) -> typing.Optional[HTTPHeaderDict]:+ if not self.api_response:+ return None+ return self.api_response.response.getheaders()++ def __str__(self):+ """Custom error messages for exception"""+ error_message = "({0})\n"\+ "Reason: {1}\n".format(self.status, self.reason)+ if self.headers:+ error_message += "HTTP response headers: {0}\n".format(+ self.headers)++ if self.body:+ error_message += "HTTP response body: {0}\n".format(self.body)++ return error_message+++def render_path(path_to_item):+ """Returns a string representation of a path"""+ result = ""+ for pth in path_to_item:+ if isinstance(pth, int):+ result += "[{0}]".format(pth)+ else:+ result += "['{0}']".format(pth)+ return resultdiff --git a/sdk/python/openapi_client/model/__init__.py b/sdk/python/openapi_client/model/__init__.pynew file mode 100644index 0000000000..b9db19536e--- /dev/null+++ b/sdk/python/openapi_client/model/__init__.py@@ -0,0 +1,5 @@+# we can not import model classes here because that would create a circular+# reference which would not work in python2+# do not import all models into this module because that uses a lot of memory and stack frames+# if you need the ability to import all models from one package, import them with+# from openapi_client.models import ModelA, ModelBdiff --git a/sdk/python/openapi_client/models/__init__.py b/sdk/python/openapi_client/models/__init__.pynew file mode 100644index 0000000000..3e372b6c8d--- /dev/null+++ b/sdk/python/openapi_client/models/__init__.py@@ -0,0 +1,13 @@+# coding: utf-8++# flake8: noqa++# import all models into this package+# if you have many models here with many references from one model to another this may+# raise a RecursionError+# to avoid this, import only the models that you directly need like:+# from openapi_client.model.pet import Pet+# or import this package, but before doing it, use:+# import sys+# sys.setrecursionlimit(n)+diff --git a/sdk/python/openapi_client/paths/__init__.py b/sdk/python/openapi_client/paths/__init__.pynew file mode 100644index 0000000000..e52714d481--- /dev/null+++ b/sdk/python/openapi_client/paths/__init__.py@@ -0,0 +1,9 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints from this module, import them with+# from openapi_client.apis.path_to_api import path_to_api++import enum+++class PathValues(str, enum.Enum):+ API_OBSERVATIONS = "/api/observations"diff --git a/sdk/python/openapi_client/paths/api_hello/__init__.py b/sdk/python/openapi_client/paths/api_hello/__init__.pynew file mode 100644index 0000000000..8d93d29f06--- /dev/null+++ b/sdk/python/openapi_client/paths/api_hello/__init__.py@@ -0,0 +1,7 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints from this module, import them with+# from openapi_client.paths.api_hello import Api++from openapi_client.paths import PathValues++path = PathValues.API_HELLO\ No newline at end of filediff --git a/sdk/python/openapi_client/paths/api_hello/get.py b/sdk/python/openapi_client/paths/api_hello/get.pynew file mode 100644index 0000000000..6464fcb509--- /dev/null+++ b/sdk/python/openapi_client/paths/api_hello/get.py@@ -0,0 +1,205 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++from dataclasses import dataclass+import typing_extensions+import urllib3++from openapi_client import api_client, exceptions+from datetime import date, datetime # noqa: F401+import decimal # noqa: F401+import functools # noqa: F401+import io # noqa: F401+import re # noqa: F401+import typing # noqa: F401+import typing_extensions # noqa: F401+import uuid # noqa: F401++import frozendict # noqa: F401++from openapi_client import schemas # noqa: F401++from . import path++++@dataclass+class ApiResponseFor200(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: schemas.Unset = schemas.unset+ headers: schemas.Unset = schemas.unset+++_response_for_200 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor200,+)+_status_code_to_response = {+ '200': _response_for_200,+}+++class BaseApi(api_client.Api):+ @typing.overload+ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def _api_hello_get_oapg(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ """+ :param skip_deserialization: If true then api_response.response will be set but+ api_response.body and api_response.headers will not be deserialized into schema+ class instances+ """+ used_path = path.value+ # TODO add cookie handling++ response = self.api_client.call_api(+ resource_path=used_path,+ method='get'.upper(),+ stream=stream,+ timeout=timeout,+ )++ if skip_deserialization:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)+ else:+ response_for_status = _status_code_to_response.get(str(response.status))+ if response_for_status:+ api_response = response_for_status.deserialize(response, self.api_client.configuration)+ else:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)++ if not 200 <= response.status <= 299:+ raise exceptions.ApiException(+ status=response.status,+ reason=response.reason,+ api_response=api_response+ )++ return api_response+++class ApiHelloGet(BaseApi):+ # this class is used by api classes that refer to endpoints with operationId fn names++ @typing.overload+ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def api_hello_get(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_hello_get_oapg(+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )+++class ApiForget(BaseApi):+ # this class is used by api classes that refer to endpoints by path and http method names++ @typing.overload+ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def get(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_hello_get_oapg(+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )++diff --git a/sdk/python/openapi_client/paths/api_hello/get.pyi b/sdk/python/openapi_client/paths/api_hello/get.pyinew file mode 100644index 0000000000..77728cd464--- /dev/null+++ b/sdk/python/openapi_client/paths/api_hello/get.pyi@@ -0,0 +1,200 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++from dataclasses import dataclass+import typing_extensions+import urllib3++from openapi_client import api_client, exceptions+from datetime import date, datetime # noqa: F401+import decimal # noqa: F401+import functools # noqa: F401+import io # noqa: F401+import re # noqa: F401+import typing # noqa: F401+import typing_extensions # noqa: F401+import uuid # noqa: F401++import frozendict # noqa: F401++from openapi_client import schemas # noqa: F401++++@dataclass+class ApiResponseFor200(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: schemas.Unset = schemas.unset+ headers: schemas.Unset = schemas.unset+++_response_for_200 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor200,+)+++class BaseApi(api_client.Api):+ @typing.overload+ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def _api_hello_get_oapg(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def _api_hello_get_oapg(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ """+ :param skip_deserialization: If true then api_response.response will be set but+ api_response.body and api_response.headers will not be deserialized into schema+ class instances+ """+ used_path = path.value+ # TODO add cookie handling++ response = self.api_client.call_api(+ resource_path=used_path,+ method='get'.upper(),+ stream=stream,+ timeout=timeout,+ )++ if skip_deserialization:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)+ else:+ response_for_status = _status_code_to_response.get(str(response.status))+ if response_for_status:+ api_response = response_for_status.deserialize(response, self.api_client.configuration)+ else:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)++ if not 200 <= response.status <= 299:+ raise exceptions.ApiException(+ status=response.status,+ reason=response.reason,+ api_response=api_response+ )++ return api_response+++class ApiHelloGet(BaseApi):+ # this class is used by api classes that refer to endpoints with operationId fn names++ @typing.overload+ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def api_hello_get(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def api_hello_get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_hello_get_oapg(+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )+++class ApiForget(BaseApi):+ # this class is used by api classes that refer to endpoints by path and http method names++ @typing.overload+ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ ]: ...++ @typing.overload+ def get(+ self,+ skip_deserialization: typing_extensions.Literal[True],+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor200,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def get(+ self,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_hello_get_oapg(+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )++diff --git a/sdk/python/openapi_client/paths/api_observations/__init__.py b/sdk/python/openapi_client/paths/api_observations/__init__.pynew file mode 100644index 0000000000..7059ba468e--- /dev/null+++ b/sdk/python/openapi_client/paths/api_observations/__init__.py@@ -0,0 +1,7 @@+# do not import all endpoints into this module because that uses a lot of memory and stack frames+# if you need the ability to import all endpoints from this module, import them with+# from openapi_client.paths.api_observations import Api++from openapi_client.paths import PathValues++path = PathValues.API_OBSERVATIONS\ No newline at end of filediff --git a/sdk/python/openapi_client/paths/api_observations/post.py b/sdk/python/openapi_client/paths/api_observations/post.pynew file mode 100644index 0000000000..3cfb5d4bac--- /dev/null+++ b/sdk/python/openapi_client/paths/api_observations/post.py@@ -0,0 +1,796 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++from dataclasses import dataclass+import typing_extensions+import urllib3+from urllib3._collections import HTTPHeaderDict++from openapi_client import api_client, exceptions+from datetime import date, datetime # noqa: F401+import decimal # noqa: F401+import functools # noqa: F401+import io # noqa: F401+import re # noqa: F401+import typing # noqa: F401+import typing_extensions # noqa: F401+import uuid # noqa: F401++import frozendict # noqa: F401++from openapi_client import schemas # noqa: F401++from . import path++# body param+++class SchemaForRequestBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ traceId = schemas.StrSchema+++ class type(+ schemas.EnumBase,+ schemas.StrSchema+ ):+++ class MetaOapg:+ enum_value_to_name = {+ "span": "SPAN",+ "event": "EVENT",+ }++ @schemas.classproperty+ def SPAN(cls):+ return cls("span")++ @schemas.classproperty+ def EVENT(cls):+ return cls("event")+ name = schemas.StrSchema+ startTime = schemas.DateTimeSchema+ endTime = schemas.DateTimeSchema+++ class attributes(+ schemas.DictSchema+ ):+++ class MetaOapg:+ additional_properties = schemas.AnyTypeSchema++ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ # dict_instance[name] accessor+ return super().__getitem__(name)++ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ return super().get_item_oapg(name)++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],+ ) -> 'attributes':+ return super().__new__(+ cls,+ *_args,+ _configuration=_configuration,+ **kwargs,+ )+ parentObservationId = schemas.StrSchema+ __annotations__ = {+ "traceId": traceId,+ "type": type,+ "name": name,+ "startTime": startTime,+ "endTime": endTime,+ "attributes": attributes,+ "parentObservationId": parentObservationId,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["traceId"]) -> MetaOapg.properties.traceId: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["startTime"]) -> MetaOapg.properties.startTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["endTime"]) -> MetaOapg.properties.endTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["attributes"]) -> MetaOapg.properties.attributes: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["parentObservationId"]) -> MetaOapg.properties.parentObservationId: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["traceId"]) -> typing.Union[MetaOapg.properties.traceId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["startTime"]) -> typing.Union[MetaOapg.properties.startTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["endTime"]) -> typing.Union[MetaOapg.properties.endTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["attributes"]) -> typing.Union[MetaOapg.properties.attributes, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["parentObservationId"]) -> typing.Union[MetaOapg.properties.parentObservationId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ traceId: typing.Union[MetaOapg.properties.traceId, str, schemas.Unset] = schemas.unset,+ type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,+ startTime: typing.Union[MetaOapg.properties.startTime, str, datetime, schemas.Unset] = schemas.unset,+ endTime: typing.Union[MetaOapg.properties.endTime, str, datetime, schemas.Unset] = schemas.unset,+ attributes: typing.Union[MetaOapg.properties.attributes, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ parentObservationId: typing.Union[MetaOapg.properties.parentObservationId, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaForRequestBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ traceId=traceId,+ type=type,+ name=name,+ startTime=startTime,+ endTime=endTime,+ attributes=attributes,+ parentObservationId=parentObservationId,+ _configuration=_configuration,+ **kwargs,+ )+++request_body_any_type = api_client.RequestBody(+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaForRequestBodyApplicationJson),+ },+ required=True,+)+++class SchemaFor201ResponseBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ success = schemas.BoolSchema+++ class observation(+ schemas.DictSchema+ ):+++ class MetaOapg:++ class properties:+ id = schemas.StrSchema+ traceId = schemas.StrSchema+ type = schemas.StrSchema+ name = schemas.StrSchema+ startTime = schemas.DateTimeSchema+ endTime = schemas.DateTimeSchema+++ class attributes(+ schemas.DictSchema+ ):+++ class MetaOapg:+ additional_properties = schemas.AnyTypeSchema++ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ # dict_instance[name] accessor+ return super().__getitem__(name)++ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ return super().get_item_oapg(name)++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],+ ) -> 'attributes':+ return super().__new__(+ cls,+ *_args,+ _configuration=_configuration,+ **kwargs,+ )+ parentObservationId = schemas.StrSchema+ __annotations__ = {+ "id": id,+ "traceId": traceId,+ "type": type,+ "name": name,+ "startTime": startTime,+ "endTime": endTime,+ "attributes": attributes,+ "parentObservationId": parentObservationId,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["traceId"]) -> MetaOapg.properties.traceId: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["startTime"]) -> MetaOapg.properties.startTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["endTime"]) -> MetaOapg.properties.endTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["attributes"]) -> MetaOapg.properties.attributes: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["parentObservationId"]) -> MetaOapg.properties.parentObservationId: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["traceId"]) -> typing.Union[MetaOapg.properties.traceId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["startTime"]) -> typing.Union[MetaOapg.properties.startTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["endTime"]) -> typing.Union[MetaOapg.properties.endTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["attributes"]) -> typing.Union[MetaOapg.properties.attributes, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["parentObservationId"]) -> typing.Union[MetaOapg.properties.parentObservationId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,+ traceId: typing.Union[MetaOapg.properties.traceId, str, schemas.Unset] = schemas.unset,+ type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,+ startTime: typing.Union[MetaOapg.properties.startTime, str, datetime, schemas.Unset] = schemas.unset,+ endTime: typing.Union[MetaOapg.properties.endTime, str, datetime, schemas.Unset] = schemas.unset,+ attributes: typing.Union[MetaOapg.properties.attributes, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ parentObservationId: typing.Union[MetaOapg.properties.parentObservationId, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'observation':+ return super().__new__(+ cls,+ *_args,+ id=id,+ traceId=traceId,+ type=type,+ name=name,+ startTime=startTime,+ endTime=endTime,+ attributes=attributes,+ parentObservationId=parentObservationId,+ _configuration=_configuration,+ **kwargs,+ )+ __annotations__ = {+ "success": success,+ "observation": observation,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["observation"]) -> MetaOapg.properties.observation: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "observation", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["observation"]) -> typing.Union[MetaOapg.properties.observation, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "observation", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset,+ observation: typing.Union[MetaOapg.properties.observation, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaFor201ResponseBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ success=success,+ observation=observation,+ _configuration=_configuration,+ **kwargs,+ )+++@dataclass+class ApiResponseFor201(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: typing.Union[+ SchemaFor201ResponseBodyApplicationJson,+ ]+ headers: schemas.Unset = schemas.unset+++_response_for_201 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor201,+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaFor201ResponseBodyApplicationJson),+ },+)+++class SchemaFor400ResponseBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ success = schemas.BoolSchema+ message = schemas.StrSchema+ error = schemas.StrSchema+ __annotations__ = {+ "success": success,+ "message": message,+ "error": error,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "message", "error", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["error"]) -> typing.Union[MetaOapg.properties.error, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "message", "error", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset,+ message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset,+ error: typing.Union[MetaOapg.properties.error, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaFor400ResponseBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ success=success,+ message=message,+ error=error,+ _configuration=_configuration,+ **kwargs,+ )+++@dataclass+class ApiResponseFor400(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: typing.Union[+ SchemaFor400ResponseBodyApplicationJson,+ ]+ headers: schemas.Unset = schemas.unset+++_response_for_400 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor400,+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaFor400ResponseBodyApplicationJson),+ },+)+++@dataclass+class ApiResponseFor405(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: schemas.Unset = schemas.unset+ headers: schemas.Unset = schemas.unset+++_response_for_405 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor405,+)+_status_code_to_response = {+ '201': _response_for_201,+ '400': _response_for_400,+ '405': _response_for_405,+}+_all_accept_content_types = (+ 'application/json',+)+++class BaseApi(api_client.Api):+ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ """+ Creates a new observation+ :param skip_deserialization: If true then api_response.response will be set but+ api_response.body and api_response.headers will not be deserialized into schema+ class instances+ """+ used_path = path.value++ _headers = HTTPHeaderDict()+ # TODO add cookie handling+ if accept_content_types:+ for accept_content_type in accept_content_types:+ _headers.add('Accept', accept_content_type)++ if body is schemas.unset:+ raise exceptions.ApiValueError(+ 'The required body parameter has an invalid value of: unset. Set a valid value instead')+ _fields = None+ _body = None+ serialized_data = request_body_any_type.serialize(body, content_type)+ _headers.add('Content-Type', content_type)+ if 'fields' in serialized_data:+ _fields = serialized_data['fields']+ elif 'body' in serialized_data:+ _body = serialized_data['body']+ response = self.api_client.call_api(+ resource_path=used_path,+ method='post'.upper(),+ headers=_headers,+ fields=_fields,+ body=_body,+ stream=stream,+ timeout=timeout,+ )++ if skip_deserialization:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)+ else:+ response_for_status = _status_code_to_response.get(str(response.status))+ if response_for_status:+ api_response = response_for_status.deserialize(response, self.api_client.configuration)+ else:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)++ if not 200 <= response.status <= 299:+ raise exceptions.ApiException(+ status=response.status,+ reason=response.reason,+ api_response=api_response+ )++ return api_response+++class ApiObservationsPost(BaseApi):+ # this class is used by api classes that refer to endpoints with operationId fn names++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_observations_post_oapg(+ body=body,+ content_type=content_type,+ accept_content_types=accept_content_types,+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )+++class ApiForpost(BaseApi):+ # this class is used by api classes that refer to endpoints by path and http method names++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_observations_post_oapg(+ body=body,+ content_type=content_type,+ accept_content_types=accept_content_types,+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )++diff --git a/sdk/python/openapi_client/paths/api_observations/post.pyi b/sdk/python/openapi_client/paths/api_observations/post.pyinew file mode 100644index 0000000000..e99222f85f--- /dev/null+++ b/sdk/python/openapi_client/paths/api_observations/post.pyi@@ -0,0 +1,782 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++from dataclasses import dataclass+import typing_extensions+import urllib3+from urllib3._collections import HTTPHeaderDict++from openapi_client import api_client, exceptions+from datetime import date, datetime # noqa: F401+import decimal # noqa: F401+import functools # noqa: F401+import io # noqa: F401+import re # noqa: F401+import typing # noqa: F401+import typing_extensions # noqa: F401+import uuid # noqa: F401++import frozendict # noqa: F401++from openapi_client import schemas # noqa: F401++# body param+++class SchemaForRequestBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ traceId = schemas.StrSchema+++ class type(+ schemas.EnumBase,+ schemas.StrSchema+ ):++ @schemas.classproperty+ def SPAN(cls):+ return cls("span")++ @schemas.classproperty+ def EVENT(cls):+ return cls("event")+ name = schemas.StrSchema+ startTime = schemas.DateTimeSchema+ endTime = schemas.DateTimeSchema+++ class attributes(+ schemas.DictSchema+ ):+++ class MetaOapg:+ additional_properties = schemas.AnyTypeSchema++ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ # dict_instance[name] accessor+ return super().__getitem__(name)++ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ return super().get_item_oapg(name)++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],+ ) -> 'attributes':+ return super().__new__(+ cls,+ *_args,+ _configuration=_configuration,+ **kwargs,+ )+ parentObservationId = schemas.StrSchema+ __annotations__ = {+ "traceId": traceId,+ "type": type,+ "name": name,+ "startTime": startTime,+ "endTime": endTime,+ "attributes": attributes,+ "parentObservationId": parentObservationId,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["traceId"]) -> MetaOapg.properties.traceId: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["startTime"]) -> MetaOapg.properties.startTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["endTime"]) -> MetaOapg.properties.endTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["attributes"]) -> MetaOapg.properties.attributes: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["parentObservationId"]) -> MetaOapg.properties.parentObservationId: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["traceId"]) -> typing.Union[MetaOapg.properties.traceId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["startTime"]) -> typing.Union[MetaOapg.properties.startTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["endTime"]) -> typing.Union[MetaOapg.properties.endTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["attributes"]) -> typing.Union[MetaOapg.properties.attributes, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["parentObservationId"]) -> typing.Union[MetaOapg.properties.parentObservationId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ traceId: typing.Union[MetaOapg.properties.traceId, str, schemas.Unset] = schemas.unset,+ type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,+ startTime: typing.Union[MetaOapg.properties.startTime, str, datetime, schemas.Unset] = schemas.unset,+ endTime: typing.Union[MetaOapg.properties.endTime, str, datetime, schemas.Unset] = schemas.unset,+ attributes: typing.Union[MetaOapg.properties.attributes, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ parentObservationId: typing.Union[MetaOapg.properties.parentObservationId, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaForRequestBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ traceId=traceId,+ type=type,+ name=name,+ startTime=startTime,+ endTime=endTime,+ attributes=attributes,+ parentObservationId=parentObservationId,+ _configuration=_configuration,+ **kwargs,+ )+++request_body_any_type = api_client.RequestBody(+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaForRequestBodyApplicationJson),+ },+ required=True,+)+++class SchemaFor201ResponseBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ success = schemas.BoolSchema+++ class observation(+ schemas.DictSchema+ ):+++ class MetaOapg:++ class properties:+ id = schemas.StrSchema+ traceId = schemas.StrSchema+ type = schemas.StrSchema+ name = schemas.StrSchema+ startTime = schemas.DateTimeSchema+ endTime = schemas.DateTimeSchema+++ class attributes(+ schemas.DictSchema+ ):+++ class MetaOapg:+ additional_properties = schemas.AnyTypeSchema++ def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ # dict_instance[name] accessor+ return super().__getitem__(name)++ def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties:+ return super().get_item_oapg(name)++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],+ ) -> 'attributes':+ return super().__new__(+ cls,+ *_args,+ _configuration=_configuration,+ **kwargs,+ )+ parentObservationId = schemas.StrSchema+ __annotations__ = {+ "id": id,+ "traceId": traceId,+ "type": type,+ "name": name,+ "startTime": startTime,+ "endTime": endTime,+ "attributes": attributes,+ "parentObservationId": parentObservationId,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["traceId"]) -> MetaOapg.properties.traceId: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["startTime"]) -> MetaOapg.properties.startTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["endTime"]) -> MetaOapg.properties.endTime: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["attributes"]) -> MetaOapg.properties.attributes: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["parentObservationId"]) -> MetaOapg.properties.parentObservationId: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["traceId"]) -> typing.Union[MetaOapg.properties.traceId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["startTime"]) -> typing.Union[MetaOapg.properties.startTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["endTime"]) -> typing.Union[MetaOapg.properties.endTime, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["attributes"]) -> typing.Union[MetaOapg.properties.attributes, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["parentObservationId"]) -> typing.Union[MetaOapg.properties.parentObservationId, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "traceId", "type", "name", "startTime", "endTime", "attributes", "parentObservationId", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset,+ traceId: typing.Union[MetaOapg.properties.traceId, str, schemas.Unset] = schemas.unset,+ type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,+ startTime: typing.Union[MetaOapg.properties.startTime, str, datetime, schemas.Unset] = schemas.unset,+ endTime: typing.Union[MetaOapg.properties.endTime, str, datetime, schemas.Unset] = schemas.unset,+ attributes: typing.Union[MetaOapg.properties.attributes, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ parentObservationId: typing.Union[MetaOapg.properties.parentObservationId, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'observation':+ return super().__new__(+ cls,+ *_args,+ id=id,+ traceId=traceId,+ type=type,+ name=name,+ startTime=startTime,+ endTime=endTime,+ attributes=attributes,+ parentObservationId=parentObservationId,+ _configuration=_configuration,+ **kwargs,+ )+ __annotations__ = {+ "success": success,+ "observation": observation,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["observation"]) -> MetaOapg.properties.observation: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "observation", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["observation"]) -> typing.Union[MetaOapg.properties.observation, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "observation", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset,+ observation: typing.Union[MetaOapg.properties.observation, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaFor201ResponseBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ success=success,+ observation=observation,+ _configuration=_configuration,+ **kwargs,+ )+++@dataclass+class ApiResponseFor201(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: typing.Union[+ SchemaFor201ResponseBodyApplicationJson,+ ]+ headers: schemas.Unset = schemas.unset+++_response_for_201 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor201,+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaFor201ResponseBodyApplicationJson),+ },+)+++class SchemaFor400ResponseBodyApplicationJson(+ schemas.DictSchema+):+++ class MetaOapg:++ class properties:+ success = schemas.BoolSchema+ message = schemas.StrSchema+ error = schemas.StrSchema+ __annotations__ = {+ "success": success,+ "message": message,+ "error": error,+ }++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ...++ @typing.overload+ def __getitem__(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ...++ @typing.overload+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...++ def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "message", "error", ], str]):+ # dict_instance[name] accessor+ return super().__getitem__(name)+++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: typing_extensions.Literal["error"]) -> typing.Union[MetaOapg.properties.error, schemas.Unset]: ...++ @typing.overload+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...++ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "message", "error", ], str]):+ return super().get_item_oapg(name)+++ def __new__(+ cls,+ *_args: typing.Union[dict, frozendict.frozendict, ],+ success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset,+ message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset,+ error: typing.Union[MetaOapg.properties.error, str, schemas.Unset] = schemas.unset,+ _configuration: typing.Optional[schemas.Configuration] = None,+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],+ ) -> 'SchemaFor400ResponseBodyApplicationJson':+ return super().__new__(+ cls,+ *_args,+ success=success,+ message=message,+ error=error,+ _configuration=_configuration,+ **kwargs,+ )+++@dataclass+class ApiResponseFor400(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: typing.Union[+ SchemaFor400ResponseBodyApplicationJson,+ ]+ headers: schemas.Unset = schemas.unset+++_response_for_400 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor400,+ content={+ 'application/json': api_client.MediaType(+ schema=SchemaFor400ResponseBodyApplicationJson),+ },+)+++@dataclass+class ApiResponseFor405(api_client.ApiResponse):+ response: urllib3.HTTPResponse+ body: schemas.Unset = schemas.unset+ headers: schemas.Unset = schemas.unset+++_response_for_405 = api_client.OpenApiResponse(+ response_cls=ApiResponseFor405,+)+_all_accept_content_types = (+ 'application/json',+)+++class BaseApi(api_client.Api):+ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def _api_observations_post_oapg(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ """+ Creates a new observation+ :param skip_deserialization: If true then api_response.response will be set but+ api_response.body and api_response.headers will not be deserialized into schema+ class instances+ """+ used_path = path.value++ _headers = HTTPHeaderDict()+ # TODO add cookie handling+ if accept_content_types:+ for accept_content_type in accept_content_types:+ _headers.add('Accept', accept_content_type)++ if body is schemas.unset:+ raise exceptions.ApiValueError(+ 'The required body parameter has an invalid value of: unset. Set a valid value instead')+ _fields = None+ _body = None+ serialized_data = request_body_any_type.serialize(body, content_type)+ _headers.add('Content-Type', content_type)+ if 'fields' in serialized_data:+ _fields = serialized_data['fields']+ elif 'body' in serialized_data:+ _body = serialized_data['body']+ response = self.api_client.call_api(+ resource_path=used_path,+ method='post'.upper(),+ headers=_headers,+ fields=_fields,+ body=_body,+ stream=stream,+ timeout=timeout,+ )++ if skip_deserialization:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)+ else:+ response_for_status = _status_code_to_response.get(str(response.status))+ if response_for_status:+ api_response = response_for_status.deserialize(response, self.api_client.configuration)+ else:+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)++ if not 200 <= response.status <= 299:+ raise exceptions.ApiException(+ status=response.status,+ reason=response.reason,+ api_response=api_response+ )++ return api_response+++class ApiObservationsPost(BaseApi):+ # this class is used by api classes that refer to endpoints with operationId fn names++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def api_observations_post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_observations_post_oapg(+ body=body,+ content_type=content_type,+ accept_content_types=accept_content_types,+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )+++class ApiForpost(BaseApi):+ # this class is used by api classes that refer to endpoints by path and http method names++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: typing_extensions.Literal["application/json"] = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: typing_extensions.Literal[False] = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ ]: ...+++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ skip_deserialization: typing_extensions.Literal[True],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> api_client.ApiResponseWithoutDeserialization: ...++ @typing.overload+ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = ...,+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = ...,+ ) -> typing.Union[+ ApiResponseFor201,+ api_client.ApiResponseWithoutDeserialization,+ ]: ...++ def post(+ self,+ body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],+ content_type: str = 'application/json',+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ skip_deserialization: bool = False,+ ):+ return self._api_observations_post_oapg(+ body=body,+ content_type=content_type,+ accept_content_types=accept_content_types,+ stream=stream,+ timeout=timeout,+ skip_deserialization=skip_deserialization+ )++diff --git a/sdk/python/openapi_client/rest.py b/sdk/python/openapi_client/rest.pynew file mode 100644index 0000000000..68f3c59dc6--- /dev/null+++ b/sdk/python/openapi_client/rest.py@@ -0,0 +1,257 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++import logging+import ssl+from urllib.parse import urlencode+import typing++import certifi+import urllib3+from urllib3._collections import HTTPHeaderDict++from openapi_client.exceptions import ApiException, ApiValueError+++logger = logging.getLogger(__name__)+++class RESTClientObject(object):++ def __init__(self, configuration, pools_size=4, maxsize=None):+ # urllib3.PoolManager will pass all kw parameters to connectionpool+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501+ # maxsize is the number of requests to host that are allowed in parallel # noqa: E501+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501++ # cert_reqs+ if configuration.verify_ssl:+ cert_reqs = ssl.CERT_REQUIRED+ else:+ cert_reqs = ssl.CERT_NONE++ # ca_certs+ if configuration.ssl_ca_cert:+ ca_certs = configuration.ssl_ca_cert+ else:+ # if not set certificate file, use Mozilla's root certificates.+ ca_certs = certifi.where()++ addition_pool_args = {}+ if configuration.assert_hostname is not None:+ addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501++ if configuration.retries is not None:+ addition_pool_args['retries'] = configuration.retries++ if configuration.tls_server_name:+ addition_pool_args['server_hostname'] = configuration.tls_server_name++ if configuration.socket_options is not None:+ addition_pool_args['socket_options'] = configuration.socket_options++ if maxsize is None:+ if configuration.connection_pool_maxsize is not None:+ maxsize = configuration.connection_pool_maxsize+ else:+ maxsize = 4++ # https pool manager+ if configuration.proxy:+ self.pool_manager = urllib3.ProxyManager(+ num_pools=pools_size,+ maxsize=maxsize,+ cert_reqs=cert_reqs,+ ca_certs=ca_certs,+ cert_file=configuration.cert_file,+ key_file=configuration.key_file,+ proxy_url=configuration.proxy,+ proxy_headers=configuration.proxy_headers,+ **addition_pool_args+ )+ else:+ self.pool_manager = urllib3.PoolManager(+ num_pools=pools_size,+ maxsize=maxsize,+ cert_reqs=cert_reqs,+ ca_certs=ca_certs,+ cert_file=configuration.cert_file,+ key_file=configuration.key_file,+ **addition_pool_args+ )++ def request(+ self,+ method: str,+ url: str,+ headers: typing.Optional[HTTPHeaderDict] = None,+ fields: typing.Optional[typing.Tuple[typing.Tuple[str, typing.Any], ...]] = None,+ body: typing.Optional[typing.Union[str, bytes]] = None,+ stream: bool = False,+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,+ ) -> urllib3.HTTPResponse:+ """Perform requests.++ :param method: http request method+ :param url: http request url+ :param headers: http request headers+ :param body: request body, for other types+ :param fields: request parameters for+ `application/x-www-form-urlencoded`+ or `multipart/form-data`+ :param stream: if True, the urllib3.HTTPResponse object will+ be returned without reading/decoding response+ data. Default is False.+ :param timeout: timeout setting for this request. If one+ number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.+ """+ method = method.upper()+ assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',+ 'PATCH', 'OPTIONS']++ if fields and body:+ raise ApiValueError(+ "body parameter cannot be used with fields parameter."+ )++ fields = fields or {}+ headers = headers or {}++ if timeout:+ if isinstance(timeout, (int, float)): # noqa: E501,F821+ timeout = urllib3.Timeout(total=timeout)+ elif (isinstance(timeout, tuple) and+ len(timeout) == 2):+ timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1])++ try:+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:+ if 'Content-Type' not in headers and body is None:+ r = self.pool_manager.request(+ method,+ url,+ preload_content=not stream,+ timeout=timeout,+ headers=headers+ )+ elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501+ r = self.pool_manager.request(+ method, url,+ body=body,+ fields=fields,+ encode_multipart=False,+ preload_content=not stream,+ timeout=timeout,+ headers=headers)+ elif headers['Content-Type'] == 'multipart/form-data':+ # must del headers['Content-Type'], or the correct+ # Content-Type which generated by urllib3 will be+ # overwritten.+ del headers['Content-Type']+ r = self.pool_manager.request(+ method, url,+ fields=fields,+ encode_multipart=True,+ preload_content=not stream,+ timeout=timeout,+ headers=headers)+ # Pass a `string` parameter directly in the body to support+ # other content types than Json when `body` argument is+ # provided in serialized form+ elif isinstance(body, str) or isinstance(body, bytes):+ request_body = body+ r = self.pool_manager.request(+ method, url,+ body=request_body,+ preload_content=not stream,+ timeout=timeout,+ headers=headers)+ else:+ # Cannot generate the request from given parameters+ msg = """Cannot prepare a request message for provided+ arguments. Please check that your arguments match+ declared content type."""+ raise ApiException(status=0, reason=msg)+ # For `GET`, `HEAD`+ else:+ r = self.pool_manager.request(method, url,+ preload_content=not stream,+ timeout=timeout,+ headers=headers)+ except urllib3.exceptions.SSLError as e:+ msg = "{0}\n{1}".format(type(e).__name__, str(e))+ raise ApiException(status=0, reason=msg)++ if not stream:+ # log response body+ logger.debug("response body: %s", r.data)++ return r++ def GET(self, url, headers=None, stream=False,+ timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("GET", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ fields=fields)++ def HEAD(self, url, headers=None, stream=False,+ timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("HEAD", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ fields=fields)++ def OPTIONS(self, url, headers=None,+ body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("OPTIONS", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body, fields=fields)++ def DELETE(self, url, headers=None, body=None,+ stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("DELETE", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body, fields=fields)++ def POST(self, url, headers=None,+ body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("POST", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body, fields=fields)++ def PUT(self, url, headers=None,+ body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("PUT", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body, fields=fields)++ def PATCH(self, url, headers=None,+ body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse:+ return self.request("PATCH", url,+ headers=headers,+ stream=stream,+ timeout=timeout,+ body=body, fields=fields)diff --git a/sdk/python/openapi_client/schemas.py b/sdk/python/openapi_client/schemas.pynew file mode 100644index 0000000000..1c9df04d44--- /dev/null+++ b/sdk/python/openapi_client/schemas.py@@ -0,0 +1,2475 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++from collections import defaultdict+from datetime import date, datetime, timedelta # noqa: F401+import functools+import decimal+import io+import re+import types+import typing+import uuid++from dateutil.parser.isoparser import isoparser, _takes_ascii+import frozendict++from openapi_client.exceptions import (+ ApiTypeError,+ ApiValueError,+)+from openapi_client.configuration import (+ Configuration,+)+++class Unset(object):+ """+ An instance of this class is set as the default value for object type(dict) properties that are optional+ When a property has an unset value, that property will not be assigned in the dict+ """+ pass++unset = Unset()++none_type = type(None)+file_type = io.IOBase+++class FileIO(io.FileIO):+ """+ A class for storing files+ Note: this class is not immutable+ """++ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]):+ if isinstance(_arg, (io.FileIO, io.BufferedReader)):+ if _arg.closed:+ raise ApiValueError('Invalid file state; file is closed and must be open')+ _arg.close()+ inst = super(FileIO, cls).__new__(cls, _arg.name)+ super(FileIO, inst).__init__(_arg.name)+ return inst+ raise ApiValueError('FileIO must be passed _arg which contains the open file')++ def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]):+ pass+++def update(d: dict, u: dict):+ """+ Adds u to d+ Where each dict is defaultdict(set)+ """+ if not u:+ return d+ for k, v in u.items():+ if k not in d:+ d[k] = v+ else:+ d[k] = d[k] | v+++class ValidationMetadata(frozendict.frozendict):+ """+ A class storing metadata that is needed to validate OpenApi Schema payloads+ """+ def __new__(+ cls,+ path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']),+ from_server: bool = False,+ configuration: typing.Optional[Configuration] = None,+ seen_classes: typing.FrozenSet[typing.Type] = frozenset(),+ validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict()+ ):+ """+ Args:+ path_to_item: the path to the current data being instantiated.+ For {'a': [1]} if the code is handling, 1, then the path is ('args[0]', 'a', 0)+ This changes from location to location+ from_server: whether or not this data came form the server+ True when receiving server data+ False when instantiating model with client side data not form the server+ This does not change from location to location+ configuration: the Configuration instance to use+ This is needed because in Configuration:+ - one can disable validation checking+ This does not change from location to location+ seen_classes: when deserializing data that matches multiple schemas, this is used to store+ the schemas that have been traversed. This is used to stop processing when a cycle is seen.+ This changes from location to location+ validated_path_to_schemas: stores the already validated schema classes for a given path location+ This does not change from location to location+ """+ return super().__new__(+ cls,+ path_to_item=path_to_item,+ from_server=from_server,+ configuration=configuration,+ seen_classes=seen_classes,+ validated_path_to_schemas=validated_path_to_schemas+ )++ def validation_ran_earlier(self, cls: type) -> bool:+ validated_schemas = self.validated_path_to_schemas.get(self.path_to_item, set())+ validation_ran_earlier = validated_schemas and cls in validated_schemas+ if validation_ran_earlier:+ return True+ if cls in self.seen_classes:+ return True+ return False++ @property+ def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]:+ return self.get('path_to_item')++ @property+ def from_server(self) -> bool:+ return self.get('from_server')++ @property+ def configuration(self) -> typing.Optional[Configuration]:+ return self.get('configuration')++ @property+ def seen_classes(self) -> typing.FrozenSet[typing.Type]:+ return self.get('seen_classes')++ @property+ def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]:+ return self.get('validated_path_to_schemas')+++def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict):+ # this is called if validation_ran_earlier and current and deeper locations need to be added+ current_path_to_item = validation_metadata.path_to_item+ other_path_to_schemas = {}+ for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items():+ if len(path_to_item) < len(current_path_to_item):+ continue+ path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item+ if path_begins_with_current_path:+ other_path_to_schemas[path_to_item] = schemas+ update(path_to_schemas, other_path_to_schemas)+++class Singleton:+ """+ Enums and singletons are the same+ The same instance is returned for a given key of (cls, _arg)+ """+ _instances = {}++ def __new__(cls, _arg: typing.Any, **kwargs):+ """+ cls base classes: BoolClass, NoneClass, str, decimal.Decimal+ The 3rd key is used in the tuple below for a corner case where an enum contains integer 1+ However 1.0 can also be ingested into that enum schema because 1.0 == 1 and+ Decimal('1.0') == Decimal('1')+ But if we omitted the 3rd value in the key, then Decimal('1.0') would be stored as Decimal('1')+ and json serializing that instance would be '1' rather than the expected '1.0'+ Adding the 3rd value, the str of _arg ensures that 1.0 -> Decimal('1.0') which is serialized as 1.0+ """+ key = (cls, _arg, str(_arg))+ if key not in cls._instances:+ if isinstance(_arg, (none_type, bool, BoolClass, NoneClass)):+ inst = super().__new__(cls)+ cls._instances[key] = inst+ else:+ cls._instances[key] = super().__new__(cls, _arg)+ return cls._instances[key]++ def __repr__(self):+ if isinstance(self, NoneClass):+ return f'<{self.__class__.__name__}: None>'+ elif isinstance(self, BoolClass):+ if bool(self):+ return f'<{self.__class__.__name__}: True>'+ return f'<{self.__class__.__name__}: False>'+ return f'<{self.__class__.__name__}: {super().__repr__()}>'+++class classproperty:++ def __init__(self, fget):+ self.fget = fget++ def __get__(self, owner_self, owner_cls):+ return self.fget(owner_cls)+++class NoneClass(Singleton):+ @classproperty+ def NONE(cls):+ return cls(None)++ def __bool__(self) -> bool:+ return False+++class BoolClass(Singleton):+ @classproperty+ def TRUE(cls):+ return cls(True)++ @classproperty+ def FALSE(cls):+ return cls(False)++ @functools.lru_cache()+ def __bool__(self) -> bool:+ for key, instance in self._instances.items():+ if self is instance:+ return bool(key[1])+ raise ValueError('Unable to find the boolean value of this instance')+++class MetaOapgTyped:+ exclusive_maximum: typing.Union[int, float]+ inclusive_maximum: typing.Union[int, float]+ exclusive_minimum: typing.Union[int, float]+ inclusive_minimum: typing.Union[int, float]+ max_items: int+ min_items: int+ discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]]+++ class properties:+ # to hold object properties+ pass++ additional_properties: typing.Optional[typing.Type['Schema']]+ max_properties: int+ min_properties: int+ all_of: typing.List[typing.Type['Schema']]+ one_of: typing.List[typing.Type['Schema']]+ any_of: typing.List[typing.Type['Schema']]+ not_schema: typing.Type['Schema']+ max_length: int+ min_length: int+ items: typing.Type['Schema']+++class Schema:+ """+ the base class of all swagger/openapi schemas/models+ """+ __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass}+ _types: typing.Set[typing.Type]+ MetaOapg = MetaOapgTyped++ @staticmethod+ def __get_valid_classes_phrase(input_classes):+ """Returns a string phrase describing what types are allowed"""+ all_classes = list(input_classes)+ all_classes = sorted(all_classes, key=lambda cls: cls.__name__)+ all_class_names = [cls.__name__ for cls in all_classes]+ if len(all_class_names) == 1:+ return "is {0}".format(all_class_names[0])+ return "is one of [{0}]".format(", ".join(all_class_names))++ @staticmethod+ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']:+ if isinstance(item_cls, types.FunctionType):+ # referenced schema+ return item_cls()+ elif isinstance(item_cls, staticmethod):+ # referenced schema+ return item_cls.__func__()+ return item_cls++ @classmethod+ def __type_error_message(+ cls, var_value=None, var_name=None, valid_classes=None, key_type=None+ ):+ """+ Keyword Args:+ var_value (any): the variable which has the type_error+ var_name (str): the name of the variable which has the typ error+ valid_classes (tuple): the accepted classes for current_item's+ value+ key_type (bool): False if our value is a value in a dict+ True if it is a key in a dict+ False if our item is an item in a tuple+ """+ key_or_value = "value"+ if key_type:+ key_or_value = "key"+ valid_classes_phrase = cls.__get_valid_classes_phrase(valid_classes)+ msg = "Invalid type. Required {1} type {2} and " "passed type was {3}".format(+ var_name,+ key_or_value,+ valid_classes_phrase,+ type(var_value).__name__,+ )+ return msg++ @classmethod+ def __get_type_error(cls, var_value, path_to_item, valid_classes, key_type=False):+ error_msg = cls.__type_error_message(+ var_name=path_to_item[-1],+ var_value=var_value,+ valid_classes=valid_classes,+ key_type=key_type,+ )+ return ApiTypeError(+ error_msg,+ path_to_item=path_to_item,+ valid_classes=valid_classes,+ key_type=key_type,+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:+ """+ Schema _validate_oapg+ All keyword validation except for type checking was done in calling stack frames+ If those validations passed, the validated classes are collected in path_to_schemas++ Returns:+ path_to_schemas: a map of path to schemas++ Raises:+ ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes+ ApiTypeError: when the input type is not in the list of allowed spec types+ """+ base_class = type(arg)+ if base_class not in cls._types:+ raise cls.__get_type_error(+ arg,+ validation_metadata.path_to_item,+ cls._types,+ key_type=False,+ )++ path_to_schemas = {validation_metadata.path_to_item: set()}+ path_to_schemas[validation_metadata.path_to_item].add(cls)+ path_to_schemas[validation_metadata.path_to_item].add(base_class)+ return path_to_schemas++ @staticmethod+ def _process_schema_classes_oapg(+ schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]+ ):+ """+ Processes and mutates schema_classes+ If a SomeSchema is a subclass of DictSchema then remove DictSchema because it is already included+ """+ if len(schema_classes) < 2:+ return+ if len(schema_classes) > 2 and UnsetAnyTypeSchema in schema_classes:+ schema_classes.remove(UnsetAnyTypeSchema)+ x_schema = schema_type_classes & schema_classes+ if not x_schema:+ return+ x_schema = x_schema.pop()+ if any(c is not x_schema and issubclass(c, x_schema) for c in schema_classes):+ # needed to not have a mro error in get_new_class+ schema_classes.remove(x_schema)++ @classmethod+ def __get_new_cls(+ cls,+ arg,+ validation_metadata: ValidationMetadata+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]:+ """+ Make a new dynamic class and return an instance of that class+ We are making an instance of cls, but instead of making cls+ make a new class, new_cls+ which includes dynamic bases including cls+ return an instance of that new class++ Dict property + List Item Assignment Use cases:+ 1. value is NOT an instance of the required schema class+ the value is validated by _validate_oapg+ _validate_oapg returns a key value pair+ where the key is the path to the item, and the value will be the required manufactured class+ made out of the matching schemas+ 2. value is an instance of the correct schema type+ the value is NOT validated by _validate_oapg, _validate_oapg only checks that the instance is of the correct schema type+ for this value, _validate_oapg does NOT return an entry for it in _path_to_schemas+ and in list/dict _get_items_oapg,_get_properties_oapg the value will be directly assigned+ because value is of the correct type, and validation was run earlier when the instance was created+ """+ _path_to_schemas = {}+ if validation_metadata.validation_ran_earlier(cls):+ add_deeper_validated_schemas(validation_metadata, _path_to_schemas)+ else:+ other_path_to_schemas = cls._validate_oapg(arg, validation_metadata=validation_metadata)+ update(_path_to_schemas, other_path_to_schemas)+ # loop through it make a new class for each entry+ # do not modify the returned result because it is cached and we would be modifying the cached value+ path_to_schemas = {}+ for path, schema_classes in _path_to_schemas.items():+ """+ Use cases+ 1. N number of schema classes + enum + type != bool/None, classes in path_to_schemas: tuple/frozendict.frozendict/str/Decimal/bytes/FileIo+ needs Singleton added+ 2. N number of schema classes + enum + type == bool/None, classes in path_to_schemas: BoolClass/NoneClass+ Singleton already added+ 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo+ """+ cls._process_schema_classes_oapg(schema_classes)+ enum_schema = any(+ issubclass(this_cls, EnumBase) for this_cls in schema_classes)+ inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set)+ chosen_schema_classes = schema_classes - inheritable_primitive_type+ suffix = tuple(inheritable_primitive_type)+ if enum_schema and suffix[0] not in {NoneClass, BoolClass}:+ suffix = (Singleton,) + suffix++ used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix+ mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes)+ path_to_schemas[path] = mfg_cls++ return path_to_schemas++ @classmethod+ def _get_new_instance_without_conversion_oapg(+ cls,+ arg: typing.Any,+ path_to_item: typing.Tuple[typing.Union[str, int], ...],+ path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]+ ):+ # We have a Dynamic class and we are making an instance of it+ if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase):+ properties = cls._get_properties_oapg(arg, path_to_item, path_to_schemas)+ return super(Schema, cls).__new__(cls, properties)+ elif issubclass(cls, tuple) and issubclass(cls, ListBase):+ items = cls._get_items_oapg(arg, path_to_item, path_to_schemas)+ return super(Schema, cls).__new__(cls, items)+ """+ str = openapi str, date, and datetime+ decimal.Decimal = openapi int and float+ FileIO = openapi binary type and the user inputs a file+ bytes = openapi binary type and the user inputs bytes+ """+ return super(Schema, cls).__new__(cls, arg)++ @classmethod+ def from_openapi_data_oapg(+ cls,+ arg: typing.Union[+ str,+ date,+ datetime,+ int,+ float,+ decimal.Decimal,+ bool,+ None,+ 'Schema',+ dict,+ frozendict.frozendict,+ tuple,+ list,+ io.FileIO,+ io.BufferedReader,+ bytes+ ],+ _configuration: typing.Optional[Configuration]+ ):+ """+ Schema from_openapi_data_oapg+ """+ from_server = True+ validated_path_to_schemas = {}+ arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas)+ validation_metadata = ValidationMetadata(+ from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas)+ path_to_schemas = cls.__get_new_cls(arg, validation_metadata)+ new_cls = path_to_schemas[validation_metadata.path_to_item]+ new_inst = new_cls._get_new_instance_without_conversion_oapg(+ arg,+ validation_metadata.path_to_item,+ path_to_schemas+ )+ return new_inst++ @staticmethod+ def __get_input_dict(*args, **kwargs) -> frozendict.frozendict:+ input_dict = {}+ if args and isinstance(args[0], (dict, frozendict.frozendict)):+ input_dict.update(args[0])+ if kwargs:+ input_dict.update(kwargs)+ return frozendict.frozendict(input_dict)++ @staticmethod+ def __remove_unsets(kwargs):+ return {key: val for key, val in kwargs.items() if val is not unset}++ def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]):+ """+ Schema __new__++ Args:+ _args (int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): the value+ kwargs (str, int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): dict values+ _configuration: contains the Configuration that enables json schema validation keywords+ like minItems, minLength etc++ Note: double underscores are used here because pycharm thinks that these variables+ are instance properties if they are named normally :(+ """+ __kwargs = cls.__remove_unsets(kwargs)+ if not _args and not __kwargs:+ raise TypeError(+ 'No input given. args or kwargs must be given.'+ )+ if not __kwargs and _args and not isinstance(_args[0], dict):+ __arg = _args[0]+ else:+ __arg = cls.__get_input_dict(*_args, **__kwargs)+ __from_server = False+ __validated_path_to_schemas = {}+ __arg = cast_to_allowed_types(+ __arg, __from_server, __validated_path_to_schemas)+ __validation_metadata = ValidationMetadata(+ configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas)+ __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata)+ __new_cls = __path_to_schemas[__validation_metadata.path_to_item]+ return __new_cls._get_new_instance_without_conversion_oapg(+ __arg,+ __validation_metadata.path_to_item,+ __path_to_schemas+ )++ def __init__(+ self,+ *_args: typing.Union[+ dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'],+ _configuration: typing.Optional[Configuration] = None,+ **kwargs: typing.Union[+ dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset+ ]+ ):+ """+ this is needed to fix 'Unexpected argument' warning in pycharm+ this code does nothing because all Schema instances are immutable+ this means that all input data is passed into and used in new, and after the new instance is made+ no new attributes are assigned and init is not used+ """+ pass++"""+import itertools+data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool')+type_to_cls = {+ 'None': 'NoneClass',+ 'FrozenDict': 'frozendict.frozendict',+ 'Tuple': 'tuple',+ 'Str': 'str',+ 'Decimal': 'decimal.Decimal',+ 'Bool': 'BoolClass'+}+cls_tuples = [v for v in itertools.combinations(data_types, 5)]+typed_classes = [f"class {''.join(cls_tuple)}Mixin({', '.join(type_to_cls[typ] for typ in cls_tuple)}):\n pass" for cls_tuple in cls_tuples]+for cls in typed_classes:+ print(cls)+object_classes = [f"{''.join(cls_tuple)}Mixin = object" for cls_tuple in cls_tuples]+for cls in object_classes:+ print(cls)+"""+if typing.TYPE_CHECKING:+ # qty 1+ NoneMixin = NoneClass+ FrozenDictMixin = frozendict.frozendict+ TupleMixin = tuple+ StrMixin = str+ DecimalMixin = decimal.Decimal+ BoolMixin = BoolClass+ BytesMixin = bytes+ FileMixin = FileIO+ # qty 2+ class BinaryMixin(bytes, FileIO):+ pass+ class NoneFrozenDictMixin(NoneClass, frozendict.frozendict):+ pass+ class NoneTupleMixin(NoneClass, tuple):+ pass+ class NoneStrMixin(NoneClass, str):+ pass+ class NoneDecimalMixin(NoneClass, decimal.Decimal):+ pass+ class NoneBoolMixin(NoneClass, BoolClass):+ pass+ class FrozenDictTupleMixin(frozendict.frozendict, tuple):+ pass+ class FrozenDictStrMixin(frozendict.frozendict, str):+ pass+ class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal):+ pass+ class FrozenDictBoolMixin(frozendict.frozendict, BoolClass):+ pass+ class TupleStrMixin(tuple, str):+ pass+ class TupleDecimalMixin(tuple, decimal.Decimal):+ pass+ class TupleBoolMixin(tuple, BoolClass):+ pass+ class StrDecimalMixin(str, decimal.Decimal):+ pass+ class StrBoolMixin(str, BoolClass):+ pass+ class DecimalBoolMixin(decimal.Decimal, BoolClass):+ pass+ # qty 3+ class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple):+ pass+ class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str):+ pass+ class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal):+ pass+ class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass):+ pass+ class NoneTupleStrMixin(NoneClass, tuple, str):+ pass+ class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal):+ pass+ class NoneTupleBoolMixin(NoneClass, tuple, BoolClass):+ pass+ class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal):+ pass+ class NoneStrBoolMixin(NoneClass, str, BoolClass):+ pass+ class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass):+ pass+ class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str):+ pass+ class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal):+ pass+ class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass):+ pass+ class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal):+ pass+ class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass):+ pass+ class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass):+ pass+ class TupleStrDecimalMixin(tuple, str, decimal.Decimal):+ pass+ class TupleStrBoolMixin(tuple, str, BoolClass):+ pass+ class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass):+ pass+ class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass):+ pass+ # qty 4+ class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str):+ pass+ class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal):+ pass+ class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass):+ pass+ class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal):+ pass+ class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass):+ pass+ class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass):+ pass+ class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal):+ pass+ class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass):+ pass+ class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass):+ pass+ class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass):+ pass+ class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal):+ pass+ class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass):+ pass+ class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass):+ pass+ class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass):+ pass+ class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass):+ pass+ # qty 5+ class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal):+ pass+ class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass):+ pass+ class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass):+ pass+ class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass):+ pass+ class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass):+ pass+ class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass):+ pass+ # qty 6+ class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass):+ pass+ # qty 8+ class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes):+ pass+else:+ # qty 1+ class NoneMixin:+ _types = {NoneClass}+ class FrozenDictMixin:+ _types = {frozendict.frozendict}+ class TupleMixin:+ _types = {tuple}+ class StrMixin:+ _types = {str}+ class DecimalMixin:+ _types = {decimal.Decimal}+ class BoolMixin:+ _types = {BoolClass}+ class BytesMixin:+ _types = {bytes}+ class FileMixin:+ _types = {FileIO}+ # qty 2+ class BinaryMixin:+ _types = {bytes, FileIO}+ class NoneFrozenDictMixin:+ _types = {NoneClass, frozendict.frozendict}+ class NoneTupleMixin:+ _types = {NoneClass, tuple}+ class NoneStrMixin:+ _types = {NoneClass, str}+ class NoneDecimalMixin:+ _types = {NoneClass, decimal.Decimal}+ class NoneBoolMixin:+ _types = {NoneClass, BoolClass}+ class FrozenDictTupleMixin:+ _types = {frozendict.frozendict, tuple}+ class FrozenDictStrMixin:+ _types = {frozendict.frozendict, str}+ class FrozenDictDecimalMixin:+ _types = {frozendict.frozendict, decimal.Decimal}+ class FrozenDictBoolMixin:+ _types = {frozendict.frozendict, BoolClass}+ class TupleStrMixin:+ _types = {tuple, str}+ class TupleDecimalMixin:+ _types = {tuple, decimal.Decimal}+ class TupleBoolMixin:+ _types = {tuple, BoolClass}+ class StrDecimalMixin:+ _types = {str, decimal.Decimal}+ class StrBoolMixin:+ _types = {str, BoolClass}+ class DecimalBoolMixin:+ _types = {decimal.Decimal, BoolClass}+ # qty 3+ class NoneFrozenDictTupleMixin:+ _types = {NoneClass, frozendict.frozendict, tuple}+ class NoneFrozenDictStrMixin:+ _types = {NoneClass, frozendict.frozendict, str}+ class NoneFrozenDictDecimalMixin:+ _types = {NoneClass, frozendict.frozendict, decimal.Decimal}+ class NoneFrozenDictBoolMixin:+ _types = {NoneClass, frozendict.frozendict, BoolClass}+ class NoneTupleStrMixin:+ _types = {NoneClass, tuple, str}+ class NoneTupleDecimalMixin:+ _types = {NoneClass, tuple, decimal.Decimal}+ class NoneTupleBoolMixin:+ _types = {NoneClass, tuple, BoolClass}+ class NoneStrDecimalMixin:+ _types = {NoneClass, str, decimal.Decimal}+ class NoneStrBoolMixin:+ _types = {NoneClass, str, BoolClass}+ class NoneDecimalBoolMixin:+ _types = {NoneClass, decimal.Decimal, BoolClass}+ class FrozenDictTupleStrMixin:+ _types = {frozendict.frozendict, tuple, str}+ class FrozenDictTupleDecimalMixin:+ _types = {frozendict.frozendict, tuple, decimal.Decimal}+ class FrozenDictTupleBoolMixin:+ _types = {frozendict.frozendict, tuple, BoolClass}+ class FrozenDictStrDecimalMixin:+ _types = {frozendict.frozendict, str, decimal.Decimal}+ class FrozenDictStrBoolMixin:+ _types = {frozendict.frozendict, str, BoolClass}+ class FrozenDictDecimalBoolMixin:+ _types = {frozendict.frozendict, decimal.Decimal, BoolClass}+ class TupleStrDecimalMixin:+ _types = {tuple, str, decimal.Decimal}+ class TupleStrBoolMixin:+ _types = {tuple, str, BoolClass}+ class TupleDecimalBoolMixin:+ _types = {tuple, decimal.Decimal, BoolClass}+ class StrDecimalBoolMixin:+ _types = {str, decimal.Decimal, BoolClass}+ # qty 4+ class NoneFrozenDictTupleStrMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, str}+ class NoneFrozenDictTupleDecimalMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal}+ class NoneFrozenDictTupleBoolMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, BoolClass}+ class NoneFrozenDictStrDecimalMixin:+ _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal}+ class NoneFrozenDictStrBoolMixin:+ _types = {NoneClass, frozendict.frozendict, str, BoolClass}+ class NoneFrozenDictDecimalBoolMixin:+ _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass}+ class NoneTupleStrDecimalMixin:+ _types = {NoneClass, tuple, str, decimal.Decimal}+ class NoneTupleStrBoolMixin:+ _types = {NoneClass, tuple, str, BoolClass}+ class NoneTupleDecimalBoolMixin:+ _types = {NoneClass, tuple, decimal.Decimal, BoolClass}+ class NoneStrDecimalBoolMixin:+ _types = {NoneClass, str, decimal.Decimal, BoolClass}+ class FrozenDictTupleStrDecimalMixin:+ _types = {frozendict.frozendict, tuple, str, decimal.Decimal}+ class FrozenDictTupleStrBoolMixin:+ _types = {frozendict.frozendict, tuple, str, BoolClass}+ class FrozenDictTupleDecimalBoolMixin:+ _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass}+ class FrozenDictStrDecimalBoolMixin:+ _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass}+ class TupleStrDecimalBoolMixin:+ _types = {tuple, str, decimal.Decimal, BoolClass}+ # qty 5+ class NoneFrozenDictTupleStrDecimalMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal}+ class NoneFrozenDictTupleStrBoolMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass}+ class NoneFrozenDictTupleDecimalBoolMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass}+ class NoneFrozenDictStrDecimalBoolMixin:+ _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass}+ class NoneTupleStrDecimalBoolMixin:+ _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass}+ class FrozenDictTupleStrDecimalBoolMixin:+ _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass}+ # qty 6+ class NoneFrozenDictTupleStrDecimalBoolMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass}+ # qty 8+ class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin:+ _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes}+++class ValidatorBase:+ @staticmethod+ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None):+ """Returns true if JSON schema validation is enabled for the specified+ validation keyword. This can be used to skip JSON schema structural validation+ as requested in the configuration.+ Note: the suffix _oapg stands for openapi python (experimental) generator and+ it has been added to prevent collisions with other methods and properties++ Args:+ schema_keyword (string): the name of a JSON schema validation keyword.+ configuration (Configuration): the configuration class.+ """++ return (configuration is None or+ not hasattr(configuration, '_disabled_client_side_validations') or+ schema_keyword not in configuration._disabled_client_side_validations)++ @staticmethod+ def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""):+ raise ApiValueError(+ "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format(+ value=value,+ constraint_msg=constraint_msg,+ constraint_value=constraint_value,+ additional_txt=additional_txt,+ path_to_item=path_to_item,+ )+ )+++class EnumBase:+ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:+ """+ EnumBase _validate_oapg+ Validates that arg is in the enum's allowed values+ """+ try:+ cls.MetaOapg.enum_value_to_name[arg]+ except KeyError:+ raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys()))+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class BoolBase:+ def is_true_oapg(self) -> bool:+ """+ A replacement for x is True+ True if the instance is a BoolClass True Singleton+ """+ if not issubclass(self.__class__, BoolClass):+ return False+ return bool(self)++ def is_false_oapg(self) -> bool:+ """+ A replacement for x is False+ True if the instance is a BoolClass False Singleton+ """+ if not issubclass(self.__class__, BoolClass):+ return False+ return bool(self) is False+++class NoneBase:+ def is_none_oapg(self) -> bool:+ """+ A replacement for x is None+ True if the instance is a NoneClass None Singleton+ """+ if issubclass(self.__class__, NoneClass):+ return True+ return False+++class StrBase(ValidatorBase):+ MetaOapg: MetaOapgTyped++ @property+ def as_str_oapg(self) -> str:+ return self++ @property+ def as_date_oapg(self) -> date:+ raise Exception('not implemented')++ @property+ def as_datetime_oapg(self) -> datetime:+ raise Exception('not implemented')++ @property+ def as_decimal_oapg(self) -> decimal.Decimal:+ raise Exception('not implemented')++ @property+ def as_uuid_oapg(self) -> uuid.UUID:+ raise Exception('not implemented')++ @classmethod+ def __check_str_validations(+ cls,+ arg: str,+ validation_metadata: ValidationMetadata+ ):+ if not hasattr(cls, 'MetaOapg'):+ return+ if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'max_length') and+ len(arg) > cls.MetaOapg.max_length):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="length must be less than or equal to",+ constraint_value=cls.MetaOapg.max_length,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'min_length') and+ len(arg) < cls.MetaOapg.min_length):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="length must be greater than or equal to",+ constraint_value=cls.MetaOapg.min_length,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'regex')):+ for regex_dict in cls.MetaOapg.regex:+ flags = regex_dict.get('flags', 0)+ if not re.search(regex_dict['pattern'], arg, flags=flags):+ if flags != 0:+ # Don't print the regex flags if the flags are not+ # specified in the OAS document.+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must match regular expression",+ constraint_value=regex_dict['pattern'],+ path_to_item=validation_metadata.path_to_item,+ additional_txt=" with flags=`{}`".format(flags)+ )+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must match regular expression",+ constraint_value=regex_dict['pattern'],+ path_to_item=validation_metadata.path_to_item+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:+ """+ StrBase _validate_oapg+ Validates that validations pass+ """+ if isinstance(arg, str):+ cls.__check_str_validations(arg, validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class UUIDBase:+ @property+ @functools.lru_cache()+ def as_uuid_oapg(self) -> uuid.UUID:+ return uuid.UUID(self)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata):+ if isinstance(arg, str):+ try:+ uuid.UUID(arg)+ return True+ except ValueError:+ raise ApiValueError(+ "Invalid value '{}' for type UUID at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: typing.Optional[ValidationMetadata] = None,+ ):+ """+ UUIDBase _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class CustomIsoparser(isoparser):++ @_takes_ascii+ def parse_isodatetime(self, dt_str):+ components, pos = self._parse_isodate(dt_str)+ if len(dt_str) > pos:+ if self._sep is None or dt_str[pos:pos + 1] == self._sep:+ components += self._parse_isotime(dt_str[pos + 1:])+ else:+ raise ValueError('String contains unknown ISO components')++ if len(components) > 3 and components[3] == 24:+ components[3] = 0+ return datetime(*components) + timedelta(days=1)++ if len(components) <= 3:+ raise ValueError('Value is not a datetime')++ return datetime(*components)++ @_takes_ascii+ def parse_isodate(self, datestr):+ components, pos = self._parse_isodate(datestr)++ if len(datestr) > pos:+ raise ValueError('String contains invalid time components')++ if len(components) > 3:+ raise ValueError('String contains invalid time components')++ return date(*components)+++DEFAULT_ISOPARSER = CustomIsoparser()+++class DateBase:+ @property+ @functools.lru_cache()+ def as_date_oapg(self) -> date:+ return DEFAULT_ISOPARSER.parse_isodate(self)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata):+ if isinstance(arg, str):+ try:+ DEFAULT_ISOPARSER.parse_isodate(arg)+ return True+ except ValueError:+ raise ApiValueError(+ "Value does not conform to the required ISO-8601 date format. "+ "Invalid value '{}' for type date at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: typing.Optional[ValidationMetadata] = None,+ ):+ """+ DateBase _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class DateTimeBase:+ @property+ @functools.lru_cache()+ def as_datetime_oapg(self) -> datetime:+ return DEFAULT_ISOPARSER.parse_isodatetime(self)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata):+ if isinstance(arg, str):+ try:+ DEFAULT_ISOPARSER.parse_isodatetime(arg)+ return True+ except ValueError:+ raise ApiValueError(+ "Value does not conform to the required ISO-8601 datetime format. "+ "Invalid value '{}' for type datetime at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ DateTimeBase _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class DecimalBase:+ """+ A class for storing decimals that are sent over the wire as strings+ These schemas must remain based on StrBase rather than NumberBase+ because picking base classes must be deterministic+ """++ @property+ @functools.lru_cache()+ def as_decimal_oapg(self) -> decimal.Decimal:+ return decimal.Decimal(self)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata):+ if isinstance(arg, str):+ try:+ decimal.Decimal(arg)+ return True+ except decimal.InvalidOperation:+ raise ApiValueError(+ "Value cannot be converted to a decimal. "+ "Invalid value '{}' for type decimal at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ DecimalBase _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class NumberBase(ValidatorBase):+ MetaOapg: MetaOapgTyped++ @property+ def as_int_oapg(self) -> int:+ try:+ return self._as_int+ except AttributeError:+ """+ Note: for some numbers like 9.0 they could be represented as an+ integer but our code chooses to store them as+ >>> Decimal('9.0').as_tuple()+ DecimalTuple(sign=0, digits=(9, 0), exponent=-1)+ so we can tell that the value came from a float and convert it back to a float+ during later serialization+ """+ if self.as_tuple().exponent < 0:+ # this could be represented as an integer but should be represented as a float+ # because that's what it was serialized from+ raise ApiValueError(f'{self} is not an integer')+ self._as_int = int(self)+ return self._as_int++ @property+ def as_float_oapg(self) -> float:+ try:+ return self._as_float+ except AttributeError:+ if self.as_tuple().exponent >= 0:+ raise ApiValueError(f'{self} is not a float')+ self._as_float = float(self)+ return self._as_float++ @classmethod+ def __check_numeric_validations(+ cls,+ arg,+ validation_metadata: ValidationMetadata+ ):+ if not hasattr(cls, 'MetaOapg'):+ return+ if cls._is_json_validation_enabled_oapg('multipleOf',+ validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'):+ multiple_of_value = cls.MetaOapg.multiple_of+ if (not (float(arg) / multiple_of_value).is_integer()):+ # Note 'multipleOf' will be as good as the floating point arithmetic.+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="value must be a multiple of",+ constraint_value=multiple_of_value,+ path_to_item=validation_metadata.path_to_item+ )++ checking_max_or_min_values = any(+ hasattr(cls.MetaOapg, validation_key) for validation_key in {+ 'exclusive_maximum',+ 'inclusive_maximum',+ 'exclusive_minimum',+ 'inclusive_minimum',+ }+ )+ if not checking_max_or_min_values:+ return++ if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'exclusive_maximum') and+ arg >= cls.MetaOapg.exclusive_maximum):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must be a value less than",+ constraint_value=cls.MetaOapg.exclusive_maximum,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'inclusive_maximum') and+ arg > cls.MetaOapg.inclusive_maximum):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must be a value less than or equal to",+ constraint_value=cls.MetaOapg.inclusive_maximum,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'exclusive_minimum') and+ arg <= cls.MetaOapg.exclusive_minimum):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must be a value greater than",+ constraint_value=cls.MetaOapg.exclusive_maximum,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'inclusive_minimum') and+ arg < cls.MetaOapg.inclusive_minimum):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="must be a value greater than or equal to",+ constraint_value=cls.MetaOapg.inclusive_minimum,+ path_to_item=validation_metadata.path_to_item+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:+ """+ NumberBase _validate_oapg+ Validates that validations pass+ """+ if isinstance(arg, decimal.Decimal):+ cls.__check_numeric_validations(arg, validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class ListBase(ValidatorBase):+ MetaOapg: MetaOapgTyped++ @classmethod+ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata):+ """+ Ensures that:+ - values passed in for items are valid+ Exceptions will be raised if:+ - invalid arguments were passed in++ Args:+ list_items: the input list of items++ Raises:+ ApiTypeError - for missing required arguments, or for invalid properties+ """++ # if we have definitions for an items schema, use it+ # otherwise accept anything+ item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema)+ item_cls = cls._get_class_oapg(item_cls)+ path_to_schemas = {}+ for i, value in enumerate(list_items):+ item_validation_metadata = ValidationMetadata(+ from_server=validation_metadata.from_server,+ configuration=validation_metadata.configuration,+ path_to_item=validation_metadata.path_to_item+(i,),+ validated_path_to_schemas=validation_metadata.validated_path_to_schemas+ )+ if item_validation_metadata.validation_ran_earlier(item_cls):+ add_deeper_validated_schemas(item_validation_metadata, path_to_schemas)+ continue+ other_path_to_schemas = item_cls._validate_oapg(+ value, validation_metadata=item_validation_metadata)+ update(path_to_schemas, other_path_to_schemas)+ return path_to_schemas++ @classmethod+ def __check_tuple_validations(+ cls, arg,+ validation_metadata: ValidationMetadata):+ if not hasattr(cls, 'MetaOapg'):+ return+ if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'max_items') and+ len(arg) > cls.MetaOapg.max_items):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="number of items must be less than or equal to",+ constraint_value=cls.MetaOapg.max_items,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'min_items') and+ len(arg) < cls.MetaOapg.min_items):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="number of items must be greater than or equal to",+ constraint_value=cls.MetaOapg.min_items,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg):+ unique_items = set(arg)+ if len(arg) > len(unique_items):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="duplicate items were found, and the tuple must not contain duplicates because",+ constraint_value='unique_items==True',+ path_to_item=validation_metadata.path_to_item+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ ListBase _validate_oapg+ We return dynamic classes of different bases depending upon the inputs+ This makes it so:+ - the returned instance is always a subclass of our defining schema+ - this allows us to check type based on whether an instance is a subclass of a schema+ - the returned instance is a serializable type (except for None, True, and False) which are enums++ Returns:+ new_cls (type): the new class++ Raises:+ ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes+ ApiTypeError: when the input type is not in the list of allowed spec types+ """+ if isinstance(arg, tuple):+ cls.__check_tuple_validations(arg, validation_metadata)+ _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata)+ if not isinstance(arg, tuple):+ return _path_to_schemas+ updated_vm = ValidationMetadata(+ configuration=validation_metadata.configuration,+ from_server=validation_metadata.from_server,+ path_to_item=validation_metadata.path_to_item,+ seen_classes=validation_metadata.seen_classes | frozenset({cls}),+ validated_path_to_schemas=validation_metadata.validated_path_to_schemas+ )+ other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm)+ update(_path_to_schemas, other_path_to_schemas)+ return _path_to_schemas++ @classmethod+ def _get_items_oapg(+ cls: 'Schema',+ arg: typing.List[typing.Any],+ path_to_item: typing.Tuple[typing.Union[str, int], ...],+ path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]+ ):+ '''+ ListBase _get_items_oapg+ '''+ cast_items = []++ for i, value in enumerate(arg):+ item_path_to_item = path_to_item + (i,)+ item_cls = path_to_schemas[item_path_to_item]+ new_value = item_cls._get_new_instance_without_conversion_oapg(+ value,+ item_path_to_item,+ path_to_schemas+ )+ cast_items.append(new_value)++ return cast_items+++class Discriminable:+ MetaOapg: MetaOapgTyped++ @classmethod+ def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args):+ if not args or args and disc_property_name not in args[0]:+ # The input data does not contain the discriminator property+ raise ApiValueError(+ "Cannot deserialize input data due to missing discriminator. "+ "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item)+ )++ @classmethod+ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_value: str):+ """+ Used in schemas with discriminators+ """+ if not hasattr(cls.MetaOapg, 'discriminator'):+ return None+ disc = cls.MetaOapg.discriminator()+ if disc_property_name not in disc:+ return None+ discriminated_cls = disc[disc_property_name].get(disc_payload_value)+ if discriminated_cls is not None:+ return discriminated_cls+ if not hasattr(cls, 'MetaOapg'):+ return None+ elif not (+ hasattr(cls.MetaOapg, 'all_of') or+ hasattr(cls.MetaOapg, 'one_of') or+ hasattr(cls.MetaOapg, 'any_of')+ ):+ return None+ # TODO stop traveling if a cycle is hit+ if hasattr(cls.MetaOapg, 'all_of'):+ for allof_cls in cls.MetaOapg.all_of():+ discriminated_cls = allof_cls.get_discriminated_class_oapg(+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)+ if discriminated_cls is not None:+ return discriminated_cls+ if hasattr(cls.MetaOapg, 'one_of'):+ for oneof_cls in cls.MetaOapg.one_of():+ discriminated_cls = oneof_cls.get_discriminated_class_oapg(+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)+ if discriminated_cls is not None:+ return discriminated_cls+ if hasattr(cls.MetaOapg, 'any_of'):+ for anyof_cls in cls.MetaOapg.any_of():+ discriminated_cls = anyof_cls.get_discriminated_class_oapg(+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)+ if discriminated_cls is not None:+ return discriminated_cls+ return None+++class DictBase(Discriminable, ValidatorBase):++ @classmethod+ def __validate_arg_presence(cls, arg):+ """+ Ensures that:+ - all required arguments are passed in+ - the input variable names are valid+ - present in properties or+ - accepted because additionalProperties exists+ Exceptions will be raised if:+ - invalid arguments were passed in+ - a var_name is invalid if additional_properties == NotAnyTypeSchema+ and var_name not in properties.__annotations__+ - required properties were not passed in++ Args:+ arg: the input dict++ Raises:+ ApiTypeError - for missing required arguments, or for invalid properties+ """+ seen_required_properties = set()+ invalid_arguments = []+ required_property_names = getattr(cls.MetaOapg, 'required', set())+ additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema)+ properties = getattr(cls.MetaOapg, 'properties', {})+ property_annotations = getattr(properties, '__annotations__', {})+ for property_name in arg:+ if property_name in required_property_names:+ seen_required_properties.add(property_name)+ elif property_name in property_annotations:+ continue+ elif additional_properties is not NotAnyTypeSchema:+ continue+ else:+ invalid_arguments.append(property_name)+ missing_required_arguments = list(required_property_names - seen_required_properties)+ if missing_required_arguments:+ missing_required_arguments.sort()+ raise ApiTypeError(+ "{} is missing {} required argument{}: {}".format(+ cls.__name__,+ len(missing_required_arguments),+ "s" if len(missing_required_arguments) > 1 else "",+ missing_required_arguments+ )+ )+ if invalid_arguments:+ invalid_arguments.sort()+ raise ApiTypeError(+ "{} was passed {} invalid argument{}: {}".format(+ cls.__name__,+ len(invalid_arguments),+ "s" if len(invalid_arguments) > 1 else "",+ invalid_arguments+ )+ )++ @classmethod+ def __validate_args(cls, arg, validation_metadata: ValidationMetadata):+ """+ Ensures that:+ - values passed in for properties are valid+ Exceptions will be raised if:+ - invalid arguments were passed in++ Args:+ arg: the input dict++ Raises:+ ApiTypeError - for missing required arguments, or for invalid properties+ """+ path_to_schemas = {}+ additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema)+ properties = getattr(cls.MetaOapg, 'properties', {})+ property_annotations = getattr(properties, '__annotations__', {})+ for property_name, value in arg.items():+ path_to_item = validation_metadata.path_to_item+(property_name,)+ if property_name in property_annotations:+ schema = property_annotations[property_name]+ elif additional_properties is not NotAnyTypeSchema:+ if additional_properties is UnsetAnyTypeSchema:+ """+ If additionalProperties is unset and this path_to_item does not yet have+ any validations on it, validate it.+ If it already has validations on it, skip this validation.+ """+ if path_to_item in path_to_schemas:+ continue+ schema = additional_properties+ else:+ raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format(+ value, cls, validation_metadata.path_to_item+(property_name,)+ ))+ schema = cls._get_class_oapg(schema)+ arg_validation_metadata = ValidationMetadata(+ from_server=validation_metadata.from_server,+ configuration=validation_metadata.configuration,+ path_to_item=path_to_item,+ validated_path_to_schemas=validation_metadata.validated_path_to_schemas+ )+ if arg_validation_metadata.validation_ran_earlier(schema):+ add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas)+ continue+ other_path_to_schemas = schema._validate_oapg(value, validation_metadata=arg_validation_metadata)+ update(path_to_schemas, other_path_to_schemas)+ return path_to_schemas++ @classmethod+ def __check_dict_validations(+ cls,+ arg,+ validation_metadata: ValidationMetadata+ ):+ if not hasattr(cls, 'MetaOapg'):+ return+ if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'max_properties') and+ len(arg) > cls.MetaOapg.max_properties):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="number of properties must be less than or equal to",+ constraint_value=cls.MetaOapg.max_properties,+ path_to_item=validation_metadata.path_to_item+ )++ if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and+ hasattr(cls.MetaOapg, 'min_properties') and+ len(arg) < cls.MetaOapg.min_properties):+ cls._raise_validation_error_message_oapg(+ value=arg,+ constraint_msg="number of properties must be greater than or equal to",+ constraint_value=cls.MetaOapg.min_properties,+ path_to_item=validation_metadata.path_to_item+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ DictBase _validate_oapg+ We return dynamic classes of different bases depending upon the inputs+ This makes it so:+ - the returned instance is always a subclass of our defining schema+ - this allows us to check type based on whether an instance is a subclass of a schema+ - the returned instance is a serializable type (except for None, True, and False) which are enums++ Returns:+ new_cls (type): the new class++ Raises:+ ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes+ ApiTypeError: when the input type is not in the list of allowed spec types+ """+ if isinstance(arg, frozendict.frozendict):+ cls.__check_dict_validations(arg, validation_metadata)+ _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata)+ if not isinstance(arg, frozendict.frozendict):+ return _path_to_schemas+ cls.__validate_arg_presence(arg)+ other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata)+ update(_path_to_schemas, other_path_to_schemas)+ try:+ discriminator = cls.MetaOapg.discriminator()+ except AttributeError:+ return _path_to_schemas+ # discriminator exists+ disc_prop_name = list(discriminator.keys())[0]+ cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg)+ discriminated_cls = cls.get_discriminated_class_oapg(+ disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name])+ if discriminated_cls is None:+ raise ApiValueError(+ "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format(+ cls.__name__,+ disc_prop_name,+ list(discriminator[disc_prop_name].keys()),+ validation_metadata.path_to_item + (disc_prop_name,)+ )+ )+ updated_vm = ValidationMetadata(+ configuration=validation_metadata.configuration,+ from_server=validation_metadata.from_server,+ path_to_item=validation_metadata.path_to_item,+ seen_classes=validation_metadata.seen_classes | frozenset({cls}),+ validated_path_to_schemas=validation_metadata.validated_path_to_schemas+ )+ if updated_vm.validation_ran_earlier(discriminated_cls):+ add_deeper_validated_schemas(updated_vm, _path_to_schemas)+ return _path_to_schemas+ other_path_to_schemas = discriminated_cls._validate_oapg(arg, validation_metadata=updated_vm)+ update(_path_to_schemas, other_path_to_schemas)+ return _path_to_schemas++ @classmethod+ def _get_properties_oapg(+ cls,+ arg: typing.Dict[str, typing.Any],+ path_to_item: typing.Tuple[typing.Union[str, int], ...],+ path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]+ ):+ """+ DictBase _get_properties_oapg, this is how properties are set+ These values already passed validation+ """+ dict_items = {}++ for property_name_js, value in arg.items():+ property_path_to_item = path_to_item + (property_name_js,)+ property_cls = path_to_schemas[property_path_to_item]+ new_value = property_cls._get_new_instance_without_conversion_oapg(+ value,+ property_path_to_item,+ path_to_schemas+ )+ dict_items[property_name_js] = new_value++ return dict_items++ def __setattr__(self, name: str, value: typing.Any):+ if not isinstance(self, FileIO):+ raise AttributeError('property setting not supported on immutable instances')++ def __getattr__(self, name: str):+ """+ for instance.name access+ Properties are only type hinted for required properties+ so that hasattr(instance, 'optionalProp') is False when that key is not present+ """+ if not isinstance(self, frozendict.frozendict):+ return super().__getattr__(name)+ if name not in self.__class__.__annotations__:+ raise AttributeError(f"{self} has no attribute '{name}'")+ try:+ value = self[name]+ return value+ except KeyError as ex:+ raise AttributeError(str(ex))++ def __getitem__(self, name: str):+ """+ dict_instance[name] accessor+ key errors thrown+ """+ if not isinstance(self, frozendict.frozendict):+ return super().__getattr__(name)+ return super().__getitem__(name)++ def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]:+ # dict_instance[name] accessor+ if not isinstance(self, frozendict.frozendict):+ raise NotImplementedError()+ try:+ return super().__getitem__(name)+ except KeyError:+ return unset+++def cast_to_allowed_types(+ arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader],+ from_server: bool,+ validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]],+ path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']),+) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]:+ """+ Casts the input payload arg into the allowed types+ The input validated_path_to_schemas is mutated by running this function++ When from_server is False then+ - date/datetime is cast to str+ - int/float is cast to Decimal++ If a Schema instance is passed in it is converted back to a primitive instance because+ One may need to validate that data to the original Schema class AND additional different classes+ those additional classes will need to be added to the new manufactured class for that payload+ If the code didn't do this and kept the payload as a Schema instance it would fail to validate to other+ Schema classes and the code wouldn't be able to mfg a new class that includes all valid schemas+ TODO: store the validated schema classes in validation_metadata++ Args:+ arg: the payload+ from_server: whether this payload came from the server or not+ validated_path_to_schemas: a dict that stores the validated classes at any path location in the payload+ """+ if isinstance(arg, Schema):+ # store the already run validations+ schema_classes = set()+ for cls in arg.__class__.__bases__:+ if cls is Singleton:+ # Skip Singleton+ continue+ schema_classes.add(cls)+ validated_path_to_schemas[path_to_item] = schema_classes++ type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}")+ if isinstance(arg, str):+ return str(arg)+ elif isinstance(arg, (dict, frozendict.frozendict)):+ return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()})+ elif isinstance(arg, (bool, BoolClass)):+ """+ this check must come before isinstance(arg, (int, float))+ because isinstance(True, int) is True+ """+ if arg:+ return BoolClass.TRUE+ return BoolClass.FALSE+ elif isinstance(arg, int):+ return decimal.Decimal(arg)+ elif isinstance(arg, float):+ decimal_from_float = decimal.Decimal(arg)+ if decimal_from_float.as_integer_ratio()[1] == 1:+ # 9.0 -> Decimal('9.0')+ # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0')+ return decimal.Decimal(str(decimal_from_float)+'.0')+ return decimal_from_float+ elif isinstance(arg, (tuple, list)):+ return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)])+ elif isinstance(arg, (none_type, NoneClass)):+ return NoneClass.NONE+ elif isinstance(arg, (date, datetime)):+ if not from_server:+ return arg.isoformat()+ raise type_error+ elif isinstance(arg, uuid.UUID):+ if not from_server:+ return str(arg)+ raise type_error+ elif isinstance(arg, decimal.Decimal):+ return decimal.Decimal(arg)+ elif isinstance(arg, bytes):+ return bytes(arg)+ elif isinstance(arg, (io.FileIO, io.BufferedReader)):+ return FileIO(arg)+ raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg)))+++class ComposedBase(Discriminable):++ @classmethod+ def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata):+ path_to_schemas = defaultdict(set)+ for allof_cls in cls.MetaOapg.all_of():+ if validation_metadata.validation_ran_earlier(allof_cls):+ add_deeper_validated_schemas(validation_metadata, path_to_schemas)+ continue+ other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata)+ update(path_to_schemas, other_path_to_schemas)+ return path_to_schemas++ @classmethod+ def __get_oneof_class(+ cls,+ arg,+ discriminated_cls,+ validation_metadata: ValidationMetadata,+ ):+ oneof_classes = []+ path_to_schemas = defaultdict(set)+ for oneof_cls in cls.MetaOapg.one_of():+ if oneof_cls in path_to_schemas[validation_metadata.path_to_item]:+ oneof_classes.append(oneof_cls)+ continue+ if validation_metadata.validation_ran_earlier(oneof_cls):+ oneof_classes.append(oneof_cls)+ add_deeper_validated_schemas(validation_metadata, path_to_schemas)+ continue+ try:+ path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata)+ except (ApiValueError, ApiTypeError) as ex:+ if discriminated_cls is not None and oneof_cls is discriminated_cls:+ raise ex+ continue+ oneof_classes.append(oneof_cls)+ if not oneof_classes:+ raise ApiValueError(+ "Invalid inputs given to generate an instance of {}. None "+ "of the oneOf schemas matched the input data.".format(cls)+ )+ elif len(oneof_classes) > 1:+ raise ApiValueError(+ "Invalid inputs given to generate an instance of {}. Multiple "+ "oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes)+ )+ # exactly one class matches+ return path_to_schemas++ @classmethod+ def __get_anyof_classes(+ cls,+ arg,+ discriminated_cls,+ validation_metadata: ValidationMetadata+ ):+ anyof_classes = []+ path_to_schemas = defaultdict(set)+ for anyof_cls in cls.MetaOapg.any_of():+ if validation_metadata.validation_ran_earlier(anyof_cls):+ anyof_classes.append(anyof_cls)+ add_deeper_validated_schemas(validation_metadata, path_to_schemas)+ continue++ try:+ other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata)+ except (ApiValueError, ApiTypeError) as ex:+ if discriminated_cls is not None and anyof_cls is discriminated_cls:+ raise ex+ continue+ anyof_classes.append(anyof_cls)+ update(path_to_schemas, other_path_to_schemas)+ if not anyof_classes:+ raise ApiValueError(+ "Invalid inputs given to generate an instance of {}. None "+ "of the anyOf schemas matched the input data.".format(cls)+ )+ return path_to_schemas++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:+ """+ ComposedBase _validate_oapg+ We return dynamic classes of different bases depending upon the inputs+ This makes it so:+ - the returned instance is always a subclass of our defining schema+ - this allows us to check type based on whether an instance is a subclass of a schema+ - the returned instance is a serializable type (except for None, True, and False) which are enums++ Returns:+ new_cls (type): the new class++ Raises:+ ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes+ ApiTypeError: when the input type is not in the list of allowed spec types+ """+ # validation checking on types, validations, and enums+ path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata)++ updated_vm = ValidationMetadata(+ configuration=validation_metadata.configuration,+ from_server=validation_metadata.from_server,+ path_to_item=validation_metadata.path_to_item,+ seen_classes=validation_metadata.seen_classes | frozenset({cls}),+ validated_path_to_schemas=validation_metadata.validated_path_to_schemas+ )++ # process composed schema+ discriminator = None+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'):+ discriminator = cls.MetaOapg.discriminator()+ discriminated_cls = None+ if discriminator and arg and isinstance(arg, frozendict.frozendict):+ disc_property_name = list(discriminator.keys())[0]+ cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg)+ # get discriminated_cls by looking at the dict in the current class+ discriminated_cls = cls.get_discriminated_class_oapg(+ disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name])+ if discriminated_cls is None:+ raise ApiValueError(+ "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format(+ arg[disc_property_name],+ cls.__name__,+ disc_property_name,+ list(discriminator[disc_property_name].keys()),+ updated_vm.path_to_item + (disc_property_name,)+ )+ )++ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'):+ other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm)+ update(path_to_schemas, other_path_to_schemas)+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'):+ other_path_to_schemas = cls.__get_oneof_class(+ arg,+ discriminated_cls=discriminated_cls,+ validation_metadata=updated_vm+ )+ update(path_to_schemas, other_path_to_schemas)+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'):+ other_path_to_schemas = cls.__get_anyof_classes(+ arg,+ discriminated_cls=discriminated_cls,+ validation_metadata=updated_vm+ )+ update(path_to_schemas, other_path_to_schemas)+ not_cls = None+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'):+ not_cls = cls.MetaOapg.not_schema+ not_cls = cls._get_class_oapg(not_cls)+ if not_cls:+ other_path_to_schemas = None+ not_exception = ApiValueError(+ "Invalid value '{}' was passed in to {}. Value is invalid because it is disallowed by {}".format(+ arg,+ cls.__name__,+ not_cls.__name__,+ )+ )+ if updated_vm.validation_ran_earlier(not_cls):+ raise not_exception++ try:+ other_path_to_schemas = not_cls._validate_oapg(arg, validation_metadata=updated_vm)+ except (ApiValueError, ApiTypeError):+ pass+ if other_path_to_schemas:+ raise not_exception++ if discriminated_cls is not None and not updated_vm.validation_ran_earlier(discriminated_cls):+ # TODO use an exception from this package here+ add_deeper_validated_schemas(updated_vm, path_to_schemas)+ assert discriminated_cls in path_to_schemas[updated_vm.path_to_item]+ return path_to_schemas+++# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase+class ComposedSchema(+ ComposedBase,+ DictBase,+ ListBase,+ NumberBase,+ StrBase,+ BoolBase,+ NoneBase,+ Schema,+ NoneFrozenDictTupleStrDecimalBoolMixin+):+ @classmethod+ def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs):+ if not args:+ if not kwargs:+ raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__))+ args = (kwargs, )+ return super().from_openapi_data_oapg(args[0], _configuration=_configuration)+++class ListSchema(+ ListBase,+ Schema,+ TupleMixin+):++ @classmethod+ def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class NoneSchema(+ NoneBase,+ Schema,+ NoneMixin+):++ @classmethod+ def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: None, **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class NumberSchema(+ NumberBase,+ Schema,+ DecimalMixin+):+ """+ This is used for type: number with no format+ Both integers AND floats are accepted+ """++ @classmethod+ def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class IntBase:+ @property+ def as_int_oapg(self) -> int:+ try:+ return self._as_int+ except AttributeError:+ self._as_int = int(self)+ return self._as_int++ @classmethod+ def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):+ if isinstance(arg, decimal.Decimal):++ denominator = arg.as_integer_ratio()[-1]+ if denominator != 1:+ raise ApiValueError(+ "Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ IntBase _validate_oapg+ TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class IntSchema(IntBase, NumberSchema):++ @classmethod+ def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class Int32Base:+ __inclusive_minimum = decimal.Decimal(-2147483648)+ __inclusive_maximum = decimal.Decimal(2147483647)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):+ if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0:+ if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum:+ raise ApiValueError(+ "Invalid value '{}' for type int32 at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ Int32Base _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class Int32Schema(+ Int32Base,+ IntSchema+):+ pass+++class Int64Base:+ __inclusive_minimum = decimal.Decimal(-9223372036854775808)+ __inclusive_maximum = decimal.Decimal(9223372036854775807)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):+ if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0:+ if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum:+ raise ApiValueError(+ "Invalid value '{}' for type int64 at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ Int64Base _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class Int64Schema(+ Int64Base,+ IntSchema+):+ pass+++class Float32Base:+ __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38)+ __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):+ if isinstance(arg, decimal.Decimal):+ if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum:+ raise ApiValueError(+ "Invalid value '{}' for type float at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ Float32Base _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)+++class Float32Schema(+ Float32Base,+ NumberSchema+):++ @classmethod+ def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)+++class Float64Base:+ __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308)+ __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308)++ @classmethod+ def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):+ if isinstance(arg, decimal.Decimal):+ if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum:+ raise ApiValueError(+ "Invalid value '{}' for type double at {}".format(arg, validation_metadata.path_to_item)+ )++ @classmethod+ def _validate_oapg(+ cls,+ arg,+ validation_metadata: ValidationMetadata,+ ):+ """+ Float64Base _validate_oapg+ """+ cls.__validate_format(arg, validation_metadata=validation_metadata)+ return super()._validate_oapg(arg, validation_metadata=validation_metadata)++class Float64Schema(+ Float64Base,+ NumberSchema+):++ @classmethod+ def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None):+ # todo check format+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)+++class StrSchema(+ StrBase,+ Schema,+ StrMixin+):+ """+ date + datetime string types must inherit from this class+ That is because one can validate a str payload as both:+ - type: string (format unset)+ - type: string, format: date+ """++ @classmethod+ def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema':+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class UUIDSchema(UUIDBase, StrSchema):++ def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class DateSchema(DateBase, StrSchema):++ def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class DateTimeSchema(DateTimeBase, StrSchema):++ def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration):+ return super().__new__(cls, _arg, **kwargs)+++class DecimalSchema(DecimalBase, StrSchema):++ def __new__(cls, _arg: str, **kwargs: Configuration):+ """+ Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads+ which can be simple (str) or complex (dicts or lists with nested values)+ Because casting is only done once and recursively casts all values prior to validation then for a potential+ client side Decimal input if Decimal was accepted as an input in DecimalSchema then one would not know+ if one was using it for a StrSchema (where it should be cast to str) or one is using it for NumberSchema+ where it should stay as Decimal.+ """+ return super().__new__(cls, _arg, **kwargs)+++class BytesSchema(+ Schema,+ BytesMixin+):+ """+ this class will subclass bytes and is immutable+ """+ def __new__(cls, _arg: bytes, **kwargs: Configuration):+ return super(Schema, cls).__new__(cls, _arg)+++class FileSchema(+ Schema,+ FileMixin+):+ """+ This class is NOT immutable+ Dynamic classes are built using it for example when AnyType allows in binary data+ Al other schema classes ARE immutable+ If one wanted to make this immutable one could make this a DictSchema with required properties:+ - data = BytesSchema (which would be an immutable bytes based schema)+ - file_name = StrSchema+ and cast_to_allowed_types would convert bytes and file instances into dicts containing data + file_name+ The downside would be that data would be stored in memory which one may not want to do for very large files++ The developer is responsible for closing this file and deleting it++ This class was kept as mutable:+ - to allow file reading and writing to disk+ - to be able to preserve file name info+ """++ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader], **kwargs: Configuration):+ return super(Schema, cls).__new__(cls, _arg)+++class BinaryBase:+ pass+++class BinarySchema(+ ComposedBase,+ BinaryBase,+ Schema,+ BinaryMixin+):+ class MetaOapg:+ @staticmethod+ def one_of():+ return [+ BytesSchema,+ FileSchema,+ ]++ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration):+ return super().__new__(cls, _arg)+++class BoolSchema(+ BoolBase,+ Schema,+ BoolMixin+):++ @classmethod+ def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, _arg: bool, **kwargs: ValidationMetadata):+ return super().__new__(cls, _arg, **kwargs)+++class AnyTypeSchema(+ DictBase,+ ListBase,+ NumberBase,+ StrBase,+ BoolBase,+ NoneBase,+ Schema,+ NoneFrozenDictTupleStrDecimalBoolFileBytesMixin+):+ # Python representation of a schema defined as true or {}+ pass+++class UnsetAnyTypeSchema(AnyTypeSchema):+ # Used when additionalProperties/items was not explicitly defined and a defining schema is needed+ pass+++class NotAnyTypeSchema(+ ComposedSchema,+):+ """+ Python representation of a schema defined as false or {'not': {}}+ Does not allow inputs in of AnyType+ Note: validations on this class are never run because the code knows that no inputs will ever validate+ """++ class MetaOapg:+ not_schema = AnyTypeSchema++ def __new__(+ cls,+ *_args,+ _configuration: typing.Optional[Configuration] = None,+ ) -> 'NotAnyTypeSchema':+ return super().__new__(+ cls,+ *_args,+ _configuration=_configuration,+ )+++class DictSchema(+ DictBase,+ Schema,+ FrozenDictMixin+):+ @classmethod+ def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None):+ return super().from_openapi_data_oapg(arg, _configuration=_configuration)++ def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]):+ return super().__new__(cls, *_args, **kwargs)+++schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema}++[email protected]_cache()+def get_new_class(+ class_name: str,+ bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...]+) -> typing.Type[Schema]:+ """+ Returns a new class that is made with the subclass bases+ """+ new_cls: typing.Type[Schema] = type(class_name, bases, {})+ return new_cls+++LOG_CACHE_USAGE = False+++def log_cache_usage(cache_fn):+ if LOG_CACHE_USAGE:+ print(cache_fn.__name__, cache_fn.cache_info())\ No newline at end of filediff --git a/sdk/python/requirements.txt b/sdk/python/requirements.txtnew file mode 100644index 0000000000..3cb6612669--- /dev/null+++ b/sdk/python/requirements.txt@@ -0,0 +1,6 @@+certifi >= 14.5.14+frozendict ~= 2.3.4+python-dateutil ~= 2.7.0+setuptools >= 21.0.0+typing_extensions ~= 4.3.0+urllib3 ~= 1.26.7diff --git a/sdk/python/setup.cfg b/sdk/python/setup.cfgnew file mode 100644index 0000000000..11433ee875--- /dev/null+++ b/sdk/python/setup.cfg@@ -0,0 +1,2 @@+[flake8]+max-line-length=99diff --git a/sdk/python/setup.py b/sdk/python/setup.pynew file mode 100644index 0000000000..88c61ef82f--- /dev/null+++ b/sdk/python/setup.py@@ -0,0 +1,47 @@+# coding: utf-8++"""+ NextJS Swagger++ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501++ The version of the OpenAPI document: 0.1.0+ Generated by: https://openapi-generator.tech+"""++from setuptools import setup, find_packages # noqa: H301++NAME = "openapi-client"+VERSION = "1.0.0"+# To install the library, run the following+#+# python setup.py install+#+# prerequisite: setuptools+# http://pypi.python.org/pypi/setuptools++REQUIRES = [+ "certifi >= 14.5.14",+ "frozendict ~= 2.3.4",+ "python-dateutil ~= 2.7.0",+ "setuptools >= 21.0.0",+ "typing_extensions ~= 4.3.0",+ "urllib3 ~= 1.26.7",+]++setup(+ name=NAME,+ version=VERSION,+ description="NextJS Swagger",+ author="OpenAPI Generator community",+ author_email="[email protected]",+ url="",+ keywords=["OpenAPI", "OpenAPI-Generator", "NextJS Swagger"],+ python_requires=">=3.7",+ install_requires=REQUIRES,+ packages=find_packages(exclude=["test", "tests"]),+ include_package_data=True,+ long_description="""\+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501+ """+)diff --git a/sdk/python/test-requirements.txt b/sdk/python/test-requirements.txtnew file mode 100644index 0000000000..2d88b03419--- /dev/null+++ b/sdk/python/test-requirements.txt@@ -0,0 +1,3 @@+pytest~=4.6.7 # needed for python 3.4+pytest-cov>=2.8.1+pytest-randomly==1.2.3 # needed for python 3.4diff --git a/sdk/python/test/__init__.py b/sdk/python/test/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/sdk/python/test/test_models/__init__.py b/sdk/python/test/test_models/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/sdk/python/test/test_paths/__init__.py b/sdk/python/test/test_paths/__init__.pynew file mode 100644index 0000000000..1309632d3d--- /dev/null+++ b/sdk/python/test/test_paths/__init__.py@@ -0,0 +1,68 @@+import json+import typing++import urllib3+from urllib3._collections import HTTPHeaderDict+++class ApiTestMixin:+ json_content_type = 'application/json'+ user_agent = 'OpenAPI-Generator/1.0.0/python'++ @classmethod+ def assert_pool_manager_request_called_with(+ cls,+ mock_request,+ url: str,+ method: str = 'POST',+ body: typing.Optional[bytes] = None,+ content_type: typing.Optional[str] = None,+ accept_content_type: typing.Optional[str] = None,+ stream: bool = False,+ ):+ headers = {+ 'User-Agent': cls.user_agent+ }+ if accept_content_type:+ headers['Accept'] = accept_content_type+ if content_type:+ headers['Content-Type'] = content_type+ kwargs = dict(+ headers=HTTPHeaderDict(headers),+ preload_content=not stream,+ timeout=None,+ )+ if content_type and method != 'GET':+ kwargs['body'] = body+ mock_request.assert_called_with(+ method,+ url,+ **kwargs+ )++ @staticmethod+ def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:+ return {'content-type': content_type}++ @classmethod+ def response(+ cls,+ body: typing.Union[str, bytes],+ status: int = 200,+ content_type: str = json_content_type,+ headers: typing.Optional[typing.Dict[str, str]] = None,+ preload_content: bool = True+ ) -> urllib3.HTTPResponse:+ if headers is None:+ headers = {}+ headers.update(cls.headers_for_content_type(content_type))+ return urllib3.HTTPResponse(+ body,+ headers=headers,+ status=status,+ preload_content=preload_content+ )++ @staticmethod+ def json_bytes(in_data: typing.Any) -> bytes:+ return json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode('utf-8')diff --git a/sdk/python/test/test_paths/test_api_hello/__init__.py b/sdk/python/test/test_paths/test_api_hello/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/sdk/python/test/test_paths/test_api_hello/test_get.py b/sdk/python/test/test_paths/test_api_hello/test_get.pynew file mode 100644index 0000000000..cca63814a6--- /dev/null+++ b/sdk/python/test/test_paths/test_api_hello/test_get.py@@ -0,0 +1,39 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++import unittest+from unittest.mock import patch++import urllib3++import openapi_client+from openapi_client.paths.api_hello import get # noqa: E501+from openapi_client import configuration, schemas, api_client++from .. import ApiTestMixin+++class TestApiHello(ApiTestMixin, unittest.TestCase):+ """+ ApiHello unit test stubs+ """+ _configuration = configuration.Configuration()++ def setUp(self):+ used_api_client = api_client.ApiClient(configuration=self._configuration)+ self.api = get.ApiForget(api_client=used_api_client) # noqa: E501++ def tearDown(self):+ pass++ response_status = 200+ response_body = ''+++if __name__ == '__main__':+ unittest.main()diff --git a/sdk/python/test/test_paths/test_api_observations/__init__.py b/sdk/python/test/test_paths/test_api_observations/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/sdk/python/test/test_paths/test_api_observations/test_post.py b/sdk/python/test/test_paths/test_api_observations/test_post.pynew file mode 100644index 0000000000..1f8f7dda56--- /dev/null+++ b/sdk/python/test/test_paths/test_api_observations/test_post.py@@ -0,0 +1,43 @@+# coding: utf-8++"""+++ Generated by: https://openapi-generator.tech+"""++import unittest+from unittest.mock import patch++import urllib3++import openapi_client+from openapi_client.paths.api_observations import post # noqa: E501+from openapi_client import configuration, schemas, api_client++from .. import ApiTestMixin+++class TestApiObservations(ApiTestMixin, unittest.TestCase):+ """+ ApiObservations unit test stubs+ Creates a new observation # noqa: E501+ """+ _configuration = configuration.Configuration()++ def setUp(self):+ used_api_client = api_client.ApiClient(configuration=self._configuration)+ self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501++ def tearDown(self):+ pass++ response_status = 201+++++++if __name__ == '__main__':+ unittest.main()diff --git a/sdk/python/tox.ini b/sdk/python/tox.ininew file mode 100644index 0000000000..9226c335b0--- /dev/null+++ b/sdk/python/tox.ini@@ -0,0 +1,10 @@+[tox]+envlist = py37++[testenv]+passenv = PYTHON_VERSION+deps=-r{toxinidir}/requirements.txt+ -r{toxinidir}/test-requirements.txt++commands=+ pytest --cov=openapi_clientdiff --git a/sdk/typescript/.gitignore b/sdk/typescript/.gitignorenew file mode 100644index 0000000000..1521c8b765--- /dev/null+++ b/sdk/typescript/.gitignore@@ -0,0 +1 @@+distdiff --git a/sdk/typescript/.openapi-generator-ignore b/sdk/typescript/.openapi-generator-ignorenew file mode 100644index 0000000000..7484ee590a--- /dev/null+++ b/sdk/typescript/.openapi-generator-ignore@@ -0,0 +1,23 @@+# OpenAPI Generator Ignore+# Generated by openapi-generator https://github.com/openapitools/openapi-generator++# Use this file to prevent files from being overwritten by the generator.+# The patterns follow closely to .gitignore or .dockerignore.++# As an example, the C# client generator defines ApiClient.cs.+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:+#ApiClient.cs++# You can match any string of characters against a directory, file or extension with a single asterisk (*):+#foo/*/qux+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux++# You can recursively match patterns against a directory, file or extension with a double asterisk (**):+#foo/**/qux+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux++# You can also negate patterns with an exclamation (!).+# For example, you can ignore all files in a docs folder with the file extension .md:+#docs/*.md+# Then explicitly reverse the ignore rule for a single file:+#!docs/README.mddiff --git a/sdk/typescript/.openapi-generator/FILES b/sdk/typescript/.openapi-generator/FILESnew file mode 100644index 0000000000..2347f6d7b8--- /dev/null+++ b/sdk/typescript/.openapi-generator/FILES@@ -0,0 +1,27 @@+.gitignore+DefaultApi.md+README.md+apis/DefaultApi.ts+apis/baseapi.ts+apis/exception.ts+auth/auth.ts+configuration.ts+git_push.sh+http/http.ts+http/isomorphic-fetch.ts+index.ts+middleware.ts+models/ApiObservationsPost201Response.ts+models/ApiObservationsPost201ResponseObservation.ts+models/ApiObservationsPost400Response.ts+models/ApiObservationsPostRequest.ts+models/ObjectSerializer.ts+models/all.ts+package.json+rxjsStub.ts+servers.ts+tsconfig.json+types/ObjectParamAPI.ts+types/ObservableAPI.ts+types/PromiseAPI.ts+util.tsdiff --git a/sdk/typescript/.openapi-generator/VERSION b/sdk/typescript/.openapi-generator/VERSIONnew file mode 100644index 0000000000..cd802a1ec4--- /dev/null+++ b/sdk/typescript/.openapi-generator/VERSION@@ -0,0 +1 @@+6.6.0\ No newline at end of filediff --git a/sdk/typescript/DefaultApi.md b/sdk/typescript/DefaultApi.mdnew file mode 100644index 0000000000..95f370ce67--- /dev/null+++ b/sdk/typescript/DefaultApi.md@@ -0,0 +1,73 @@+# .DefaultApi++All URIs are relative to *http://localhost*++Method | HTTP request | Description+------------- | ------------- | -------------+[**apiObservationsPost**](DefaultApi.md#apiObservationsPost) | **POST** /api/observations | Creates a new observation+++# **apiObservationsPost**+> ApiObservationsPost201Response apiObservationsPost(apiObservationsPostRequest)+++### Example+++```typescript+import { } from '';+import * as fs from 'fs';++const configuration = .createConfiguration();+const apiInstance = new .DefaultApi(configuration);++let body:.DefaultApiApiObservationsPostRequest = {+ // ApiObservationsPostRequest+ apiObservationsPostRequest: {+ traceId: "traceId_example",+ type: "span",+ name: "name_example",+ startTime: new Date('1970-01-01T00:00:00.00Z'),+ endTime: new Date('1970-01-01T00:00:00.00Z'),+ attributes: {},+ parentObservationId: "parentObservationId_example",+ },+};++apiInstance.apiObservationsPost(body).then((data:any) => {+ console.log('API called successfully. Returned data: ' + data);+}).catch((error:any) => console.error(error));+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **apiObservationsPostRequest** | **ApiObservationsPostRequest**| |+++### Return type++**ApiObservationsPost201Response**++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json+++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**201** | Observation created successfully | - |+**400** | Invalid request data | - |+**405** | Method not allowed | - |++[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)++diff --git a/sdk/typescript/README.md b/sdk/typescript/README.mdnew file mode 100644index 0000000000..f1f2196cf0--- /dev/null+++ b/sdk/typescript/README.md@@ -0,0 +1,80 @@+## @++This generator creates TypeScript/JavaScript client that utilizes fetch-api.++### Building++To build and compile the typescript sources to javascript use:+```+npm install+npm run build+```++### Publishing++First build the package then run ```npm publish```++### Consuming++Navigate to the folder of your consuming project and run one of the following commands.++_published:_++```+npm install @ --save+```++_unPublished (not recommended):_++```+npm install PATH_TO_GENERATED_PACKAGE --save+```++### Usage++Below code snippet shows exemplary usage of the configuration and the API based+on the typical `PetStore` example used for OpenAPI.++```+import * as your_api from 'your_api_package'++// Covers all auth methods included in your OpenAPI yaml definition+const authConfig: your_api.AuthMethodsConfiguration = {+ "api_key": "YOUR_API_KEY"+}++// Implements a simple middleware to modify requests before (`pre`) they are sent+// and after (`post`) they have been received+class Test implements your_api.Middleware {+ pre(context: your_api.RequestContext): Promise<your_api.RequestContext> {+ // Modify context here and return+ return Promise.resolve(context);+ }++ post(context: your_api.ResponseContext): Promise<your_api.ResponseContext> {+ return Promise.resolve(context);+ }++}++// Create configuration parameter object+const configurationParameters = {+ httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine+ baseServer: your_api.servers[0], // First server is default+ authMethods: authConfig, // No auth is default+ promiseMiddleware: [new Test()],+}++// Convert to actual configuration+const config = your_api.createConfiguration(configurationParameters);++// Use configuration with your_api+const api = new your_api.PetApi(config);+your_api.Pet p = new your_api.Pet();+p.name = "My new pet";+p.photoUrls = [];+p.tags = [];+p.status = "available";+Promise<your_api.Pet> createdPet = api.addPet(p);++```diff --git a/sdk/typescript/apis/DefaultApi.ts b/sdk/typescript/apis/DefaultApi.tsnew file mode 100644index 0000000000..9b6906b6f3--- /dev/null+++ b/sdk/typescript/apis/DefaultApi.ts@@ -0,0 +1,104 @@+// TODO: better import syntax?+import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';+import {Configuration} from '../configuration';+import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';+import {ObjectSerializer} from '../models/ObjectSerializer';+import {ApiException} from './exception';+import {canConsumeForm, isCodeInRange} from '../util';+import {SecurityAuthentication} from '../auth/auth';+++import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';+import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';+import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';++/**+ * no description+ */+export class DefaultApiRequestFactory extends BaseAPIRequestFactory {++ /**+ * Creates a new observation+ * @param apiObservationsPostRequest+ */+ public async apiObservationsPost(apiObservationsPostRequest: ApiObservationsPostRequest, _options?: Configuration): Promise<RequestContext> {+ let _config = _options || this.configuration;++ // verify required parameter 'apiObservationsPostRequest' is not null or undefined+ if (apiObservationsPostRequest === null || apiObservationsPostRequest === undefined) {+ throw new RequiredError("DefaultApi", "apiObservationsPost", "apiObservationsPostRequest");+ }+++ // Path Params+ const localVarPath = '/api/observations';++ // Make Request Context+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")+++ // Body Params+ const contentType = ObjectSerializer.getPreferredMediaType([+ "application/json"+ ]);+ requestContext.setHeaderParam("Content-Type", contentType);+ const serializedBody = ObjectSerializer.stringify(+ ObjectSerializer.serialize(apiObservationsPostRequest, "ApiObservationsPostRequest", ""),+ contentType+ );+ requestContext.setBody(serializedBody);+++ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default+ if (defaultAuth?.applySecurityAuthentication) {+ await defaultAuth?.applySecurityAuthentication(requestContext);+ }++ return requestContext;+ }++}++export class DefaultApiResponseProcessor {++ /**+ * Unwraps the actual response sent by the server from the response context and deserializes the response content+ * to the expected objects+ *+ * @params response Response returned by the server for a request to apiObservationsPost+ * @throws ApiException if the response code was not in [200, 299]+ */+ public async apiObservationsPost(response: ResponseContext): Promise<ApiObservationsPost201Response > {+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);+ if (isCodeInRange("201", response.httpStatusCode)) {+ const body: ApiObservationsPost201Response = ObjectSerializer.deserialize(+ ObjectSerializer.parse(await response.body.text(), contentType),+ "ApiObservationsPost201Response", ""+ ) as ApiObservationsPost201Response;+ return body;+ }+ if (isCodeInRange("400", response.httpStatusCode)) {+ const body: ApiObservationsPost400Response = ObjectSerializer.deserialize(+ ObjectSerializer.parse(await response.body.text(), contentType),+ "ApiObservationsPost400Response", ""+ ) as ApiObservationsPost400Response;+ throw new ApiException<ApiObservationsPost400Response>(response.httpStatusCode, "Invalid request data", body, response.headers);+ }+ if (isCodeInRange("405", response.httpStatusCode)) {+ throw new ApiException<undefined>(response.httpStatusCode, "Method not allowed", undefined, response.headers);+ }++ // Work around for missing responses in specification, e.g. for petstore.yaml+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {+ const body: ApiObservationsPost201Response = ObjectSerializer.deserialize(+ ObjectSerializer.parse(await response.body.text(), contentType),+ "ApiObservationsPost201Response", ""+ ) as ApiObservationsPost201Response;+ return body;+ }++ throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);+ }++}diff --git a/sdk/typescript/apis/baseapi.ts b/sdk/typescript/apis/baseapi.tsnew file mode 100644index 0000000000..ce1e2dbc47--- /dev/null+++ b/sdk/typescript/apis/baseapi.ts@@ -0,0 +1,37 @@+import { Configuration } from '../configuration'++/**+ *+ * @export+ */+export const COLLECTION_FORMATS = {+ csv: ",",+ ssv: " ",+ tsv: "\t",+ pipes: "|",+};+++/**+ *+ * @export+ * @class BaseAPI+ */+export class BaseAPIRequestFactory {++ constructor(protected configuration: Configuration) {+ }+};++/**+ *+ * @export+ * @class RequiredError+ * @extends {Error}+ */+export class RequiredError extends Error {+ name: "RequiredError" = "RequiredError";+ constructor(public api: string, public method: string, public field: string) {+ super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + ".");+ }+}diff --git a/sdk/typescript/apis/exception.ts b/sdk/typescript/apis/exception.tsnew file mode 100644index 0000000000..9365d33a8f--- /dev/null+++ b/sdk/typescript/apis/exception.ts@@ -0,0 +1,15 @@+/**+ * Represents an error caused by an api call i.e. it has attributes for a HTTP status code+ * and the returned body object.+ *+ * Example+ * API returns a ErrorMessageObject whenever HTTP status code is not in [200, 299]+ * => ApiException(404, someErrorMessageObject)+ *+ */+export class ApiException<T> extends Error {+ public constructor(public code: number, message: string, public body: T, public headers: { [key: string]: string; }) {+ super("HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " ++ JSON.stringify(headers))+ }+}diff --git a/sdk/typescript/auth/auth.ts b/sdk/typescript/auth/auth.tsnew file mode 100644index 0000000000..be50274b9d--- /dev/null+++ b/sdk/typescript/auth/auth.ts@@ -0,0 +1,51 @@+import { RequestContext } from "../http/http";++/**+ * Interface authentication schemes.+ */+export interface SecurityAuthentication {+ /*+ * @return returns the name of the security authentication as specified in OAI+ */+ getName(): string;++ /**+ * Applies the authentication scheme to the request context+ *+ * @params context the request context which should use this authentication scheme+ */+ applySecurityAuthentication(context: RequestContext): void | Promise<void>;+}++export interface TokenProvider {+ getToken(): Promise<string> | string;+}+++export type AuthMethods = {+ "default"?: SecurityAuthentication,+}++export type ApiKeyConfiguration = string;+export type HttpBasicConfiguration = { "username": string, "password": string };+export type HttpBearerConfiguration = { tokenProvider: TokenProvider };+export type OAuth2Configuration = { accessToken: string };++export type AuthMethodsConfiguration = {+ "default"?: SecurityAuthentication,+}++/**+ * Creates the authentication methods from a swagger description.+ *+ */+export function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods {+ let authMethods: AuthMethods = {}++ if (!config) {+ return authMethods;+ }+ authMethods["default"] = config["default"]++ return authMethods;+}\ No newline at end of filediff --git a/sdk/typescript/configuration.ts b/sdk/typescript/configuration.tsnew file mode 100644index 0000000000..7acb56e664--- /dev/null+++ b/sdk/typescript/configuration.ts@@ -0,0 +1,82 @@+import { HttpLibrary } from "./http/http";+import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware";+import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch";+import { BaseServerConfiguration, server1 } from "./servers";+import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth";++export interface Configuration {+ readonly baseServer: BaseServerConfiguration;+ readonly httpApi: HttpLibrary;+ readonly middleware: Middleware[];+ readonly authMethods: AuthMethods;+}+++/**+ * Interface with which a configuration object can be configured.+ */+export interface ConfigurationParameters {+ /**+ * Default server to use - a list of available servers (according to the+ * OpenAPI yaml definition) is included in the `servers` const in `./servers`. You can also+ * create your own server with the `ServerConfiguration` class from the same+ * file.+ */+ baseServer?: BaseServerConfiguration;+ /**+ * HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as+ * all generators come with a default library.+ * If available, additional libraries can be imported from `./http/*`+ */+ httpApi?: HttpLibrary;++ /**+ * The middlewares which will be applied to requests and responses. You can+ * add any number of middleware components to modify requests before they+ * are sent or before they are deserialized by implementing the `Middleware`+ * interface defined in `./middleware`+ */+ middleware?: Middleware[];+ /**+ * Configures middleware functions that return promises instead of+ * Observables (which are used by `middleware`). Otherwise allows for the+ * same functionality as `middleware`, i.e., modifying requests before they+ * are sent and before they are deserialized.+ */+ promiseMiddleware?: PromiseMiddleware[];+ /**+ * Configuration for the available authentication methods (e.g., api keys)+ * according to the OpenAPI yaml definition. For the definition, please refer to+ * `./auth/auth`+ */+ authMethods?: AuthMethodsConfiguration+}++/**+ * Provide your `ConfigurationParameters` to this function to get a `Configuration`+ * object that can be used to configure your APIs (in the constructor or+ * for each request individually).+ *+ * If a property is not included in conf, a default is used:+ * - baseServer: server1+ * - httpApi: IsomorphicFetchHttpLibrary+ * - middleware: []+ * - promiseMiddleware: []+ * - authMethods: {}+ *+ * @param conf partial configuration+ */+export function createConfiguration(conf: ConfigurationParameters = {}): Configuration {+ const configuration: Configuration = {+ baseServer: conf.baseServer !== undefined ? conf.baseServer : server1,+ httpApi: conf.httpApi || new DefaultHttpLibrary(),+ middleware: conf.middleware || [],+ authMethods: configureAuthMethods(conf.authMethods)+ };+ if (conf.promiseMiddleware) {+ conf.promiseMiddleware.forEach(+ m => configuration.middleware.push(new PromiseMiddlewareWrapper(m))+ );+ }+ return configuration;+}\ No newline at end of filediff --git a/sdk/typescript/git_push.sh b/sdk/typescript/git_push.shnew file mode 100644index 0000000000..b253029754--- /dev/null+++ b/sdk/typescript/git_push.sh@@ -0,0 +1,51 @@+#!/bin/sh+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/+#+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update"++git_user_id=$1+git_repo_id=$2+release_note=$3++if [ "$git_user_id" = "" ]; then+ git_user_id="GIT_USER_ID"+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"+fi++if [ "$git_repo_id" = "" ]; then+ git_repo_id="GIT_REPO_ID"+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"+fi++if [ "$release_note" = "" ]; then+ release_note="Minor update"+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"+fi++# Initialize the local directory as a Git repository+git init++# Adds the files in the local repository and stages them for commit.+git add .++# Commits the tracked changes and prepares them to be pushed to a remote repository.+git commit -m "$release_note"++# Sets the new remote+git_remote=$(git remote)+if [ "$git_remote" = "" ]; then # git remote not defined++ if [ "$GIT_TOKEN" = "" ]; then+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git+ else+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@github.com/${git_user_id}/${git_repo_id}.git+ fi++fi++git pull origin master++# Pushes (Forces) the changes in the local repository up to the remote repository+echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"+git push origin master 2>&1 | grep -v 'To https'diff --git a/sdk/typescript/http/http.ts b/sdk/typescript/http/http.tsnew file mode 100644index 0000000000..5ec4785ede--- /dev/null+++ b/sdk/typescript/http/http.ts@@ -0,0 +1,232 @@+import { Observable, from } from '../rxjsStub';++export * from './isomorphic-fetch';++/**+ * Represents an HTTP method.+ */+export enum HttpMethod {+ GET = "GET",+ HEAD = "HEAD",+ POST = "POST",+ PUT = "PUT",+ DELETE = "DELETE",+ CONNECT = "CONNECT",+ OPTIONS = "OPTIONS",+ TRACE = "TRACE",+ PATCH = "PATCH"+}++/**+ * Represents an HTTP file which will be transferred from or to a server.+ */+export type HttpFile = Blob & { readonly name: string };++export class HttpException extends Error {+ public constructor(msg: string) {+ super(msg);+ }+}++/**+ * Represents the body of an outgoing HTTP request.+ */+export type RequestBody = undefined | string | FormData | URLSearchParams;++/**+ * Represents an HTTP request context+ */+export class RequestContext {+ private headers: { [key: string]: string } = {};+ private body: RequestBody = undefined;+ private url: URL;++ /**+ * Creates the request context using a http method and request resource url+ *+ * @param url url of the requested resource+ * @param httpMethod http method+ */+ public constructor(url: string, private httpMethod: HttpMethod) {+ this.url = new URL(url);+ }++ /*+ * Returns the url set in the constructor including the query string+ *+ */+ public getUrl(): string {+ return this.url.toString().endsWith("/") ?+ this.url.toString().slice(0, -1)+ : this.url.toString();+ }++ /**+ * Replaces the url set in the constructor with this url.+ *+ */+ public setUrl(url: string) {+ this.url = new URL(url);+ }++ /**+ * Sets the body of the http request either as a string or FormData+ *+ * Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE+ * request is discouraged.+ * https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1+ *+ * @param body the body of the request+ */+ public setBody(body: RequestBody) {+ this.body = body;+ }++ public getHttpMethod(): HttpMethod {+ return this.httpMethod;+ }++ public getHeaders(): { [key: string]: string } {+ return this.headers;+ }++ public getBody(): RequestBody {+ return this.body;+ }++ public setQueryParam(name: string, value: string) {+ this.url.searchParams.set(name, value);+ }++ /**+ * Sets a cookie with the name and value. NO check for duplicate cookies is performed+ *+ */+ public addCookie(name: string, value: string): void {+ if (!this.headers["Cookie"]) {+ this.headers["Cookie"] = "";+ }+ this.headers["Cookie"] += name + "=" + value + "; ";+ }++ public setHeaderParam(key: string, value: string): void {+ this.headers[key] = value;+ }+}++export interface ResponseBody {+ text(): Promise<string>;+ binary(): Promise<Blob>;+}++/**+ * Helper class to generate a `ResponseBody` from binary data+ */+export class SelfDecodingBody implements ResponseBody {+ constructor(private dataSource: Promise<Blob>) {}++ binary(): Promise<Blob> {+ return this.dataSource;+ }++ async text(): Promise<string> {+ const data: Blob = await this.dataSource;+ // @ts-ignore+ if (data.text) {+ // @ts-ignore+ return data.text();+ }++ return new Promise<string>((resolve, reject) => {+ const reader = new FileReader();+ reader.addEventListener("load", () => resolve(reader.result as string));+ reader.addEventListener("error", () => reject(reader.error));+ reader.readAsText(data);+ });+ }+}++export class ResponseContext {+ public constructor(+ public httpStatusCode: number,+ public headers: { [key: string]: string },+ public body: ResponseBody+ ) {}++ /**+ * Parse header value in the form `value; param1="value1"`+ *+ * E.g. for Content-Type or Content-Disposition+ * Parameter names are converted to lower case+ * The first parameter is returned with the key `""`+ */+ public getParsedHeader(headerName: string): { [parameter: string]: string } {+ const result: { [parameter: string]: string } = {};+ if (!this.headers[headerName]) {+ return result;+ }++ const parameters = this.headers[headerName].split(";");+ for (const parameter of parameters) {+ let [key, value] = parameter.split("=", 2);+ key = key.toLowerCase().trim();+ if (value === undefined) {+ result[""] = key;+ } else {+ value = value.trim();+ if (value.startsWith('"') && value.endsWith('"')) {+ value = value.substring(1, value.length - 1);+ }+ result[key] = value;+ }+ }+ return result;+ }++ public async getBodyAsFile(): Promise<HttpFile> {+ const data = await this.body.binary();+ const fileName = this.getParsedHeader("content-disposition")["filename"] || "";+ const contentType = this.headers["content-type"] || "";+ try {+ return new File([data], fileName, { type: contentType });+ } catch (error) {+ /** Fallback for when the File constructor is not available */+ return Object.assign(data, {+ name: fileName,+ type: contentType+ });+ }+ }++ /**+ * Use a heuristic to get a body of unknown data structure.+ * Return as string if possible, otherwise as binary.+ */+ public getBodyAsAny(): Promise<string | Blob | undefined> {+ try {+ return this.body.text();+ } catch {}++ try {+ return this.body.binary();+ } catch {}++ return Promise.resolve(undefined);+ }+}++export interface HttpLibrary {+ send(request: RequestContext): Observable<ResponseContext>;+}++export interface PromiseHttpLibrary {+ send(request: RequestContext): Promise<ResponseContext>;+}++export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLibrary {+ return {+ send(request: RequestContext): Observable<ResponseContext> {+ return from(promiseHttpLibrary.send(request));+ }+ }+}diff --git a/sdk/typescript/http/isomorphic-fetch.ts b/sdk/typescript/http/isomorphic-fetch.tsnew file mode 100644index 0000000000..3af85f3d90--- /dev/null+++ b/sdk/typescript/http/isomorphic-fetch.ts@@ -0,0 +1,32 @@+import {HttpLibrary, RequestContext, ResponseContext} from './http';+import { from, Observable } from '../rxjsStub';+import "whatwg-fetch";++export class IsomorphicFetchHttpLibrary implements HttpLibrary {++ public send(request: RequestContext): Observable<ResponseContext> {+ let method = request.getHttpMethod().toString();+ let body = request.getBody();++ const resultPromise = fetch(request.getUrl(), {+ method: method,+ body: body as any,+ headers: request.getHeaders(),+ credentials: "same-origin"+ }).then((resp: any) => {+ const headers: { [name: string]: string } = {};+ resp.headers.forEach((value: string, name: string) => {+ headers[name] = value;+ });++ const body = {+ text: () => resp.text(),+ binary: () => resp.blob()+ };+ return new ResponseContext(resp.status, headers, body);+ });++ return from<Promise<ResponseContext>>(resultPromise);++ }+}diff --git a/sdk/typescript/index.ts b/sdk/typescript/index.tsnew file mode 100644index 0000000000..89069bd118--- /dev/null+++ b/sdk/typescript/index.ts@@ -0,0 +1,12 @@+export * from "./http/http";+export * from "./auth/auth";+export * from "./models/all";+export { createConfiguration } from "./configuration"+export { Configuration } from "./configuration"+export * from "./apis/exception";+export * from "./servers";+export { RequiredError } from "./apis/baseapi";++export { PromiseMiddleware as Middleware } from './middleware';+export { PromiseDefaultApi as DefaultApi } from './types/PromiseAPI';+diff --git a/sdk/typescript/middleware.ts b/sdk/typescript/middleware.tsnew file mode 100644index 0000000000..524f93f016--- /dev/null+++ b/sdk/typescript/middleware.ts@@ -0,0 +1,66 @@+import {RequestContext, ResponseContext} from './http/http';+import { Observable, from } from './rxjsStub';++/**+ * Defines the contract for a middleware intercepting requests before+ * they are sent (but after the RequestContext was created)+ * and before the ResponseContext is unwrapped.+ *+ */+export interface Middleware {+ /**+ * Modifies the request before the request is sent.+ *+ * @param context RequestContext of a request which is about to be sent to the server+ * @returns an observable of the updated request context+ *+ */+ pre(context: RequestContext): Observable<RequestContext>;+ /**+ * Modifies the returned response before it is deserialized.+ *+ * @param context ResponseContext of a sent request+ * @returns an observable of the modified response context+ */+ post(context: ResponseContext): Observable<ResponseContext>;+}++export class PromiseMiddlewareWrapper implements Middleware {++ public constructor(private middleware: PromiseMiddleware) {++ }++ pre(context: RequestContext): Observable<RequestContext> {+ return from(this.middleware.pre(context));+ }++ post(context: ResponseContext): Observable<ResponseContext> {+ return from(this.middleware.post(context));+ }++}++/**+ * Defines the contract for a middleware intercepting requests before+ * they are sent (but after the RequestContext was created)+ * and before the ResponseContext is unwrapped.+ *+ */+export interface PromiseMiddleware {+ /**+ * Modifies the request before the request is sent.+ *+ * @param context RequestContext of a request which is about to be sent to the server+ * @returns an observable of the updated request context+ *+ */+ pre(context: RequestContext): Promise<RequestContext>;+ /**+ * Modifies the returned response before it is deserialized.+ *+ * @param context ResponseContext of a sent request+ * @returns an observable of the modified response context+ */+ post(context: ResponseContext): Promise<ResponseContext>;+}diff --git a/sdk/typescript/models/ApiObservationsPost201Response.ts b/sdk/typescript/models/ApiObservationsPost201Response.tsnew file mode 100644index 0000000000..7bc15adecf--- /dev/null+++ b/sdk/typescript/models/ApiObservationsPost201Response.ts@@ -0,0 +1,43 @@+/**+ * NextJS Swagger+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)+ *+ * OpenAPI spec version: 0.1.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';+import { HttpFile } from '../http/http';++export class ApiObservationsPost201Response {+ 'success'?: boolean;+ 'observation'?: ApiObservationsPost201ResponseObservation;++ static readonly discriminator: string | undefined = undefined;++ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [+ {+ "name": "success",+ "baseName": "success",+ "type": "boolean",+ "format": ""+ },+ {+ "name": "observation",+ "baseName": "observation",+ "type": "ApiObservationsPost201ResponseObservation",+ "format": ""+ } ];++ static getAttributeTypeMap() {+ return ApiObservationsPost201Response.attributeTypeMap;+ }++ public constructor() {+ }+}+diff --git a/sdk/typescript/models/ApiObservationsPost201ResponseObservation.ts b/sdk/typescript/models/ApiObservationsPost201ResponseObservation.tsnew file mode 100644index 0000000000..3675e870bf--- /dev/null+++ b/sdk/typescript/models/ApiObservationsPost201ResponseObservation.ts@@ -0,0 +1,84 @@+/**+ * NextJS Swagger+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)+ *+ * OpenAPI spec version: 0.1.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { HttpFile } from '../http/http';++export class ApiObservationsPost201ResponseObservation {+ 'id'?: string;+ 'traceId'?: string;+ 'type'?: string;+ 'name'?: string;+ 'startTime'?: Date;+ 'endTime'?: Date;+ 'attributes'?: { [key: string]: any; };+ 'parentObservationId'?: string;++ static readonly discriminator: string | undefined = undefined;++ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [+ {+ "name": "id",+ "baseName": "id",+ "type": "string",+ "format": ""+ },+ {+ "name": "traceId",+ "baseName": "traceId",+ "type": "string",+ "format": ""+ },+ {+ "name": "type",+ "baseName": "type",+ "type": "string",+ "format": ""+ },+ {+ "name": "name",+ "baseName": "name",+ "type": "string",+ "format": ""+ },+ {+ "name": "startTime",+ "baseName": "startTime",+ "type": "Date",+ "format": "date-time"+ },+ {+ "name": "endTime",+ "baseName": "endTime",+ "type": "Date",+ "format": "date-time"+ },+ {+ "name": "attributes",+ "baseName": "attributes",+ "type": "{ [key: string]: any; }",+ "format": ""+ },+ {+ "name": "parentObservationId",+ "baseName": "parentObservationId",+ "type": "string",+ "format": ""+ } ];++ static getAttributeTypeMap() {+ return ApiObservationsPost201ResponseObservation.attributeTypeMap;+ }++ public constructor() {+ }+}+diff --git a/sdk/typescript/models/ApiObservationsPost400Response.ts b/sdk/typescript/models/ApiObservationsPost400Response.tsnew file mode 100644index 0000000000..a17fa0b9ee--- /dev/null+++ b/sdk/typescript/models/ApiObservationsPost400Response.ts@@ -0,0 +1,49 @@+/**+ * NextJS Swagger+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)+ *+ * OpenAPI spec version: 0.1.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { HttpFile } from '../http/http';++export class ApiObservationsPost400Response {+ 'success'?: boolean;+ 'message'?: string;+ 'error'?: string;++ static readonly discriminator: string | undefined = undefined;++ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [+ {+ "name": "success",+ "baseName": "success",+ "type": "boolean",+ "format": ""+ },+ {+ "name": "message",+ "baseName": "message",+ "type": "string",+ "format": ""+ },+ {+ "name": "error",+ "baseName": "error",+ "type": "string",+ "format": ""+ } ];++ static getAttributeTypeMap() {+ return ApiObservationsPost400Response.attributeTypeMap;+ }++ public constructor() {+ }+}+diff --git a/sdk/typescript/models/ApiObservationsPostRequest.ts b/sdk/typescript/models/ApiObservationsPostRequest.tsnew file mode 100644index 0000000000..ce7712d7ba--- /dev/null+++ b/sdk/typescript/models/ApiObservationsPostRequest.ts@@ -0,0 +1,101 @@+/**+ * NextJS Swagger+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)+ *+ * OpenAPI spec version: 0.1.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { HttpFile } from '../http/http';++export class ApiObservationsPostRequest {+ /**+ * The trace ID associated with the observation+ */+ 'traceId'?: string;+ /**+ * The type of the observation+ */+ 'type'?: ApiObservationsPostRequestTypeEnum;+ /**+ * The name of the observation+ */+ 'name'?: string;+ /**+ * The start time of the observation+ */+ 'startTime'?: Date;+ /**+ * The end time of the observation+ */+ 'endTime'?: Date;+ /**+ * Attributes of the observation+ */+ 'attributes'?: { [key: string]: any; };+ /**+ * The parent observation ID associated with the observation+ */+ 'parentObservationId'?: string;++ static readonly discriminator: string | undefined = undefined;++ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [+ {+ "name": "traceId",+ "baseName": "traceId",+ "type": "string",+ "format": ""+ },+ {+ "name": "type",+ "baseName": "type",+ "type": "ApiObservationsPostRequestTypeEnum",+ "format": ""+ },+ {+ "name": "name",+ "baseName": "name",+ "type": "string",+ "format": ""+ },+ {+ "name": "startTime",+ "baseName": "startTime",+ "type": "Date",+ "format": "date-time"+ },+ {+ "name": "endTime",+ "baseName": "endTime",+ "type": "Date",+ "format": "date-time"+ },+ {+ "name": "attributes",+ "baseName": "attributes",+ "type": "{ [key: string]: any; }",+ "format": ""+ },+ {+ "name": "parentObservationId",+ "baseName": "parentObservationId",+ "type": "string",+ "format": ""+ } ];++ static getAttributeTypeMap() {+ return ApiObservationsPostRequest.attributeTypeMap;+ }++ public constructor() {+ }+}+++export type ApiObservationsPostRequestTypeEnum = "span" | "event" ;+diff --git a/sdk/typescript/models/ObjectSerializer.ts b/sdk/typescript/models/ObjectSerializer.tsnew file mode 100644index 0000000000..e009e017a5--- /dev/null+++ b/sdk/typescript/models/ObjectSerializer.ts@@ -0,0 +1,239 @@+export * from '../models/ApiObservationsPost201Response';+export * from '../models/ApiObservationsPost201ResponseObservation';+export * from '../models/ApiObservationsPost400Response';+export * from '../models/ApiObservationsPostRequest';++import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';+import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';+import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';+import { ApiObservationsPostRequest , ApiObservationsPostRequestTypeEnum } from '../models/ApiObservationsPostRequest';++/* tslint:disable:no-unused-variable */+let primitives = [+ "string",+ "boolean",+ "double",+ "integer",+ "long",+ "float",+ "number",+ "any"+ ];++const supportedMediaTypes: { [mediaType: string]: number } = {+ "application/json": Infinity,+ "application/octet-stream": 0,+ "application/x-www-form-urlencoded": 0+}+++let enumsMap: Set<string> = new Set<string>([+ "ApiObservationsPostRequestTypeEnum",+]);++let typeMap: {[index: string]: any} = {+ "ApiObservationsPost201Response": ApiObservationsPost201Response,+ "ApiObservationsPost201ResponseObservation": ApiObservationsPost201ResponseObservation,+ "ApiObservationsPost400Response": ApiObservationsPost400Response,+ "ApiObservationsPostRequest": ApiObservationsPostRequest,+}++export class ObjectSerializer {+ public static findCorrectType(data: any, expectedType: string) {+ if (data == undefined) {+ return expectedType;+ } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {+ return expectedType;+ } else if (expectedType === "Date") {+ return expectedType;+ } else {+ if (enumsMap.has(expectedType)) {+ return expectedType;+ }++ if (!typeMap[expectedType]) {+ return expectedType; // w/e we don't know the type+ }++ // Check the discriminator+ let discriminatorProperty = typeMap[expectedType].discriminator;+ if (discriminatorProperty == null) {+ return expectedType; // the type does not have a discriminator. use it.+ } else {+ if (data[discriminatorProperty]) {+ var discriminatorType = data[discriminatorProperty];+ if(typeMap[discriminatorType]){+ return discriminatorType; // use the type given in the discriminator+ } else {+ return expectedType; // discriminator did not map to a type+ }+ } else {+ return expectedType; // discriminator was not present (or an empty string)+ }+ }+ }+ }++ public static serialize(data: any, type: string, format: string) {+ if (data == undefined) {+ return data;+ } else if (primitives.indexOf(type.toLowerCase()) !== -1) {+ return data;+ } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6+ let subType: string = type.replace("Array<", ""); // Array<Type> => Type>+ subType = subType.substring(0, subType.length - 1); // Type> => Type+ let transformedData: any[] = [];+ for (let date of data) {+ transformedData.push(ObjectSerializer.serialize(date, subType, format));+ }+ return transformedData;+ } else if (type === "Date") {+ if (format == "date") {+ let month = data.getMonth()+1+ month = month < 10 ? "0" + month.toString() : month.toString()+ let day = data.getDate();+ day = day < 10 ? "0" + day.toString() : day.toString();++ return data.getFullYear() + "-" + month + "-" + day;+ } else {+ return data.toISOString();+ }+ } else {+ if (enumsMap.has(type)) {+ return data;+ }+ if (!typeMap[type]) { // in case we dont know the type+ return data;+ }++ // Get the actual type of this object+ type = this.findCorrectType(data, type);++ // get the map for the correct type.+ let attributeTypes = typeMap[type].getAttributeTypeMap();+ let instance: {[index: string]: any} = {};+ for (let attributeType of attributeTypes) {+ instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format);+ }+ return instance;+ }+ }++ public static deserialize(data: any, type: string, format: string) {+ // polymorphism may change the actual type.+ type = ObjectSerializer.findCorrectType(data, type);+ if (data == undefined) {+ return data;+ } else if (primitives.indexOf(type.toLowerCase()) !== -1) {+ return data;+ } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6+ let subType: string = type.replace("Array<", ""); // Array<Type> => Type>+ subType = subType.substring(0, subType.length - 1); // Type> => Type+ let transformedData: any[] = [];+ for (let date of data) {+ transformedData.push(ObjectSerializer.deserialize(date, subType, format));+ }+ return transformedData;+ } else if (type === "Date") {+ return new Date(data);+ } else {+ if (enumsMap.has(type)) {// is Enum+ return data;+ }++ if (!typeMap[type]) { // dont know the type+ return data;+ }+ let instance = new typeMap[type]();+ let attributeTypes = typeMap[type].getAttributeTypeMap();+ for (let attributeType of attributeTypes) {+ let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format);+ if (value !== undefined) {+ instance[attributeType.name] = value;+ }+ }+ return instance;+ }+ }+++ /**+ * Normalize media type+ *+ * We currently do not handle any media types attributes, i.e. anything+ * after a semicolon. All content is assumed to be UTF-8 compatible.+ */+ public static normalizeMediaType(mediaType: string | undefined): string | undefined {+ if (mediaType === undefined) {+ return undefined;+ }+ return mediaType.split(";")[0].trim().toLowerCase();+ }++ /**+ * From a list of possible media types, choose the one we can handle best.+ *+ * The order of the given media types does not have any impact on the choice+ * made.+ */+ public static getPreferredMediaType(mediaTypes: Array<string>): string {+ /** According to OAS 3 we should default to json */+ if (!mediaTypes) {+ return "application/json";+ }++ const normalMediaTypes = mediaTypes.map(this.normalizeMediaType);+ let selectedMediaType: string | undefined = undefined;+ let selectedRank: number = -Infinity;+ for (const mediaType of normalMediaTypes) {+ if (supportedMediaTypes[mediaType!] > selectedRank) {+ selectedMediaType = mediaType;+ selectedRank = supportedMediaTypes[mediaType!];+ }+ }++ if (selectedMediaType === undefined) {+ throw new Error("None of the given media types are supported: " + mediaTypes.join(", "));+ }++ return selectedMediaType!;+ }++ /**+ * Convert data to a string according the given media type+ */+ public static stringify(data: any, mediaType: string): string {+ if (mediaType === "text/plain") {+ return String(data);+ }++ if (mediaType === "application/json") {+ return JSON.stringify(data);+ }++ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify.");+ }++ /**+ * Parse data from a string according to the given media type+ */+ public static parse(rawData: string, mediaType: string | undefined) {+ if (mediaType === undefined) {+ throw new Error("Cannot parse content. No Content-Type defined.");+ }++ if (mediaType === "text/plain") {+ return rawData;+ }++ if (mediaType === "application/json") {+ return JSON.parse(rawData);+ }++ if (mediaType === "text/html") {+ return rawData;+ }++ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse.");+ }+}diff --git a/sdk/typescript/models/all.ts b/sdk/typescript/models/all.tsnew file mode 100644index 0000000000..50801d6b5f--- /dev/null+++ b/sdk/typescript/models/all.ts@@ -0,0 +1,4 @@+export * from '../models/ApiObservationsPost201Response'+export * from '../models/ApiObservationsPost201ResponseObservation'+export * from '../models/ApiObservationsPost400Response'+export * from '../models/ApiObservationsPostRequest'diff --git a/sdk/typescript/package.json b/sdk/typescript/package.jsonnew file mode 100644index 0000000000..c79569e704--- /dev/null+++ b/sdk/typescript/package.json@@ -0,0 +1,36 @@+{+ "name": "",+ "version": "",+ "description": "OpenAPI client for ",+ "author": "OpenAPI-Generator Contributors",+ "repository": {+ "type": "git",+ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"+ },+ "keywords": [+ "fetch",+ "typescript",+ "openapi-client",+ "openapi-generator"+ ],+ "license": "Unlicense",+ "main": "./dist/index.js",+ "type": "commonjs",+ "exports": {+ ".": "./dist/index.js"+ },+ "typings": "./dist/index.d.ts",+ "scripts": {+ "build": "tsc",+ "prepare": "npm run build"+ },+ "dependencies": {+ "whatwg-fetch": "^3.0.0",+ "es6-promise": "^4.2.4",+ "url-parse": "^1.4.3"+ },+ "devDependencies": {+ "typescript": "^4.0",+ "@types/url-parse": "1.4.4"+ }+}diff --git a/sdk/typescript/rxjsStub.ts b/sdk/typescript/rxjsStub.tsnew file mode 100644index 0000000000..4c73715a24--- /dev/null+++ b/sdk/typescript/rxjsStub.ts@@ -0,0 +1,27 @@+export class Observable<T> {+ constructor(private promise: Promise<T>) {}++ toPromise() {+ return this.promise;+ }++ pipe<S>(callback: (value: T) => S | Promise<S>): Observable<S> {+ return new Observable(this.promise.then(callback));+ }+}++export function from<T>(promise: Promise<any>) {+ return new Observable(promise);+}++export function of<T>(value: T) {+ return new Observable<T>(Promise.resolve(value));+}++export function mergeMap<T, S>(callback: (value: T) => Observable<S>) {+ return (value: T) => callback(value).toPromise();+}++export function map(callback: any) {+ return callback;+}diff --git a/sdk/typescript/servers.ts b/sdk/typescript/servers.tsnew file mode 100644index 0000000000..df71beba9b--- /dev/null+++ b/sdk/typescript/servers.ts@@ -0,0 +1,55 @@+import { RequestContext, HttpMethod } from "./http/http";++export interface BaseServerConfiguration {+ makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext;+}++/**+ *+ * Represents the configuration of a server including its+ * url template and variable configuration based on the url.+ *+ */+export class ServerConfiguration<T extends { [key: string]: string }> implements BaseServerConfiguration {+ public constructor(private url: string, private variableConfiguration: T) {}++ /**+ * Sets the value of the variables of this server. Variables are included in+ * the `url` of this ServerConfiguration in the form `{variableName}`+ *+ * @param variableConfiguration a partial variable configuration for the+ * variables contained in the url+ */+ public setVariables(variableConfiguration: Partial<T>) {+ Object.assign(this.variableConfiguration, variableConfiguration);+ }++ public getConfiguration(): T {+ return this.variableConfiguration+ }++ private getUrl() {+ let replacedUrl = this.url;+ for (const key in this.variableConfiguration) {+ var re = new RegExp("{" + key + "}","g");+ replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]);+ }+ return replacedUrl+ }++ /**+ * Creates a new request context for this server using the url with variables+ * replaced with their respective values and the endpoint of the request appended.+ *+ * @param endpoint the endpoint to be queried on the server+ * @param httpMethod httpMethod to be used+ *+ */+ public makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext {+ return new RequestContext(this.getUrl() + endpoint, httpMethod);+ }+}++export const server1 = new ServerConfiguration<{ }>("", { })++export const servers = [server1];diff --git a/sdk/typescript/tsconfig.json b/sdk/typescript/tsconfig.jsonnew file mode 100644index 0000000000..aa173eb68f--- /dev/null+++ b/sdk/typescript/tsconfig.json@@ -0,0 +1,28 @@+{+ "compilerOptions": {+ "strict": true,+ /* Basic Options */+ "target": "es5",+ "moduleResolution": "node",+ "declaration": true,++ /* Additional Checks */+ "noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!)+ "noUnusedParameters": false, /* Report errors on unused parameters. */ // TODO: set to true again+ "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */+ "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */++ "removeComments": true,+ "sourceMap": true,+ "outDir": "./dist",+ "noLib": false,+ "lib": [ "es6", "dom" ],+ },+ "exclude": [+ "dist",+ "node_modules"+ ],+ "filesGlob": [+ "./**/*.ts",+ ]+}diff --git a/sdk/typescript/types/ObjectParamAPI.ts b/sdk/typescript/types/ObjectParamAPI.tsnew file mode 100644index 0000000000..36f6b43fc6--- /dev/null+++ b/sdk/typescript/types/ObjectParamAPI.ts@@ -0,0 +1,36 @@+import { ResponseContext, RequestContext, HttpFile } from '../http/http';+import { Configuration} from '../configuration'++import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';+import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';+import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';+import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';++import { ObservableDefaultApi } from "./ObservableAPI";+import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";++export interface DefaultApiApiObservationsPostRequest {+ /**+ *+ * @type ApiObservationsPostRequest+ * @memberof DefaultApiapiObservationsPost+ */+ apiObservationsPostRequest: ApiObservationsPostRequest+}++export class ObjectDefaultApi {+ private api: ObservableDefaultApi++ public constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor) {+ this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor);+ }++ /**+ * Creates a new observation+ * @param param the request object+ */+ public apiObservationsPost(param: DefaultApiApiObservationsPostRequest, options?: Configuration): Promise<ApiObservationsPost201Response> {+ return this.api.apiObservationsPost(param.apiObservationsPostRequest, options).toPromise();+ }++}diff --git a/sdk/typescript/types/ObservableAPI.ts b/sdk/typescript/types/ObservableAPI.tsnew file mode 100644index 0000000000..3f08f4ef97--- /dev/null+++ b/sdk/typescript/types/ObservableAPI.ts@@ -0,0 +1,49 @@+import { ResponseContext, RequestContext, HttpFile } from '../http/http';+import { Configuration} from '../configuration'+import { Observable, of, from } from '../rxjsStub';+import {mergeMap, map} from '../rxjsStub';+import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';+import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';+import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';+import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';++import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";+export class ObservableDefaultApi {+ private requestFactory: DefaultApiRequestFactory;+ private responseProcessor: DefaultApiResponseProcessor;+ private configuration: Configuration;++ public constructor(+ configuration: Configuration,+ requestFactory?: DefaultApiRequestFactory,+ responseProcessor?: DefaultApiResponseProcessor+ ) {+ this.configuration = configuration;+ this.requestFactory = requestFactory || new DefaultApiRequestFactory(configuration);+ this.responseProcessor = responseProcessor || new DefaultApiResponseProcessor();+ }++ /**+ * Creates a new observation+ * @param apiObservationsPostRequest+ */+ public apiObservationsPost(apiObservationsPostRequest: ApiObservationsPostRequest, _options?: Configuration): Observable<ApiObservationsPost201Response> {+ const requestContextPromise = this.requestFactory.apiObservationsPost(apiObservationsPostRequest, _options);++ // build promise chain+ let middlewarePreObservable = from<RequestContext>(requestContextPromise);+ for (let middleware of this.configuration.middleware) {+ middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));+ }++ return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).+ pipe(mergeMap((response: ResponseContext) => {+ let middlewarePostObservable = of(response);+ for (let middleware of this.configuration.middleware) {+ middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));+ }+ return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.apiObservationsPost(rsp)));+ }));+ }++}diff --git a/sdk/typescript/types/PromiseAPI.ts b/sdk/typescript/types/PromiseAPI.tsnew file mode 100644index 0000000000..06a5e4970f--- /dev/null+++ b/sdk/typescript/types/PromiseAPI.ts@@ -0,0 +1,35 @@+import { ResponseContext, RequestContext, HttpFile } from '../http/http';+import { Configuration} from '../configuration'++import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';+import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';+import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';+import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';+import { ObservableDefaultApi } from './ObservableAPI';++import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";+export class PromiseDefaultApi {+ private api: ObservableDefaultApi++ public constructor(+ configuration: Configuration,+ requestFactory?: DefaultApiRequestFactory,+ responseProcessor?: DefaultApiResponseProcessor+ ) {+ this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor);+ }++ /**+ * Creates a new observation+ * @param apiObservationsPostRequest+ */+ public apiObservationsPost(apiObservationsPostRequest: ApiObservationsPostRequest, _options?: Configuration): Promise<ApiObservationsPost201Response> {+ const result = this.api.apiObservationsPost(apiObservationsPostRequest, _options);+ return result.toPromise();+ }+++}+++diff --git a/sdk/typescript/util.ts b/sdk/typescript/util.tsnew file mode 100644index 0000000000..96ea3dfdc7--- /dev/null+++ b/sdk/typescript/util.ts@@ -0,0 +1,37 @@+/**+ * Returns if a specific http code is in a given code range+ * where the code range is defined as a combination of digits+ * and "X" (the letter X) with a length of 3+ *+ * @param codeRange string with length 3 consisting of digits and "X" (the letter X)+ * @param code the http status code to be checked against the code range+ */+export function isCodeInRange(codeRange: string, code: number): boolean {+ // This is how the default value is encoded in OAG+ if (codeRange === "0") {+ return true;+ }+ if (codeRange == code.toString()) {+ return true;+ } else {+ const codeString = code.toString();+ if (codeString.length != codeRange.length) {+ return false;+ }+ for (let i = 0; i < codeString.length; i++) {+ if (codeRange.charAt(i) != "X" && codeRange.charAt(i) != codeString.charAt(i)) {+ return false;+ }+ }+ return true;+ }+}++/**+* Returns if it can consume form+*+* @param consumes array+*/+export function canConsumeForm(contentTypes: string[]): boolean {+ return contentTypes.indexOf('multipart/form-data') !== -1+}diff --git a/src/pages/api/doc.ts b/src/pages/api/doc.tsnew file mode 100644index 0000000000..e6fe903ade--- /dev/null+++ b/src/pages/api/doc.ts@@ -0,0 +1,13 @@+import { withSwagger } from "next-swagger-doc";++const swaggerHandler = withSwagger({+ definition: {+ openapi: "3.0.0",+ info: {+ title: "NextJS Swagger",+ version: "0.1.0",+ },+ },+ apiFolder: "src/pages/api",+});+export default swaggerHandler();diff --git a/src/pages/api/observations.ts b/src/pages/api/observations.tsindex 306a1aa9e6..c18f4e5007 100644--- a/src/pages/api/observations.ts+++ b/src/pages/api/observations.ts@@ -14,6 +14,92 @@ const ObservationSchema = z.object({parentObservationId: z.string().optional(),});+/**+ * @swagger+ * /api/observations:+ * post:+ * summary: Creates a new observation+ * requestBody:+ * required: true+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * traceId:+ * type: string+ * description: The trace ID associated with the observation+ * type:+ * type: string+ * enum: [span, event]+ * description: The type of the observation+ * name:+ * type: string+ * description: The name of the observation+ * startTime:+ * type: string+ * format: date-time+ * description: The start time of the observation+ * endTime:+ * type: string+ * format: date-time+ * description: The end time of the observation+ * attributes:+ * type: object+ * additionalProperties: true+ * description: Attributes of the observation+ * parentObservationId:+ * type: string+ * description: The parent observation ID associated with the observation+ * responses:+ * '201':+ * description: Observation created successfully+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * success:+ * type: boolean+ * observation:+ * type: object+ * properties:+ * id:+ * type: string+ * traceId:+ * type: string+ * type:+ * type: string+ * name:+ * type: string+ * startTime:+ * type: string+ * format: date-time+ * endTime:+ * type: string+ * format: date-time+ * attributes:+ * type: object+ * additionalProperties: true+ * parentObservationId:+ * type: string+ * '400':+ * description: Invalid request data+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * success:+ * type: boolean+ * message:+ * type: string+ * error:+ * type: string+ * '405':+ * description: Method not allowed+ */+export default async function handler(req: NextApiRequest,res: NextApiResponsediff --git a/src/pages/api/traces.ts b/src/pages/api/traces.tsindex 01f7c21711..104e7ea599 100644--- a/src/pages/api/traces.ts+++ b/src/pages/api/traces.ts@@ -11,6 +11,70 @@ const TraceSchema = z.object({statusMessage: z.string().optional(),});+/**+ * @swagger+ * /api/traces:+ * post:+ * summary: Creates a new trace+ * requestBody:+ * required: true+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * name:+ * type: string+ * description: The name of the trace+ * attributes:+ * type: object+ * additionalProperties: true+ * description: Attributes of the trace+ * status:+ * type: string+ * enum: [success, error, running]+ * description: The status of the trace+ * statusMessage:+ * type: string+ * description: A status message+ * responses:+ * '201':+ * description: Trace created successfully+ * content:+ * application/json:+ * schema:+ * type: object+ * trace:+ * type: object+ * properties:+ * properties:+ * id:+ * type: string+ * name:+ * type: string+ * attributes:+ * type: object+ * additionalProperties: true+ * status:+ * type: string+ * statusMessage:+ * type: string+ * '400':+ * description: Invalid request data+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * success:+ * type: boolean+ * message:+ * type: string+ * error:+ * type: string+ * '405':+ * description: Method not allowed+ */export default async function handler(req: NextApiRequest,res: NextApiResponse@@ -38,12 +102,10 @@ export default async function handler(} catch (error: unknown) {const errorMessage =error instanceof Error ? error.message : "An unknown error occurred";- res- .status(400)- .json({- success: false,- message: "Invalid request data",- error: errorMessage,- });+ res.status(400).json({+ success: false,+ message: "Invalid request data",+ error: errorMessage,+ });}}