Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add SDK and CLI [WIP] to the monorepo
Tomas Valenta922f604dbce2
diff --git a/packages/cli/.eslintrc.cjs b/packages/cli/.eslintrc.cjsnew file mode 100644index 000000000..ab306adf4--- /dev/null+++ b/packages/cli/.eslintrc.cjs@@ -0,0 +1,42 @@+module.exports = {+ env: {+ commonjs: true,+ node: true,+ browser: false,+ es6: true,+ },+ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],+ parser: '@typescript-eslint/parser',+ parserOptions: {+ ecmaVersion: 'latest',+ sourceType: 'module',+ },+ ignorePatterns: ['dist/**', 'node_modules/'],+ plugins: ['@typescript-eslint', 'prettier', 'unused-imports'],+ rules: {+ '@typescript-eslint/member-ordering': ['error'],+ 'linebreak-style': ['error', 'unix'],+ 'max-len': [+ 'error',+ {+ code: 90,+ ignoreComments: true,+ ignoreStrings: true,+ ignoreTemplateLiterals: true,+ },+ ],+ 'prettier/prettier': ['error'],+ quotes: ['error', 'single', { avoidEscape: true }],+ semi: ['error', 'never'],+ 'unused-imports/no-unused-imports': 'error',+ 'unused-imports/no-unused-vars': [+ 'warn',+ {+ args: 'none',+ argsIgnorePattern: '^_',+ vars: 'all',+ varsIgnorePattern: '^_',+ },+ ],+ },+}diff --git a/packages/cli/.gitignore b/packages/cli/.gitignorenew file mode 100644index 000000000..b43c0a21a--- /dev/null+++ b/packages/cli/.gitignore@@ -0,0 +1,43 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+/node_modules+/.pnp+.pnp.js++# testing+/coverage++# misc+.DS_Store+.env.local+.env.development.local+.env.test.local+.env.production.local++npm-debug.log*+yarn-debug.log*+yarn-error.log*++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Output of 'npm pack'+*.tgz++# Yarn Integrity file+.yarn-integrity++# generate output+dist++# compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++/test.md+logs.txt+/dist+/files\ No newline at end of filediff --git a/packages/cli/DEV.md b/packages/cli/DEV.mdnew file mode 100644index 000000000..5093e4e66--- /dev/null+++ b/packages/cli/DEV.md@@ -0,0 +1,95 @@+# DEV++**The core ideology**+https://medium.com/@jdxcode/12-factor-cli-apps-dd3c227a0e46++## Setup+How to setup building, package.json, etc.++## Useful packages++- chalk — colorizes the output+- clear — clears the terminal screen+- clui — draws command-line tables, gauges and spinners+- figlet — creates ASCII art from text+- inquirer — creates interactive command-line user interface+- config — easily loads and saves config without you having to think about where and how.+- shelljs - to allow bash like+- boxen - create boxes+- pkg - package executable+- progress - for loaders (alternatives - cli-progress)+- commander - parsign args and handling commands (alternatives - minimist, yargs)+- update-notifier - adds notifications about updates++## QOL improvement to standard CLI development/maintanence/usage+- octa/web auth?+- docs generation+- add to homebrew+- multiplatform support+- spellcheck (find package for this!)+- ci/cd versioning + version control of the whole cli that you can track+- automatic updater+- option to add [y/N] check before executing command and password protected commands+- add fast automatic updating - either via downloading new CLI version or by downloading part of a command from some central DB that the command maintainer can quickly modify to reflect changes to the workflow++## Best Practices for Offering a CLI+Now that we’ve evidenced a growing trend of CLI support across the industry, what best practices are there for maintaining one?++Juniper vs Cisco: Compare the two main CLI style families, and see which works best for you. Ideskog favors the Juniper style for its structure, consistency, and well-defined elements.++Design it to be transactional: As Ideskog notes, “this is VERY important. When you work in a CLI you need to be able to prepare your configuration, validate it, compare it with what you have, and then in the end commit (apply) it in one single step.”++Clearly separate operational and configuration data: Operational data are things like statistics and uptime, and are dissimilar from configuration such as ports and hosts. The differentiation should be obvious in the design. Ideskog warns to never allow configuration to depend on operational state:++“An example is an interface that can only be configured if it’s connected to the Internet. This means that the configuration may have been valid when the admin set it the first time, but when internet connection goes down, what do you do then? The configuration is suddenly invalid. This is a bad property of a system. It makes it very hard to pre-provision a system, since you cannot tell beforehand if the configuration is valid or not.”++Let the model drive the CLI for ultimate consistency: For Amazon, in order to reach a consistent command line experience across thousands of commands, they did the following:++“We decided to auto-generate commands and options from the underlying models that describe AWS APIs. This strategy has enabled us to deliver timely support for new AWS services and API updates with a consistent style of commands.”++Shoot for CLI-API-GUI parity: If you follow a model-driven paradigm, every single CLI command should be accessible as an API call, and vice versa. As API Evangelists notes, the AWS API and CLI are pretty much in sync in terms of functionalities:++“Making sure there is parity and consistency between what is available via a UI, and the API and CLI is important.”++Be careful about evolvability, especially when updating. Command documentation, API docs, and functionality must remain in sync. As Jeff Browning said:++“CLIs are hardwired scripts that work well in the short term but don’t evolve as gracefully as true integration”++Adam DuVander of Zapier lists some great CLI best practices in his article [here](https://zapier.com/engineering/how-to-cli/), some of which are summarized below.++Provide a help screen: Usability and discovery are very important for CLIs. Make accessing a Getting Started guide easy with simple flags like -h or ?+Offer tab completion.+Steal from the champions. Replicate patterns from Linux commands that work, and take advantage of succinct commands.+Offer customization options.+Make security a high priority.+If desktop-based, support different OSs and developer environments so that no teammate is left in the lurch.++slack-cli quotes (https://slack.engineering/the-joy-of-internal-tools-4a1bb5fe905b):++"A good rule of thumb for a development tool is this: if a developer has to stop what she’s doing and open a browser window for the next step in her work, then that task is a good candidate for building tooling around."++Syncing files between developer machines and remote servers every time a file is saved.+Distributing canonical SSH configurations from our ops team to engineers’ laptops.+Automating installation of common git and bash configurations.+Helpers for working with git — creating branches that are cross-referenced with our internal bug tracker, for example, or reverting Pull Requests with a single command.+Tools for generating fake data on development servers or fixtures for writing unit tests.++https://github.com/slackhq/magic-cli++----------------------------------------------++https://github.com/OpenAPITools/openapi-generator#openapi-generator++https://github.com/Byron/google-apis-rs++https://github.com/google/python-fire++https://github.com/danielgtaylor/openapi-cli-generator++https://auth0.com/blog/auth0-internal-dev-tools-unleashing-engineering-potential/++https://github.com/vadimdemedes/ink++https://github.com/chjj/blessed++https://github.com/Yomguithereal/react-blesseddiff --git a/packages/cli/LICENSE b/packages/cli/LICENSEnew file mode 100644index 000000000..b7b0a5a78--- /dev/null+++ b/packages/cli/LICENSE@@ -0,0 +1,92 @@+Business Source License 1.1++Parameters++Licensor: FoundryLabs, Inc.+Licensed Work: Devbook CLI+ The Licensed Work is (c) 2022 FoundryLabs, Inc.+Additional Use Grant:++Change Date: 2026-01-19++Change License: Apache License, Version 2.0++Notice++The Business Source License (this document, or the "License") is not an Open+Source license. However, the Licensed Work will eventually be made available+under an Open Source License, as stated in this License.++License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.+"Business Source License" is a trademark of MariaDB Corporation Ab.++-----------------------------------------------------------------------------++Business Source License 1.1++Terms++The Licensor hereby grants you the right to copy, modify, create derivative+works, redistribute, and make non-production use of the Licensed Work. The+Licensor may make an Additional Use Grant, above, permitting limited+production use.++Effective on the Change Date, or the fourth anniversary of the first publicly+available distribution of a specific version of the Licensed Work under this+License, whichever comes first, the Licensor hereby grants you rights under+the terms of the Change License, and the rights granted in the paragraph+above terminate.++If your use of the Licensed Work does not comply with the requirements+currently in effect as described in this License, you must purchase a+commercial license from the Licensor, its affiliated entities, or authorized+resellers, or you must refrain from using the Licensed Work.++All copies of the original and modified Licensed Work, and derivative works+of the Licensed Work, are subject to this License. This License applies+separately for each version of the Licensed Work and the Change Date may vary+for each version of the Licensed Work released by Licensor.++You must conspicuously display this License on each original or modified copy+of the Licensed Work. If you receive the Licensed Work in original or+modified form from a third party, the terms and conditions set forth in this+License apply to your use of that work.++Any use of the Licensed Work in violation of this License will automatically+terminate your rights under this License for the current and all other+versions of the Licensed Work.++This License does not grant you any right in any trademark or logo of+Licensor or its affiliates (provided that you may use a trademark or logo of+Licensor as expressly required by this License).++TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON+AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,+EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND+TITLE.++MariaDB hereby grants you permission to use this License’s text to license+your works, and to refer to it using the trademark "Business Source License",+as long as you comply with the Covenants of Licensor below.++Covenants of Licensor++In consideration of the right to use this License’s text and the "Business+Source License" name and trademark, Licensor covenants to MariaDB, and to all+other recipients of the licensed work to be provided by Licensor:++1. To specify as the Change License the GPL Version 2.0 or any later version,+ or a license that is compatible with GPL Version 2.0 or a later version,+ where "compatible" means that software provided under the Change License can+ be included in a program with software provided under GPL Version 2.0 or a+ later version. Licensor may specify additional Change Licenses without+ limitation.++2. To either: (a) specify an additional grant of rights to use that does not+ impose any additional restriction on the right granted in this License, as+ the Additional Use Grant; or (b) insert the text "None".++3. To specify a Change Date.++4. Not to modify this License in any other way.diff --git a/packages/cli/README.md b/packages/cli/README.mdnew file mode 100644index 000000000..df003f006--- /dev/null+++ b/packages/cli/README.md@@ -0,0 +1,172 @@+# Devbook CLI+CLI for managing Devbook environments.++An environment is a virtual machine image that you can customize through our CLI. You can add files, install dependencies, and set env vars in the environment. Then with Devbook, every user visiting your website will get a new copy of the environment they can use.++* [Installation](#installation)+* [Quickstart](#quickstart)+* [Commands](#commands)+ + [`devbook env create`](#devbook-env-create)+ + [`devbook env push`](#devbook-env-push)+ + [`devbook env publish`](#devbook-env-publish)+ + [`devbook env delete`](#devbook-env-delete)+ + [`devbook env use`](#devbook-env-use)+ + [`devbook env set`](#devbook-env-set)+ + [`devbook env connect`](#devbook-env-connect)+ + [`devbook env list`](#devbook-env-list)+* [`dbk.toml` config](#dbktoml-config)+ + [`id`](#id)+ + [`template`](#template)+ + [`title`](#title)+ + [`filesystem.local_root`](#filesystemlocal_root)+* [FAQ](#faq)+ + [Inspect how a published environment looks like](#inspect-how-a-published-environment-looks-like)+ + [Delete files from an environment](#delete-files-from-an-environment)+ + [Inspect files in an environment](#inspect-files-in-an-environment)+ + [Install dependencies in an environment](#install-dependencies-in-an-environment)+ + [Upload local files to an environment](#upload-local-files-to-an-environment)+++## Installation+```sh+npm install -g @devbookhq/cli+```++Then you can use the CLI with+```sh+devbook env --help+```++You will need an API key to use the Devbook CLI — you can get it [here](https://dash.usedevbook.com/settings) after signing up.+After you get the API key set the `DEVBOOK_KEY` env var in your terminal, or call the CLI with the env var directly++```sh+DEVBOOK_KEY=<your-api-key> devbook env ...+```++## Quickstart+```sh+# Create an environment and a dbk.toml config for the environment+devbook env create++# Create a directory for files you want to be in the environment+mkdir ./files++# Upload files from the ./files directory to the environment+devbook env push++# Connect terminal to the environment so you can install dependencies.+# You quit this terminal with Ctrl+D or by `exit` command+devbook env connect++# All changes you made to the environment so far are not published —+# users that use this environment on your website cannot see the changes.+# To make all the changes you just made published, call the following command+devbook env publish+```++## Commands+By default, commands are referring to an environment defined by a `dbk.toml` in a directory where you called the commands.++All commands can be called with a `--path <path-to-dir>` flag that changes the directory where the command will be called, without the need to call `cd`.+++The Devbook CLI has following commands++### `devbook env create`+Create a new environment and `dbk.toml` config.++You can specify another environment as a template with `--template <existing-environment-id>` flag. This existing environment will be a base of the new environment — all files, env vars and dependencies from the existing environment will be present in the new environment.+++### `devbook env push`+Upload files from a local directory to an environment. The local directory to upload from is defined by the `filesystem.local_root` field in the `dbk.toml` config (`./files` by default).+Path of uploaded files in the environment will reflect their paths in the `./files` directory — file `./files/index.ts` will become `/index.ts` in the environment.++> Use `devbook env publish --all` to push all environments in subdirectories.+++### `devbook env publish`+Publish changes you made in an environment (uploaded files, installed depedencies, set env vars).+Users on your website that use the environment cannot see the new changes you made to the environment until you run `devbook env publish` command.++> Use `devbook env publish --all` to publish all environments in subdirectories.+++### `devbook env delete`+Delete an environment and a `dbk.toml` config for the environment.+++### `devbook env use`+Create a `dbk.toml` for an existing environment. You can use this to start version tracking environments created through Devbook dashboard.+++### `devbook env set`+Set env vars inside of an environment.+For example, to set `FOO` and `BAR` call `devbook env set FOO=1 BAR=2`.++> You must set all env vars in one `devbook env set --env-vars <KEY=VALUE...>` call — variables from the previous `devbook env set` calls will be overwritten.+++### `devbook env connect`+Open a terminal connected to an environment that you can use to configure and inspect the environment.++> The environments are based on Alpine Linux that uses `apk add` and `apk del` for managing packages.+++### `devbook env list`+List all environments and paths to their `dbk.toml` configs (if the configs are in subdirectories of the current directory).+++## `dbk.toml` config+The `dbk.toml` config is used for tracking an environment in version control. It is created automatically by `devbook env create` command.++The following fields are in each `dbk.toml` config++### `id`+You **should not edit this field** manually.+The id of this environment.+++### `template`+You **should not edit this field** manually.+The id of the environment that was used as a template for this environment.+++### `title`+Title of the environment. The title is used for easier navigation and to distinguish between environments.++By default the title is the name of the directory where you called `devbook env create` command.+You can change this field and use `devbook env push` to save the changes.+++### `filesystem.local_root`+A directory containing files that will be uploaded with `devbook env push` command.+By default it is `./files` — that means that the `./files` directory next to this `dbk.toml` will be uploaded to the environment when you use `devbook env push`.++For example, if you have a `./files/index.ts` file locally and run `devbook env push` the file `/index.ts` will be created and saved in the environment.+++## FAQ++### Inspect how a published environment looks like+Use `devbook env connect --published` to open a terminal connected to a new instace of the environment.+++### Delete files from an environment+Use `devbook env connect` to open a terminal connected to the environment. Then you can delete the files from the environment with `rm` shell command.+++### Inspect files in an environment+Use `devbook env connect` to connect your terminal with the environment then use terminal commands like `ls`, `cd`, `cat`, etc. to inspect files.+++### Install dependencies in an environment+Use `devbook env connect` to open a terminal connected to the environment. Then you can install dependencies as you would on any other Linux machine.++> The environments are running on Alpine Linux that uses `apk add` and `apk del` for managing packages.+++### Upload local files to an environment+Create `./files` directory next to the `dbk.toml` and put the files you want in the environment there.+After you call `devbook env push` files from the `./files` directory will be uploaded to the environment. Their path in the environment will reflect the path in the `./files` directory — file `./files/index.ts` will become `/index.ts` in the environment.diff --git a/packages/cli/package.json b/packages/cli/package.jsonnew file mode 100644index 000000000..895885d88--- /dev/null+++ b/packages/cli/package.json@@ -0,0 +1,80 @@+{+ "name": "@e2b/cli",+ "version": "0.0.1",+ "description": "CLI for managing e2b environments",+ "homepage": "https://usedevbook.com",+ "license": "SEE LICENSE IN LICENSE",+ "author": {+ "name": "FoundryLabs, Inc.",+ "email": "[email protected]",+ "url": "https://e2b.dev"+ },+ "bugs": "https://github.com/e2b-dev/e2b/issues",+ "repository": {+ "type": "git",+ "url": "https://github.com/e2b-dev/e2b/tree/main/packages/cli"+ },+ "publishConfig": {+ "access": "public"+ },+ "sideEffects": false,+ "scripts": {+ "prepublishOnly": "pnpm build",+ "build": "rm -rf ./dist && tsup --minify",+ "dev": "tsup --watch",+ "fix": "npx eslint **/src/**/*.{ts,js} --fix",+ "format": "prettier --check --ignore-path .gitignore .",+ "format:fix": "prettier --write --ignore-path .gitignore ."+ },+ "devDependencies": {+ "@trivago/prettier-plugin-sort-imports": "^3.3.0",+ "@types/inquirer": "^8.0.0",+ "@types/node": "16.11",+ "@types/parse-gitignore": "^1.0.0",+ "@types/update-notifier": "5.1.0",+ "@typescript-eslint/eslint-plugin": "^5.38.1",+ "@typescript-eslint/parser": "^5.38.1",+ "eslint": "^8.24.0",+ "eslint-config-prettier": "^8.5.0",+ "eslint-plugin-prettier": "^4.2.1",+ "eslint-plugin-unused-imports": "^2.0.0",+ "prettier": "^2.7.1",+ "tsup": "^6.5.0",+ "typescript": "^4.9.3"+ },+ "files": [+ "dist",+ "LICENSE",+ "README",+ "package.json"+ ],+ "bin": {+ "dbk": "dist/index.js",+ "devbook": "dist/index.js",+ "devbookctl": "dist/index.js",+ "dbkctl": "dist/index.js",+ "e2b": "dist/index.js",+ "E2B": "dist/index.js",+ "E2b": "dist/index.js",+ "etob": "dist/index.js",+ "EtoB": "dist/index.js",+ "Etob": "dist/index.js"+ },+ "dependencies": {+ "@devbookhq/sdk": "workspace:*",+ "@iarna/toml": "^2.2.5",+ "@nodelib/fs.walk": "^1.2.8",+ "boxen": "^7.0.0",+ "chalk": "^5.1.2",+ "chokidar": "^3.5.3",+ "commander": "^9.4.1",+ "docker-names": "^1.2.1",+ "inquirer": "^8.0.0",+ "parse-gitignore": "^2.0.0",+ "update-notifier": "5.1.0",+ "yup": "^0.32.11"+ },+ "engines": {+ "node": "~16"+ }+}\ No newline at end of filediff --git a/packages/cli/prettier.config.cjs b/packages/cli/prettier.config.cjsnew file mode 100644index 000000000..821108b58--- /dev/null+++ b/packages/cli/prettier.config.cjs@@ -0,0 +1,12 @@+module.exports = {+ singleQuote: true,+ tabWidth: 2,+ semi: false,+ arrowParens: 'avoid',+ trailingComma: 'all',+ singleAttributePerLine: true,+ importOrder: ['<THIRD_PARTY_MODULES>', '^[./]'],+ importOrderSeparation: true,+ importOrderSortSpecifiers: true,+ printWidth: 90,+}diff --git a/packages/cli/src/api.ts b/packages/cli/src/api.tsnew file mode 100644index 000000000..58a884d82--- /dev/null+++ b/packages/cli/src/api.ts@@ -0,0 +1,36 @@+import * as sdk from '@devbookhq/sdk'+import * as boxen from 'boxen'++import { asBold } from './utils/format'++const client: sdk.ClientType = sdk.api++// client.configure({+// baseUrl: 'http://localhost:3000',+// })++const apiKey = process.env.DEVBOOK_KEY++export function ensureAPIKey() {+ if (!apiKey) {+ const errorBox = boxen.default(+ `Cannot find env var ${asBold(+ 'DEVBOOK_KEY',+ )}\n\nVisit https://dash.usedevbook.com/settings to get your API key then run this CLI with the env var set.`,+ {+ width: 70,+ float: 'center',+ padding: 0.5,+ margin: 1,+ borderStyle: 'round',+ borderColor: 'redBright',+ },+ )+ console.error(errorBox)+ process.exit(1)+ } else {+ return apiKey+ }+}++export { client, apiKey }diff --git a/packages/cli/src/arguments.ts b/packages/cli/src/arguments.tsnew file mode 100644index 000000000..78c9cd4ee--- /dev/null+++ b/packages/cli/src/arguments.ts@@ -0,0 +1,12 @@+import * as commander from 'commander'+import { asBold } from './utils/format'++export const idArgument = new commander.Argument(+ '[id]',+ `Use environment specified by ${asBold('[id]')}`,+)++export const idsArgument = new commander.Argument(+ '[ids...]',+ `Use environments specified by ${asBold('[ids...]')}`,+)diff --git a/packages/cli/src/commands/env/connect.ts b/packages/cli/src/commands/env/connect.tsnew file mode 100644index 000000000..d5c3a984b--- /dev/null+++ b/packages/cli/src/commands/env/connect.ts@@ -0,0 +1,107 @@+import * as sdk from '@devbookhq/sdk'+import * as commander from 'commander'++import { ensureAPIKey } from 'src/api'+import { idArgument } from 'src/arguments'+import { getPromptEnv, getRootEnv } from 'src/interactions/envs'+import { pathOption, selectOption } from 'src/options'+import { getRoot } from 'src/utils/filesystem'+import {+ asBold,+ asFormattedEnvironment,+ asFormattedError,+ asLocalRelative,+} from 'src/utils/format'+import { spawnConnectedTerminal } from 'src/terminal'+import { listEnvironments } from './list'++export const connectCommand = new commander.Command('connect')+ .description('Connect terminal to environment')+ .addArgument(idArgument)+ .addOption(selectOption)+ .addOption(pathOption)+ .alias('cn')+ .option('-P, --published', 'Connect to new instance of published environment')+ .option(+ '-L, --local-debug',+ 'Connect to existing local environment instance for debugging',+ )+ .action(async (id, opts) => {+ try {+ const apiKey = opts.published ? undefined : ensureAPIKey()+ const root = getRoot(opts.path)++ if (opts.localDebug) {+ await connectEnvironment({ local: true, config: { id: 'local-debug' } })+ return+ }++ let env: sdk.components['schemas']['Environment'] | undefined+ if (id) {+ env = { id }+ } else if (opts.select) {+ const apiKey = ensureAPIKey()+ const envs = await listEnvironments({ apiKey })+ env = await getPromptEnv(envs, 'Select environment to connect to')+ } else {+ env = await getRootEnv(root)+ }++ if (!env) {+ console.log(`No environments found in ${asLocalRelative(root)}`)+ return+ }++ await connectEnvironment({ apiKey, config: env, published: !!opts.published })+ // We explicitly call exit because the session is keeping the program alive.+ // We also don't want to call session.close because that would disconnect other users from the edit session.+ process.exit(0)+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function connectEnvironment({+ apiKey,+ config,+ published,+ local,+}: {+ apiKey?: string+ local?: boolean+ config: sdk.components['schemas']['Environment']+ published?: boolean+}) {+ const session = new sdk.Session({+ apiKey,+ editEnabled: !published,+ id: config.id,+ ...(local+ ? {+ __debug_devEnv: 'local',+ __debug_hostname: 'localhost',+ __debug_port: 49982,+ }+ : {}),+ })++ await session.open()++ if (session.terminal) {+ const { exited } = await spawnConnectedTerminal(+ session.terminal,+ `Terminal connected to environment ${asFormattedEnvironment(+ config,+ )}\nwith session URL ${asBold(`https://${session.getHostname()}`)}`,+ `Disconnecting terminal from environment ${asFormattedEnvironment(config)}`,+ )++ await exited+ console.log(+ `Closing terminal connection to environment ${asFormattedEnvironment(config)}`,+ )+ } else {+ throw new Error('Cannot start terminal - no session')+ }+}diff --git a/packages/cli/src/commands/env/create.ts b/packages/cli/src/commands/env/create.tsnew file mode 100644index 000000000..5b2c6ea44--- /dev/null+++ b/packages/cli/src/commands/env/create.ts@@ -0,0 +1,150 @@+import * as chalk from 'chalk'+import * as commander from 'commander'+import * as fs from 'fs'+import * as path from 'path'++import { client, ensureAPIKey } from 'src/api'+import {+ configName,+ configSchema,+ DevbookConfig,+ getConfigPath,+ randomTitle,+ saveConfig,+} from 'src/config'+import { templates } from 'src/config/template'+import { pathOption } from 'src/options'+import { ensureDir, getRoot } from 'src/utils/filesystem'+import {+ asTemplate,+ asBold,+ asFormattedEnvironment,+ asFormattedError,+ asLocal,+ asLocalRelative,+} from 'src/utils/format'++export const createCommand = new commander.Command('create')+ .description(`Create new environment and ${asLocal(configName)} config`)+ .option(+ '-T, --template <template>',+ `Use ${asBold('<template>')} as a base for the environment`,+ )+ .option('-t, --title <title>', `Use ${asBold('<title>')} as environment title`)+ .option('-n, --no-config', `Skip creating ${asLocal(configName)} config`)+ .addOption(pathOption)+ .alias('cr')+ .action(async opts => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)+ const configPath = getConfigPath(root)++ let template = opts.template as string | undefined+ let title = opts.title as string | undefined++ if (opts.config) {+ if (fs.existsSync(configPath)) {+ throw new Error(+ `Devbook config on path ${asLocalRelative(+ configPath,+ )} already exists - cannot create new config`,+ )+ }+ }++ const inquirer = await import('inquirer')+ if (!template) {+ const envsAnwsers = await inquirer.default.prompt([+ {+ name: 'template',+ message: chalk.default.underline('Choose base template for environment'),+ type: 'list',+ choices: templates,+ },+ ])+ template = envsAnwsers['template'] as string+ }++ if (!title) {+ const envsAnwsers = await inquirer.default.prompt([+ {+ name: 'title',+ message: chalk.default.underline('Choose title for environment'),+ type: 'input',+ default: path.basename(root),+ },+ ])+ title = (envsAnwsers['title'] as string | undefined) || randomTitle()+ }++ if (opts.config) {+ console.log(+ `Creating new environment titled "${title}" from ${asTemplate`[${template}]`} template with config ${asLocalRelative(+ configPath,+ )}`,+ )+ } else {+ console.log(+ `Creating new environment titled "${title}" from ${asTemplate`[${template}]`} template`,+ )+ }++ const config = await createEnvironment({+ template,+ title,+ apiKey,+ root,+ shouldSaveConfig: opts.config,+ })+ console.log(+ `Environment ${asFormattedEnvironment(+ config,+ opts.config ? configPath : undefined,+ )} created\n`,+ )+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function createEnvironment({+ template,+ title,+ apiKey,+ root,+ shouldSaveConfig,+}: {+ template: string+ title?: string+ root: string+ apiKey: string+ shouldSaveConfig: boolean+}): Promise<DevbookConfig> {+ const env = await createEnv({+ template,+ title,+ api_key: apiKey,+ })++ if (!env.ok) {+ throw new Error(+ `Failed to create new environment for template ${asTemplate`[${template}]`}`,+ )+ }++ const config = configSchema.cast(env.data) as DevbookConfig++ if (shouldSaveConfig) {+ await ensureDir(root)+ const configPath = getConfigPath(root)+ await saveConfig(configPath, config)+ }++ return config+}++const createEnv = client.path('/envs').method('post').create({ api_key: true })diff --git a/packages/cli/src/commands/env/delete.ts b/packages/cli/src/commands/env/delete.tsnew file mode 100644index 000000000..a2fd53e50--- /dev/null+++ b/packages/cli/src/commands/env/delete.ts@@ -0,0 +1,115 @@+import * as commander from 'commander'+import * as sdk from '@devbookhq/sdk'+import * as chalk from 'chalk'++import { client, ensureAPIKey } from 'src/api'+import { confirm } from 'src/interactions/confirm'+import { getPromptEnvs } from 'src/interactions/envs'+import { listEnvironments } from './list'+import {+ asFormattedEnvironment,+ asFormattedError,+ asLocal,+ asLocalRelative,+} from 'src/utils/format'+import { allOption, pathOption, selectMultipleOption } from 'src/options'+import { configName, deleteConfig, loadConfigs } from 'src/config'+import { getRoot } from 'src/utils/filesystem'+import { idsArgument } from 'src/arguments'++export const deleteCommand = new commander.Command('delete')+ .description(`Delete environment and ${asLocal(configName)} config`)+ .addArgument(idsArgument)+ .addOption(selectMultipleOption)+ .addOption(pathOption)+ .addOption(allOption)+ .alias('dl')+ .option(+ '-k, --keep-config',+ `Keep ${asLocal(configName)} config in local filesystem after deleting environment`,+ )+ .option('-y, --yes', 'Skip manual delete confirmation')+ .action(async (ids, opts) => {+ try {+ const apiKey = ensureAPIKey()++ const root = getRoot(opts.path)++ let envs:+ | (sdk.components['schemas']['Environment'] & { configPath?: string })[]+ | undefined++ if (ids.length > 0) {+ envs = ids.map((id: string) => ({ id }))++ if (!envs || envs.length === 0) {+ console.log('No environments selected')+ return+ }+ } else if (opts.select) {+ const allEnvs = await listEnvironments({ apiKey })+ envs = await getPromptEnvs(allEnvs, 'Select environments to delete')++ if (!envs || envs.length === 0) {+ console.log('No environments selected')+ return+ }+ } else {+ const localConfigs = await loadConfigs(root, opts.all)+ if (localConfigs.length > 0) {+ envs = localConfigs+ }+ if (!envs || envs.length === 0) {+ console.log(+ `No environments found in ${asLocalRelative(root)}${+ opts.all ? ' and its subdirectories' : ''+ }`,+ )+ return+ }+ }++ console.log(chalk.default.red(chalk.default.underline('\nEnvironments to delete')))+ envs.forEach(e => console.log(asFormattedEnvironment(e, e.configPath)))+ process.stdout.write('\n')++ if (!opts.yes) {+ const confirmed = await confirm(+ `Do you really want to delete ${+ envs.length === 1 ? 'this environment' : 'these environments'+ }?`,+ )++ if (!confirmed) {+ console.log('Canceled')+ return+ }+ }++ await Promise.all(+ envs.map(async e => {+ console.log(`- Deleting environment ${asFormattedEnvironment(e, e.configPath)}`)+ await deleteEnvironment({ apiKey, id: e.id })+ if (!opts.keepConfig && e.configPath) {+ await deleteConfig(e.configPath)+ }+ }),+ )+ process.stdout.write('\n')+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function deleteEnvironment({ id, apiKey }: { id: string; apiKey: string }) {+ await deleteEnv({+ api_key: apiKey,+ codeSnippetID: id,+ })+}++const deleteEnv = client+ .path('/envs/{codeSnippetID}')+ .method('delete')+ .create({ api_key: true })diff --git a/packages/cli/src/commands/env/index.ts b/packages/cli/src/commands/env/index.tsnew file mode 100644index 000000000..9509d9fae--- /dev/null+++ b/packages/cli/src/commands/env/index.ts@@ -0,0 +1,24 @@+import * as commander from 'commander'++import { deleteCommand } from './delete'+import { createCommand } from './create'+import { listCommand } from './list'+import { publishCommand } from './publish'+import { pushCommand } from './push'+import { connectCommand } from './connect'+import { useCommand } from './use'+import { asLocal } from 'src/utils/format'+import { configName } from 'src/config'+import { setCommand } from './set'++export const envCommand = new commander.Command('env')+ .description(`Manage Devbook environments and their ${asLocal(configName)} configs`)+ .addCommand(createCommand)+ .addCommand(pushCommand)+ .addCommand(publishCommand)+ .addCommand(deleteCommand)+ .addCommand(useCommand)+ .addCommand(connectCommand)+ .addCommand(listCommand)+ .addCommand(setCommand)+ .alias('environment')diff --git a/packages/cli/src/commands/env/list.ts b/packages/cli/src/commands/env/list.tsnew file mode 100644index 000000000..5ec461a94--- /dev/null+++ b/packages/cli/src/commands/env/list.ts@@ -0,0 +1,87 @@+import * as chalk from 'chalk'+import * as commander from 'commander'++import { client, ensureAPIKey } from 'src/api'+import { configName, getNestedConfigs, loadConfig } from 'src/config'+import { pathOption } from 'src/options'+import { getRoot } from 'src/utils/filesystem'+import { asFormattedEnvironment, asFormattedError, asLocal } from 'src/utils/format'+import { assertFulfilled, assertRejected } from 'src/utils/promise'+import { sortEnvs } from 'src/utils/sort'++export const listCommand = new commander.Command('list')+ .description('List available environments')+ .addOption(pathOption)+ .option(+ '-n, --no-local',+ `Don't scan local filesystem for environment ${asLocal(configName)} configs`,+ )+ .alias('ls')+ .action(async opts => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)++ const envsPromise = listEnvironments({ apiKey })+ const configsPromise = opts.local+ ? getNestedConfigs(root).then(configPaths =>+ Promise.allSettled(+ configPaths.map(async c => ({+ config: await loadConfig(c.path),+ configPath: c.path,+ })),+ ),+ )+ : Promise.resolve([])++ const [envs, configs] = await Promise.all([envsPromise, configsPromise])++ const fulfilledConfigs = configs.filter(assertFulfilled)++ console.log(chalk.default.underline(chalk.default.green('Environments')))++ envs.sort(sortEnvs).forEach(env => {+ const configIdx = fulfilledConfigs.findIndex(c => c.value.config.id === env.id)++ const config =+ configIdx > -1 ? fulfilledConfigs.splice(configIdx, 1).pop() : undefined++ console.log(asFormattedEnvironment(env, config?.value.configPath))+ })++ const rejectedConfigs = configs.filter(assertRejected)+ if (rejectedConfigs.length > 0) {+ rejectedConfigs.forEach(c => {+ console.error(asFormattedError(c.reason))+ })+ }++ if (fulfilledConfigs.length > 0) {+ console.log(+ chalk.default.underline(+ chalk.default.red('\nConfigs without existing environments'),+ ),+ )+ fulfilledConfigs.forEach(c => {+ console.log(asFormattedEnvironment(c.value.config, c.value.configPath))+ })+ }++ process.stdout.write('\n')+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function listEnvironments({ apiKey }: { apiKey: string }) {+ const result = await listEnvs({+ api_key: apiKey,+ })++ return result.data+}++const listEnvs = client.path('/envs').method('get').create()diff --git a/packages/cli/src/commands/env/publish.ts b/packages/cli/src/commands/env/publish.tsnew file mode 100644index 000000000..feb669650--- /dev/null+++ b/packages/cli/src/commands/env/publish.ts@@ -0,0 +1,90 @@+import * as sdk from '@devbookhq/sdk'+import * as commander from 'commander'++import { client, ensureAPIKey } from 'src/api'+import { idsArgument } from 'src/arguments'+import { loadConfigs } from 'src/config'+import { getPromptEnvs } from 'src/interactions/envs'+import { allOption, pathOption, selectMultipleOption } from 'src/options'+import { getRoot } from 'src/utils/filesystem'+import {+ asFormattedEnvironment,+ asFormattedError,+ asLocalRelative,+} from 'src/utils/format'+import { listEnvironments } from './list'++export const publishCommand = new commander.Command('publish')+ .description('Make latest version of environment publicly available')+ .addArgument(idsArgument)+ .addOption(selectMultipleOption)+ .addOption(pathOption)+ .addOption(allOption)+ .alias('pb')+ .action(async (ids, opts) => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)++ let envs:+ | (sdk.components['schemas']['Environment'] & { configPath?: string })[]+ | undefined++ if (ids.length > 0) {+ envs = ids.map((id: string) => ({ id }))++ if (!envs || envs.length === 0) {+ console.log('No environments selected')+ return+ }+ } else if (opts.select) {+ const allEnvs = await listEnvironments({ apiKey })+ envs = await getPromptEnvs(allEnvs, 'Select environments to publish')++ if (!envs || envs.length === 0) {+ console.log('No environments selected')+ return+ }+ } else {+ const localConfigs = await loadConfigs(root, opts.all)+ if (localConfigs.length > 0) {+ envs = localConfigs+ }+ if (!envs || envs.length === 0) {+ console.log(+ `No environments found in ${asLocalRelative(root)}${+ opts.all ? ' and its subdirectories' : ''+ }`,+ )+ return+ }+ }++ await Promise.all(+ envs.map(async e => {+ console.log(+ `- Publishing environment ${asFormattedEnvironment(e, e.configPath)}`,+ )+ await publishEnvironment({ apiKey, id: e.id })+ }),+ )+ process.stdout.write('\n')+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function publishEnvironment({ id, apiKey }: { id: string; apiKey: string }) {+ await publishEnv({+ api_key: apiKey,+ codeSnippetID: id,+ })+}++const publishEnv = client+ .path('/envs/{codeSnippetID}')+ .method('patch')+ .create({ api_key: true })diff --git a/packages/cli/src/commands/env/push.ts b/packages/cli/src/commands/env/push.tsnew file mode 100644index 000000000..3af5ffb24--- /dev/null+++ b/packages/cli/src/commands/env/push.ts@@ -0,0 +1,189 @@+import * as sdk from '@devbookhq/sdk'+import * as chalk from 'chalk'+import * as commander from 'commander'+import { existsSync } from 'fs'+import * as fsPromise from 'fs/promises'+import * as path from 'path'++import { client, ensureAPIKey } from 'src/api'+import { DevbookConfig, configName, saveConfig, loadConfigs } from 'src/config'+import { allOption, pathOption } from 'src/options'+import { getFiles, getRoot } from 'src/utils/filesystem'+import {+ asDim,+ asFormattedEnvironment,+ asFormattedError,+ asEnv,+ asLocal,+ asLocalRelative,+} from 'src/utils/format'+import { getFilesHash } from 'src/utils/hashing'++export const pushCommand = new commander.Command('push')+ .description(`Update files in environment according to ${asLocal(configName)} config`)+ .addOption(allOption)+ .addOption(pathOption)+ .option('-h, --hash', 'Update files only if their hash changed since last push')+ .alias('ps')+ .action(async opts => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)++ const configs = await loadConfigs(root, opts.all)++ if (configs.length === 0) {+ console.log(+ `No environments found in ${asLocalRelative(root)}${+ opts.all ? ' and its subdirectories' : ''+ }`,+ )+ return+ }++ await Promise.all(+ configs.map(async config => {+ console.log(+ `- Pushing environment ${asFormattedEnvironment(config, config.configPath)}`,+ )+ await pushEnvironment({+ apiKey,+ root: path.dirname(config.configPath),+ config,+ configPath: config.configPath,+ hash: opts.hash,+ })+ }),+ )+ process.stdout.write('\n')+ // We explicitly call exit because the session is keeping the program alive.+ // We also don't want to call session.close because that would disconnect other users from the edit session.+ process.exit(0)+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function pushEnvironment({+ apiKey,+ root,+ config,+ hash,+ configPath,+}: {+ apiKey: string+ root: string+ configPath: string+ config: DevbookConfig+ hash?: boolean+}): Promise<DevbookConfig> {+ try {+ await updateEnvTitle({+ api_key: apiKey,+ codeSnippetID: config.id,+ title: config.title,+ })+ } catch (err: any) {+ throw new Error(+ `Error updating environment from config ${asLocalRelative(configPath)}: ${+ err.message+ }`,+ )+ }++ try {+ const envFilesDir = path.join(root, config.filesystem.local_root)++ if (!existsSync(envFilesDir)) {+ throw new Error(+ `Directory ${asLocalRelative(+ envFilesDir,+ )} defined in "filesystem.local_root" field in ${asLocalRelative(+ configPath,+ )} config does not exist`,+ )+ }++ const filePaths = await getFiles(envFilesDir)++ let newChangeHash: string | undefined++ if (filePaths.length > 0) {+ console.log(+ ' ',+ chalk.default.underline(+ `Syncing ${filePaths.length} ${+ filePaths.length === 1 ? 'file' : 'files'+ } from ${asLocalRelative(envFilesDir)} directory`,+ ),+ )++ const files = await Promise.all(+ filePaths.map(async f => {+ const content = await fsPromise.readFile(f.path, 'utf-8')+ return {+ ...f,+ content,+ }+ }),+ )++ if (hash) {+ newChangeHash = getFilesHash(files)++ if (config.filesystem.change_hash === newChangeHash) {+ console.log(` Directory ${asLocalRelative(envFilesDir)} is already in sync`)+ return config+ }+ }++ const session = new sdk.Session({+ apiKey,+ editEnabled: true,+ id: config.id,+ })++ // TODO: Delete files that should not be in the final destination++ await session.open()+ await Promise.all(+ files.map(async f => {+ const content = await fsPromise.readFile(f.path, 'utf-8')+ console.log(+ ` - ${asLocalRelative(f.path)} ${asDim('(local)')} ${asDim('-->')} ${asEnv(+ f.rootPath,+ )} ${asDim('(env)')}`,+ )+ await session.filesystem?.makeDir(path.dirname(f.rootPath))+ await session.filesystem?.write(f.rootPath, content)+ }),+ )+ }++ const newConfig = {+ ...config,+ filesystem: {+ ...config.filesystem,+ change_hash: config.filesystem.change_hash || newChangeHash,+ },+ }++ await saveConfig(configPath, newConfig, true)++ return newConfig+ } catch (err: any) {+ throw new Error(+ `Error updating environment from config ${asLocalRelative(configPath)}: ${+ err.message+ }`,+ )+ }+}++const updateEnvTitle = client+ .path('/envs/{codeSnippetID}/title')+ .method('put')+ .create({ api_key: true })diff --git a/packages/cli/src/commands/env/set.ts b/packages/cli/src/commands/env/set.tsnew file mode 100644index 000000000..399f6ee19--- /dev/null+++ b/packages/cli/src/commands/env/set.ts@@ -0,0 +1,131 @@+import * as sdk from '@devbookhq/sdk'+import * as chalk from 'chalk'+import * as commander from 'commander'++import { ensureAPIKey } from 'src/api'+import { idArgument } from 'src/arguments'+import { getPromptEnv, getRootEnv } from 'src/interactions/envs'+import { pathOption, selectOption } from 'src/options'+import { getRoot } from 'src/utils/filesystem'+import {+ asBold,+ asFormattedEnvironment,+ asFormattedError,+ asLocalRelative,+} from 'src/utils/format'+import { listEnvironments } from './list'++const envVarScriptPath = '/etc/profile.d/env-vars.sh'++export const setCommand = new commander.Command('set')+ .description('Set env vars in environment')+ .addArgument(idArgument)+ .addOption(selectOption)+ .addOption(pathOption)+ .option(+ '-e, --env-vars <KEY=VALUE...>',+ `Set provided ${asBold('<KEY=VALUE...>')} pairs as env vars in environment`,+ )+ .alias('st')+ .action(async (id, opts) => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)+ let isLocal = false++ let env: sdk.components['schemas']['Environment'] | undefined+ if (id) {+ env = { id }+ } else if (opts.select) {+ const envs = await listEnvironments({ apiKey })+ env = await getPromptEnv(envs, 'Select environment to set vars in')+ } else {+ env = await getRootEnv(root)+ if (env) {+ isLocal = true+ }+ }++ if (!env) {+ console.log(`No environments found in ${asLocalRelative(root)}`)+ return+ }++ if (!opts.envVars || opts.envVars.length === 0) {+ console.log('No env vars provided')+ return+ }++ const invalidEnvVars = (opts.envVars as string[]).filter(e => e.indexOf('=') === -1)+ if (invalidEnvVars.length > 0) {+ console.log(+ chalk.default.underline(+ `The following ${+ invalidEnvVars.length === 1 ? 'env var is' : 'env vars are'+ } missing ${asBold('=')} betwen the ${asBold('KEY')} and ${asBold('VALUE')}:`,+ ),+ )++ invalidEnvVars.forEach(e =>+ console.log('- ' + chalk.default.bold(chalk.default.red(e)) + '\n'),+ )++ return+ }++ console.log(+ `Setting ${opts.envVars.length} env ${+ opts.envVars.length === 1 ? 'var' : 'vars'+ } in environment ${asFormattedEnvironment(env, isLocal ? root : undefined)}`,+ )++ await setEnvVars({+ apiKey,+ config: env,+ published: !!opts.published,+ envVars: opts.envVars,+ })++ console.log(+ `${opts.envVars.length} env ${+ opts.envVars.length === 1 ? 'var' : 'vars'+ } in environment ${asFormattedEnvironment(+ env,+ isLocal ? root : undefined,+ )} set\n`,+ )++ // We explicitly call exit because the session is keeping the program alive.+ // We also don't want to call session.close because that would disconnect other users from the edit session.+ process.exit(0)+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function setEnvVars({+ apiKey,+ config,+ envVars,+ published,+}: {+ envVars: string[]+ apiKey: string+ config: sdk.components['schemas']['Environment']+ published: boolean+}) {+ const session = new sdk.Session({+ apiKey,+ editEnabled: !published,+ id: config.id,+ })++ await session.open()++ const envsString = envVars.map(envVar => `export ${envVar}`).join('\n')++ await session.filesystem?.write(envVarScriptPath, envsString)+}diff --git a/packages/cli/src/commands/env/use.ts b/packages/cli/src/commands/env/use.tsnew file mode 100644index 000000000..91a1c4549--- /dev/null+++ b/packages/cli/src/commands/env/use.ts@@ -0,0 +1,91 @@+import * as sdk from '@devbookhq/sdk'+import * as commander from 'commander'+import * as fs from 'fs'++import { ensureAPIKey } from 'src/api'+import {+ configSchema,+ DevbookConfig,+ saveConfig,+ configName,+ getConfigPath,+} from 'src/config'+import { listEnvironments } from './list'+import { getRoot, ensureDir } from 'src/utils/filesystem'+import { pathOption, selectOption } from 'src/options'+import { getPromptEnv } from 'src/interactions/envs'+import {+ asFormattedEnvironment,+ asFormattedError,+ asLocal,+ asLocalRelative,+} from 'src/utils/format'+import { idArgument } from 'src/arguments'++export const useCommand = new commander.Command('use')+ .description(`Create ${asLocal(configName)} config for existing environment`)+ .addArgument(idArgument)+ .addOption(selectOption)+ .alias('us')+ .addOption(pathOption)+ .action(async (id, opts) => {+ try {+ const apiKey = ensureAPIKey()+ process.stdout.write('\n')++ const root = getRoot(opts.path)++ const configPath = getConfigPath(root)+ if (fs.existsSync(configPath)) {+ throw new Error(+ `Devbook config ${asLocalRelative(+ configPath,+ )} already exists - cannot create config`,+ )+ }++ let env: sdk.components['schemas']['Environment'] | undefined+ const envs = await listEnvironments({ apiKey })+ if (id) {+ env = envs.find(e => e.id === id)+ } else {+ env = await getPromptEnv(+ envs,+ `Select environment to create ${asLocalRelative(configPath)} config for`,+ )+ }++ if (!env) {+ console.log('No environments found')+ return+ }++ console.log(+ `Creating config for environment ${asFormattedEnvironment(env, configPath)}`,+ )++ await ensureDir(root)+ await useEnvironment({+ configPath,+ env,+ })+ console.log(+ `Config for environment ${asFormattedEnvironment(env, configPath)} created`,+ )+ process.stdout.write('\n')+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ process.exit(1)+ }+ })++export async function useEnvironment({+ configPath,+ env,+}: {+ configPath: string+ env: sdk.components['schemas']['Environment']+}) {+ const configWithDefaults = configSchema.cast(env) as DevbookConfig+ await saveConfig(configPath, configWithDefaults)+}diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.tsnew file mode 100644index 000000000..6d6a9a0fe--- /dev/null+++ b/packages/cli/src/commands/index.ts@@ -0,0 +1,9 @@+import * as commander from 'commander'++import { runCommand } from './run'+import { envCommand } from './env'++export const program = new commander.Command()+ .description('Tool for interacting with Devbook from command line')+ .addCommand(runCommand, { hidden: true })+ .addCommand(envCommand, { isDefault: true })diff --git a/packages/cli/src/commands/run.ts b/packages/cli/src/commands/run.tsnew file mode 100644index 000000000..18c0af5bd--- /dev/null+++ b/packages/cli/src/commands/run.ts@@ -0,0 +1,244 @@+import * as sdk from '@devbookhq/sdk'+import * as commander from 'commander'+import chokidar from 'chokidar'+import fs from 'fs/promises'+import path from 'path'+import parseGitignore from 'parse-gitignore'++import { DevbookConfig } from 'src/config'+import { pathOption } from 'src/options'+import { spawnConnectedTerminal } from 'src/terminal'+import { getRoot } from 'src/utils/filesystem'+import { asFormattedEnvironment, asFormattedError, asBold } from 'src/utils/format'+import { createDeferredPromise } from 'src/utils/promise'++const rootdir = '/code'+const envID = 'QFNlQVCzcKxD'++export const runCommand = new commander.Command('run')+ .description('Start remote development')+ .addOption(pathOption)+ .alias('rn')+ .action(async opts => {+ let stopSyncing: (() => Promise<void>) | undefined+ try {+ process.stdout.write('\n')++ const root = getRoot(opts.path)+ const config: Pick<DevbookConfig, 'id'> = { id: envID }++ const session = new sdk.Session({+ id: config.id,+ })++ await session.open()++ stopSyncing = await keepEnvironmentInSync({+ root,+ filesystem: session.filesystem,+ })++ await startDevelopment({ session, config })++ process.stdout.write('\n')+ // We explicitly call exit because the session is keeping the program alive.+ // We also don't want to call session.close because that would disconnect other users from the edit session.+ await stopSyncing?.()+ process.exit(0)+ } catch (err: any) {+ console.error(asFormattedError(err.message))+ await stopSyncing?.()+ process.exit(1)+ }+ })++export async function startDevelopment({+ session,+ config,+}: {+ session: sdk.Session+ config: Pick<DevbookConfig, 'id'>+}) {+ if (session.terminal) {+ const { exited } = await spawnConnectedTerminal(+ session.terminal,+ `Terminal connected to environment ${asFormattedEnvironment(+ config,+ )}\nwith session URL ${asBold(`https://${session.getHostname()}`)}`,+ `Disconnecting terminal from environment ${asFormattedEnvironment(config)}`,+ )++ await exited+ console.log(+ `Closing terminal connection to environment ${asFormattedEnvironment(config)}`,+ )+ } else {+ throw new Error('Cannot start terminal - no session')+ }+}++const defaultIgnoredPaths = [+ 'node_modules',+ '.venv',+ '.git',+ '__pycache__',+ '.DS_Store',+ '.vscode',+ '.idea',+]++async function ensureDirPath({+ root,+ dirPath,+ filesystem,+}: {+ root: string+ dirPath: string+ filesystem: sdk.FilesystemManager+}) {+ const dirs = dirPath+ .split(path.delimiter)+ .reduce(+ (paths, dirName) => {+ paths.push(path.join(paths[paths.length - 1], dirName))+ return paths+ },+ [root],+ )+ .slice(1)++ for (const dir of dirs) {+ await filesystem.makeDir(dir)+ }+}++export async function keepEnvironmentInSync({+ root,+ filesystem,+}: {+ root: string+ filesystem?: sdk.FilesystemManager+}) {+ if (!filesystem) {+ throw new Error('Session filesystem is not available')+ }++ let ignored = defaultIgnoredPaths++ try {+ const gitignore = await fs.readFile(path.join(root, '.gitignore'), 'utf-8')+ const patterns = parseGitignore(gitignore)+ ignored = (patterns as any).patterns+ } catch (err) {+ console.error(err)+ }++ const initialized = createDeferredPromise()++ const fsStack: (() => Promise<void>)[] = []++ async function processStackItem() {+ const item = fsStack.shift()+ console.log('processing stack item', item)+ if (item) {+ await item()+ }+ }++ const watcher = chokidar+ .watch('.', {+ persistent: true,+ ignored,+ // Upload the initial files (chokidar has option for this)+ ignoreInitial: false,+ followSymlinks: true,+ cwd: root,+ disableGlobbing: false,++ usePolling: false,+ interval: 100,+ binaryInterval: 300,+ alwaysStat: false,+ depth: 99,+ awaitWriteFinish: {+ stabilityThreshold: 2000,+ pollInterval: 100,+ },+ ignorePermissionErrors: false,+ atomic: true, // or a custom 'atomicity delay', in milliseconds (default 100)+ })+ .on('ready', () => {+ console.log('ready')+ initialized.resolve()+ })+ .on('change', async p => {+ console.log('change', p)+ const handleChange = async () => {+ try {+ const content = await fs.readFile(path.join(root, p), 'utf-8')+ await ensureDirPath({ root: rootdir, dirPath: path.dirname(p), filesystem })+ await filesystem.write(path.join(rootdir, p), content)+ } catch (err) {+ console.error(err)+ }+ }+ fsStack.push(handleChange)+ processStackItem()+ })+ .on('add', async p => {+ console.log('add', p)++ const handleAdd = async () => {+ try {+ const content = await fs.readFile(path.join(root, p), 'utf-8')+ await ensureDirPath({ root: rootdir, dirPath: path.dirname(p), filesystem })+ await filesystem.write(path.join(rootdir, p), content)+ } catch (err) {+ console.error(err)+ }+ }+ fsStack.push(handleAdd)+ processStackItem()+ })+ .on('addDir', async p => {+ console.log('addDir', p)+ const handleAddDir = async () => {+ try {+ await ensureDirPath({ root, dirPath: path.dirname(p), filesystem })+ await filesystem.makeDir(path.join(rootdir, p))+ } catch (err) {+ console.error(err)+ }+ }+ fsStack.push(handleAddDir)+ processStackItem()+ })+ .on('unlink', async p => {+ console.log('unlink', p)+ const handleUnlink = async () => {+ try {+ await filesystem.remove(path.join(rootdir, p))+ } catch (err) {+ console.error(err)+ }+ }+ fsStack.push(handleUnlink)+ processStackItem()+ })+ .on('unlinkDir', async p => {+ console.log('unlinkDir', p)+ const handleUnlinkDir = async () => {+ try {+ await filesystem.remove(path.join(rootdir, p))+ } catch (err) {+ console.error(err)+ }+ }+ fsStack.push(handleUnlinkDir)+ processStackItem()+ })++ await initialized.promise++ return () => watcher.close()+}diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.tsnew file mode 100644index 000000000..bff547d56--- /dev/null+++ b/packages/cli/src/config/index.ts@@ -0,0 +1,109 @@+import * as yup from 'yup'+import * as toml from '@iarna/toml'+import * as fsPromise from 'fs/promises'+import * as fs from 'fs'+import * as path from 'path'++// eslint-disable-next-line @typescript-eslint/no-var-requires+const dockerNames = require('docker-names')++import { getFiles } from '../utils/filesystem'+import { asFormattedEnvironment, asLocalRelative } from 'src/utils/format'++export const configName = 'dbk.toml'++const configCommentHeader = `# This is a config for a Devbook environment++`++export function randomTitle() {+ return dockerNames.getRandomName().replace('_', '-')+}++export const configSchema = yup.object({+ id: yup.string().required(),+ template: yup.string().required(),+ title: yup.string().default(randomTitle),+ filesystem: yup.object({+ change_hash: yup.string(),+ local_root: yup.string().required().default('./files'),+ }),+})++export type DevbookConfig = yup.InferType<typeof configSchema>++export async function loadConfig(configPath: string) {+ try {+ const configExists = fs.existsSync(configPath)+ if (!configExists) {+ throw new Error(`Config on path ${asLocalRelative(configPath)} not found`)+ }++ const tomlRaw = await fsPromise.readFile(configPath, 'utf-8')+ const config = toml.parse(tomlRaw)+ return (await configSchema.validate(config)) as DevbookConfig+ } catch (err: any) {+ throw new Error(+ `Devbook environment config ${asLocalRelative(configPath)} cannot be loaded: ${+ err.message+ }`,+ )+ }+}++export async function saveConfig(+ configPath: string,+ config: DevbookConfig,+ overwrite?: boolean,+) {+ try {+ if (!overwrite) {+ const configExists = fs.existsSync(configPath)+ if (configExists) {+ throw new Error(`Config already exists on path ${asLocalRelative(configPath)}`)+ }+ }++ const validatedConfig: any = await configSchema.validate(config, {+ stripUnknown: true,+ })++ const tomlRaw = toml.stringify(validatedConfig)+ await fsPromise.writeFile(configPath, configCommentHeader + tomlRaw)+ } catch (err: any) {+ throw new Error(+ `Devbook environment config ${asFormattedEnvironment(+ config,+ configPath,+ )} cannot be saved: ${err.message}`,+ )+ }+}++export async function deleteConfig(configPath: string) {+ await fsPromise.unlink(configPath)+}++export function getConfigPath(root: string) {+ return path.join(root, configName)+}++export async function getNestedConfigs(rootPath: string) {+ return getFiles(rootPath, { name: configName })+}++export async function loadConfigs(rootPath: string, nested?: boolean) {+ const configPaths = nested+ ? (await getNestedConfigs(rootPath)).map(c => c.path)+ : [getConfigPath(rootPath)]++ return Promise.all(+ configPaths.map(async configPath => {+ const config = await loadConfig(configPath)+ return {+ ...config,+ configPath,+ }+ }),+ )+}diff --git a/packages/cli/src/config/template.ts b/packages/cli/src/config/template.tsnew file mode 100644index 000000000..b2f03ee2e--- /dev/null+++ b/packages/cli/src/config/template.ts@@ -0,0 +1,23 @@+import * as sdk from '@devbookhq/sdk'++import { notEmpty } from '../utils/notEmpty'++export type Template = sdk.components['schemas']['Template']++type Templates = { [key in Template]: boolean }++const enabledTemplates: Templates = {+ Bash: true,+ Go: true,+ Nodejs: true,+ Python3: true,+ Rust: true,+ Java: true,+ Perl: true,+ PHP: true,+ DotNET: true,+}++export const templates = Object.entries(enabledTemplates)+ .map(([k, v]) => (v ? k : undefined))+ .filter(notEmpty)diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsnew file mode 100644index 000000000..2b2fa5d04--- /dev/null+++ b/packages/cli/src/index.ts@@ -0,0 +1,11 @@+#!/usr/bin/env node++import * as updateNotifier from 'update-notifier'++import { program } from './commands/index'++import * as packageJSON from '../package.json'++updateNotifier.default({ pkg: packageJSON }).notify()++program.version(packageJSON.version, undefined, 'Display Devbook CLI version').parse()diff --git a/packages/cli/src/interactions/confirm.ts b/packages/cli/src/interactions/confirm.tsnew file mode 100644index 000000000..5514018b9--- /dev/null+++ b/packages/cli/src/interactions/confirm.ts@@ -0,0 +1,13 @@+export async function confirm(text: string, defaultAnwser = false) {+ const inquirer = await import('inquirer')+ const confirmAnswers = await inquirer.default.prompt([+ {+ name: 'confirm',+ type: 'confirm',+ default: defaultAnwser,+ message: text,+ },+ ])++ return confirmAnswers['confirm'] as boolean+}diff --git a/packages/cli/src/interactions/envs.ts b/packages/cli/src/interactions/envs.tsnew file mode 100644index 000000000..e6bc94ee4--- /dev/null+++ b/packages/cli/src/interactions/envs.ts@@ -0,0 +1,57 @@+import * as sdk from '@devbookhq/sdk'+import * as chalk from 'chalk'+import * as fs from 'fs'++import { getConfigPath, loadConfig } from 'src/config'+import { sortEnvs } from 'src/utils/sort'+import { asFormattedEnvironment } from 'src/utils/format'++export async function getPromptEnv(+ envs: sdk.components['schemas']['Environment'][],+ text: string,+) {+ const inquirer = await import('inquirer')+ const envsAnwsers = await inquirer.default.prompt([+ {+ name: 'env',+ message: chalk.default.underline(text),+ type: 'list',+ pageSize: 50,+ choices: envs.sort(sortEnvs).map(e => ({+ name: asFormattedEnvironment(e),+ value: e,+ })),+ },+ ])++ return envsAnwsers['env'] as sdk.components['schemas']['Environment']+}++export async function getPromptEnvs(+ envs: sdk.components['schemas']['Environment'][],+ text: string,+) {+ const inquirer = await import('inquirer')+ const envsAnwsers = await inquirer.default.prompt([+ {+ name: 'envs',+ message: chalk.default.underline(text),+ type: 'checkbox',+ pageSize: 50,+ choices: envs.sort(sortEnvs).map(e => ({+ name: asFormattedEnvironment(e),+ value: e,+ })),+ },+ ])++ return envsAnwsers['envs'] as sdk.components['schemas']['Environment'][]+}++export async function getRootEnv(root: string) {+ const configPath = getConfigPath(root)++ if (fs.existsSync(configPath)) {+ return loadConfig(configPath)+ }+}diff --git a/packages/cli/src/options.ts b/packages/cli/src/options.tsnew file mode 100644index 000000000..6f767155e--- /dev/null+++ b/packages/cli/src/options.ts@@ -0,0 +1,22 @@+import { Option } from 'commander'+import { asBold } from './utils/format'++export const allOption = new Option(+ '-a, --all',+ 'Call this command in all subdirectories',+)++export const selectOption = new Option(+ '-s, --select',+ 'Select environment from interactive list',+)++export const selectMultipleOption = new Option(+ '-s, --select',+ 'Select environments from interactive list',+)++export const pathOption = new Option(+ '-p, --path <path>',+ `Call this command in ${asBold('<path>')} directory`,+)diff --git a/packages/cli/src/terminal.ts b/packages/cli/src/terminal.tsnew file mode 100644index 000000000..63bd6a992--- /dev/null+++ b/packages/cli/src/terminal.ts@@ -0,0 +1,56 @@+import * as sdk from '@devbookhq/sdk'++import { createDeferredPromise } from './utils/promise'++function getStdoutSize() {+ return {+ cols: process.stdout.columns,+ rows: process.stdout.rows,+ }+}++export async function spawnConnectedTerminal(+ manager: sdk.TerminalManager,+ introText: string,+ exitText: string,+) {+ const { promise: exited, resolve: onExit } = createDeferredPromise()++ // Clear local terminal emulator before starting terminal+ // process.stdout.write('\x1b[2J\x1b[0f')++ console.log(introText)++ const terminal = await manager.createSession({+ onData: data => process.stdout.write(data),+ size: getStdoutSize(),+ onExit,+ envVars: {+ TERM: 'xterm-256color',+ },+ })++ process.stdin.setEncoding('utf8')+ process.stdin.setRawMode(true)++ process.stdout.setEncoding('utf8')++ const resizeListener = process.stdout.on('resize', () =>+ terminal.resize(getStdoutSize()),+ )++ const stdinListener = process.stdin.on('data', data =>+ terminal.sendData(data.toString('utf8')),+ )++ exited.then(() => {+ console.log(exitText)+ resizeListener.destroy()+ stdinListener.destroy()+ })++ return {+ destroy: terminal.destroy.bind(terminal),+ exited,+ }+}diff --git a/packages/cli/src/utils/filesystem.ts b/packages/cli/src/utils/filesystem.tsnew file mode 100644index 000000000..7ea0c928a--- /dev/null+++ b/packages/cli/src/utils/filesystem.ts@@ -0,0 +1,57 @@+import * as fsWalk from '@nodelib/fs.walk'+import * as path from 'path'+import * as util from 'util'+import * as fsPromise from 'fs/promises'+import * as fs from 'fs'++const walk = util.promisify(fsWalk.walk)++export async function getFiles(+ rootPath: string,+ opts?: { extension?: string; name?: string },+) {+ const entries = await walk(rootPath, {+ entryFilter: e => {+ return (+ !!e.stats?.isFile() &&+ (opts?.extension ? e.name.endsWith(opts.extension) : true) &&+ (opts?.name ? e.name === opts.name : true)+ )+ },+ stats: true,+ })++ return await Promise.all(+ entries.map(async e => {+ return {+ path: e.path as string,+ rootPath: path.join('/', path.relative(rootPath, e.path)),+ name: e.name as string,+ }+ }),+ )+}++export function getRoot(envPath?: string) {+ const defaultPath = process.cwd()++ if (!envPath) {+ return defaultPath+ }++ if (path.isAbsolute(envPath)) {+ return envPath+ }++ return path.resolve(defaultPath, envPath)+}++export async function ensureDir(dirPath: string) {+ if (!fs.existsSync(dirPath)) {+ return fsPromise.mkdir(dirPath, { recursive: true })+ }+}++export function cwdRelative(absolutePath: string) {+ return path.relative(process.cwd(), absolutePath)+}diff --git a/packages/cli/src/utils/format.ts b/packages/cli/src/utils/format.tsnew file mode 100644index 000000000..7304c3154--- /dev/null+++ b/packages/cli/src/utils/format.ts@@ -0,0 +1,44 @@+import * as sdk from '@devbookhq/sdk'+import * as chalk from 'chalk'+import { cwdRelative } from './filesystem'++export function asFormattedEnvironment(+ env: sdk.components['schemas']['Environment'],+ localPath?: string,+) {+ const id = asBold(env.id)+ const template = env.template ? asTemplate` [${env.template}]` : ''+ const title = env.title ? ` ${env.title}` : ''+ const configPath = localPath ? asDim(' <-> ') + asLocalRelative(localPath) : ''++ return `${id}${template}${title}${configPath}`+}++export function asFormattedError(text: string, err?: any) {+ return chalk.default.redBright(`> ${text} ${err ? ':\n' + err : ''}\n`)+}++export function asDim(content?: string) {+ return chalk.default.dim(content)+}++export function asBold(content: string) {+ return chalk.default.bold(content)+}++export function asEnv(pathInEnv?: string) {+ return chalk.default.green(pathInEnv)+}++export function asTemplate(t: TemplateStringsArray, template: string) {+ return chalk.default.dim(t[0] + template + t[1])+}++export function asLocal(pathInLocal?: string) {+ return chalk.default.blue(pathInLocal)+}++export function asLocalRelative(absolutePathInLocal?: string) {+ if (!absolutePathInLocal) return ''+ return asLocal('./' + cwdRelative(absolutePathInLocal))+}diff --git a/packages/cli/src/utils/hashing.ts b/packages/cli/src/utils/hashing.tsnew file mode 100644index 000000000..66596311f--- /dev/null+++ b/packages/cli/src/utils/hashing.ts@@ -0,0 +1,17 @@+import * as crypto from 'crypto'++const delimiter = '\0'++export function getFilesHash(files: { name: string; content: string }[]) {+ const shasum = crypto.createHash('sha1')++ files.forEach(({ name, content }) => {+ shasum.update(name)+ // Add delimiter to hash to prevent collisions between files where the join of the name and content is the same+ shasum.update(delimiter)+ shasum.update(content)+ shasum.update(delimiter)+ })++ return shasum.digest('base64')+}diff --git a/packages/cli/src/utils/notEmpty.ts b/packages/cli/src/utils/notEmpty.tsnew file mode 100644index 000000000..26b024cd5--- /dev/null+++ b/packages/cli/src/utils/notEmpty.ts@@ -0,0 +1,3 @@+export function notEmpty<T>(value: T | null | undefined): value is T {+ return value !== null && value !== undefined+}diff --git a/packages/cli/src/utils/promise.ts b/packages/cli/src/utils/promise.tsnew file mode 100644index 000000000..33cbaed01--- /dev/null+++ b/packages/cli/src/utils/promise.ts@@ -0,0 +1,26 @@+export function assertFulfilled<T>(+ item: PromiseSettledResult<T>,+): item is PromiseFulfilledResult<T> {+ return item.status === 'fulfilled'+}++export function assertRejected<T>(+ item: PromiseSettledResult<T>,+): item is PromiseRejectedResult {+ return item.status === 'rejected'+}++export function createDeferredPromise<T = void>() {+ let resolve: (value: T) => void+ let reject: (reason?: any) => void+ const promise = new Promise<T>((res, rej) => {+ resolve = res+ reject = rej+ })++ return {+ resolve: resolve!,+ reject: reject!,+ promise,+ }+}diff --git a/packages/cli/src/utils/sort.ts b/packages/cli/src/utils/sort.tsnew file mode 100644index 000000000..a6cd1b751--- /dev/null+++ b/packages/cli/src/utils/sort.ts@@ -0,0 +1,9 @@+import * as sdk from '@devbookhq/sdk'++export function sortEnvs<E extends sdk.components['schemas']['Environment']>(a: E, b: E) {+ if (!a.title || !b.title) return 0+ if (!a.title) return 1+ if (!b.title) return -1++ return a.title.localeCompare(b.title)+}diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.jsonnew file mode 100644index 000000000..0162d76b7--- /dev/null+++ b/packages/cli/tsconfig.json@@ -0,0 +1,32 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "lib": [+ "ES2020"+ ],+ "module": "CommonJS",+ "allowJs": true,+ "declaration": true,+ "declarationMap": true,+ "moduleResolution": "node",+ "sourceMap": true,+ "strict": true,+ "strictNullChecks": true,+ "strictFunctionTypes": true,+ "strictBindCallApply": true,+ "strictPropertyInitialization": true,+ "noImplicitThis": true,+ "alwaysStrict": true,+ "esModuleInterop": true,+ "preserveSymlinks": true,+ "downlevelIteration": true,+ "resolveJsonModule": true,+ "forceConsistentCasingInFileNames": true,+ "allowSyntheticDefaultImports": true,+ "outDir": "dist",+ "baseUrl": ".",+ "rootDirs": [+ "src",+ ],+ }+}\ No newline at end of filediff --git a/packages/cli/tsup.config.js b/packages/cli/tsup.config.jsnew file mode 100644index 000000000..aa4ccf06a--- /dev/null+++ b/packages/cli/tsup.config.js@@ -0,0 +1,15 @@+import { defineConfig } from 'tsup'++import * as packageJSON from './package.json'++const excludedPackages = ['inquirer', 'update-notifier']++export default defineConfig({+ entry: ['src/index.ts'],+ target: 'node16',+ platform: 'node',+ format: 'cjs',+ noExternal: Object.keys(packageJSON.dependencies).filter(+ f => !excludedPackages.includes(f),+ ),+})diff --git a/packages/js-sdk/.eslintrc.js b/packages/js-sdk/.eslintrc.jsnew file mode 100644index 000000000..060513c6e--- /dev/null+++ b/packages/js-sdk/.eslintrc.js@@ -0,0 +1,41 @@+module.exports = {+ env: {+ browser: true,+ es2021: true,+ node: true,+ },+ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],+ parser: '@typescript-eslint/parser',+ parserOptions: {+ ecmaVersion: 'latest',+ sourceType: 'module',+ },+ ignorePatterns: ['src/api/schema.gen.ts', 'dist/**', 'node_modules/'],+ plugins: ['@typescript-eslint', 'prettier', 'unused-imports'],+ rules: {+ '@typescript-eslint/member-ordering': ['error'],+ 'linebreak-style': ['error', 'unix'],+ 'max-len': [+ 'error',+ {+ code: 90,+ ignoreComments: true,+ ignoreStrings: true,+ ignoreTemplateLiterals: true,+ },+ ],+ 'prettier/prettier': ['error'],+ quotes: ['error', 'single', { avoidEscape: true }],+ semi: ['error', 'never'],+ 'unused-imports/no-unused-imports': 'error',+ 'unused-imports/no-unused-vars': [+ 'warn',+ {+ args: 'none',+ argsIgnorePattern: '^_',+ vars: 'all',+ varsIgnorePattern: '^_',+ },+ ],+ },+}diff --git a/packages/js-sdk/.gitignore b/packages/js-sdk/.gitignorenew file mode 100644index 000000000..1e651c504--- /dev/null+++ b/packages/js-sdk/.gitignore@@ -0,0 +1,41 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+/node_modules+/.pnp+.pnp.js++# testing+/coverage++# misc+.DS_Store+.env.local+.env.development.local+.env.test.local+.env.production.local++npm-debug.log*+yarn-debug.log*+yarn-error.log*++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Output of 'npm pack'+*.tgz++# Yarn Integrity file+.yarn-integrity++# generate output+dist++# compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++/test.md+logs.txt\ No newline at end of filediff --git a/packages/js-sdk/README.md b/packages/js-sdk/README.mdnew file mode 100644index 000000000..74024ae41--- /dev/null+++ b/packages/js-sdk/README.md@@ -0,0 +1,141 @@+# E2B JavaScript/TypeScript SDK++The E2B JS/TS SDK provides an interface for managing cloud environments for AI agents.++This SDK gives your agent a full cloud development environment that's sandboxed. That means:++- Access to Linux OS+- Using filesystem (create, list, and delete files and dirs)+- Run processes+- Sandboxed - you can run any code+- Access to the internet++These cloud environments are meant to be used for agents. Like a sandboxed playgrounds, where the agent can do whatever it wants.++## Installation++```sh+npm install @e2b/sdk+```++## Usage++### Initialize new cloud environment session++You **start a new session** by creating a `Session` instance via calling the `Session.create` class method.++```ts+import { Session } from '@e2b/sdk'+// You can use some of the predefined environments by using specific id:+// 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'+const session = await Session.create({+ id: 'Nodejs',+ onClose: () => console.log('Close'),+})++// Close the session after you are done+await session.close()+```++### Use filesystem inside cloud environment++```ts+// List+const dirBContent = await session.filesystem.list('/dirA/dirB')++// Write+// This will create a new file 'file.txt' inside the dir 'dirB' with the content 'Hello world'.+await session.filesystem.write('/dirA/dirB/file.txt', 'Hello World')++// Read+const content = await session.filesystem.read('/dirA/dirB/file.txt')++// Remove+// Remove a file.+await session.filesystem.remove('/dirA/dirB/file.txt')+/// Remove a directory and all of its content.+await session.filesystem.remove('/dirA')++// Make dir+// Creates a new directory 'dirC' and also 'dirA' and 'dirB' if those directories don't already exist.+await session.filesystem.makeDir('/dirA/dirB/dirC')++// Watch dir for changes+const watcher = session.filesystem.watchDir('/dirA/dirB')+watcher.addEventListener(event => console.log(event))+await watcher.start()+```++### Start process inside cloud environment++You can **start a new process** in the session by calling `session.process.start`. The only required option is the `cmd`, but you can also define the `rootdir` and `envVars` options that the command should be executed with.++You **send the stdin to the process** by calling `proc.sendStdin`.++You can **manually kill** the process by calling `proc.kill`.++```ts+const proc = await session.process.start({+ cmd: 'echo Hello World',+ onStdout: data => console.log('Stdout', data),+ onStderr: data => console.log('Stderr', data),+ onExit: () => console.log('Exit'),+ rootdir: '/code',+})++await proc.sendStdin('\n')++console.log(proc.processID)++await proc.kill()++// Wait for process to finish+await proc.finished+```++### Create interactive terminal inside cloud environment++```ts+const term = await session.terminal.start({+ onData: data => console.log('Data', data),+ onExit: () => console.log('Exit'),+ size: {+ cols: 80,+ rows: 24,+ },+ rootdir: '/code',+ // If you specify a command, the terminal will be closed after the command finishes.+ // cmd: 'echo Hello World',+})++await term.sendData('echo 1\n')++await term.resize(80, 30)++console.log(term.terminalID)++await term.kill()+```++> If you are using frontend terminal component like [Xtermjs](https://github.com/xtermjs/xterm.js/) you want to pass the data from `onData` handler to Xtermjs and forward the data from Xtermjs to the `term.sendData` method.++### Get public hostname for an exposed port inside cloud environment++```ts+// Get hostname for port 3000. The hostname is without the protocol (http://).+const hostname = session.getHostname(3000)+```++## Development++You generate the types for e2b API from OpenAPI spec by calling:++```sh+npm run generate+```++You build the SDK by calling:++```sh+npm run build+```diff --git a/packages/js-sdk/package-lock.json b/packages/js-sdk/package-lock.jsonnew file mode 100644index 000000000..915b4733b--- /dev/null+++ b/packages/js-sdk/package-lock.json@@ -0,0 +1,6209 @@+{+ "name": "@e2b/sdk",+ "version": "0.0.2",+ "lockfileVersion": 2,+ "requires": true,+ "packages": {+ "": {+ "name": "@e2b/sdk",+ "version": "0.0.2",+ "license": "MIT",+ "dependencies": {+ "cross-fetch": "^3.1.5",+ "normalize-path": "^3.0.0",+ "openapi-typescript-fetch": "^1.1.3",+ "rpc-websocket-client": "^1.1.4"+ },+ "devDependencies": {+ "@rollup/plugin-node-resolve": "^14.1.0",+ "@trivago/prettier-plugin-sort-imports": "^3.3.0",+ "@types/node": "^18.7.23",+ "@types/normalize-path": "^3.0.0",+ "@typescript-eslint/eslint-plugin": "^5.38.1",+ "@typescript-eslint/parser": "^5.38.1",+ "eslint": "^8.24.0",+ "eslint-config-prettier": "^8.5.0",+ "eslint-plugin-prettier": "^4.2.1",+ "eslint-plugin-unused-imports": "^2.0.0",+ "openapi-typescript": "^5.4.1",+ "prettier": "^2.7.1",+ "rollup": "^2.79.1",+ "rollup-plugin-auto-external": "^2.0.0",+ "rollup-plugin-polyfill-node": "^0.10.2",+ "rollup-plugin-terser": "^7.0.2",+ "rollup-plugin-typescript2": "^0.34.0",+ "typescript": "^4.9.4"+ }+ },+ "node_modules/@ampproject/remapping": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",+ "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==",+ "dev": true,+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.1.0",+ "@jridgewell/trace-mapping": "^0.3.9"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",+ "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==",+ "dev": true,+ "dependencies": {+ "@babel/highlight": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz",+ "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.17.8",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.8.tgz",+ "integrity": "sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ==",+ "dev": true,+ "dependencies": {+ "@ampproject/remapping": "^2.1.0",+ "@babel/code-frame": "^7.16.7",+ "@babel/generator": "^7.17.7",+ "@babel/helper-compilation-targets": "^7.17.7",+ "@babel/helper-module-transforms": "^7.17.7",+ "@babel/helpers": "^7.17.8",+ "@babel/parser": "^7.17.8",+ "@babel/template": "^7.16.7",+ "@babel/traverse": "^7.17.3",+ "@babel/types": "^7.17.0",+ "convert-source-map": "^1.7.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.1.2",+ "semver": "^6.3.0"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.17.7",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz",+ "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.17.0",+ "jsesc": "^2.5.1",+ "source-map": "^0.5.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/generator/node_modules/source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz",+ "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==",+ "dev": true,+ "dependencies": {+ "@babel/compat-data": "^7.19.3",+ "@babel/helper-validator-option": "^7.18.6",+ "browserslist": "^4.21.3",+ "semver": "^6.3.0"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-environment-visitor": {+ "version": "7.18.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz",+ "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-function-name": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz",+ "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==",+ "dev": true,+ "dependencies": {+ "@babel/template": "^7.18.10",+ "@babel/types": "^7.19.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-function-name/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-hoist-variables": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz",+ "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-hoist-variables/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz",+ "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz",+ "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==",+ "dev": true,+ "dependencies": {+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-module-imports": "^7.18.6",+ "@babel/helper-simple-access": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/helper-validator-identifier": "^7.18.6",+ "@babel/template": "^7.18.10",+ "@babel/traverse": "^7.19.0",+ "@babel/types": "^7.19.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/@babel/generator": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz",+ "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.19.3",+ "@jridgewell/gen-mapping": "^0.3.2",+ "jsesc": "^2.5.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true,+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/@babel/traverse": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz",+ "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.18.6",+ "@babel/generator": "^7.19.3",+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-function-name": "^7.19.0",+ "@babel/helper-hoist-variables": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/parser": "^7.19.3",+ "@babel/types": "^7.19.3",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "dependencies": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helper-module-transforms/node_modules/globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/helper-simple-access": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz",+ "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-simple-access/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-split-export-declaration": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz",+ "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.18.10",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz",+ "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.19.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz",+ "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz",+ "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz",+ "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==",+ "dev": true,+ "dependencies": {+ "@babel/template": "^7.18.10",+ "@babel/traverse": "^7.19.0",+ "@babel/types": "^7.19.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@babel/generator": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz",+ "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.19.3",+ "@jridgewell/gen-mapping": "^0.3.2",+ "jsesc": "^2.5.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true,+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@babel/traverse": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz",+ "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.18.6",+ "@babel/generator": "^7.19.3",+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-function-name": "^7.19.0",+ "@babel/helper-hoist-variables": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/parser": "^7.19.3",+ "@babel/types": "^7.19.3",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "dependencies": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helpers/node_modules/globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/highlight": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz",+ "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==",+ "dev": true,+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.18.6",+ "chalk": "^2.0.0",+ "js-tokens": "^4.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.17.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.8.tgz",+ "integrity": "sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==",+ "dev": true,+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.18.10",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz",+ "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.18.6",+ "@babel/parser": "^7.18.10",+ "@babel/types": "^7.18.10"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/template/node_modules/@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true,+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/template/node_modules/@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.17.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz",+ "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.16.7",+ "@babel/generator": "^7.17.3",+ "@babel/helper-environment-visitor": "^7.16.7",+ "@babel/helper-function-name": "^7.16.7",+ "@babel/helper-hoist-variables": "^7.16.7",+ "@babel/helper-split-export-declaration": "^7.16.7",+ "@babel/parser": "^7.17.3",+ "@babel/types": "^7.17.0",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse/node_modules/globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.17.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz",+ "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.16.7",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@eslint/eslintrc": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz",+ "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==",+ "dev": true,+ "dependencies": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^9.4.0",+ "globals": "^13.15.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@humanwhocodes/config-array": {+ "version": "0.10.5",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.5.tgz",+ "integrity": "sha512-XVVDtp+dVvRxMoxSiSfasYaG02VEe1qH5cKgMQJWhol6HwzbcqoCMJi8dAGoYAO57jhUyhI6cWuRiTcRaDaYug==",+ "dev": true,+ "dependencies": {+ "@humanwhocodes/object-schema": "^1.2.1",+ "debug": "^4.1.1",+ "minimatch": "^3.0.4"+ },+ "engines": {+ "node": ">=10.10.0"+ }+ },+ "node_modules/@humanwhocodes/gitignore-to-minimatch": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz",+ "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==",+ "dev": true,+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/object-schema": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",+ "dev": true+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",+ "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==",+ "dev": true,+ "dependencies": {+ "@jridgewell/set-array": "^1.0.0",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",+ "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",+ "dev": true,+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/set-array": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",+ "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",+ "dev": true,+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/source-map": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz",+ "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==",+ "dev": true,+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.0",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ },+ "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "dependencies": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.4.14",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",+ "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",+ "dev": true+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.16",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.16.tgz",+ "integrity": "sha512-LCQ+NeThyJ4k1W2d+vIKdxuSt9R3pQSZ4P92m7EakaYuXcVWbHuT5bjNcqLd4Rdgi6xYWYDvBJZJLZSLanjDcA==",+ "dev": true,+ "dependencies": {+ "@jridgewell/resolve-uri": "3.1.0",+ "@jridgewell/sourcemap-codec": "1.4.14"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@rollup/plugin-inject": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-4.0.4.tgz",+ "integrity": "sha512-4pbcU4J/nS+zuHk+c+OL3WtmEQhqxlZ9uqfjQMQDOHOPld7PsCd8k5LWs8h5wjwJN7MgnAn768F2sDxEP4eNFQ==",+ "dev": true,+ "dependencies": {+ "@rollup/pluginutils": "^3.1.0",+ "estree-walker": "^2.0.1",+ "magic-string": "^0.25.7"+ },+ "peerDependencies": {+ "rollup": "^1.20.0 || ^2.0.0"+ }+ },+ "node_modules/@rollup/plugin-node-resolve": {+ "version": "14.1.0",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-14.1.0.tgz",+ "integrity": "sha512-5G2niJroNCz/1zqwXtk0t9+twOSDlG00k1Wfd7bkbbXmwg8H8dvgHdIWAun53Ps/rckfvOC7scDBjuGFg5OaWw==",+ "dev": true,+ "dependencies": {+ "@rollup/pluginutils": "^3.1.0",+ "@types/resolve": "1.17.1",+ "deepmerge": "^4.2.2",+ "is-builtin-module": "^3.1.0",+ "is-module": "^1.0.0",+ "resolve": "^1.19.0"+ },+ "engines": {+ "node": ">= 10.0.0"+ },+ "peerDependencies": {+ "rollup": "^2.78.0"+ }+ },+ "node_modules/@rollup/pluginutils": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",+ "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",+ "dev": true,+ "dependencies": {+ "@types/estree": "0.0.39",+ "estree-walker": "^1.0.1",+ "picomatch": "^2.2.2"+ },+ "engines": {+ "node": ">= 8.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0"+ }+ },+ "node_modules/@rollup/pluginutils/node_modules/estree-walker": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",+ "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",+ "dev": true+ },+ "node_modules/@trivago/prettier-plugin-sort-imports": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.3.0.tgz",+ "integrity": "sha512-1y44bVZuIN0RsS3oIiGd5k8Vm3IZXYZnp4VsP2Z/S5L9WAOw43HE2clso66M2S/dDeJ+8sKPqnHsEfh39Vjs3w==",+ "dev": true,+ "dependencies": {+ "@babel/core": "7.17.8",+ "@babel/generator": "7.17.7",+ "@babel/parser": "7.17.8",+ "@babel/traverse": "7.17.3",+ "@babel/types": "7.17.0",+ "javascript-natural-sort": "0.7.1",+ "lodash": "4.17.21"+ },+ "peerDependencies": {+ "prettier": "2.x"+ }+ },+ "node_modules/@types/estree": {+ "version": "0.0.39",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",+ "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",+ "dev": true+ },+ "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+ },+ "node_modules/@types/node": {+ "version": "18.7.23",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz",+ "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==",+ "dev": true+ },+ "node_modules/@types/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/@types/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-Nd8y/5t/7CRakPYiyPzr/IAfYusy1FkcZYFEAcoMZkwpJv2n4Wm+olW+e7xBdHEXhOnWdG9ddbar0gqZWS4x5Q==",+ "dev": true+ },+ "node_modules/@types/resolve": {+ "version": "1.17.1",+ "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",+ "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==",+ "dev": true,+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz",+ "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/type-utils": "5.38.1",+ "@typescript-eslint/utils": "5.38.1",+ "debug": "^4.3.4",+ "ignore": "^5.2.0",+ "regexpp": "^3.2.0",+ "semver": "^7.3.7",+ "tsutils": "^3.21.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^5.0.0",+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": {+ "version": "7.3.7",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",+ "dev": true,+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz",+ "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/typescript-estree": "5.38.1",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz",+ "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/visitor-keys": "5.38.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/type-utils": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz",+ "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/typescript-estree": "5.38.1",+ "@typescript-eslint/utils": "5.38.1",+ "debug": "^4.3.4",+ "tsutils": "^3.21.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "*"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz",+ "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==",+ "dev": true,+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz",+ "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/visitor-keys": "5.38.1",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "semver": "^7.3.7",+ "tsutils": "^3.21.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {+ "version": "7.3.7",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",+ "dev": true,+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz",+ "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==",+ "dev": true,+ "dependencies": {+ "@types/json-schema": "^7.0.9",+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/typescript-estree": "5.38.1",+ "eslint-scope": "^5.1.1",+ "eslint-utils": "^3.0.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "dev": true,+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^4.1.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@typescript-eslint/utils/node_modules/estraverse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",+ "dev": true,+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz",+ "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "5.38.1",+ "eslint-visitor-keys": "^3.3.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/acorn": {+ "version": "8.8.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",+ "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",+ "dev": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "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"+ }+ },+ "node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dev": true,+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "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==",+ "dev": true+ },+ "node_modules/array-union": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "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+ },+ "node_modules/brace-expansion": {+ "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"+ }+ },+ "node_modules/braces": {+ "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"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.21.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz",+ "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ }+ ],+ "dependencies": {+ "caniuse-lite": "^1.0.30001400",+ "electron-to-chromium": "^1.4.251",+ "node-releases": "^2.0.6",+ "update-browserslist-db": "^1.0.9"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true+ },+ "node_modules/builtin-modules": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz",+ "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==",+ "dev": true,+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/builtins": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/builtins/-/builtins-2.0.1.tgz",+ "integrity": "sha512-XkkVe5QAb6guWPXTzpSrYpSlN3nqEmrrE2TkAr/tp7idSF6+MONh9WvKrAuR3HiKLvoSgmbs8l1U9IPmMrIoLw==",+ "dev": true,+ "dependencies": {+ "semver": "^6.0.0"+ }+ },+ "node_modules/busboy": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",+ "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",+ "dev": true,+ "dependencies": {+ "streamsearch": "^1.1.0"+ },+ "engines": {+ "node": ">=10.16.0"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001418",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001418.tgz",+ "integrity": "sha512-oIs7+JL3K9JRQ3jPZjlH6qyYDp+nBTCais7hjh0s+fuBwufc7uZ7hPYMXrDOJhV360KGMTcczMRObk0/iMqZRg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ }+ ]+ },+ "node_modules/chalk": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",+ "dev": true,+ "dependencies": {+ "ansi-styles": "^3.2.1",+ "escape-string-regexp": "^1.0.5",+ "supports-color": "^5.3.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dev": true,+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",+ "dev": true+ },+ "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==",+ "dev": true+ },+ "node_modules/commondir": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",+ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",+ "dev": true+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",+ "dev": true+ },+ "node_modules/convert-source-map": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz",+ "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==",+ "dev": true,+ "dependencies": {+ "safe-buffer": "~5.1.1"+ }+ },+ "node_modules/cross-fetch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",+ "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",+ "dependencies": {+ "node-fetch": "2.6.7"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.3",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",+ "dev": true,+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/debug": {+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",+ "dev": true,+ "dependencies": {+ "ms": "2.1.2"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "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.2.2",+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",+ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/dir-glob": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",+ "dev": true,+ "dependencies": {+ "path-type": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dir-glob/node_modules/path-type": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/doctrine": {+ "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"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.4.276",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.276.tgz",+ "integrity": "sha512-EpuHPqu8YhonqLBXHoU6hDJCD98FCe6KDoet3/gY1qsQ6usjJoHqBH2YIVs8FXaAtHwVL8Uqa/fsYao/vq9VWQ==",+ "dev": true+ },+ "node_modules/error-ex": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",+ "dev": true,+ "dependencies": {+ "is-arrayish": "^0.2.1"+ }+ },+ "node_modules/escalade": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "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==",+ "dev": true,+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/eslint": {+ "version": "8.24.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz",+ "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==",+ "dev": true,+ "dependencies": {+ "@eslint/eslintrc": "^1.3.2",+ "@humanwhocodes/config-array": "^0.10.5",+ "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",+ "@humanwhocodes/module-importer": "^1.0.1",+ "ajv": "^6.10.0",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.2",+ "debug": "^4.3.2",+ "doctrine": "^3.0.0",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^7.1.1",+ "eslint-utils": "^3.0.0",+ "eslint-visitor-keys": "^3.3.0",+ "espree": "^9.4.0",+ "esquery": "^1.4.0",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^6.0.1",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.1",+ "globals": "^13.15.0",+ "globby": "^11.1.0",+ "grapheme-splitter": "^1.0.4",+ "ignore": "^5.2.0",+ "import-fresh": "^3.0.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "js-sdsl": "^4.1.4",+ "js-yaml": "^4.1.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "levn": "^0.4.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.1",+ "regexpp": "^3.2.0",+ "strip-ansi": "^6.0.1",+ "strip-json-comments": "^3.1.0",+ "text-table": "^0.2.0"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-config-prettier": {+ "version": "8.5.0",+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz",+ "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==",+ "dev": true,+ "bin": {+ "eslint-config-prettier": "bin/cli.js"+ },+ "peerDependencies": {+ "eslint": ">=7.0.0"+ }+ },+ "node_modules/eslint-plugin-prettier": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz",+ "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==",+ "dev": true,+ "dependencies": {+ "prettier-linter-helpers": "^1.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "eslint": ">=7.28.0",+ "prettier": ">=2.0.0"+ },+ "peerDependenciesMeta": {+ "eslint-config-prettier": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-plugin-unused-imports": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz",+ "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==",+ "dev": true,+ "dependencies": {+ "eslint-rule-composer": "^0.3.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "peerDependencies": {+ "@typescript-eslint/eslint-plugin": "^5.0.0",+ "eslint": "^8.0.0"+ },+ "peerDependenciesMeta": {+ "@typescript-eslint/eslint-plugin": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-rule-composer": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz",+ "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==",+ "dev": true,+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/eslint-scope": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz",+ "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",+ "dev": true,+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ }+ },+ "node_modules/eslint-utils": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",+ "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",+ "dev": true,+ "dependencies": {+ "eslint-visitor-keys": "^2.0.0"+ },+ "engines": {+ "node": "^10.0.0 || ^12.0.0 || >= 14.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/mysticatea"+ },+ "peerDependencies": {+ "eslint": ">=5"+ }+ },+ "node_modules/eslint-utils/node_modules/eslint-visitor-keys": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",+ "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",+ "dev": true,+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",+ "dev": true,+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ }+ },+ "node_modules/eslint/node_modules/ansi-styles": {+ "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"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/eslint/node_modules/chalk": {+ "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"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/eslint/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"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/eslint/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+ },+ "node_modules/eslint/node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint/node_modules/has-flag": {+ "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"+ }+ },+ "node_modules/eslint/node_modules/supports-color": {+ "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"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/espree": {+ "version": "9.4.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz",+ "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==",+ "dev": true,+ "dependencies": {+ "acorn": "^8.8.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^3.3.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz",+ "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==",+ "dev": true,+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estree-walker": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",+ "dev": true+ },+ "node_modules/esutils": {+ "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"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true+ },+ "node_modules/fast-diff": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz",+ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",+ "dev": true+ },+ "node_modules/fast-glob": {+ "version": "3.2.11",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz",+ "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.4"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "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",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",+ "dev": true+ },+ "node_modules/fastq": {+ "version": "1.13.0",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz",+ "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",+ "dev": true,+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/file-entry-cache": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "dev": true,+ "dependencies": {+ "flat-cache": "^3.0.4"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/fill-range": {+ "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"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-cache-dir": {+ "version": "3.3.2",+ "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",+ "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",+ "dev": true,+ "dependencies": {+ "commondir": "^1.0.1",+ "make-dir": "^3.0.2",+ "pkg-dir": "^4.1.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/avajs/find-cache-dir?sponsor=1"+ }+ },+ "node_modules/find-cache-dir/node_modules/find-up": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",+ "dev": true,+ "dependencies": {+ "locate-path": "^5.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-cache-dir/node_modules/locate-path": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",+ "dev": true,+ "dependencies": {+ "p-locate": "^4.1.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-cache-dir/node_modules/p-limit": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "dev": true,+ "dependencies": {+ "p-try": "^2.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/find-cache-dir/node_modules/p-locate": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",+ "dev": true,+ "dependencies": {+ "p-limit": "^2.2.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-cache-dir/node_modules/pkg-dir": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",+ "dev": true,+ "dependencies": {+ "find-up": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",+ "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",+ "dev": true,+ "dependencies": {+ "flatted": "^3.1.0",+ "rimraf": "^3.0.2"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/flatted": {+ "version": "3.2.5",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz",+ "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==",+ "dev": true+ },+ "node_modules/fs-extra": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",+ "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",+ "dev": true,+ "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": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",+ "dev": true+ },+ "node_modules/fsevents": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",+ "dev": true,+ "hasInstallScript": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "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+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "dev": true,+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/globals": {+ "version": "13.17.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz",+ "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==",+ "dev": true,+ "dependencies": {+ "type-fest": "^0.20.2"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globalyzer": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",+ "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==",+ "dev": true+ },+ "node_modules/globby": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "dev": true,+ "dependencies": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globrex": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",+ "dev": true+ },+ "node_modules/graceful-fs": {+ "version": "4.2.9",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",+ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==",+ "dev": true+ },+ "node_modules/grapheme-splitter": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",+ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",+ "dev": true+ },+ "node_modules/has": {+ "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"+ },+ "engines": {+ "node": ">= 0.4.0"+ }+ },+ "node_modules/has-flag": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/hosted-git-info": {+ "version": "2.8.9",+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",+ "dev": true+ },+ "node_modules/ignore": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",+ "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==",+ "dev": true,+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/import-fresh": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",+ "dev": true,+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",+ "dev": true,+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",+ "dev": true,+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "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+ },+ "node_modules/is-arrayish": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",+ "dev": true+ },+ "node_modules/is-builtin-module": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz",+ "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==",+ "dev": true,+ "dependencies": {+ "builtin-modules": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",+ "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",+ "dev": true,+ "dependencies": {+ "has": "^1.0.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-module": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",+ "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",+ "dev": true+ },+ "node_modules/is-number": {+ "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"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",+ "dev": true+ },+ "node_modules/isomorphic-ws": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",+ "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",+ "peerDependencies": {+ "ws": "*"+ }+ },+ "node_modules/javascript-natural-sort": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",+ "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==",+ "dev": true+ },+ "node_modules/jest-worker": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz",+ "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==",+ "dev": true,+ "dependencies": {+ "@types/node": "*",+ "merge-stream": "^2.0.0",+ "supports-color": "^7.0.0"+ },+ "engines": {+ "node": ">= 10.13.0"+ }+ },+ "node_modules/jest-worker/node_modules/has-flag": {+ "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"+ }+ },+ "node_modules/jest-worker/node_modules/supports-color": {+ "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"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/js-sdsl": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz",+ "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==",+ "dev": true+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true+ },+ "node_modules/js-yaml": {+ "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"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsesc": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",+ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",+ "dev": true,+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/json-parse-better-errors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",+ "dev": true+ },+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",+ "dev": true+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "dev": true,+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/load-json-file": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",+ "dev": true,+ "dependencies": {+ "graceful-fs": "^4.1.2",+ "parse-json": "^4.0.0",+ "pify": "^3.0.0",+ "strip-bom": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "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==",+ "dev": true+ },+ "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/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/magic-string": {+ "version": "0.25.7",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",+ "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",+ "dev": true,+ "dependencies": {+ "sourcemap-codec": "^1.4.4"+ }+ },+ "node_modules/make-dir": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "dev": true,+ "dependencies": {+ "semver": "^6.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "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"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mime": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",+ "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==",+ "dev": true,+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "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"+ },+ "engines": {+ "node": "*"+ }+ },+ "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/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",+ "dev": true+ },+ "node_modules/node-fetch": {+ "version": "2.6.7",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",+ "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.6",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz",+ "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==",+ "dev": true+ },+ "node_modules/normalize-package-data": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",+ "dev": true,+ "dependencies": {+ "hosted-git-info": "^2.1.4",+ "resolve": "^1.10.0",+ "semver": "2 || 3 || 4 || 5",+ "validate-npm-package-license": "^3.0.1"+ }+ },+ "node_modules/normalize-package-data/node_modules/semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "dev": true,+ "bin": {+ "semver": "bin/semver"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",+ "dev": true,+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/openapi-typescript": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-5.4.1.tgz",+ "integrity": "sha512-AGB2QiZPz4rE7zIwV3dRHtoUC/CWHhUjuzGXvtmMQN2AFV8xCTLKcZUHLcdPQmt/83i22nRE7+TxXOXkK+gf4Q==",+ "dev": true,+ "dependencies": {+ "js-yaml": "^4.1.0",+ "mime": "^3.0.0",+ "prettier": "^2.6.2",+ "tiny-glob": "^0.2.9",+ "undici": "^5.4.0",+ "yargs-parser": "^21.0.1"+ },+ "bin": {+ "openapi-typescript": "bin/cli.js"+ },+ "engines": {+ "node": ">= 14.0.0"+ }+ },+ "node_modules/openapi-typescript-fetch": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",+ "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==",+ "engines": {+ "node": ">= 12.0.0",+ "npm": ">= 7.0.0"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.1",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",+ "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",+ "dev": true,+ "dependencies": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.3"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-try": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parse-json": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",+ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",+ "dev": true,+ "dependencies": {+ "error-ex": "^1.3.1",+ "json-parse-better-errors": "^1.0.1"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "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": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",+ "dev": true,+ "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-type": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",+ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",+ "dev": true,+ "dependencies": {+ "pify": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/picocolors": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",+ "dev": true+ },+ "node_modules/picomatch": {+ "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"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/prettier": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",+ "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",+ "dev": true,+ "bin": {+ "prettier": "bin-prettier.js"+ },+ "engines": {+ "node": ">=10.13.0"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },+ "node_modules/prettier-linter-helpers": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",+ "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",+ "dev": true,+ "dependencies": {+ "fast-diff": "^1.1.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/punycode": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "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/randombytes": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",+ "dev": true,+ "dependencies": {+ "safe-buffer": "^5.1.0"+ }+ },+ "node_modules/read-pkg": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",+ "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",+ "dev": true,+ "dependencies": {+ "load-json-file": "^4.0.0",+ "normalize-package-data": "^2.3.2",+ "path-type": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/regexpp": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",+ "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",+ "dev": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/mysticatea"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",+ "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",+ "dev": true,+ "dependencies": {+ "is-core-module": "^2.8.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-from": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/reusify": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",+ "dev": true,+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rollup": {+ "version": "2.79.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz",+ "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==",+ "dev": true,+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=10.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/rollup-plugin-auto-external": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.0.0.tgz",+ "integrity": "sha512-HQM3ZkZYfSam1uoZtAB9sK26EiAsfs1phrkf91c/YX+S07wugyRXSigBxrIwiLr5EPPilKYmoMxsrnlGBsXnuQ==",+ "dev": true,+ "dependencies": {+ "builtins": "^2.0.0",+ "read-pkg": "^3.0.0",+ "safe-resolve": "^1.0.0",+ "semver": "^5.5.0"+ },+ "engines": {+ "node": ">=6"+ },+ "peerDependencies": {+ "rollup": ">=0.45.2"+ }+ },+ "node_modules/rollup-plugin-auto-external/node_modules/semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "dev": true,+ "bin": {+ "semver": "bin/semver"+ }+ },+ "node_modules/rollup-plugin-polyfill-node": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.10.2.tgz",+ "integrity": "sha512-5GMywXiLiuQP6ZzED/LO/Q0HyDi2W6b8VN+Zd3oB0opIjyRs494Me2ZMaqKWDNbGiW4jvvzl6L2n4zRgxS9cSQ==",+ "dev": true,+ "dependencies": {+ "@rollup/plugin-inject": "^4.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0 || ^2.0.0"+ }+ },+ "node_modules/rollup-plugin-terser": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz",+ "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.10.4",+ "jest-worker": "^26.2.1",+ "serialize-javascript": "^4.0.0",+ "terser": "^5.0.0"+ },+ "peerDependencies": {+ "rollup": "^2.0.0"+ }+ },+ "node_modules/rollup-plugin-typescript2": {+ "version": "0.34.0",+ "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.34.0.tgz",+ "integrity": "sha512-dGtOz2kL6nQVgfIOmnA4Xh+5cFrs3bdu4jja/ej7WKR92RzOOixsn71LY5ZFFmKe1R677nUh+k2++NiY3un2PQ==",+ "dev": true,+ "dependencies": {+ "@rollup/pluginutils": "^4.1.2",+ "find-cache-dir": "^3.3.2",+ "fs-extra": "^10.0.0",+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "rollup": ">=1.26.3",+ "typescript": ">=2.4.0"+ }+ },+ "node_modules/rollup-plugin-typescript2/node_modules/@rollup/pluginutils": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.2.tgz",+ "integrity": "sha512-ROn4qvkxP9SyPeHaf7uQC/GPFY6L/OWy9+bd9AwcjOAWQwxRscoEyAUD8qCY5o5iL4jqQwoLk2kaTKJPb/HwzQ==",+ "dev": true,+ "dependencies": {+ "estree-walker": "^2.0.1",+ "picomatch": "^2.2.2"+ },+ "engines": {+ "node": ">= 8.0.0"+ }+ },+ "node_modules/rpc-websocket-client": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/rpc-websocket-client/-/rpc-websocket-client-1.1.4.tgz",+ "integrity": "sha512-UDMVcsNDJ3WET+0EFdmseYX+60MOCA3BpgpZ5dbtiGsqHo+9uWfgNbPZ4iGDtNcX+EUhCt/Y7C0fTmUU3CkkWA==",+ "dependencies": {+ "isomorphic-ws": "^4.0.1",+ "uuid": "^3.3.3",+ "ws": "^7.1.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "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": {+ "queue-microtask": "^1.2.2"+ }+ },+ "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==",+ "dev": true+ },+ "node_modules/safe-resolve": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/safe-resolve/-/safe-resolve-1.0.0.tgz",+ "integrity": "sha1-/jT40p16O+z9JJ0KqKeZtcPPZVk=",+ "dev": true+ },+ "node_modules/semver": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",+ "dev": true,+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/serialize-javascript": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz",+ "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==",+ "dev": true,+ "dependencies": {+ "randombytes": "^2.1.0"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/slash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "node_modules/sourcemap-codec": {+ "version": "1.4.8",+ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",+ "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",+ "dev": true+ },+ "node_modules/spdx-correct": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",+ "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",+ "dev": true,+ "dependencies": {+ "spdx-expression-parse": "^3.0.0",+ "spdx-license-ids": "^3.0.0"+ }+ },+ "node_modules/spdx-exceptions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",+ "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",+ "dev": true+ },+ "node_modules/spdx-expression-parse": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",+ "dev": true,+ "dependencies": {+ "spdx-exceptions": "^2.1.0",+ "spdx-license-ids": "^3.0.0"+ }+ },+ "node_modules/spdx-license-ids": {+ "version": "3.0.11",+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz",+ "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==",+ "dev": true+ },+ "node_modules/streamsearch": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",+ "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",+ "dev": true,+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/strip-ansi": {+ "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"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",+ "dev": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/supports-color": {+ "version": "5.5.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",+ "dev": true,+ "dependencies": {+ "has-flag": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/terser": {+ "version": "5.16.0",+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.0.tgz",+ "integrity": "sha512-KjTV81QKStSfwbNiwlBXfcgMcOloyuRdb62/iLFPGBcVNF4EXjhdYBhYHmbJpiBrVxZhDvltE11j+LBQUxEEJg==",+ "dev": true,+ "dependencies": {+ "@jridgewell/source-map": "^0.3.2",+ "acorn": "^8.5.0",+ "commander": "^2.20.0",+ "source-map-support": "~0.5.20"+ },+ "bin": {+ "terser": "bin/terser"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/text-table": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",+ "dev": true+ },+ "node_modules/tiny-glob": {+ "version": "0.2.9",+ "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",+ "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",+ "dev": true,+ "dependencies": {+ "globalyzer": "0.1.0",+ "globrex": "^0.1.2"+ }+ },+ "node_modules/to-fast-properties": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",+ "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "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"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="+ },+ "node_modules/tslib": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",+ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",+ "dev": true+ },+ "node_modules/tsutils": {+ "version": "3.21.0",+ "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",+ "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",+ "dev": true,+ "dependencies": {+ "tslib": "^1.8.1"+ },+ "engines": {+ "node": ">= 6"+ },+ "peerDependencies": {+ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"+ }+ },+ "node_modules/tsutils/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",+ "dev": true+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-fest": {+ "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"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typescript": {+ "version": "4.9.4",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",+ "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",+ "dev": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=4.2.0"+ }+ },+ "node_modules/undici": {+ "version": "5.13.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-5.13.0.tgz",+ "integrity": "sha512-UDZKtwb2k7KRsK4SdXWG7ErXiL7yTGgLWvk2AXO1JMjgjh404nFo6tWSCM2xMpJwMPx3J8i/vfqEh1zOqvj82Q==",+ "dev": true,+ "dependencies": {+ "busboy": "^1.6.0"+ },+ "engines": {+ "node": ">=12.18"+ }+ },+ "node_modules/universalify": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",+ "dev": true,+ "engines": {+ "node": ">= 10.0.0"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz",+ "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ }+ ],+ "dependencies": {+ "escalade": "^3.1.1",+ "picocolors": "^1.0.0"+ },+ "bin": {+ "browserslist-lint": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/uuid": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",+ "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",+ "bin": {+ "uuid": "bin/uuid"+ }+ },+ "node_modules/validate-npm-package-license": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",+ "dev": true,+ "dependencies": {+ "spdx-correct": "^3.0.0",+ "spdx-expression-parse": "^3.0.0"+ }+ },+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",+ "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",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",+ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",+ "dev": true+ },+ "node_modules/ws": {+ "version": "7.5.7",+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz",+ "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==",+ "engines": {+ "node": ">=8.3.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": "^5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true+ },+ "node_modules/yargs-parser": {+ "version": "21.0.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz",+ "integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==",+ "dev": true,+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ }+ },+ "dependencies": {+ "@ampproject/remapping": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",+ "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==",+ "dev": true,+ "requires": {+ "@jridgewell/gen-mapping": "^0.1.0",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ },+ "@babel/code-frame": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",+ "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==",+ "dev": true,+ "requires": {+ "@babel/highlight": "^7.18.6"+ }+ },+ "@babel/compat-data": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz",+ "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==",+ "dev": true+ },+ "@babel/core": {+ "version": "7.17.8",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.8.tgz",+ "integrity": "sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ==",+ "dev": true,+ "requires": {+ "@ampproject/remapping": "^2.1.0",+ "@babel/code-frame": "^7.16.7",+ "@babel/generator": "^7.17.7",+ "@babel/helper-compilation-targets": "^7.17.7",+ "@babel/helper-module-transforms": "^7.17.7",+ "@babel/helpers": "^7.17.8",+ "@babel/parser": "^7.17.8",+ "@babel/template": "^7.16.7",+ "@babel/traverse": "^7.17.3",+ "@babel/types": "^7.17.0",+ "convert-source-map": "^1.7.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.1.2",+ "semver": "^6.3.0"+ }+ },+ "@babel/generator": {+ "version": "7.17.7",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz",+ "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.17.0",+ "jsesc": "^2.5.1",+ "source-map": "^0.5.0"+ },+ "dependencies": {+ "source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",+ "dev": true+ }+ }+ },+ "@babel/helper-compilation-targets": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz",+ "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==",+ "dev": true,+ "requires": {+ "@babel/compat-data": "^7.19.3",+ "@babel/helper-validator-option": "^7.18.6",+ "browserslist": "^4.21.3",+ "semver": "^6.3.0"+ }+ },+ "@babel/helper-environment-visitor": {+ "version": "7.18.9",+ "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz",+ "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==",+ "dev": true+ },+ "@babel/helper-function-name": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz",+ "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==",+ "dev": true,+ "requires": {+ "@babel/template": "^7.18.10",+ "@babel/types": "^7.19.0"+ },+ "dependencies": {+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/helper-hoist-variables": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz",+ "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.18.6"+ },+ "dependencies": {+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/helper-module-imports": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz",+ "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.18.6"+ },+ "dependencies": {+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/helper-module-transforms": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz",+ "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==",+ "dev": true,+ "requires": {+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-module-imports": "^7.18.6",+ "@babel/helper-simple-access": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/helper-validator-identifier": "^7.18.6",+ "@babel/template": "^7.18.10",+ "@babel/traverse": "^7.19.0",+ "@babel/types": "^7.19.0"+ },+ "dependencies": {+ "@babel/generator": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz",+ "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.19.3",+ "@jridgewell/gen-mapping": "^0.3.2",+ "jsesc": "^2.5.1"+ }+ },+ "@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true+ },+ "@babel/traverse": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz",+ "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==",+ "dev": true,+ "requires": {+ "@babel/code-frame": "^7.18.6",+ "@babel/generator": "^7.19.3",+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-function-name": "^7.19.0",+ "@babel/helper-hoist-variables": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/parser": "^7.19.3",+ "@babel/types": "^7.19.3",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ }+ },+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ },+ "@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "requires": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ },+ "globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true+ }+ }+ },+ "@babel/helper-simple-access": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz",+ "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.18.6"+ },+ "dependencies": {+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/helper-split-export-declaration": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz",+ "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.18.6"+ },+ "dependencies": {+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/helper-string-parser": {+ "version": "7.18.10",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz",+ "integrity": "sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==",+ "dev": true+ },+ "@babel/helper-validator-identifier": {+ "version": "7.19.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz",+ "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==",+ "dev": true+ },+ "@babel/helper-validator-option": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz",+ "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==",+ "dev": true+ },+ "@babel/helpers": {+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz",+ "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==",+ "dev": true,+ "requires": {+ "@babel/template": "^7.18.10",+ "@babel/traverse": "^7.19.0",+ "@babel/types": "^7.19.0"+ },+ "dependencies": {+ "@babel/generator": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz",+ "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==",+ "dev": true,+ "requires": {+ "@babel/types": "^7.19.3",+ "@jridgewell/gen-mapping": "^0.3.2",+ "jsesc": "^2.5.1"+ }+ },+ "@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true+ },+ "@babel/traverse": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz",+ "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==",+ "dev": true,+ "requires": {+ "@babel/code-frame": "^7.18.6",+ "@babel/generator": "^7.19.3",+ "@babel/helper-environment-visitor": "^7.18.9",+ "@babel/helper-function-name": "^7.19.0",+ "@babel/helper-hoist-variables": "^7.18.6",+ "@babel/helper-split-export-declaration": "^7.18.6",+ "@babel/parser": "^7.19.3",+ "@babel/types": "^7.19.3",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ }+ },+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ },+ "@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "requires": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ },+ "globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true+ }+ }+ },+ "@babel/highlight": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz",+ "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==",+ "dev": true,+ "requires": {+ "@babel/helper-validator-identifier": "^7.18.6",+ "chalk": "^2.0.0",+ "js-tokens": "^4.0.0"+ }+ },+ "@babel/parser": {+ "version": "7.17.8",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.8.tgz",+ "integrity": "sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==",+ "dev": true+ },+ "@babel/template": {+ "version": "7.18.10",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz",+ "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==",+ "dev": true,+ "requires": {+ "@babel/code-frame": "^7.18.6",+ "@babel/parser": "^7.18.10",+ "@babel/types": "^7.18.10"+ },+ "dependencies": {+ "@babel/parser": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.3.tgz",+ "integrity": "sha512-pJ9xOlNWHiy9+FuFP09DEAFbAn4JskgRsVcc169w2xRBC3FRGuQEwjeIMMND9L2zc0iEhO/tGv4Zq+km+hxNpQ==",+ "dev": true+ },+ "@babel/types": {+ "version": "7.19.3",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.19.3.tgz",+ "integrity": "sha512-hGCaQzIY22DJlDh9CH7NOxgKkFjBk0Cw9xDO1Xmh2151ti7wiGfQ3LauXzL4HP1fmFlTX6XjpRETTpUcv7wQLw==",+ "dev": true,+ "requires": {+ "@babel/helper-string-parser": "^7.18.10",+ "@babel/helper-validator-identifier": "^7.19.1",+ "to-fast-properties": "^2.0.0"+ }+ }+ }+ },+ "@babel/traverse": {+ "version": "7.17.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz",+ "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==",+ "dev": true,+ "requires": {+ "@babel/code-frame": "^7.16.7",+ "@babel/generator": "^7.17.3",+ "@babel/helper-environment-visitor": "^7.16.7",+ "@babel/helper-function-name": "^7.16.7",+ "@babel/helper-hoist-variables": "^7.16.7",+ "@babel/helper-split-export-declaration": "^7.16.7",+ "@babel/parser": "^7.17.3",+ "@babel/types": "^7.17.0",+ "debug": "^4.1.0",+ "globals": "^11.1.0"+ },+ "dependencies": {+ "globals": {+ "version": "11.12.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",+ "dev": true+ }+ }+ },+ "@babel/types": {+ "version": "7.17.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz",+ "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==",+ "dev": true,+ "requires": {+ "@babel/helper-validator-identifier": "^7.16.7",+ "to-fast-properties": "^2.0.0"+ }+ },+ "@eslint/eslintrc": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz",+ "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==",+ "dev": true,+ "requires": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^9.4.0",+ "globals": "^13.15.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ }+ },+ "@humanwhocodes/config-array": {+ "version": "0.10.5",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.5.tgz",+ "integrity": "sha512-XVVDtp+dVvRxMoxSiSfasYaG02VEe1qH5cKgMQJWhol6HwzbcqoCMJi8dAGoYAO57jhUyhI6cWuRiTcRaDaYug==",+ "dev": true,+ "requires": {+ "@humanwhocodes/object-schema": "^1.2.1",+ "debug": "^4.1.1",+ "minimatch": "^3.0.4"+ }+ },+ "@humanwhocodes/gitignore-to-minimatch": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz",+ "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==",+ "dev": true+ },+ "@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true+ },+ "@humanwhocodes/object-schema": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",+ "dev": true+ },+ "@jridgewell/gen-mapping": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",+ "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==",+ "dev": true,+ "requires": {+ "@jridgewell/set-array": "^1.0.0",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },+ "@jridgewell/resolve-uri": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",+ "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",+ "dev": true+ },+ "@jridgewell/set-array": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",+ "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",+ "dev": true+ },+ "@jridgewell/source-map": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz",+ "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==",+ "dev": true,+ "requires": {+ "@jridgewell/gen-mapping": "^0.3.0",+ "@jridgewell/trace-mapping": "^0.3.9"+ },+ "dependencies": {+ "@jridgewell/gen-mapping": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",+ "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",+ "dev": true,+ "requires": {+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ }+ }+ },+ "@jridgewell/sourcemap-codec": {+ "version": "1.4.14",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",+ "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",+ "dev": true+ },+ "@jridgewell/trace-mapping": {+ "version": "0.3.16",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.16.tgz",+ "integrity": "sha512-LCQ+NeThyJ4k1W2d+vIKdxuSt9R3pQSZ4P92m7EakaYuXcVWbHuT5bjNcqLd4Rdgi6xYWYDvBJZJLZSLanjDcA==",+ "dev": true,+ "requires": {+ "@jridgewell/resolve-uri": "3.1.0",+ "@jridgewell/sourcemap-codec": "1.4.14"+ }+ },+ "@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "requires": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ }+ },+ "@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true+ },+ "@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "requires": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ }+ },+ "@rollup/plugin-inject": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-inject/-/plugin-inject-4.0.4.tgz",+ "integrity": "sha512-4pbcU4J/nS+zuHk+c+OL3WtmEQhqxlZ9uqfjQMQDOHOPld7PsCd8k5LWs8h5wjwJN7MgnAn768F2sDxEP4eNFQ==",+ "dev": true,+ "requires": {+ "@rollup/pluginutils": "^3.1.0",+ "estree-walker": "^2.0.1",+ "magic-string": "^0.25.7"+ }+ },+ "@rollup/plugin-node-resolve": {+ "version": "14.1.0",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-14.1.0.tgz",+ "integrity": "sha512-5G2niJroNCz/1zqwXtk0t9+twOSDlG00k1Wfd7bkbbXmwg8H8dvgHdIWAun53Ps/rckfvOC7scDBjuGFg5OaWw==",+ "dev": true,+ "requires": {+ "@rollup/pluginutils": "^3.1.0",+ "@types/resolve": "1.17.1",+ "deepmerge": "^4.2.2",+ "is-builtin-module": "^3.1.0",+ "is-module": "^1.0.0",+ "resolve": "^1.19.0"+ }+ },+ "@rollup/pluginutils": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",+ "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",+ "dev": true,+ "requires": {+ "@types/estree": "0.0.39",+ "estree-walker": "^1.0.1",+ "picomatch": "^2.2.2"+ },+ "dependencies": {+ "estree-walker": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",+ "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",+ "dev": true+ }+ }+ },+ "@trivago/prettier-plugin-sort-imports": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.3.0.tgz",+ "integrity": "sha512-1y44bVZuIN0RsS3oIiGd5k8Vm3IZXYZnp4VsP2Z/S5L9WAOw43HE2clso66M2S/dDeJ+8sKPqnHsEfh39Vjs3w==",+ "dev": true,+ "requires": {+ "@babel/core": "7.17.8",+ "@babel/generator": "7.17.7",+ "@babel/parser": "7.17.8",+ "@babel/traverse": "7.17.3",+ "@babel/types": "7.17.0",+ "javascript-natural-sort": "0.7.1",+ "lodash": "4.17.21"+ }+ },+ "@types/estree": {+ "version": "0.0.39",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",+ "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",+ "dev": true+ },+ "@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+ },+ "@types/node": {+ "version": "18.7.23",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz",+ "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==",+ "dev": true+ },+ "@types/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/@types/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-Nd8y/5t/7CRakPYiyPzr/IAfYusy1FkcZYFEAcoMZkwpJv2n4Wm+olW+e7xBdHEXhOnWdG9ddbar0gqZWS4x5Q==",+ "dev": true+ },+ "@types/resolve": {+ "version": "1.17.1",+ "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",+ "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==",+ "dev": true,+ "requires": {+ "@types/node": "*"+ }+ },+ "@typescript-eslint/eslint-plugin": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.1.tgz",+ "integrity": "sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==",+ "dev": true,+ "requires": {+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/type-utils": "5.38.1",+ "@typescript-eslint/utils": "5.38.1",+ "debug": "^4.3.4",+ "ignore": "^5.2.0",+ "regexpp": "^3.2.0",+ "semver": "^7.3.7",+ "tsutils": "^3.21.0"+ },+ "dependencies": {+ "semver": {+ "version": "7.3.7",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",+ "dev": true,+ "requires": {+ "lru-cache": "^6.0.0"+ }+ }+ }+ },+ "@typescript-eslint/parser": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.1.tgz",+ "integrity": "sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==",+ "dev": true,+ "requires": {+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/typescript-estree": "5.38.1",+ "debug": "^4.3.4"+ }+ },+ "@typescript-eslint/scope-manager": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz",+ "integrity": "sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==",+ "dev": true,+ "requires": {+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/visitor-keys": "5.38.1"+ }+ },+ "@typescript-eslint/type-utils": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz",+ "integrity": "sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==",+ "dev": true,+ "requires": {+ "@typescript-eslint/typescript-estree": "5.38.1",+ "@typescript-eslint/utils": "5.38.1",+ "debug": "^4.3.4",+ "tsutils": "^3.21.0"+ }+ },+ "@typescript-eslint/types": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.1.tgz",+ "integrity": "sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==",+ "dev": true+ },+ "@typescript-eslint/typescript-estree": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz",+ "integrity": "sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==",+ "dev": true,+ "requires": {+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/visitor-keys": "5.38.1",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "semver": "^7.3.7",+ "tsutils": "^3.21.0"+ },+ "dependencies": {+ "semver": {+ "version": "7.3.7",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",+ "dev": true,+ "requires": {+ "lru-cache": "^6.0.0"+ }+ }+ }+ },+ "@typescript-eslint/utils": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.1.tgz",+ "integrity": "sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==",+ "dev": true,+ "requires": {+ "@types/json-schema": "^7.0.9",+ "@typescript-eslint/scope-manager": "5.38.1",+ "@typescript-eslint/types": "5.38.1",+ "@typescript-eslint/typescript-estree": "5.38.1",+ "eslint-scope": "^5.1.1",+ "eslint-utils": "^3.0.0"+ },+ "dependencies": {+ "eslint-scope": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "dev": true,+ "requires": {+ "esrecurse": "^4.3.0",+ "estraverse": "^4.1.1"+ }+ },+ "estraverse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",+ "dev": true+ }+ }+ },+ "@typescript-eslint/visitor-keys": {+ "version": "5.38.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz",+ "integrity": "sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==",+ "dev": true,+ "requires": {+ "@typescript-eslint/types": "5.38.1",+ "eslint-visitor-keys": "^3.3.0"+ }+ },+ "acorn": {+ "version": "8.8.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",+ "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",+ "dev": true+ },+ "acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "requires": {}+ },+ "ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "requires": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ }+ },+ "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+ },+ "ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dev": true,+ "requires": {+ "color-convert": "^1.9.0"+ }+ },+ "argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true+ },+ "array-union": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",+ "dev": true+ },+ "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+ },+ "brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "requires": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "dev": true,+ "requires": {+ "fill-range": "^7.0.1"+ }+ },+ "browserslist": {+ "version": "4.21.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz",+ "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==",+ "dev": true,+ "requires": {+ "caniuse-lite": "^1.0.30001400",+ "electron-to-chromium": "^1.4.251",+ "node-releases": "^2.0.6",+ "update-browserslist-db": "^1.0.9"+ }+ },+ "buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true+ },+ "builtin-modules": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz",+ "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==",+ "dev": true+ },+ "builtins": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/builtins/-/builtins-2.0.1.tgz",+ "integrity": "sha512-XkkVe5QAb6guWPXTzpSrYpSlN3nqEmrrE2TkAr/tp7idSF6+MONh9WvKrAuR3HiKLvoSgmbs8l1U9IPmMrIoLw==",+ "dev": true,+ "requires": {+ "semver": "^6.0.0"+ }+ },+ "busboy": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",+ "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",+ "dev": true,+ "requires": {+ "streamsearch": "^1.1.0"+ }+ },+ "callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true+ },+ "caniuse-lite": {+ "version": "1.0.30001418",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001418.tgz",+ "integrity": "sha512-oIs7+JL3K9JRQ3jPZjlH6qyYDp+nBTCais7hjh0s+fuBwufc7uZ7hPYMXrDOJhV360KGMTcczMRObk0/iMqZRg==",+ "dev": true+ },+ "chalk": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",+ "dev": true,+ "requires": {+ "ansi-styles": "^3.2.1",+ "escape-string-regexp": "^1.0.5",+ "supports-color": "^5.3.0"+ }+ },+ "color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dev": true,+ "requires": {+ "color-name": "1.1.3"+ }+ },+ "color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",+ "dev": true+ },+ "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==",+ "dev": true+ },+ "commondir": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",+ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",+ "dev": true+ },+ "concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",+ "dev": true+ },+ "convert-source-map": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz",+ "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==",+ "dev": true,+ "requires": {+ "safe-buffer": "~5.1.1"+ }+ },+ "cross-fetch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",+ "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",+ "requires": {+ "node-fetch": "2.6.7"+ }+ },+ "cross-spawn": {+ "version": "7.0.3",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",+ "dev": true,+ "requires": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ }+ },+ "debug": {+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",+ "dev": true,+ "requires": {+ "ms": "2.1.2"+ }+ },+ "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+ },+ "deepmerge": {+ "version": "4.2.2",+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",+ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",+ "dev": true+ },+ "dir-glob": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",+ "dev": true,+ "requires": {+ "path-type": "^4.0.0"+ },+ "dependencies": {+ "path-type": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",+ "dev": true+ }+ }+ },+ "doctrine": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",+ "dev": true,+ "requires": {+ "esutils": "^2.0.2"+ }+ },+ "electron-to-chromium": {+ "version": "1.4.276",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.276.tgz",+ "integrity": "sha512-EpuHPqu8YhonqLBXHoU6hDJCD98FCe6KDoet3/gY1qsQ6usjJoHqBH2YIVs8FXaAtHwVL8Uqa/fsYao/vq9VWQ==",+ "dev": true+ },+ "error-ex": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",+ "dev": true,+ "requires": {+ "is-arrayish": "^0.2.1"+ }+ },+ "escalade": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",+ "dev": true+ },+ "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==",+ "dev": true+ },+ "eslint": {+ "version": "8.24.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz",+ "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==",+ "dev": true,+ "requires": {+ "@eslint/eslintrc": "^1.3.2",+ "@humanwhocodes/config-array": "^0.10.5",+ "@humanwhocodes/gitignore-to-minimatch": "^1.0.2",+ "@humanwhocodes/module-importer": "^1.0.1",+ "ajv": "^6.10.0",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.2",+ "debug": "^4.3.2",+ "doctrine": "^3.0.0",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^7.1.1",+ "eslint-utils": "^3.0.0",+ "eslint-visitor-keys": "^3.3.0",+ "espree": "^9.4.0",+ "esquery": "^1.4.0",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^6.0.1",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.1",+ "globals": "^13.15.0",+ "globby": "^11.1.0",+ "grapheme-splitter": "^1.0.4",+ "ignore": "^5.2.0",+ "import-fresh": "^3.0.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "js-sdsl": "^4.1.4",+ "js-yaml": "^4.1.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "levn": "^0.4.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.1",+ "regexpp": "^3.2.0",+ "strip-ansi": "^6.0.1",+ "strip-json-comments": "^3.1.0",+ "text-table": "^0.2.0"+ },+ "dependencies": {+ "ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "requires": {+ "color-convert": "^2.0.1"+ }+ },+ "chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "requires": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ }+ },+ "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,+ "requires": {+ "color-name": "~1.1.4"+ }+ },+ "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+ },+ "escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true+ },+ "has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true+ },+ "supports-color": {+ "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,+ "requires": {+ "has-flag": "^4.0.0"+ }+ }+ }+ },+ "eslint-config-prettier": {+ "version": "8.5.0",+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz",+ "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==",+ "dev": true,+ "requires": {}+ },+ "eslint-plugin-prettier": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz",+ "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==",+ "dev": true,+ "requires": {+ "prettier-linter-helpers": "^1.0.0"+ }+ },+ "eslint-plugin-unused-imports": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz",+ "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==",+ "dev": true,+ "requires": {+ "eslint-rule-composer": "^0.3.0"+ }+ },+ "eslint-rule-composer": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz",+ "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==",+ "dev": true+ },+ "eslint-scope": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz",+ "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",+ "dev": true,+ "requires": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ }+ },+ "eslint-utils": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",+ "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",+ "dev": true,+ "requires": {+ "eslint-visitor-keys": "^2.0.0"+ },+ "dependencies": {+ "eslint-visitor-keys": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",+ "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",+ "dev": true+ }+ }+ },+ "eslint-visitor-keys": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",+ "dev": true+ },+ "espree": {+ "version": "9.4.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz",+ "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==",+ "dev": true,+ "requires": {+ "acorn": "^8.8.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^3.3.0"+ }+ },+ "esquery": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz",+ "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==",+ "dev": true,+ "requires": {+ "estraverse": "^5.1.0"+ }+ },+ "esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "requires": {+ "estraverse": "^5.2.0"+ }+ },+ "estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true+ },+ "estree-walker": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",+ "dev": true+ },+ "esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true+ },+ "fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true+ },+ "fast-diff": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz",+ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",+ "dev": true+ },+ "fast-glob": {+ "version": "3.2.11",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz",+ "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",+ "dev": true,+ "requires": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.4"+ },+ "dependencies": {+ "glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "requires": {+ "is-glob": "^4.0.1"+ }+ }+ }+ },+ "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",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true+ },+ "fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",+ "dev": true+ },+ "fastq": {+ "version": "1.13.0",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz",+ "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",+ "dev": true,+ "requires": {+ "reusify": "^1.0.4"+ }+ },+ "file-entry-cache": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "dev": true,+ "requires": {+ "flat-cache": "^3.0.4"+ }+ },+ "fill-range": {+ "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,+ "requires": {+ "to-regex-range": "^5.0.1"+ }+ },+ "find-cache-dir": {+ "version": "3.3.2",+ "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",+ "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",+ "dev": true,+ "requires": {+ "commondir": "^1.0.1",+ "make-dir": "^3.0.2",+ "pkg-dir": "^4.1.0"+ },+ "dependencies": {+ "find-up": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",+ "dev": true,+ "requires": {+ "locate-path": "^5.0.0",+ "path-exists": "^4.0.0"+ }+ },+ "locate-path": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",+ "dev": true,+ "requires": {+ "p-locate": "^4.1.0"+ }+ },+ "p-limit": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "dev": true,+ "requires": {+ "p-try": "^2.0.0"+ }+ },+ "p-locate": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",+ "dev": true,+ "requires": {+ "p-limit": "^2.2.0"+ }+ },+ "pkg-dir": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",+ "dev": true,+ "requires": {+ "find-up": "^4.0.0"+ }+ }+ }+ },+ "find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "requires": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ }+ },+ "flat-cache": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",+ "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",+ "dev": true,+ "requires": {+ "flatted": "^3.1.0",+ "rimraf": "^3.0.2"+ }+ },+ "flatted": {+ "version": "3.2.5",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz",+ "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==",+ "dev": true+ },+ "fs-extra": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",+ "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",+ "dev": true,+ "requires": {+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ }+ },+ "fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",+ "dev": true+ },+ "fsevents": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",+ "dev": true,+ "optional": true+ },+ "function-bind": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",+ "dev": true+ },+ "gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true+ },+ "glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "dev": true,+ "requires": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ }+ },+ "glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "requires": {+ "is-glob": "^4.0.3"+ }+ },+ "globals": {+ "version": "13.17.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz",+ "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==",+ "dev": true,+ "requires": {+ "type-fest": "^0.20.2"+ }+ },+ "globalyzer": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",+ "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==",+ "dev": true+ },+ "globby": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "dev": true,+ "requires": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ }+ },+ "globrex": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",+ "dev": true+ },+ "graceful-fs": {+ "version": "4.2.9",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",+ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==",+ "dev": true+ },+ "grapheme-splitter": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",+ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",+ "dev": true+ },+ "has": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",+ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",+ "dev": true,+ "requires": {+ "function-bind": "^1.1.1"+ }+ },+ "has-flag": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",+ "dev": true+ },+ "hosted-git-info": {+ "version": "2.8.9",+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",+ "dev": true+ },+ "ignore": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",+ "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==",+ "dev": true+ },+ "import-fresh": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",+ "dev": true,+ "requires": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ }+ },+ "imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",+ "dev": true+ },+ "inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",+ "dev": true,+ "requires": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true+ },+ "is-arrayish": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",+ "dev": true+ },+ "is-builtin-module": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz",+ "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==",+ "dev": true,+ "requires": {+ "builtin-modules": "^3.0.0"+ }+ },+ "is-core-module": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",+ "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",+ "dev": true,+ "requires": {+ "has": "^1.0.3"+ }+ },+ "is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",+ "dev": true+ },+ "is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "requires": {+ "is-extglob": "^2.1.1"+ }+ },+ "is-module": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",+ "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",+ "dev": true+ },+ "is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true+ },+ "isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",+ "dev": true+ },+ "isomorphic-ws": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",+ "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",+ "requires": {}+ },+ "javascript-natural-sort": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",+ "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==",+ "dev": true+ },+ "jest-worker": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz",+ "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==",+ "dev": true,+ "requires": {+ "@types/node": "*",+ "merge-stream": "^2.0.0",+ "supports-color": "^7.0.0"+ },+ "dependencies": {+ "has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true+ },+ "supports-color": {+ "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,+ "requires": {+ "has-flag": "^4.0.0"+ }+ }+ }+ },+ "js-sdsl": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz",+ "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==",+ "dev": true+ },+ "js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true+ },+ "js-yaml": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",+ "dev": true,+ "requires": {+ "argparse": "^2.0.1"+ }+ },+ "jsesc": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",+ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",+ "dev": true+ },+ "json-parse-better-errors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",+ "dev": true+ },+ "json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true+ },+ "json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",+ "dev": true+ },+ "json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true+ },+ "jsonfile": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "dev": true,+ "requires": {+ "graceful-fs": "^4.1.6",+ "universalify": "^2.0.0"+ }+ },+ "levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "requires": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ }+ },+ "load-json-file": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",+ "dev": true,+ "requires": {+ "graceful-fs": "^4.1.2",+ "parse-json": "^4.0.0",+ "pify": "^3.0.0",+ "strip-bom": "^3.0.0"+ }+ },+ "locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "requires": {+ "p-locate": "^5.0.0"+ }+ },+ "lodash": {+ "version": "4.17.21",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",+ "dev": true+ },+ "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+ },+ "lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "requires": {+ "yallist": "^4.0.0"+ }+ },+ "magic-string": {+ "version": "0.25.7",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",+ "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",+ "dev": true,+ "requires": {+ "sourcemap-codec": "^1.4.4"+ }+ },+ "make-dir": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "dev": true,+ "requires": {+ "semver": "^6.0.0"+ }+ },+ "merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true+ },+ "merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true+ },+ "micromatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",+ "dev": true,+ "requires": {+ "braces": "^3.0.2",+ "picomatch": "^2.3.1"+ }+ },+ "mime": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",+ "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==",+ "dev": true+ },+ "minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "requires": {+ "brace-expansion": "^1.1.7"+ }+ },+ "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+ },+ "natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",+ "dev": true+ },+ "node-fetch": {+ "version": "2.6.7",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",+ "requires": {+ "whatwg-url": "^5.0.0"+ }+ },+ "node-releases": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz",+ "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==",+ "dev": true+ },+ "normalize-package-data": {+ "version": "2.5.0",+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",+ "dev": true,+ "requires": {+ "hosted-git-info": "^2.1.4",+ "resolve": "^1.10.0",+ "semver": "2 || 3 || 4 || 5",+ "validate-npm-package-license": "^3.0.1"+ },+ "dependencies": {+ "semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "dev": true+ }+ }+ },+ "normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="+ },+ "once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",+ "dev": true,+ "requires": {+ "wrappy": "1"+ }+ },+ "openapi-typescript": {+ "version": "5.4.1",+ "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-5.4.1.tgz",+ "integrity": "sha512-AGB2QiZPz4rE7zIwV3dRHtoUC/CWHhUjuzGXvtmMQN2AFV8xCTLKcZUHLcdPQmt/83i22nRE7+TxXOXkK+gf4Q==",+ "dev": true,+ "requires": {+ "js-yaml": "^4.1.0",+ "mime": "^3.0.0",+ "prettier": "^2.6.2",+ "tiny-glob": "^0.2.9",+ "undici": "^5.4.0",+ "yargs-parser": "^21.0.1"+ }+ },+ "openapi-typescript-fetch": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",+ "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg=="+ },+ "optionator": {+ "version": "0.9.1",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",+ "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",+ "dev": true,+ "requires": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.3"+ }+ },+ "p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "requires": {+ "yocto-queue": "^0.1.0"+ }+ },+ "p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "requires": {+ "p-limit": "^3.0.2"+ }+ },+ "p-try": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",+ "dev": true+ },+ "parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "requires": {+ "callsites": "^3.0.0"+ }+ },+ "parse-json": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",+ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",+ "dev": true,+ "requires": {+ "error-ex": "^1.3.1",+ "json-parse-better-errors": "^1.0.1"+ }+ },+ "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+ },+ "path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",+ "dev": true+ },+ "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+ },+ "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+ },+ "path-type": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",+ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",+ "dev": true,+ "requires": {+ "pify": "^3.0.0"+ }+ },+ "picocolors": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",+ "dev": true+ },+ "picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true+ },+ "pify": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",+ "dev": true+ },+ "prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true+ },+ "prettier": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",+ "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",+ "dev": true+ },+ "prettier-linter-helpers": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",+ "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",+ "dev": true,+ "requires": {+ "fast-diff": "^1.1.2"+ }+ },+ "punycode": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",+ "dev": true+ },+ "queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true+ },+ "randombytes": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",+ "dev": true,+ "requires": {+ "safe-buffer": "^5.1.0"+ }+ },+ "read-pkg": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",+ "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",+ "dev": true,+ "requires": {+ "load-json-file": "^4.0.0",+ "normalize-package-data": "^2.3.2",+ "path-type": "^3.0.0"+ }+ },+ "regexpp": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",+ "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",+ "dev": true+ },+ "resolve": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",+ "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",+ "dev": true,+ "requires": {+ "is-core-module": "^2.8.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ }+ },+ "resolve-from": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true+ },+ "reusify": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",+ "dev": true+ },+ "rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,+ "requires": {+ "glob": "^7.1.3"+ }+ },+ "rollup": {+ "version": "2.79.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz",+ "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==",+ "dev": true,+ "requires": {+ "fsevents": "~2.3.2"+ }+ },+ "rollup-plugin-auto-external": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/rollup-plugin-auto-external/-/rollup-plugin-auto-external-2.0.0.tgz",+ "integrity": "sha512-HQM3ZkZYfSam1uoZtAB9sK26EiAsfs1phrkf91c/YX+S07wugyRXSigBxrIwiLr5EPPilKYmoMxsrnlGBsXnuQ==",+ "dev": true,+ "requires": {+ "builtins": "^2.0.0",+ "read-pkg": "^3.0.0",+ "safe-resolve": "^1.0.0",+ "semver": "^5.5.0"+ },+ "dependencies": {+ "semver": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",+ "dev": true+ }+ }+ },+ "rollup-plugin-polyfill-node": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.10.2.tgz",+ "integrity": "sha512-5GMywXiLiuQP6ZzED/LO/Q0HyDi2W6b8VN+Zd3oB0opIjyRs494Me2ZMaqKWDNbGiW4jvvzl6L2n4zRgxS9cSQ==",+ "dev": true,+ "requires": {+ "@rollup/plugin-inject": "^4.0.0"+ }+ },+ "rollup-plugin-terser": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz",+ "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==",+ "dev": true,+ "requires": {+ "@babel/code-frame": "^7.10.4",+ "jest-worker": "^26.2.1",+ "serialize-javascript": "^4.0.0",+ "terser": "^5.0.0"+ }+ },+ "rollup-plugin-typescript2": {+ "version": "0.34.0",+ "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.34.0.tgz",+ "integrity": "sha512-dGtOz2kL6nQVgfIOmnA4Xh+5cFrs3bdu4jja/ej7WKR92RzOOixsn71LY5ZFFmKe1R677nUh+k2++NiY3un2PQ==",+ "dev": true,+ "requires": {+ "@rollup/pluginutils": "^4.1.2",+ "find-cache-dir": "^3.3.2",+ "fs-extra": "^10.0.0",+ "tslib": "^2.4.0"+ },+ "dependencies": {+ "@rollup/pluginutils": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.2.tgz",+ "integrity": "sha512-ROn4qvkxP9SyPeHaf7uQC/GPFY6L/OWy9+bd9AwcjOAWQwxRscoEyAUD8qCY5o5iL4jqQwoLk2kaTKJPb/HwzQ==",+ "dev": true,+ "requires": {+ "estree-walker": "^2.0.1",+ "picomatch": "^2.2.2"+ }+ }+ }+ },+ "rpc-websocket-client": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/rpc-websocket-client/-/rpc-websocket-client-1.1.4.tgz",+ "integrity": "sha512-UDMVcsNDJ3WET+0EFdmseYX+60MOCA3BpgpZ5dbtiGsqHo+9uWfgNbPZ4iGDtNcX+EUhCt/Y7C0fTmUU3CkkWA==",+ "requires": {+ "isomorphic-ws": "^4.0.1",+ "uuid": "^3.3.3",+ "ws": "^7.1.2"+ }+ },+ "run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "requires": {+ "queue-microtask": "^1.2.2"+ }+ },+ "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==",+ "dev": true+ },+ "safe-resolve": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/safe-resolve/-/safe-resolve-1.0.0.tgz",+ "integrity": "sha1-/jT40p16O+z9JJ0KqKeZtcPPZVk=",+ "dev": true+ },+ "semver": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",+ "dev": true+ },+ "serialize-javascript": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz",+ "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==",+ "dev": true,+ "requires": {+ "randombytes": "^2.1.0"+ }+ },+ "shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "requires": {+ "shebang-regex": "^3.0.0"+ }+ },+ "shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true+ },+ "slash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",+ "dev": true+ },+ "source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true+ },+ "source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "requires": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "sourcemap-codec": {+ "version": "1.4.8",+ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",+ "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",+ "dev": true+ },+ "spdx-correct": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",+ "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",+ "dev": true,+ "requires": {+ "spdx-expression-parse": "^3.0.0",+ "spdx-license-ids": "^3.0.0"+ }+ },+ "spdx-exceptions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",+ "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",+ "dev": true+ },+ "spdx-expression-parse": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",+ "dev": true,+ "requires": {+ "spdx-exceptions": "^2.1.0",+ "spdx-license-ids": "^3.0.0"+ }+ },+ "spdx-license-ids": {+ "version": "3.0.11",+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz",+ "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==",+ "dev": true+ },+ "streamsearch": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",+ "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",+ "dev": true+ },+ "strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "requires": {+ "ansi-regex": "^5.0.1"+ }+ },+ "strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",+ "dev": true+ },+ "strip-json-comments": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",+ "dev": true+ },+ "supports-color": {+ "version": "5.5.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",+ "dev": true,+ "requires": {+ "has-flag": "^3.0.0"+ }+ },+ "supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true+ },+ "terser": {+ "version": "5.16.0",+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.0.tgz",+ "integrity": "sha512-KjTV81QKStSfwbNiwlBXfcgMcOloyuRdb62/iLFPGBcVNF4EXjhdYBhYHmbJpiBrVxZhDvltE11j+LBQUxEEJg==",+ "dev": true,+ "requires": {+ "@jridgewell/source-map": "^0.3.2",+ "acorn": "^8.5.0",+ "commander": "^2.20.0",+ "source-map-support": "~0.5.20"+ }+ },+ "text-table": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",+ "dev": true+ },+ "tiny-glob": {+ "version": "0.2.9",+ "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",+ "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",+ "dev": true,+ "requires": {+ "globalyzer": "0.1.0",+ "globrex": "^0.1.2"+ }+ },+ "to-fast-properties": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",+ "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",+ "dev": true+ },+ "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,+ "requires": {+ "is-number": "^7.0.0"+ }+ },+ "tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="+ },+ "tslib": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",+ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",+ "dev": true+ },+ "tsutils": {+ "version": "3.21.0",+ "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",+ "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",+ "dev": true,+ "requires": {+ "tslib": "^1.8.1"+ },+ "dependencies": {+ "tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",+ "dev": true+ }+ }+ },+ "type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "requires": {+ "prelude-ls": "^1.2.1"+ }+ },+ "type-fest": {+ "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+ },+ "typescript": {+ "version": "4.9.4",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",+ "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",+ "dev": true+ },+ "undici": {+ "version": "5.13.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-5.13.0.tgz",+ "integrity": "sha512-UDZKtwb2k7KRsK4SdXWG7ErXiL7yTGgLWvk2AXO1JMjgjh404nFo6tWSCM2xMpJwMPx3J8i/vfqEh1zOqvj82Q==",+ "dev": true,+ "requires": {+ "busboy": "^1.6.0"+ }+ },+ "universalify": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",+ "dev": true+ },+ "update-browserslist-db": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz",+ "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==",+ "dev": true,+ "requires": {+ "escalade": "^3.1.1",+ "picocolors": "^1.0.0"+ }+ },+ "uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "requires": {+ "punycode": "^2.1.0"+ }+ },+ "uuid": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="+ },+ "validate-npm-package-license": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",+ "dev": true,+ "requires": {+ "spdx-correct": "^3.0.0",+ "spdx-expression-parse": "^3.0.0"+ }+ },+ "webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="+ },+ "whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",+ "requires": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "requires": {+ "isexe": "^2.0.0"+ }+ },+ "word-wrap": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",+ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",+ "dev": true+ },+ "wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",+ "dev": true+ },+ "ws": {+ "version": "7.5.7",+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz",+ "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==",+ "requires": {}+ },+ "yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true+ },+ "yargs-parser": {+ "version": "21.0.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz",+ "integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==",+ "dev": true+ },+ "yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true+ }+ }+}diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonnew file mode 100644index 000000000..4c70715d0--- /dev/null+++ b/packages/js-sdk/package.json@@ -0,0 +1,81 @@+{+ "name": "@e2b/sdk",+ "version": "0.0.2",+ "description": "E2B SDK that give agents cloud environments",+ "homepage": "https://e2b.dev",+ "license": "MIT",+ "author": {+ "name": "FoundryLabs, Inc.",+ "email": "[email protected]",+ "url": "https://e2b.dev"+ },+ "bugs": "https://github.com/e2b-dev/e2b/issues",+ "repository": {+ "type": "git",+ "url": "https://github.com/e2b-dev/e2b/tree/main/packages/js-sdk"+ },+ "publishConfig": {+ "access": "public"+ },+ "sideEffects": false,+ "main": "dist/cjs/index.js",+ "module": "dist/esm/index.js",+ "umd": "dist/umd/index.js",+ "scripts": {+ "prepublishOnly": "rollup -c",+ "build": "rollup -c",+ "watch": "rollup -c -w",+ "measure": "node test/performance.mjs",+ "run": "node test/run.mjs",+ "fix": "npx eslint **/src/**/*.{ts,js} --fix",+ "format": "prettier --check --ignore-path .gitignore .",+ "format:fix": "prettier --write --ignore-path .gitignore .",+ "generate": "openapi-typescript ../../openapi.yml -x api_key --support-array-length --alphabetize --output src/api/schema.gen.ts"+ },+ "devDependencies": {+ "@rollup/plugin-node-resolve": "^14.1.0",+ "@trivago/prettier-plugin-sort-imports": "^3.3.0",+ "@types/node": "^18.7.23",+ "@types/normalize-path": "^3.0.0",+ "@typescript-eslint/eslint-plugin": "^5.38.1",+ "@typescript-eslint/parser": "^5.38.1",+ "eslint": "^8.24.0",+ "eslint-config-prettier": "^8.5.0",+ "eslint-plugin-prettier": "^4.2.1",+ "eslint-plugin-unused-imports": "^2.0.0",+ "openapi-typescript": "^5.4.1",+ "prettier": "^2.7.1",+ "rollup": "^2.79.1",+ "rollup-plugin-auto-external": "^2.0.0",+ "rollup-plugin-polyfill-node": "^0.10.2",+ "rollup-plugin-terser": "^7.0.2",+ "rollup-plugin-typescript2": "^0.34.0",+ "typescript": "^4.9.4"+ },+ "files": [+ "dist",+ "src",+ "README.md",+ "package.json"+ ],+ "keywords": [+ "e2b",+ "ai-agents",+ "agents",+ "ai",+ "code-interpreter",+ "sandbox",+ "code",+ "runtime",+ "vm",+ "nodejs",+ "javascript",+ "typescript"+ ],+ "dependencies": {+ "cross-fetch": "^3.1.5",+ "normalize-path": "^3.0.0",+ "openapi-typescript-fetch": "^1.1.3",+ "rpc-websocket-client": "^1.1.4"+ }+}\ No newline at end of filediff --git a/packages/js-sdk/prettier.config.js b/packages/js-sdk/prettier.config.jsnew file mode 100644index 000000000..821108b58--- /dev/null+++ b/packages/js-sdk/prettier.config.js@@ -0,0 +1,12 @@+module.exports = {+ singleQuote: true,+ tabWidth: 2,+ semi: false,+ arrowParens: 'avoid',+ trailingComma: 'all',+ singleAttributePerLine: true,+ importOrder: ['<THIRD_PARTY_MODULES>', '^[./]'],+ importOrderSeparation: true,+ importOrderSortSpecifiers: true,+ printWidth: 90,+}diff --git a/packages/js-sdk/rollup.config.js b/packages/js-sdk/rollup.config.jsnew file mode 100644index 000000000..382611e6b--- /dev/null+++ b/packages/js-sdk/rollup.config.js@@ -0,0 +1,43 @@+import nodeResolve from '@rollup/plugin-node-resolve'+import autoExternal from 'rollup-plugin-auto-external'+import nodePolyfills from 'rollup-plugin-polyfill-node'+import { terser } from 'rollup-plugin-terser'+import typescript from 'rollup-plugin-typescript2'++import pkg from './package.json'++export default {+ input: 'src/index.ts',+ output: [+ {+ name: pkg.name,+ file: pkg.umd,+ format: 'umd',+ sourcemap: true,+ },+ {+ name: pkg.name,+ file: pkg.main,+ format: 'cjs',+ sourcemap: true,+ exports: 'auto',+ },+ {+ name: pkg.name,+ file: pkg.module,+ format: 'es',+ sourcemap: true,+ },+ ],+ external: ['cross-fetch', 'cross-fetch/polyfill'],+ plugins: [+ autoExternal({ builtins: false }),+ typescript(),+ nodePolyfills(),+ nodeResolve({+ preferBuiltins: true,+ browser: true,+ }),+ terser(),+ ],+}diff --git a/packages/js-sdk/src/api/cross-fetch-polyfill.d.ts b/packages/js-sdk/src/api/cross-fetch-polyfill.d.tsnew file mode 100644index 000000000..d95abf394--- /dev/null+++ b/packages/js-sdk/src/api/cross-fetch-polyfill.d.ts@@ -0,0 +1 @@+declare module 'cross-fetch/polyfill'diff --git a/packages/js-sdk/src/api/index.ts b/packages/js-sdk/src/api/index.tsnew file mode 100644index 000000000..aee6340fc--- /dev/null+++ b/packages/js-sdk/src/api/index.ts@@ -0,0 +1,16 @@+import 'cross-fetch/polyfill'+import { Fetcher } from 'openapi-typescript-fetch'++import { SESSION_DOMAIN } from '../constants'+import type { components, paths } from './schema.gen'++const client = Fetcher.for<paths>()++client.configure({+ baseUrl: `https://${SESSION_DOMAIN}`,+})++type ClientType = typeof client++export default client+export type { components, paths, ClientType }diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsnew file mode 100644index 000000000..9e759610c--- /dev/null+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -0,0 +1,353 @@+/**+ * This file was auto-generated by openapi-typescript.+ * Do not make direct changes to the file.+ */++export interface paths {+ "/health": {+ /** Health check */+ get: {+ responses: {+ /** Request was successful */+ 200: unknown;+ 401: components["responses"]["401"];+ };+ };+ };+ "/sessions": {+ /** List all sessions */+ get: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ };+ responses: {+ /** Successfully returned all sessions */+ 200: {+ content: {+ "application/json": components["schemas"]["Session"][];+ };+ };+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ /** Create a session on the server */+ post: {+ parameters: {+ query: {+ api_key?: components["parameters"]["apiKeyOpt"];+ };+ };+ responses: {+ /** Successfully created a session */+ 201: {+ content: {+ "application/json": components["schemas"]["Session"];+ };+ };+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["NewSession"];+ };+ };+ };+ };+ "/sessions/{sessionID}": {+ /** Delete a session on the server */+ delete: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ sessionID: components["parameters"]["sessionID"];+ };+ };+ responses: {+ /** Successfully deleted the session */+ 204: never;+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ };+ "/sessions/{sessionID}/refresh": {+ /** Refresh the session extending its time to live */+ post: {+ parameters: {+ query: {+ api_key?: components["parameters"]["apiKeyOpt"];+ };+ path: {+ sessionID: components["parameters"]["sessionID"];+ };+ };+ responses: {+ /** Successfully refreshed the session */+ 204: never;+ 401: components["responses"]["401"];+ /** Error refreshing session - session not found */+ 404: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ };+ };+ };+ "/envs": {+ /** List all environments */+ get: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ };+ responses: {+ /** Successfully returned all environments */+ 200: {+ content: {+ "application/json": components["schemas"]["Environment"][];+ };+ };+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ /** Create a new environment */+ post: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ };+ responses: {+ /** Successfully created an environment */+ 200: {+ content: {+ "application/json": components["schemas"]["Environment"];+ };+ };+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["NewEnvironment"];+ };+ };+ };+ };+ "/envs/{codeSnippetID}": {+ /** Create a new env for a code snippet */+ post: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ codeSnippetID: components["parameters"]["codeSnippetID"];+ };+ };+ responses: {+ /** Successfully created an environment */+ 204: never;+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["NewEnvironment"];+ };+ };+ };+ /** Delete the code snippet environment */+ delete: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ codeSnippetID: components["parameters"]["codeSnippetID"];+ };+ };+ responses: {+ /** Successfully deleted the environment */+ 204: never;+ /** Cannot delete the environment */+ 400: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ /** Update the environment of the code snippet to match the edit environment */+ patch: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ codeSnippetID: components["parameters"]["codeSnippetID"];+ };+ };+ responses: {+ /** Updated the edit environment for code snippet */+ 204: never;+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ };+ "/envs/{codeSnippetID}/state": {+ /** Update the state of the environment */+ put: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ codeSnippetID: components["parameters"]["codeSnippetID"];+ };+ };+ responses: {+ /** Updated the state of environment */+ 204: never;+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["EnvironmentStateUpdate"];+ };+ };+ };+ };+ "/envs/{codeSnippetID}/title": {+ /** Update the title of the environment */+ put: {+ parameters: {+ query: {+ api_key: components["parameters"]["apiKeyReq"];+ };+ path: {+ codeSnippetID: components["parameters"]["codeSnippetID"];+ };+ };+ responses: {+ /** Updated the title of the code snippet */+ 204: never;+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["EnvironmentTitleUpdate"];+ };+ };+ };+ };+}++export interface components {+ schemas: {+ /** @enum {string} */+ Template:+ | "Nodejs"+ | "Go"+ | "Bash"+ | "Rust"+ | "Python3"+ | "PHP"+ | "Java"+ | "Perl"+ | "DotNET";+ /** @enum {string} */+ EnvironmentState: "Building" | "Failed" | "Done";+ Environment: {+ id: string;+ template?: string;+ title?: string;+ };+ NewEnvironment: {+ title?: string;+ template: string;+ };+ EnvironmentStateUpdate: {+ state: components["schemas"]["EnvironmentState"];+ };+ EnvironmentTitleUpdate: {+ title?: string;+ };+ NewSession: {+ /**+ * @description Option determining if the session is a shared persistent edit session+ * @default false+ */+ editEnabled?: boolean;+ /** @description Identifier of a code snippet which which is the environment associated */+ codeSnippetID: string;+ };+ Session: {+ /** @description Identifier of a code snippet which which is the environment associated */+ codeSnippetID: string;+ /** @description Information if the session is a shared persistent edit session */+ editEnabled: boolean;+ /** @description Identifier of the session */+ sessionID: string;+ /** @description Identifier of the client */+ clientID: string;+ };+ Error: {+ /**+ * Format: int32+ * @description Error code+ */+ code: number;+ /** @description Error */+ message: string;+ };+ };+ responses: {+ /** Bad request */+ 400: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** Authentication error */+ 401: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** Server error */+ 500: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ };+ parameters: {+ apiKeyOpt: string;+ apiKeyReq: string;+ codeSnippetID: string;+ sessionID: string;+ };+}++export interface operations {}++export interface external {}diff --git a/packages/js-sdk/src/constants.ts b/packages/js-sdk/src/constants.tsnew file mode 100644index 000000000..a107cad32--- /dev/null+++ b/packages/js-sdk/src/constants.ts@@ -0,0 +1,6 @@+export const SESSION_REFRESH_PERIOD = 5_000 // 5s+export const WS_RECONNECT_INTERVAL = 600 // 600ms++export const SESSION_DOMAIN = 'ondevbook.com'+export const WS_PORT = 49982+export const WS_ROUTE = '/ws'diff --git a/packages/js-sdk/src/helpers/createSessionProcess.ts b/packages/js-sdk/src/helpers/createSessionProcess.tsnew file mode 100644index 000000000..81bf5a3da--- /dev/null+++ b/packages/js-sdk/src/helpers/createSessionProcess.ts@@ -0,0 +1,45 @@+import { OutStderrResponse, OutStdoutResponse } from '../session/out'+import { ProcessManager } from '../session/process'+import { createDeferredPromise } from '../utils/promise'++export async function createSessionProcess({+ cmd,+ manager,+ onStderr,+ onStdout,+ processID,+ rootdir,+}: {+ cmd: string+ manager?: ProcessManager+ onStdout?: (o: OutStdoutResponse) => void+ onStderr?: (o: OutStderrResponse) => void+ processID?: string+ rootdir?: string+}) {+ if (!manager) {+ throw new Error('Cannot create process - process manager is not defined')+ }++ const { resolve, promise: exited } = createDeferredPromise()++ const onExit = () => {+ resolve()+ }++ const process = await manager.start({+ cmd,+ onStdout,+ onStderr,+ onExit,+ rootdir,+ processID,+ })++ return {+ exited,+ processID: process.processID,+ kill: process.kill,+ sendStdin: process.sendStdin,+ }+}diff --git a/packages/js-sdk/src/helpers/index.ts b/packages/js-sdk/src/helpers/index.tsnew file mode 100644index 000000000..4aff2ca3d--- /dev/null+++ b/packages/js-sdk/src/helpers/index.ts@@ -0,0 +1 @@+export * from './createSessionProcess'diff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.tsnew file mode 100644index 000000000..9b5afe44e--- /dev/null+++ b/packages/js-sdk/src/index.ts@@ -0,0 +1,31 @@+export { default as Session } from './session'+export type { SessionOpts } from './session'+export { CodeSnippetExecState } from './session/codeSnippet'+export type {+ CodeSnippetManager,+ CodeSnippetStateHandler,+ CodeSnippetStderrHandler,+ CodeSnippetStdoutHandler,+ CodeSnippetSubscriptionHandler,+ CodeSnippetSubscriptionHandlerType,+ OpenedPort,+} from './session/codeSnippet'+export type { OutResponse, OutStderrResponse, OutStdoutResponse } from './session/out'+export { OutType } from './session/out'+export type { TerminalManager, Terminal as TerminalSession } from './session/terminal'+export type { FilesystemManager, FileInfo } from './session/filesystem'+export {+ default as FilesystemWatcher,+ FilesystemOperation,+} from './session/filesystemWatcher'+export type {+ FilesystemEvent,+ FilesystemEventListener,+} from './session/filesystemWatcher'++export type { Process, ProcessManager } from './session/process'+export type { EnvVars } from './session/envVars'+export { default as api } from './api'+export type { components, paths, ClientType } from './api'++export { createSessionProcess } from './helpers'diff --git a/packages/js-sdk/src/session/codeSnippet.ts b/packages/js-sdk/src/session/codeSnippet.tsnew file mode 100644index 000000000..c370cb72b--- /dev/null+++ b/packages/js-sdk/src/session/codeSnippet.ts@@ -0,0 +1,38 @@+import { EnvVars } from './envVars'+import { OutStderrResponse, OutStdoutResponse } from './out'++export const codeSnippetService = 'codeSnippet'++export enum CodeSnippetExecState {+ Running = 'Running',+ Stopped = 'Stopped',+}++export interface OpenedPort {+ State: string+ Ip: string+ Port: number+}++export type CodeSnippetStateHandler = (state: CodeSnippetExecState) => void+export type CodeSnippetStderrHandler = (o: OutStderrResponse) => void+export type CodeSnippetStdoutHandler = (o: OutStdoutResponse) => void+export type ScanOpenedPortsHandler = (ports: OpenedPort[]) => void++export type CodeSnippetSubscriptionHandler =+ | CodeSnippetStateHandler+ | CodeSnippetStderrHandler+ | CodeSnippetStdoutHandler+ | ScanOpenedPortsHandler++export type CodeSnippetSubscriptionHandlerType = {+ state: CodeSnippetStateHandler+ stderr: CodeSnippetStderrHandler+ stdout: CodeSnippetStdoutHandler+ scanOpenedPorts: ScanOpenedPortsHandler+}++export interface CodeSnippetManager {+ readonly run: (code: string, envVars?: EnvVars) => Promise<CodeSnippetExecState>+ readonly stop: () => Promise<CodeSnippetExecState>+}diff --git a/packages/js-sdk/src/session/envVars.ts b/packages/js-sdk/src/session/envVars.tsnew file mode 100644index 000000000..5de6bb8a7--- /dev/null+++ b/packages/js-sdk/src/session/envVars.ts@@ -0,0 +1,3 @@+export type EnvVars = {+ [key: string]: string+}diff --git a/packages/js-sdk/src/session/filesystem.ts b/packages/js-sdk/src/session/filesystem.tsnew file mode 100644index 000000000..5b773415c--- /dev/null+++ b/packages/js-sdk/src/session/filesystem.ts@@ -0,0 +1,19 @@+import FilesystemWatcher from './filesystemWatcher'++export const filesystemService = 'filesystem'++export interface FileInfo {+ isDir: boolean+ name: string+}++export interface FilesystemManager {+ readonly write: (path: string, content: string) => Promise<void>+ readonly writeBytes: (path: string, content: Uint8Array) => Promise<void>+ readonly read: (path: string) => Promise<string>+ readonly readBytes: (path: string) => Promise<Uint8Array>+ readonly remove: (path: string) => Promise<void>+ readonly list: (path: string) => Promise<FileInfo[]>+ readonly makeDir: (path: string) => Promise<void>+ readonly watchDir: (path: string) => FilesystemWatcher+}diff --git a/packages/js-sdk/src/session/filesystemWatcher.ts b/packages/js-sdk/src/session/filesystemWatcher.tsnew file mode 100644index 000000000..abc13138f--- /dev/null+++ b/packages/js-sdk/src/session/filesystemWatcher.ts@@ -0,0 +1,69 @@+import { filesystemService } from './filesystem'+import SessionConnection from './sessionConnection'++export enum FilesystemOperation {+ Create = 'Create',+ Write = 'Write',+ Remove = 'Remove',+ Rename = 'Rename',+ Chmod = 'Chmod',+}++export interface FilesystemEvent {+ path: string+ name: string+ operation: FilesystemOperation+ // Unix epoch in nanoseconds+ timestamp: number+ isDir: boolean+}++export type FilesystemEventListener = (event: FilesystemEvent) => void++class FilesystemWatcher {+ // Listeners to filesystem events.+ // Users of the this class can add their listeners to filesystem events+ // via `this.addEventListeners`+ private listeners: Set<FilesystemEventListener>+ private rpcSubscriptionID?: string++ constructor(private sessConn: SessionConnection, private path: string) {+ this.listeners = new Set<FilesystemEventListener>()+ }++ // Starts watching the path that was passed to the contructor+ async start() {+ // Already started.+ if (this.rpcSubscriptionID) return++ this.handleFilesystemEvents = this.handleFilesystemEvents.bind(this)++ this.rpcSubscriptionID = await this.sessConn.subscribe(+ filesystemService,+ this.handleFilesystemEvents,+ 'watchDir',+ this.path,+ )+ }++ // Stops watching the path and removes all listeners.+ async stop() {+ this.listeners.clear()+ if (this.rpcSubscriptionID) {+ await this.sessConn.unsubscribe(this.rpcSubscriptionID)+ }+ }++ addEventListener(l: FilesystemEventListener) {+ this.listeners.add(l)+ return () => this.listeners.delete(l)+ }++ private handleFilesystemEvents(fsChange: FilesystemEvent) {+ this.listeners.forEach(l => {+ l(fsChange)+ })+ }+}++export default FilesystemWatcherdiff --git a/packages/js-sdk/src/session/index.ts b/packages/js-sdk/src/session/index.tsnew file mode 100644index 000000000..a597a1116--- /dev/null+++ b/packages/js-sdk/src/session/index.ts@@ -0,0 +1,265 @@+import normalizePath from 'normalize-path'++import { id } from '../utils/id'+import { createDeferredPromise, formatSettledErrors } from '../utils/promise'+import {+ ScanOpenedPortsHandler as ScanOpenPortsHandler,+ codeSnippetService,+} from './codeSnippet'+import { FileInfo, FilesystemManager, filesystemService } from './filesystem'+import FilesystemWatcher from './filesystemWatcher'+import { ProcessManager, processService } from './process'+import SessionConnection, { SessionConnectionOpts } from './sessionConnection'+import { TerminalManager, terminalService } from './terminal'++export interface SessionOpts extends SessionConnectionOpts {+ onScanPorts?: ScanOpenPortsHandler+}++class Session extends SessionConnection {+ readonly terminal: TerminalManager+ readonly filesystem: FilesystemManager+ readonly process: ProcessManager++ private onScanPorts?: ScanOpenPortsHandler++ private constructor(opts: SessionOpts) {+ super(opts)+ this.onScanPorts = opts.onScanPorts++ // Init Filesystem handler+ this.filesystem = {+ /**+ * List files in a directory.+ * @param path path to a directory+ * @returns Array of files in a directory+ */+ list: async path => {+ return (await this.call(filesystemService, 'list', [path])) as FileInfo[]+ },+ /**+ * Reads the whole content of a file.+ * @param path path to a file+ * @returns Content of a file+ */+ read: async path => {+ return (await this.call(filesystemService, 'read', [path])) as string+ },+ /**+ * Removes a file or a directory.+ * @param path path to a file or a directory+ */+ remove: async path => {+ await this.call(filesystemService, 'remove', [path])+ },+ /**+ * Writes content to a new file on path.+ * @param path path to a new file. For example '/dirA/dirB/newFile.txt' when creating 'newFile.txt'+ * @param content content to write to a new file+ */+ write: async (path, content) => {+ await this.call(filesystemService, 'write', [path, content])+ },+ /**+ * Write array of bytes to a file.+ * This can be used when you cannot represent the data as an UTF-8 string.+ *+ * @param path path to a file+ * @param content byte array representing the content to write+ */+ writeBytes: async (path, content) => {+ // We need to convert the byte array to base64 string without using browser or node specific APIs.+ // This should be achieved by the node polyfills.+ const base64Content = Buffer.from(content).toString('base64')+ await this.call(filesystemService, 'writeBase64', [path, base64Content])+ },+ /**+ * Reads the whole content of a file as an array of bytes.+ * @param path path to a file+ * @returns byte array representing the content of a file+ */+ readBytes: async path => {+ const base64Content = (await this.call(filesystemService, 'readBase64', [+ path,+ ])) as string+ // We need to convert the byte array to base64 string without using browser or node specific APIs.+ // This should be achieved by the node polyfills.+ return Buffer.from(base64Content, 'base64')+ },+ /**+ * Creates a new directory and all directories along the way if needed on the specified pth.+ * @param path path to a new directory. For example '/dirA/dirB' when creating 'dirB'.+ */+ makeDir: async path => {+ await this.call(filesystemService, 'makeDir', [path])+ },+ /**+ * Watches directory for filesystem events.+ * @param path path to a directory that will be watched+ * @returns new watcher+ */+ watchDir: (path: string) => {+ const npath = normalizePath(path)+ return new FilesystemWatcher(this, npath)+ },+ }++ // Init Terminal handler+ this.terminal = {+ start: async ({+ onData,+ size,+ onExit,+ envVars,+ cmd,+ rootdir = '',+ terminalID = id(12),+ }) => {+ const { promise: terminalExited, resolve: triggerExit } = createDeferredPromise()++ const [onDataSubID, onExitSubID] = await this.handleSubscriptions(+ this.subscribe(terminalService, onData, 'onData', terminalID),+ this.subscribe(terminalService, triggerExit, 'onExit', terminalID),+ )++ const { promise: unsubscribing, resolve: handleFinishUnsubscribing } =+ createDeferredPromise()++ terminalExited.then(async () => {+ const results = await Promise.allSettled([+ this.unsubscribe(onExitSubID),+ this.unsubscribe(onDataSubID),+ ])++ const errMsg = formatSettledErrors(results)+ if (errMsg) {+ this.logger.error(errMsg)+ }++ onExit?.()+ handleFinishUnsubscribing()+ })++ try {+ await this.call(terminalService, 'start', [+ terminalID,+ size.cols,+ size.rows,+ // Handle optional args for old devbookd compatibility+ ...(cmd !== undefined ? [envVars, cmd, rootdir] : []),+ ])+ } catch (err) {+ triggerExit()+ await unsubscribing+ throw err+ }++ return {+ finished: unsubscribing,+ kill: async () => {+ try {+ await this.call(terminalService, 'destroy', [terminalID])+ } finally {+ triggerExit()+ await unsubscribing+ }+ },+ resize: async ({ cols, rows }) => {+ await this.call(terminalService, 'resize', [terminalID, cols, rows])+ },+ sendData: async data => {+ await this.call(terminalService, 'data', [terminalID, data])+ },+ terminalID,+ }+ },+ }++ // Init Process handler+ this.process = {+ start: async ({+ cmd,+ onStdout,+ onStderr,+ onExit,+ envVars = {},+ rootdir = '',+ processID = id(12),+ }) => {+ const { promise: processExited, resolve: triggerExit } = createDeferredPromise()++ const [onExitSubID, onStdoutSubID, onStderrSubID] =+ await this.handleSubscriptions(+ this.subscribe(processService, triggerExit, 'onExit', processID),+ onStdout+ ? this.subscribe(processService, onStdout, 'onStdout', processID)+ : undefined,+ onStderr+ ? this.subscribe(processService, onStderr, 'onStderr', processID)+ : undefined,+ )++ const { promise: unsubscribing, resolve: handleFinishUnsubscribing } =+ createDeferredPromise()++ processExited.then(async () => {+ const results = await Promise.allSettled([+ this.unsubscribe(onExitSubID),+ onStdoutSubID ? this.unsubscribe(onStdoutSubID) : undefined,+ onStderrSubID ? this.unsubscribe(onStderrSubID) : undefined,+ ])++ const errMsg = formatSettledErrors(results)+ if (errMsg) {+ this.logger.error(errMsg)+ }++ onExit?.()+ handleFinishUnsubscribing()+ })++ try {+ await this.call(processService, 'start', [processID, cmd, envVars, rootdir])+ } catch (err) {+ triggerExit()+ await unsubscribing+ throw err+ }++ return {+ finished: unsubscribing,+ kill: async () => {+ try {+ await this.call(processService, 'kill', [processID])+ } finally {+ triggerExit()+ await unsubscribing+ }+ },+ processID,+ sendStdin: async data => {+ await this.call(processService, 'stdin', [processID, data])+ },+ }+ },+ }+ }++ static async create(opts: SessionOpts) {+ return await new Session(opts).open()+ }++ protected override async open() {+ await super.open()++ await this.handleSubscriptions(+ this.onScanPorts+ ? this.subscribe(codeSnippetService, this.onScanPorts, 'scanOpenedPorts')+ : undefined,+ )++ return this+ }+}++export default Sessiondiff --git a/packages/js-sdk/src/session/out.ts b/packages/js-sdk/src/session/out.tsnew file mode 100644index 000000000..3fa5ff4dd--- /dev/null+++ b/packages/js-sdk/src/session/out.ts@@ -0,0 +1,19 @@+export enum OutType {+ Stdout = 'Stdout',+ Stderr = 'Stderr',+}++export interface OutResponse {+ type: OutType+ // Unix epoch in nanoseconds+ timestamp: number+ line: string+}++export interface OutStdoutResponse extends OutResponse {+ type: OutType.Stdout+}++export interface OutStderrResponse extends OutResponse {+ type: OutType.Stderr+}diff --git a/packages/js-sdk/src/session/process.ts b/packages/js-sdk/src/session/process.tsnew file mode 100644index 000000000..7f8f7273d--- /dev/null+++ b/packages/js-sdk/src/session/process.ts@@ -0,0 +1,23 @@+import { EnvVars } from './envVars'+import { OutStderrResponse, OutStdoutResponse } from './out'++export const processService = 'process'++export interface Process {+ readonly sendStdin: (data: string) => Promise<void>+ readonly kill: () => Promise<void>+ readonly processID: string+ readonly finished: Promise<void>+}++export interface ProcessManager {+ readonly start: (opts: {+ cmd: string+ onStdout?: (o: OutStdoutResponse) => void+ onStderr?: (o: OutStderrResponse) => void+ onExit?: () => void+ envVars?: EnvVars+ rootdir?: string+ processID?: string+ }) => Promise<Process>+}diff --git a/packages/js-sdk/src/session/sessionConnection.ts b/packages/js-sdk/src/session/sessionConnection.tsnew file mode 100644index 000000000..6bc93e64d--- /dev/null+++ b/packages/js-sdk/src/session/sessionConnection.ts@@ -0,0 +1,369 @@+import { IRpcNotification, RpcWebSocketClient } from 'rpc-websocket-client'++import api, { components } from '../api'+import {+ SESSION_DOMAIN,+ SESSION_REFRESH_PERIOD,+ WS_PORT,+ WS_RECONNECT_INTERVAL,+ WS_ROUTE,+} from '../constants'+import Logger from '../utils/logger'+import { assertFulfilled, formatSettledErrors } from '../utils/promise'+import wait from '../utils/wait'+import { codeSnippetService } from './codeSnippet'+import { filesystemService } from './filesystem'+import { processService } from './process'+import { terminalService } from './terminal'++// eslint-disable-next-line @typescript-eslint/no-explicit-any+type SubscriptionHandler = (result: any) => void++type Service =+ | typeof processService+ | typeof codeSnippetService+ | typeof filesystemService+ | typeof terminalService++interface Subscriber {+ service: Service+ subID: string+ handler: SubscriptionHandler+}++export type CloseHandler = () => void+export type DisconnectHandler = () => void+export type ReconnectHandler = () => void++export interface SessionConnectionOpts {+ id: string+ apiKey?: string+ onClose?: CloseHandler+ onDisconnect?: DisconnectHandler+ onReconnect?: ReconnectHandler+ debug?: boolean+ editEnabled?: boolean+ __debug_hostname?: string+ __debug_port?: number+ __debug_devEnv?: 'remote' | 'local'+}++const createSession = api.path('/sessions').method('post').create({ api_key: true })+const refreshSession = api+ .path('/sessions/{sessionID}/refresh')+ .method('post')+ .create({ api_key: true })++abstract class SessionConnection {+ protected readonly logger: Logger+ protected session?: components['schemas']['Session']+ protected isOpen = false++ private readonly rpc = new RpcWebSocketClient()+ private subscribers: Subscriber[] = []++ constructor(private readonly opts: SessionConnectionOpts) {+ this.logger = new Logger('Session', opts.debug)+ this.logger.log(`Session for code snippet "${opts.id}" initialized`)+ }++ /**+ * Get the hostname for the session or for the specified session's port.+ *+ * `getHostname` method requires `this` context - you may need to bind it.+ *+ * @param port specify if you want to connect to a specific port of the session+ * @returns hostname of the session or session's port+ */+ getHostname(port?: number) {+ if (this.opts.__debug_hostname) {+ // Debugging remotely (with GitPod) and on local needs different formats of the hostname.+ if (port && this.opts.__debug_devEnv === 'remote') {+ return `${port}-${this.opts.__debug_hostname}`+ } else if (port) {+ return `${this.opts.__debug_hostname}:${port}`+ } else {+ return this.opts.__debug_hostname+ }+ }++ if (!this.session) {+ return undefined+ }++ const hostname = `${this.session.sessionID}-${this.session.clientID}.${SESSION_DOMAIN}`+ if (port) {+ return `${port}-${hostname}`+ } else {+ return hostname+ }+ }++ /**+ * Close the connection to the session+ *+ * `close` method requires `this` context - you may need to bind it.+ */+ async close() {+ if (this.isOpen) {+ this.logger.log('Closing', this.session)+ this.isOpen = false++ this.logger.log('Unsubscribing...')+ const results = await Promise.allSettled(+ this.subscribers.map(s => this.unsubscribe(s.subID)),+ )+ results.forEach(r => {+ if (r.status === 'rejected') {+ this.logger.log(`Failed to unsubscribe: "${r.reason}"`)+ }+ })++ // This is `ws` way of closing connection+ this.rpc.ws?.terminate?.()+ // This is the browser WebSocket way of closing connection+ this.rpc.ws?.close?.()+ this.opts?.onClose?.()+ this.logger.log('Disconected from the session')+ }+ }++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ async call(service: Service, method: string, params?: any[]) {+ return this.rpc.call(`${service}_${method}`, params)+ }++ async handleSubscriptions<+ T extends (ReturnType<SessionConnection['subscribe']> | undefined)[],+ >(+ ...subs: T+ ): Promise<{+ [P in keyof T]: Awaited<T[P]>+ }> {+ const results = await Promise.allSettled(subs)++ if (results.every(r => r.status === 'fulfilled')) {+ return results.map(r => (r.status === 'fulfilled' ? r.value : undefined)) as {+ [P in keyof T]: Awaited<T[P]>+ }+ }++ await Promise.all(+ results+ .filter(assertFulfilled)+ .map(r => (r.value ? this.unsubscribe(r.value) : undefined)),+ )++ throw new Error(formatSettledErrors(results))+ }++ async unsubscribe(subID: string) {+ const subscription = this.subscribers.find(s => s.subID === subID)+ if (!subscription) return++ await this.call(subscription.service, 'unsubscribe', [subscription.subID])++ this.subscribers = this.subscribers.filter(s => s !== subscription)+ this.logger.log(`Unsubscribed '${subID}' from '${subscription.service}'`)+ }++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ async subscribe(+ service: Service,+ handler: SubscriptionHandler,+ method: string,+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ ...params: any[]+ ) {+ const subID = await this.call(service, 'subscribe', [method, ...params])++ if (typeof subID !== 'string') {+ throw new Error(+ // eslint-disable-next-line prettier/prettier+ `Cannot subscribe to ${service}_${method}${params.length > 0 ? ' with params [' + params.join(', ') + ']' : ''+ }. Expected response should have been a subscription ID, instead we got ${JSON.stringify(+ subID,+ )}`,+ )+ }++ this.subscribers.push({+ handler,+ service,+ subID,+ })+ this.logger.log(+ // eslint-disable-next-line prettier/prettier+ `Subscribed to "${service}_${method}"${params.length > 0 ? ' with params [' + params.join(', ') + '] and' : ''+ } with id "${subID}"`,+ )++ return subID+ }++ /**+ * Open a connection to a new session+ *+ * `open` method requires `this` context - you may need to bind it.+ */+ protected async open() {+ if (this.isOpen || !!this.session) {+ throw new Error('Session connect was already called')+ } else {+ this.isOpen = true+ }++ if (!this.opts.__debug_hostname) {+ try {+ const res = await createSession({+ api_key: this.opts.apiKey,+ codeSnippetID: this.opts.id,+ editEnabled: this.opts.editEnabled,+ })+ this.session = res.data+ this.logger.log('Aquired session:', this.session)++ this.refresh(this.session.sessionID)+ } catch (e) {+ if (e instanceof createSession.Error) {+ const error = e.getActualType()+ if (error.status === 400) {+ throw new Error(+ `Error creating session - (${error.status}) bad request: ${error.data.message}`,+ )+ }+ if (error.status === 401) {+ throw new Error(+ `Error creating session - (${error.status}) unauthenticated (you need to be authenticated to start an session with persistent edits): ${error.data.message}`,+ )+ }+ if (error.status === 500) {+ throw new Error(+ `Error creating session - (${error.status}) server error: ${error.data.message}`,+ )+ }+ }+ throw e+ }+ }++ const hostname = this.getHostname(this.opts.__debug_port || WS_PORT)++ if (!hostname) {+ throw new Error("Cannot get session's hostname")+ }++ const protocol = this.opts.__debug_devEnv === 'local' ? 'ws' : 'wss'+ const sessionURL = `${protocol}://${hostname}${WS_ROUTE}`++ this.rpc.onError(e => {+ this.logger.log('Error in WS session:', this.session, e)+ })++ let isFinished = false+ let resolveOpening: (() => void) | undefined+ let rejectOpening: (() => void) | undefined++ const openingPromise = new Promise<void>((resolve, reject) => {+ resolveOpening = () => {+ if (isFinished) return+ isFinished = true+ resolve()+ }+ rejectOpening = () => {+ if (isFinished) return+ isFinished = true+ reject()+ }+ })++ this.rpc.onOpen(() => {+ this.logger.log('Connected to session:', this.session)+ resolveOpening?.()+ })++ this.rpc.onClose(async e => {+ this.logger.log('Closing WS connection to session:', this.session, e)+ if (this.isOpen) {+ this.opts.onDisconnect?.()+ await wait(WS_RECONNECT_INTERVAL)+ this.logger.log('Reconnecting to session:', this.session)+ try {+ // When the WS connection closes the subscribers in devbookd are removed.+ // We want to delete the subscriber handlers here so there are no orphans.+ this.subscribers = []+ await this.rpc.connect(sessionURL)+ this.opts.onReconnect?.()+ this.logger.log('Reconnected to session:', this.session)+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ } catch (e: any) {+ this.logger.log('Failed reconnecting to session:', this.session, e)+ }+ } else {+ rejectOpening?.()+ }+ })++ this.rpc.onNotification.push(this.handleNotification.bind(this))++ try {+ this.logger.log('Connection to session:', this.session)+ await this.rpc.connect(sessionURL)++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ } catch (e: any) {+ this.logger.log('Error connecting to session', this.session, e)+ }++ await openingPromise+ return this+ }++ private handleNotification(data: IRpcNotification) {+ this.subscribers+ .filter(s => s.subID === data.params?.subscription)+ .forEach(s => s.handler(data.params?.result))+ }++ private async refresh(sessionID: string) {+ this.logger.log(`Started refreshing session "${sessionID}"`)++ try {+ // eslint-disable-next-line no-constant-condition+ while (true) {+ if (!this.isOpen) {+ this.logger.log('Cannot refresh session - it was closed', this.session)+ return+ }++ await wait(SESSION_REFRESH_PERIOD)++ try {+ this.logger.log(`Refreshed session "${sessionID}"`)+ await refreshSession({+ api_key: this.opts.apiKey,+ sessionID,+ })+ } catch (e) {+ if (e instanceof refreshSession.Error) {+ const error = e.getActualType()+ if (error.status === 404) {+ this.logger.error(+ `Error refreshing session - (${error.status}): ${error.data.message}`,+ )+ return+ }+ this.logger.error(+ `Refreshing session "${sessionID}" failed - (${error.status})`,+ )+ }+ }+ }+ } finally {+ this.logger.log(`Stopped refreshing session "${sessionID}"`)+ this.close()+ }+ }+}++export default SessionConnectiondiff --git a/packages/js-sdk/src/session/terminal.ts b/packages/js-sdk/src/session/terminal.tsnew file mode 100644index 000000000..2f9643a53--- /dev/null+++ b/packages/js-sdk/src/session/terminal.ts@@ -0,0 +1,33 @@+import { EnvVars } from './envVars'++export const terminalService = 'terminal'++export interface Terminal {+ readonly sendData: (data: string) => Promise<void>+ readonly resize: ({ cols, rows }: { cols: number; rows: number }) => Promise<void>+ readonly kill: () => Promise<void>+ readonly terminalID: string+ readonly finished: Promise<void>+}++export interface TerminalManager {+ readonly start: (opts: {+ onData: (data: string) => void+ onExit?: () => void+ size: { cols: number; rows: number }+ terminalID?: string+ /**+ * If the `cmd` parameter is defined it will be executed as a command+ * and this terminal session will exit when the command exits.+ */+ cmd?: string+ /**+ * Working directory where will the terminal start.+ */+ rootdir?: string+ /**+ * Environment variables that will be accessible inside of the terminal.+ */+ envVars?: EnvVars+ }) => Promise<Terminal>+}diff --git a/packages/js-sdk/src/utils/id.ts b/packages/js-sdk/src/utils/id.tsnew file mode 100644index 000000000..5c8c33733--- /dev/null+++ b/packages/js-sdk/src/utils/id.ts@@ -0,0 +1,9 @@+export function id(length: number) {+ let result = ''+ const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'+ const charactersLength = characters.length+ for (let i = 0; i < length; i++) {+ result += characters.charAt(Math.floor(Math.random() * charactersLength))+ }+ return result+}diff --git a/packages/js-sdk/src/utils/logger.ts b/packages/js-sdk/src/utils/logger.tsnew file mode 100644index 000000000..052558307--- /dev/null+++ b/packages/js-sdk/src/utils/logger.ts@@ -0,0 +1,23 @@+/* eslint-disable @typescript-eslint/no-explicit-any */+type LogID = string | (() => string)++class Logger {+ constructor(public readonly logID: LogID, public readonly isEnabled = false) {}++ error(...args: any[]) {+ console.error(`\x1b[31m[${this.id()} ERROR]\x1b[0m`, ...args)+ }++ log(...args: any[]) {+ if (this.isEnabled) {+ console.log(`\x1b[36m[${this.id()}]\x1b[0m`, ...args)+ }+ }++ private id() {+ if (typeof this.logID === 'function') return this.logID()+ return this.logID+ }+}++export default Loggerdiff --git a/packages/js-sdk/src/utils/promise.ts b/packages/js-sdk/src/utils/promise.tsnew file mode 100644index 000000000..89d663739--- /dev/null+++ b/packages/js-sdk/src/utils/promise.ts@@ -0,0 +1,39 @@+export function assertFulfilled<T>(+ item: PromiseSettledResult<T>,+): item is PromiseFulfilledResult<T> {+ return item.status === 'fulfilled'+}++export function assertRejected<T>(+ item: PromiseSettledResult<T>,+): item is PromiseRejectedResult {+ return item.status === 'rejected'+}++export function formatSettledErrors<T>(settled: PromiseSettledResult<T>[]) {+ if (settled.every(s => s.status === 'fulfilled')) return++ return settled.reduce((prev, curr, i) => {+ if (curr.status === 'rejected') {+ return prev + '\n' + `[${i}]: ` + `${JSON.stringify(curr)}`+ }+ return prev+ }, 'errors:\n')+}++export function createDeferredPromise<T = void>() {+ let resolve: (value: T) => void+ let reject: (reason?: unknown) => void+ const promise = new Promise<T>((res, rej) => {+ resolve = res+ reject = rej+ })++ return {+ promise,+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion+ reject: reject!,+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion+ resolve: resolve!,+ }+}diff --git a/packages/js-sdk/src/utils/wait.ts b/packages/js-sdk/src/utils/wait.tsnew file mode 100644index 000000000..fff60676d--- /dev/null+++ b/packages/js-sdk/src/utils/wait.ts@@ -0,0 +1,5 @@+function wait(ms: number) {+ return new Promise(resolve => setTimeout(resolve, ms))+}++export default waitdiff --git a/packages/js-sdk/test/performance.mjs b/packages/js-sdk/test/performance.mjsnew file mode 100644index 000000000..17d75fdfe--- /dev/null+++ b/packages/js-sdk/test/performance.mjs@@ -0,0 +1,123 @@+import { writeFileSync } from 'fs'++import { Session } from '../dist/cjs/index.js'++const apiKey = process.env.API_KEY+const reportSummaryFile = process.env.SUMMARY_FILE || './test.md'++const codeSnippetIDs = ['5udkAFHBVrGz']+const samplePerID = 15+const upperBoundary = 1000 // 1s++async function spinSession(id, isEditSession) {+ console.log('Creating session...')+ let session+ try {+ const startTime = performance.now()+ session = new Session({+ id,+ // debug: true,+ editEnabled: isEditSession,+ ...(isEditSession && { apiKey }),+ })+ session.open()++ const endTime = performance.now()+ return endTime - startTime+ } catch (e) {+ console.error(+ `Measuring ${id}${isEditSession ? ' (persistent session)' : ''} failed`,+ e,+ )+ } finally {+ ;(async () => {+ try {+ // await session?.close()+ } catch (e) {+ // Do nothing+ }+ })()+ }++ throw new Error('**Measurement failed**')+}++function createReport(data, time) {+ let template = `# Devbook SDK - Session Performance++*${time}*++## Results++| Test | Samples | Result |+| ------------- | ------------- | ------------- |`++ const createRow = (key, value) => {+ template = template + `\n| ${key} | ${value.size} | ${value.result} |`+ }++ Object.entries(data).forEach(e => createRow(e[0], e[1]))++ return template+}++function writeMeasurements(data) {+ const time = new Date(Date.now())++ const report = createReport(data, time)+ writeFileSync(reportSummaryFile, report)+}++async function sample(id, size, isEditSession) {+ if (isEditSession && !apiKey) {+ console.log('No API key, skipping measuring persistent sessions')+ return {}+ }++ let totalTime = 0+ const entryName = `${isEditSession ? 'Persistent' : 'Public'} session (${id})`++ try {+ for (let i = 0; i < size; i++) {+ const timeToSession = await spinSession(id, isEditSession)+ totalTime += timeToSession+ }++ const averageTime = Math.round(totalTime / size)++ return {+ [entryName]: {+ result: `${averageTime}ms ${+ averageTime < upperBoundary ? ':heavy_check_mark:' : ':x:'+ }`,+ size,+ },+ }+ } catch (e) {+ return {+ [entryName]: {+ size,+ result: e.message,+ },+ }+ }+}++async function main() {+ let entries = {}++ for (const id of codeSnippetIDs) {+ const entry = await sample(id, samplePerID)+ entries = { ...entries, ...entry }+ }++ // for (const id of codeSnippetIDs) {+ // // We do only one sample of persistent session because otherview we would get reconnected to the same session+ // const entry = await sample(id, 1, true)+ // entries = { ...entries, ...entry }+ // }++ writeMeasurements(entries)+}++main()diff --git a/packages/js-sdk/test/run.mjs b/packages/js-sdk/test/run.mjsnew file mode 100644index 000000000..34c9b7ee2--- /dev/null+++ b/packages/js-sdk/test/run.mjs@@ -0,0 +1,87 @@+import { Session } from '../dist/cjs/index.js'++async function main() {+ const session = new Session({+ id: '5udkAFHBVrGz',+ debug: true,+ retry: true,+ // codeSnippet: {+ // onStateChange(state) {+ // console.log(state)+ // },+ // onStdout(out) {+ // console.log(out)+ // },+ // onStderr(err) {+ // console.log(err)+ // },+ // },+ onDisconnect() {+ console.log('disconnect')+ },+ onReconnect() {+ console.log('reconnect')+ },+ onClose() {+ console.log('close')+ },+ // __debug_port: 49982,+ // __debug_hostname: '127.0.0.1',+ // __debug_devEnv: 'local',+ })++ try {+ await session.open()++ // const cmd = 'npm i'++ // await session.process.start({+ // cmd,+ // onStdout: o => console.log(o),+ // })++ // const term = await session.terminal.createSession({+ // onData: data => console.log(data),+ // onExit: () => console.log('exit'),+ // size: {+ // cols: 9,+ // rows: 9,+ // },+ // rootdir: '/code',+ // cmd: 'npm i',+ // })++ // term.sendData(`${cmd}\n`)++ // const dirWatchers = new Map()++ // const w2 = session.filesystem.watchDir('/code/dir')+ // dirWatchers.set('/code/dir', w2)+ // await w2.start()+ // w2.addEventListener(fsevent => {+ // console.log('w2', fsevent)+ // //if (fsevent.operation === FilesystemOperation.Remove) {+ // // // Remove and stop watcher for a dir that got removed.+ // // const dirwatcher = dirWatchers.get(fsevent.path)+ // // if (dirwatcher) {+ // // dirwatcher.stop()+ // // dirWatchers.delete(fsevent.path)+ // // }+ // //}+ // })++ // const w3 = session.filesystem.watchDir('/code/dir/subdir')+ // dirWatchers.set('/code/dir/subdir', w3)+ // await w3.start()+ // w3.addEventListener(fsevent => {+ // console.log('w3', fsevent)+ // //if (fsevent.operation === FilesystemOperation.Remove && fsevent.path === '/code/dir/subdir') {+ // // w3.stop()+ // //}+ // })+ } catch (e) {+ console.error('Session error', e)+ }+}++main()diff --git a/packages/js-sdk/tsconfig.json b/packages/js-sdk/tsconfig.jsonnew file mode 100644index 000000000..fd0599180--- /dev/null+++ b/packages/js-sdk/tsconfig.json@@ -0,0 +1,21 @@+{+ "compilerOptions": {+ "outDir": "dist",+ "target": "es6",+ "lib": ["dom", "ESNext"],+ "sourceMap": true,+ "allowJs": true,+ "skipLibCheck": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "strict": true,+ "forceConsistentCasingInFileNames": true,+ "noFallthroughCasesInSwitch": true,+ "moduleResolution": "node",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "declaration": true+ },+ "include": ["src"],+ "exclude": ["dist", "node_modules", "rollup.config.js"]+}diff --git a/packages/python-sdk/.gitignore b/packages/python-sdk/.gitignorenew file mode 100644index 000000000..e3b447e2d--- /dev/null+++ b/packages/python-sdk/.gitignore@@ -0,0 +1,263 @@+### Node template+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*+lerna-debug.log*+.pnpm-debug.log*++# Diagnostic reports (https://nodejs.org/api/report.html)+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json++# Runtime data+pids+*.pid+*.seed+*.pid.lock++# Directory for instrumented libs generated by jscoverage/JSCover+lib-cov++# Coverage directory used by tools like istanbul+coverage+*.lcov++# nyc test coverage+.nyc_output++# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)+.grunt++# Bower dependency directory (https://bower.io/)+bower_components++# node-waf configuration+.lock-wscript++# Compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++# Dependency directories+node_modules/+jspm_packages/++# Snowpack dependency directory (https://snowpack.dev/)+web_modules/++# TypeScript cache+*.tsbuildinfo++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Optional stylelint cache+.stylelintcache++# Microbundle cache+.rpt2_cache/+.rts2_cache_cjs/+.rts2_cache_es/+.rts2_cache_umd/++# Optional REPL history+.node_repl_history++# Output of 'npm pack'+*.tgz++# Yarn Integrity file+.yarn-integrity++# dotenv environment variable files+.env+.env.development.local+.env.test.local+.env.production.local+.env.local++# parcel-bundler cache (https://parceljs.org/)+.cache+.parcel-cache++# Next.js build output+.next+out++# Nuxt.js build / generate output+.nuxt+dist++# Gatsby files+.cache/+# Comment in the public line in if your project uses Gatsby and not Next.js+# https://nextjs.org/blog/next-9-1#public-directory-support+# public++# vuepress build output+.vuepress/dist++# vuepress v2.x temp and cache directory+.temp++# Docusaurus cache and generated files+.docusaurus++# Serverless directories+.serverless/++# FuseBox cache+.fusebox/++# DynamoDB Local files+.dynamodb/++# TernJS port file+.tern-port++# Stores VSCode versions used for testing VSCode extensions+.vscode-test++# yarn v2+.yarn/cache+.yarn/unplugged+.yarn/build-state.yml+.yarn/install-state.gz+.pnp.*++### Python template+# Byte-compiled / optimized / DLL files+__pycache__/+*.py[cod]+*$py.class++# C extensions+*.so++# Distribution / packaging+.Python+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+share/python-wheels/+*.egg-info/+.installed.cfg+*.egg+MANIFEST++# 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++# Unit test / coverage reports+htmlcov/+.tox/+.nox/+.coverage+.coverage.*+nosetests.xml+coverage.xml+*.cover+*.py,cover+.hypothesis/+.pytest_cache/+cover/++# Translations+*.mo+*.pot++# Django stuff:+local_settings.py+db.sqlite3+db.sqlite3-journal++# Flask stuff:+instance/+.webassets-cache++# Scrapy stuff:+.scrapy++# Sphinx documentation+docs/_build/++# PyBuilder+.pybuilder/+target/++# Jupyter Notebook+.ipynb_checkpoints++# IPython+profile_default/+ipython_config.py++# pdm+# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it+# in version control.+# https://pdm.fming.dev/#use-with-ide+.pdm.toml++# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm+__pypackages__/++# Celery stuff+celerybeat-schedule+celerybeat.pid++# SageMath parsed files+*.sage.py++# Environments+.venv+env/+venv/+ENV/+env.bak/+venv.bak/++# Spyder project settings+.spyderproject+.spyproject++# Rope project settings+.ropeproject++# mkdocs documentation+/site++# mypy+.mypy_cache/+.dmypy.json+dmypy.json++# Pyre type checker+.pyre/++# pytype static type analyzer+.pytype/++# Cython debug symbols+cython_debug/++.idea/diff --git a/packages/python-sdk/Makefile b/packages/python-sdk/Makefilenew file mode 100644index 000000000..ce8a3dbcf--- /dev/null+++ b/packages/python-sdk/Makefile@@ -0,0 +1,15 @@+.PHONY: generate+generate:+ rm -rf ./e2b/api/client+ npx -yes @openapitools/openapi-generator-cli generate \+ -i ../../openapi.yml \+ --library asyncio \+ -g python-nextgen \+ -o ./e2b/api \+ --global-property apis,models,supportingFiles,modelDocs=false \+ --additional-properties=generateSourceCodeOnly=true \+ --additional-properties=disallowAdditionalPropertiesIfNotPresent=true \+ --additional-properties=packageName=e2b.api.client+ mv ./e2b/api/e2b/api/* ./e2b/api/+ rm -r ./e2b/api/e2b+ black .diff --git a/packages/python-sdk/README.md b/packages/python-sdk/README.mdnew file mode 100644index 000000000..dcded52c7--- /dev/null+++ b/packages/python-sdk/README.md@@ -0,0 +1,111 @@+# E2B Python SDK+The E2B Python SDK provides an interface for managing cloud environments for AI agents.++This SDK gives your agent a full cloud development environment that's sandboxed. That means:++- Access to Linux OS+- Using filesystem (create, list, and delete files and dirs)+- Run processes+- Sandboxed - you can run any code+- Access to the internet++These cloud environments are meant to be used for agents. Like a sandboxed playgrounds, where the agent can do whatever it wants.++## Installation++```sh+pip install e2b+```++## Usage++### Initialize new cloud environment session+```python+from e2b import Session+# You can use some of the predefined environments by using specific id:+# 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'+session = Session(id="Nodejs", on_scan_ports=lambda ports: print("Open ports", ports))++# Start a session and create a connection to it+await session.open()++...++# Close the session after you are done+await session.close()+```++### Use filesystem inside cloud environment+```python+# List+dir_b_content = await session.filesystem.list("/dirA/dirB")++# Write+# This will create a new file "file.txt" inside the dir "dirB" with the content "Hello world".+await session.filesystem.write("/dirA/dirB/file.txt", "Hello World")++# Read+file_content = await session.filesystem.read("/dirA/dirB/file.txt")++# Remove+# Remove a file.+await session.filesystem.remove("/dirA/dirB/file.txt")+# Remove a directory and all of its content.+await session.filesystem.remove("/dirA")++# Make dir+# Creates a new directory "dirC" and also "dirA" and "dirB" if those directories don"t already exist.+await session.filesystem.make_dir("/dirA/dirB/dirC")++# Watch dir for changes+watcher = session.filesystem.watch_dir("/dirA/dirB")+watcher.add_event_listener(lambda e: print("Event", e))+await watcher.start()+```++### Start process inside cloud environment+```python+proc = await session.process.start(+ cmd="echo Hello World",+ on_stdout=on_stdout,+ on_stderr=on_stderr,+ on_exit=lambda: print("Exit"),+ rootdir="/code",+)++await proc.send_stdin("\n")++print(proc.process_id)++await proc.kill()++# Wait for process to finish+await proc.finished+```++### Create interactive terminal inside cloud environment+```python+term = await session.terminal.start(+ on_data=lambda data: print("Data", data),+ on_exit=lambda: print("Exit"),+ cols=80,+ rows=24,+ rootdir="/code",+ # If you specify a command, the terminal will be closed after the command finishes.+ # cmd="echo Hello World",+)++await term.send_data("echo 1\n")++await term.resize(80, 30)++print(term.terminal_id)++await term.kill()+```++### Get public hostname for an exposed port inside cloud environment+```python+# Get hostname for port 3000. The hostname is without the protocol (http://).+hostname = session.get_hostname(3000)+```diff --git a/packages/python-sdk/e2b/__init__.py b/packages/python-sdk/e2b/__init__.pynew file mode 100644index 000000000..841dd65b3--- /dev/null+++ b/packages/python-sdk/e2b/__init__.py@@ -0,0 +1,22 @@+from .session import (+ Session,+ FilesystemOperation,+ FilesystemWatcher,+ FileInfo,+ FilesystemEvent,+ FilesystemManager,+ TerminalManager,+ Terminal,+ ProcessManager,+ Process,+ OpenPort,+ EnvVars,+ SessionException,+ TerminalException,+ ProcessException,+ FilesystemException,+ RpcException,+ ProcessMessage,+ ProcessOutput,+ TerminalOutput,+)diff --git a/packages/python-sdk/e2b/api/.openapi-generator-ignore b/packages/python-sdk/e2b/api/.openapi-generator-ignorenew file mode 100644index 000000000..7484ee590--- /dev/null+++ b/packages/python-sdk/e2b/api/.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/packages/python-sdk/e2b/api/.openapi-generator/FILES b/packages/python-sdk/e2b/api/.openapi-generator/FILESnew file mode 100644index 000000000..1c2396b8d--- /dev/null+++ b/packages/python-sdk/e2b/api/.openapi-generator/FILES@@ -0,0 +1,43 @@+e2b/__init__.py+e2b/api/__init__.py+e2b/api/client/__init__.py+e2b/api/client/api/__init__.py+e2b/api/client/api/default_api.py+e2b/api/client/api/envs_api.py+e2b/api/client/api/sessions_api.py+e2b/api/client/api_client.py+e2b/api/client/api_response.py+e2b/api/client/configuration.py+e2b/api/client/docs/DefaultApi.md+e2b/api/client/docs/EnvsApi.md+e2b/api/client/docs/SessionsApi.md+e2b/api/client/exceptions.py+e2b/api/client/models/__init__.py+e2b/api/client/models/environment.py+e2b/api/client/models/environment_state.py+e2b/api/client/models/environment_state_update.py+e2b/api/client/models/environment_title_update.py+e2b/api/client/models/envs_get200_response_inner.py+e2b/api/client/models/error.py+e2b/api/client/models/new_environment.py+e2b/api/client/models/new_session.py+e2b/api/client/models/session.py+e2b/api/client/models/sessions_get200_response_inner.py+e2b/api/client/models/template.py+e2b/api/client/rest.py+e2b/api/client/test/__init__.py+e2b/api/client/test/test_default_api.py+e2b/api/client/test/test_environment.py+e2b/api/client/test/test_environment_state.py+e2b/api/client/test/test_environment_state_update.py+e2b/api/client/test/test_environment_title_update.py+e2b/api/client/test/test_envs_api.py+e2b/api/client/test/test_envs_get200_response_inner.py+e2b/api/client/test/test_error.py+e2b/api/client/test/test_new_environment.py+e2b/api/client/test/test_new_session.py+e2b/api/client/test/test_session.py+e2b/api/client/test/test_sessions_api.py+e2b/api/client/test/test_sessions_get200_response_inner.py+e2b/api/client/test/test_template.py+e2b/api/client_README.mddiff --git a/packages/python-sdk/e2b/api/.openapi-generator/VERSION b/packages/python-sdk/e2b/api/.openapi-generator/VERSIONnew file mode 100644index 000000000..cd802a1ec--- /dev/null+++ b/packages/python-sdk/e2b/api/.openapi-generator/VERSION@@ -0,0 +1 @@+6.6.0\ No newline at end of filediff --git a/packages/python-sdk/e2b/api/__init__.py b/packages/python-sdk/e2b/api/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/packages/python-sdk/e2b/api/client/__init__.py b/packages/python-sdk/e2b/api/client/__init__.pynew file mode 100644index 000000000..bb1769526--- /dev/null+++ b/packages/python-sdk/e2b/api/client/__init__.py@@ -0,0 +1,48 @@+# coding: utf-8++# flake8: noqa++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++__version__ = "1.0.0"++# import apis into sdk package+from e2b.api.client.api.default_api import DefaultApi+from e2b.api.client.api.envs_api import EnvsApi+from e2b.api.client.api.sessions_api import SessionsApi++# import ApiClient+from e2b.api.client.api_response import ApiResponse+from e2b.api.client.api_client import ApiClient+from e2b.api.client.configuration import Configuration+from e2b.api.client.exceptions import OpenApiException+from e2b.api.client.exceptions import ApiTypeError+from e2b.api.client.exceptions import ApiValueError+from e2b.api.client.exceptions import ApiKeyError+from e2b.api.client.exceptions import ApiAttributeError+from e2b.api.client.exceptions import ApiException++# import models into sdk package+from e2b.api.client.models.environment import Environment+from e2b.api.client.models.environment_state import EnvironmentState+from e2b.api.client.models.environment_state_update import EnvironmentStateUpdate+from e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate+from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInner+from e2b.api.client.models.error import Error+from e2b.api.client.models.new_environment import NewEnvironment+from e2b.api.client.models.new_session import NewSession+from e2b.api.client.models.session import Session+from e2b.api.client.models.sessions_get200_response_inner import (+ SessionsGet200ResponseInner,+)+from e2b.api.client.models.template import Templatediff --git a/packages/python-sdk/e2b/api/client/api/__init__.py b/packages/python-sdk/e2b/api/client/api/__init__.pynew file mode 100644index 000000000..39d6924a2--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/__init__.py@@ -0,0 +1,6 @@+# flake8: noqa++# import apis into api package+from e2b.api.client.api.default_api import DefaultApi+from e2b.api.client.api.envs_api import EnvsApi+from e2b.api.client.api.sessions_api import SessionsApidiff --git a/packages/python-sdk/e2b/api/client/api/default_api.py b/packages/python-sdk/e2b/api/client/api/default_api.pynew file mode 100644index 000000000..a0ba967da--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/default_api.py@@ -0,0 +1,186 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import re # noqa: F401+import io+import warnings++from pydantic import validate_arguments, ValidationError+from typing_extensions import Annotated+from typing import overload, Optional, Union, Awaitable+++from e2b.api.client.api_client import ApiClient+from e2b.api.client.api_response import ApiResponse+from e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401+++class DefaultApi(object):+ """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=None):+ if api_client is None:+ api_client = ApiClient.get_default()+ self.api_client = api_client++ @overload+ async def health_get(self, **kwargs) -> None: # noqa: E501+ ...++ @overload+ def health_get(+ self, async_req: Optional[bool] = True, **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def health_get(+ self, async_req: Optional[bool] = None, **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """health_get # noqa: E501++ Health check # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.health_get(async_req=True)+ >>> result = thread.get()++ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the health_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.health_get_with_http_info(**kwargs) # noqa: E501++ @validate_arguments+ def health_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501+ """health_get # noqa: E501++ Health check # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.health_get_with_http_info(async_req=True)+ >>> result = thread.get()++ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = []+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method health_get" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}++ # process the query parameters+ _query_params = []+ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/health",+ "GET",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )diff --git a/packages/python-sdk/e2b/api/client/api/envs_api.py b/packages/python-sdk/e2b/api/client/api/envs_api.pynew file mode 100644index 000000000..96d42a6a4--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/envs_api.py@@ -0,0 +1,1345 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import re # noqa: F401+import io+import warnings++from pydantic import validate_arguments, ValidationError+from typing_extensions import Annotated+from typing import overload, Optional, Union, Awaitable++from pydantic import StrictStr++from typing import List++from e2b.api.client.models.environment import Environment+from e2b.api.client.models.environment_state_update import EnvironmentStateUpdate+from e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate+from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInner+from e2b.api.client.models.new_environment import NewEnvironment++from e2b.api.client.api_client import ApiClient+from e2b.api.client.api_response import ApiResponse+from e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401+++class EnvsApi(object):+ """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=None):+ if api_client is None:+ api_client = ApiClient.get_default()+ self.api_client = api_client++ @overload+ async def envs_code_snippet_id_delete(+ self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def envs_code_snippet_id_delete(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def envs_code_snippet_id_delete(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """envs_code_snippet_id_delete # noqa: E501++ Delete the code snippet environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_delete(api_key, code_snippet_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_code_snippet_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_code_snippet_id_delete_with_http_info(+ api_key, code_snippet_id, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_code_snippet_id_delete_with_http_info(+ self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_code_snippet_id_delete # noqa: E501++ Delete the code snippet environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_delete_with_http_info(api_key, code_snippet_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "code_snippet_id"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_code_snippet_id_delete" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["code_snippet_id"]:+ _path_params["codeSnippetID"] = _params["code_snippet_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/envs/{codeSnippetID}",+ "DELETE",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_code_snippet_id_patch(+ self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def envs_code_snippet_id_patch(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def envs_code_snippet_id_patch(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """envs_code_snippet_id_patch # noqa: E501++ Update the environment of the code snippet to match the edit environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_patch(api_key, code_snippet_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_code_snippet_id_patch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_code_snippet_id_patch_with_http_info(+ api_key, code_snippet_id, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_code_snippet_id_patch_with_http_info(+ self, api_key: StrictStr, code_snippet_id: StrictStr, **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_code_snippet_id_patch # noqa: E501++ Update the environment of the code snippet to match the edit environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_patch_with_http_info(api_key, code_snippet_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "code_snippet_id"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_code_snippet_id_patch" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["code_snippet_id"]:+ _path_params["codeSnippetID"] = _params["code_snippet_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/envs/{codeSnippetID}",+ "PATCH",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_code_snippet_id_post(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ new_environment: NewEnvironment,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def envs_code_snippet_id_post(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ new_environment: NewEnvironment,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def envs_code_snippet_id_post(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ new_environment: NewEnvironment,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """envs_code_snippet_id_post # noqa: E501++ Create a new env for a code snippet # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_post(api_key, code_snippet_id, new_environment, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param new_environment: (required)+ :type new_environment: NewEnvironment+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_code_snippet_id_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_code_snippet_id_post_with_http_info(+ api_key, code_snippet_id, new_environment, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_code_snippet_id_post_with_http_info(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ new_environment: NewEnvironment,+ **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_code_snippet_id_post # noqa: E501++ Create a new env for a code snippet # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_post_with_http_info(api_key, code_snippet_id, new_environment, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param new_environment: (required)+ :type new_environment: NewEnvironment+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "code_snippet_id", "new_environment"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_code_snippet_id_post" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["code_snippet_id"]:+ _path_params["codeSnippetID"] = _params["code_snippet_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ if _params["new_environment"] is not None:+ _body_params = _params["new_environment"]++ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # set the HTTP header `Content-Type`+ _content_types_list = _params.get(+ "_content_type",+ self.api_client.select_header_content_type(["application/json"]),+ )+ if _content_types_list:+ _header_params["Content-Type"] = _content_types_list++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/envs/{codeSnippetID}",+ "POST",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_code_snippet_id_state_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_state_update: EnvironmentStateUpdate,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def envs_code_snippet_id_state_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_state_update: EnvironmentStateUpdate,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def envs_code_snippet_id_state_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_state_update: EnvironmentStateUpdate,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """envs_code_snippet_id_state_put # noqa: E501++ Update the state of the environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_state_put(api_key, code_snippet_id, environment_state_update, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param environment_state_update: (required)+ :type environment_state_update: EnvironmentStateUpdate+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_code_snippet_id_state_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_code_snippet_id_state_put_with_http_info(+ api_key, code_snippet_id, environment_state_update, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_code_snippet_id_state_put_with_http_info(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_state_update: EnvironmentStateUpdate,+ **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_code_snippet_id_state_put # noqa: E501++ Update the state of the environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_state_put_with_http_info(api_key, code_snippet_id, environment_state_update, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param environment_state_update: (required)+ :type environment_state_update: EnvironmentStateUpdate+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "code_snippet_id", "environment_state_update"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_code_snippet_id_state_put" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["code_snippet_id"]:+ _path_params["codeSnippetID"] = _params["code_snippet_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ if _params["environment_state_update"] is not None:+ _body_params = _params["environment_state_update"]++ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # set the HTTP header `Content-Type`+ _content_types_list = _params.get(+ "_content_type",+ self.api_client.select_header_content_type(["application/json"]),+ )+ if _content_types_list:+ _header_params["Content-Type"] = _content_types_list++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/envs/{codeSnippetID}/state",+ "PUT",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_code_snippet_id_title_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_title_update: EnvironmentTitleUpdate,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def envs_code_snippet_id_title_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_title_update: EnvironmentTitleUpdate,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def envs_code_snippet_id_title_put(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_title_update: EnvironmentTitleUpdate,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """envs_code_snippet_id_title_put # noqa: E501++ Update the title of the environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_title_put(api_key, code_snippet_id, environment_title_update, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param environment_title_update: (required)+ :type environment_title_update: EnvironmentTitleUpdate+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_code_snippet_id_title_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_code_snippet_id_title_put_with_http_info(+ api_key, code_snippet_id, environment_title_update, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_code_snippet_id_title_put_with_http_info(+ self,+ api_key: StrictStr,+ code_snippet_id: StrictStr,+ environment_title_update: EnvironmentTitleUpdate,+ **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_code_snippet_id_title_put # noqa: E501++ Update the title of the environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_code_snippet_id_title_put_with_http_info(api_key, code_snippet_id, environment_title_update, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param code_snippet_id: (required)+ :type code_snippet_id: str+ :param environment_title_update: (required)+ :type environment_title_update: EnvironmentTitleUpdate+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "code_snippet_id", "environment_title_update"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_code_snippet_id_title_put" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["code_snippet_id"]:+ _path_params["codeSnippetID"] = _params["code_snippet_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ if _params["environment_title_update"] is not None:+ _body_params = _params["environment_title_update"]++ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # set the HTTP header `Content-Type`+ _content_types_list = _params.get(+ "_content_type",+ self.api_client.select_header_content_type(["application/json"]),+ )+ if _content_types_list:+ _header_params["Content-Type"] = _content_types_list++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/envs/{codeSnippetID}/title",+ "PUT",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_get(+ self, api_key: StrictStr, **kwargs+ ) -> List[EnvsGet200ResponseInner]: # noqa: E501+ ...++ @overload+ def envs_get(+ self, api_key: StrictStr, async_req: Optional[bool] = True, **kwargs+ ) -> List[EnvsGet200ResponseInner]: # noqa: E501+ ...++ @validate_arguments+ def envs_get(+ self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs+ ) -> Union[+ List[EnvsGet200ResponseInner], Awaitable[List[EnvsGet200ResponseInner]]+ ]: # noqa: E501+ """envs_get # noqa: E501++ List all environments # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_get(api_key, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: List[EnvsGet200ResponseInner]+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_get_with_http_info(api_key, **kwargs) # noqa: E501++ @validate_arguments+ def envs_get_with_http_info(+ self, api_key: StrictStr, **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_get # noqa: E501++ List all environments # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_get_with_http_info(api_key, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: tuple(List[EnvsGet200ResponseInner], status_code(int), headers(HTTPHeaderDict))+ """++ _params = locals()++ _all_params = ["api_key"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_get" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {+ "200": "List[EnvsGet200ResponseInner]",+ "401": "Error",+ "500": "Error",+ }++ return self.api_client.call_api(+ "/envs",+ "GET",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def envs_post(+ self, api_key: StrictStr, new_environment: NewEnvironment, **kwargs+ ) -> Environment: # noqa: E501+ ...++ @overload+ def envs_post(+ self,+ api_key: StrictStr,+ new_environment: NewEnvironment,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> Environment: # noqa: E501+ ...++ @validate_arguments+ def envs_post(+ self,+ api_key: StrictStr,+ new_environment: NewEnvironment,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[Environment, Awaitable[Environment]]: # noqa: E501+ """envs_post # noqa: E501++ Create a new environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_post(api_key, new_environment, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param new_environment: (required)+ :type new_environment: NewEnvironment+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: Environment+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the envs_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.envs_post_with_http_info(+ api_key, new_environment, **kwargs+ ) # noqa: E501++ @validate_arguments+ def envs_post_with_http_info(+ self, api_key: StrictStr, new_environment: NewEnvironment, **kwargs+ ) -> ApiResponse: # noqa: E501+ """envs_post # noqa: E501++ Create a new environment # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.envs_post_with_http_info(api_key, new_environment, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param new_environment: (required)+ :type new_environment: NewEnvironment+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: tuple(Environment, status_code(int), headers(HTTPHeaderDict))+ """++ _params = locals()++ _all_params = ["api_key", "new_environment"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method envs_post" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ if _params["new_environment"] is not None:+ _body_params = _params["new_environment"]++ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # set the HTTP header `Content-Type`+ _content_types_list = _params.get(+ "_content_type",+ self.api_client.select_header_content_type(["application/json"]),+ )+ if _content_types_list:+ _header_params["Content-Type"] = _content_types_list++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {+ "200": "Environment",+ "400": "Error",+ "401": "Error",+ "500": "Error",+ }++ return self.api_client.call_api(+ "/envs",+ "POST",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )diff --git a/packages/python-sdk/e2b/api/client/api/sessions_api.py b/packages/python-sdk/e2b/api/client/api/sessions_api.pynew file mode 100644index 000000000..0f300c32b--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/sessions_api.py@@ -0,0 +1,748 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import re # noqa: F401+import io+import warnings++from pydantic import validate_arguments, ValidationError+from typing_extensions import Annotated+from typing import overload, Optional, Union, Awaitable++from pydantic import StrictStr++from typing import List, Optional++from e2b.api.client.models.new_session import NewSession+from e2b.api.client.models.session import Session+from e2b.api.client.models.sessions_get200_response_inner import (+ SessionsGet200ResponseInner,+)++from e2b.api.client.api_client import ApiClient+from e2b.api.client.api_response import ApiResponse+from e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401+++class SessionsApi(object):+ """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=None):+ if api_client is None:+ api_client = ApiClient.get_default()+ self.api_client = api_client++ @overload+ async def sessions_get(+ self, api_key: StrictStr, **kwargs+ ) -> List[SessionsGet200ResponseInner]: # noqa: E501+ ...++ @overload+ def sessions_get(+ self, api_key: StrictStr, async_req: Optional[bool] = True, **kwargs+ ) -> List[SessionsGet200ResponseInner]: # noqa: E501+ ...++ @validate_arguments+ def sessions_get(+ self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs+ ) -> Union[+ List[SessionsGet200ResponseInner], Awaitable[List[SessionsGet200ResponseInner]]+ ]: # noqa: E501+ """sessions_get # noqa: E501++ List all sessions # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_get(api_key, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: List[SessionsGet200ResponseInner]+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the sessions_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.sessions_get_with_http_info(api_key, **kwargs) # noqa: E501++ @validate_arguments+ def sessions_get_with_http_info(+ self, api_key: StrictStr, **kwargs+ ) -> ApiResponse: # noqa: E501+ """sessions_get # noqa: E501++ List all sessions # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_get_with_http_info(api_key, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: tuple(List[SessionsGet200ResponseInner], status_code(int), headers(HTTPHeaderDict))+ """++ _params = locals()++ _all_params = ["api_key"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method sessions_get" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {+ "200": "List[SessionsGet200ResponseInner]",+ "401": "Error",+ "500": "Error",+ }++ return self.api_client.call_api(+ "/sessions",+ "GET",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def sessions_post(+ self, new_session: NewSession, api_key: Optional[StrictStr] = None, **kwargs+ ) -> Session: # noqa: E501+ ...++ @overload+ def sessions_post(+ self,+ new_session: NewSession,+ api_key: Optional[StrictStr] = None,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> Session: # noqa: E501+ ...++ @validate_arguments+ def sessions_post(+ self,+ new_session: NewSession,+ api_key: Optional[StrictStr] = None,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[Session, Awaitable[Session]]: # noqa: E501+ """sessions_post # noqa: E501++ Create a session on the server # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_post(new_session, api_key, async_req=True)+ >>> result = thread.get()++ :param new_session: (required)+ :type new_session: NewSession+ :param api_key:+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: Session+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the sessions_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.sessions_post_with_http_info(+ new_session, api_key, **kwargs+ ) # noqa: E501++ @validate_arguments+ def sessions_post_with_http_info(+ self, new_session: NewSession, api_key: Optional[StrictStr] = None, **kwargs+ ) -> ApiResponse: # noqa: E501+ """sessions_post # noqa: E501++ Create a session on the server # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_post_with_http_info(new_session, api_key, async_req=True)+ >>> result = thread.get()++ :param new_session: (required)+ :type new_session: NewSession+ :param api_key:+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: tuple(Session, status_code(int), headers(HTTPHeaderDict))+ """++ _params = locals()++ _all_params = ["new_session", "api_key"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method sessions_post" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ if _params["new_session"] is not None:+ _body_params = _params["new_session"]++ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # set the HTTP header `Content-Type`+ _content_types_list = _params.get(+ "_content_type",+ self.api_client.select_header_content_type(["application/json"]),+ )+ if _content_types_list:+ _header_params["Content-Type"] = _content_types_list++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {+ "201": "Session",+ "401": "Error",+ "400": "Error",+ "500": "Error",+ }++ return self.api_client.call_api(+ "/sessions",+ "POST",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def sessions_session_id_delete(+ self, api_key: StrictStr, session_id: StrictStr, **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def sessions_session_id_delete(+ self,+ api_key: StrictStr,+ session_id: StrictStr,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def sessions_session_id_delete(+ self,+ api_key: StrictStr,+ session_id: StrictStr,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """sessions_session_id_delete # noqa: E501++ Delete a session on the server # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_session_id_delete(api_key, session_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param session_id: (required)+ :type session_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the sessions_session_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.sessions_session_id_delete_with_http_info(+ api_key, session_id, **kwargs+ ) # noqa: E501++ @validate_arguments+ def sessions_session_id_delete_with_http_info(+ self, api_key: StrictStr, session_id: StrictStr, **kwargs+ ) -> ApiResponse: # noqa: E501+ """sessions_session_id_delete # noqa: E501++ Delete a session on the server # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_session_id_delete_with_http_info(api_key, session_id, async_req=True)+ >>> result = thread.get()++ :param api_key: (required)+ :type api_key: str+ :param session_id: (required)+ :type session_id: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["api_key", "session_id"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method sessions_session_id_delete" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["session_id"]:+ _path_params["sessionID"] = _params["session_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/sessions/{sessionID}",+ "DELETE",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )++ @overload+ async def sessions_session_id_refresh_post(+ self, session_id: StrictStr, api_key: Optional[StrictStr] = None, **kwargs+ ) -> None: # noqa: E501+ ...++ @overload+ def sessions_session_id_refresh_post(+ self,+ session_id: StrictStr,+ api_key: Optional[StrictStr] = None,+ async_req: Optional[bool] = True,+ **kwargs+ ) -> None: # noqa: E501+ ...++ @validate_arguments+ def sessions_session_id_refresh_post(+ self,+ session_id: StrictStr,+ api_key: Optional[StrictStr] = None,+ async_req: Optional[bool] = None,+ **kwargs+ ) -> Union[None, Awaitable[None]]: # noqa: E501+ """sessions_session_id_refresh_post # noqa: E501++ Refresh the session extending its time to live # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_session_id_refresh_post(session_id, api_key, async_req=True)+ >>> result = thread.get()++ :param session_id: (required)+ :type session_id: str+ :param api_key:+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _request_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.+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """+ kwargs["_return_http_data_only"] = True+ if "_preload_content" in kwargs:+ raise ValueError(+ "Error! Please call the sessions_session_id_refresh_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"+ )+ if async_req is not None:+ kwargs["async_req"] = async_req+ return self.sessions_session_id_refresh_post_with_http_info(+ session_id, api_key, **kwargs+ ) # noqa: E501++ @validate_arguments+ def sessions_session_id_refresh_post_with_http_info(+ self, session_id: StrictStr, api_key: Optional[StrictStr] = None, **kwargs+ ) -> ApiResponse: # noqa: E501+ """sessions_session_id_refresh_post # noqa: E501++ Refresh the session extending its time to live # noqa: E501+ This method makes a synchronous HTTP request by default. To make an+ asynchronous HTTP request, please pass async_req=True++ >>> thread = api.sessions_session_id_refresh_post_with_http_info(session_id, api_key, async_req=True)+ >>> result = thread.get()++ :param session_id: (required)+ :type session_id: str+ :param api_key:+ :type api_key: str+ :param async_req: Whether to execute the request asynchronously.+ :type async_req: bool, optional+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :type _preload_content: bool, optional+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :type _return_http_data_only: bool, optional+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_auth: dict, optional+ :type _content_type: string, optional: force content-type for the request+ :return: Returns the result object.+ If the method is called asynchronously,+ returns the request thread.+ :rtype: None+ """++ _params = locals()++ _all_params = ["session_id", "api_key"]+ _all_params.extend(+ [+ "async_req",+ "_return_http_data_only",+ "_preload_content",+ "_request_timeout",+ "_request_auth",+ "_content_type",+ "_headers",+ ]+ )++ # validate the arguments+ for _key, _val in _params["kwargs"].items():+ if _key not in _all_params:+ raise ApiTypeError(+ "Got an unexpected keyword argument '%s'"+ " to method sessions_session_id_refresh_post" % _key+ )+ _params[_key] = _val+ del _params["kwargs"]++ _collection_formats = {}++ # process the path parameters+ _path_params = {}+ if _params["session_id"]:+ _path_params["sessionID"] = _params["session_id"]++ # process the query parameters+ _query_params = []+ if _params.get("api_key") is not None: # noqa: E501+ _query_params.append(("api_key", _params["api_key"]))++ # process the header parameters+ _header_params = dict(_params.get("_headers", {}))+ # process the form parameters+ _form_params = []+ _files = {}+ # process the body parameter+ _body_params = None+ # set the HTTP header `Accept`+ _header_params["Accept"] = self.api_client.select_header_accept(+ ["application/json"]+ ) # noqa: E501++ # authentication setting+ _auth_settings = [] # noqa: E501++ _response_types_map = {}++ return self.api_client.call_api(+ "/sessions/{sessionID}/refresh",+ "POST",+ _path_params,+ _query_params,+ _header_params,+ body=_body_params,+ post_params=_form_params,+ files=_files,+ response_types_map=_response_types_map,+ auth_settings=_auth_settings,+ async_req=_params.get("async_req"),+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501+ _preload_content=_params.get("_preload_content", True),+ _request_timeout=_params.get("_request_timeout"),+ collection_formats=_collection_formats,+ _request_auth=_params.get("_request_auth"),+ )diff --git a/packages/python-sdk/e2b/api/client/api_client.py b/packages/python-sdk/e2b/api/client/api_client.pynew file mode 100644index 000000000..ad2755a07--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api_client.py@@ -0,0 +1,838 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import atexit+import datetime+from dateutil.parser import parse+import json+import mimetypes+from multiprocessing.pool import ThreadPool+import os+import re+import tempfile++from urllib.parse import quote++from e2b.api.client.configuration import Configuration+from e2b.api.client.api_response import ApiResponse+import e2b.api.client.models+from e2b.api.client import rest+from e2b.api.client.exceptions import ApiValueError, ApiException+++class ApiClient(object):+ """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.++ :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.+ """++ PRIMITIVE_TYPES = (float, bool, bytes, str, int)+ NATIVE_TYPES_MAPPING = {+ "int": int,+ "long": int, # TODO remove as only py3 is supported?+ "float": float,+ "str": str,+ "bool": bool,+ "date": datetime.date,+ "datetime": datetime.datetime,+ "object": object,+ }+ _pool = None++ def __init__(+ self,+ configuration=None,+ header_name=None,+ header_value=None,+ cookie=None,+ pool_threads=1,+ ):+ # use default configuration if none is provided+ if configuration is None:+ configuration = Configuration.get_default()+ self.configuration = configuration+ self.pool_threads = pool_threads++ self.rest_client = rest.RESTClientObject(configuration)+ self.default_headers = {}+ 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"+ self.client_side_validation = configuration.client_side_validation++ async def __aenter__(self):+ return self++ async def __aexit__(self, exc_type, exc_value, traceback):+ await self.close()++ async def close(self):+ await self.rest_client.close()+ 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++ _default = None++ @classmethod+ def get_default(cls):+ """Return new instance of ApiClient.++ This method returns newly created, based on default constructor,+ object of ApiClient class or returns a copy of default+ ApiClient.++ :return: The ApiClient object.+ """+ if cls._default is None:+ cls._default = ApiClient()+ return cls._default++ @classmethod+ def set_default(cls, default):+ """Set default instance of ApiClient.++ It stores default ApiClient.++ :param default: object of ApiClient.+ """+ cls._default = default++ async def __call_api(+ self,+ resource_path,+ method,+ path_params=None,+ query_params=None,+ header_params=None,+ body=None,+ post_params=None,+ files=None,+ response_types_map=None,+ auth_settings=None,+ _return_http_data_only=None,+ collection_formats=None,+ _preload_content=True,+ _request_timeout=None,+ _host=None,+ _request_auth=None,+ ):+ config = self.configuration++ # header parameters+ header_params = header_params or {}+ header_params.update(self.default_headers)+ if self.cookie:+ header_params["Cookie"] = self.cookie+ if header_params:+ header_params = self.sanitize_for_serialization(header_params)+ header_params = dict(+ self.parameters_to_tuples(header_params, collection_formats)+ )++ # path parameters+ if path_params:+ path_params = self.sanitize_for_serialization(path_params)+ path_params = self.parameters_to_tuples(path_params, collection_formats)+ for k, v in path_params:+ # specified safe chars, encode everything+ resource_path = resource_path.replace(+ "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param)+ )++ # post parameters+ if post_params or files:+ post_params = post_params if post_params else []+ post_params = self.sanitize_for_serialization(post_params)+ post_params = self.parameters_to_tuples(post_params, collection_formats)+ post_params.extend(self.files_parameters(files))++ # auth setting+ self.update_params_for_auth(+ header_params,+ query_params,+ auth_settings,+ resource_path,+ method,+ body,+ request_auth=_request_auth,+ )++ # body+ if body:+ body = self.sanitize_for_serialization(body)++ # 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++ # query parameters+ if query_params:+ query_params = self.sanitize_for_serialization(query_params)+ url_query = self.parameters_to_url_query(query_params, collection_formats)+ url += "?" + url_query++ try:+ # perform request and return response+ response_data = await self.request(+ method,+ url,+ query_params=query_params,+ headers=header_params,+ post_params=post_params,+ body=body,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ )+ except ApiException as e:+ if e.body:+ e.body = e.body.decode("utf-8")+ raise e++ self.last_response = response_data++ return_data = None # assuming derialization is not needed+ # data needs deserialization or returns HTTP data (deserialized) only+ if _preload_content or _return_http_data_only:+ response_type = response_types_map.get(str(response_data.status), None)++ if response_type == "bytearray":+ response_data.data = response_data.data+ else:+ match = None+ content_type = response_data.getheader("content-type")+ if content_type is not None:+ match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)+ encoding = match.group(1) if match else "utf-8"+ response_data.data = response_data.data.decode(encoding)++ # deserialize response data+ if response_type == "bytearray":+ return_data = response_data.data+ elif response_type:+ return_data = self.deserialize(response_data, response_type)+ else:+ return_data = None++ if _return_http_data_only:+ return return_data+ else:+ return ApiResponse(+ status_code=response_data.status,+ data=return_data,+ headers=response_data.getheaders(),+ raw_data=response_data.data,+ )++ def sanitize_for_serialization(self, obj):+ """Builds a JSON POST object.++ If obj is None, return None.+ If obj is str, int, long, float, bool, return directly.+ If obj is datetime.datetime, datetime.date+ convert to string in iso8601 format.+ If obj is list, sanitize each element in the list.+ If obj is dict, return the dict.+ If obj is OpenAPI model, return the properties dict.++ :param obj: The data to serialize.+ :return: The serialized form of data.+ """+ if obj is None:+ return None+ elif isinstance(obj, self.PRIMITIVE_TYPES):+ return obj+ elif isinstance(obj, list):+ return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj]+ elif isinstance(obj, tuple):+ return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj)+ elif isinstance(obj, (datetime.datetime, datetime.date)):+ return obj.isoformat()++ if isinstance(obj, dict):+ obj_dict = obj+ else:+ # Convert model obj to dict except+ # attributes `openapi_types`, `attribute_map`+ # and attributes which value is not None.+ # Convert attribute name to json key in+ # model definition for request.+ obj_dict = obj.to_dict()++ return {+ key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()+ }++ def deserialize(self, response, response_type):+ """Deserializes response into an object.++ :param response: RESTResponse object to be deserialized.+ :param response_type: class literal for+ deserialized object, or string of class name.++ :return: deserialized object.+ """+ # handle file downloading+ # save response body into a tmp file and return the instance+ if response_type == "file":+ return self.__deserialize_file(response)++ # fetch data from response object+ try:+ data = json.loads(response.data)+ except ValueError:+ data = response.data++ return self.__deserialize(data, response_type)++ def __deserialize(self, data, klass):+ """Deserializes dict, list, str into an object.++ :param data: dict, list or str.+ :param klass: class literal, or string of class name.++ :return: object.+ """+ if data is None:+ return None++ if type(klass) == str:+ if klass.startswith("List["):+ sub_kls = re.match(r"List\[(.*)]", klass).group(1)+ return [self.__deserialize(sub_data, sub_kls) for sub_data in data]++ if klass.startswith("Dict["):+ sub_kls = re.match(r"Dict\[([^,]*), (.*)]", klass).group(2)+ return {k: self.__deserialize(v, sub_kls) for k, v in data.items()}++ # convert str to class+ if klass in self.NATIVE_TYPES_MAPPING:+ klass = self.NATIVE_TYPES_MAPPING[klass]+ else:+ klass = getattr(e2b.api.client.models, klass)++ if klass in self.PRIMITIVE_TYPES:+ return self.__deserialize_primitive(data, klass)+ elif klass == object:+ return self.__deserialize_object(data)+ elif klass == datetime.date:+ return self.__deserialize_date(data)+ elif klass == datetime.datetime:+ return self.__deserialize_datetime(data)+ else:+ return self.__deserialize_model(data, klass)++ def call_api(+ self,+ resource_path,+ method,+ path_params=None,+ query_params=None,+ header_params=None,+ body=None,+ post_params=None,+ files=None,+ response_types_map=None,+ auth_settings=None,+ async_req=None,+ _return_http_data_only=None,+ collection_formats=None,+ _preload_content=True,+ _request_timeout=None,+ _host=None,+ _request_auth=None,+ ):+ """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 path_params: Path parameters in the url.+ :param query_params: Query parameters in the url.+ :param header_params: Header parameters to be+ placed in the request header.+ :param body: Request body.+ :param post_params dict: Request post form parameters,+ for `application/x-www-form-urlencoded`, `multipart/form-data`.+ :param auth_settings list: Auth Settings names for the request.+ :param response: Response data type.+ :param files dict: key -> filename, value -> filepath,+ for `multipart/form-data`.+ :param async_req bool: execute request asynchronously+ :param _return_http_data_only: response data instead of ApiResponse+ object with status code, headers, etc+ :param _preload_content: if False, the ApiResponse.data will+ be set to none and raw_data will store the+ HTTP response body without reading/decoding.+ Default is True.+ :param collection_formats: dict of collection formats for path, query,+ header, and post parameters.+ :param _request_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 _request_auth: set to override the auth_settings for an a single+ request; this effectively ignores the authentication+ in the spec for a single request.+ :type _request_token: dict, optional+ :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,+ path_params,+ query_params,+ header_params,+ body,+ post_params,+ files,+ response_types_map,+ auth_settings,+ _return_http_data_only,+ collection_formats,+ _preload_content,+ _request_timeout,+ _host,+ _request_auth,+ )++ return self.pool.apply_async(+ self.__call_api,+ (+ resource_path,+ method,+ path_params,+ query_params,+ header_params,+ body,+ post_params,+ files,+ response_types_map,+ auth_settings,+ _return_http_data_only,+ collection_formats,+ _preload_content,+ _request_timeout,+ _host,+ _request_auth,+ ),+ )++ def request(+ self,+ method,+ url,+ query_params=None,+ headers=None,+ post_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ """Makes the HTTP request using RESTClient."""+ if method == "GET":+ return self.rest_client.get_request(+ url,+ query_params=query_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ headers=headers,+ )+ elif method == "HEAD":+ return self.rest_client.head_request(+ url,+ query_params=query_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ headers=headers,+ )+ elif method == "OPTIONS":+ return self.rest_client.options_request(+ url,+ query_params=query_params,+ headers=headers,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ )+ elif method == "POST":+ return self.rest_client.post_request(+ url,+ query_params=query_params,+ headers=headers,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )+ elif method == "PUT":+ return self.rest_client.put_request(+ url,+ query_params=query_params,+ headers=headers,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )+ elif method == "PATCH":+ return self.rest_client.patch_request(+ url,+ query_params=query_params,+ headers=headers,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )+ elif method == "DELETE":+ return self.rest_client.delete_request(+ url,+ query_params=query_params,+ headers=headers,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )+ else:+ raise ApiValueError(+ "http method must be `GET`, `HEAD`, `OPTIONS`,"+ " `POST`, `PATCH`, `PUT` or `DELETE`."+ )++ def parameters_to_tuples(self, params, collection_formats):+ """Get parameters as list of tuples, formatting collections.++ :param params: Parameters as dict or list of two-tuples+ :param dict collection_formats: Parameter collection formats+ :return: Parameters as list of tuples, collections formatted+ """+ new_params = []+ if collection_formats is None:+ collection_formats = {}+ for k, v in (+ params.items() if isinstance(params, dict) else params+ ): # noqa: E501+ if k in collection_formats:+ collection_format = collection_formats[k]+ if collection_format == "multi":+ new_params.extend((k, value) for value in v)+ else:+ if collection_format == "ssv":+ delimiter = " "+ elif collection_format == "tsv":+ delimiter = "\t"+ elif collection_format == "pipes":+ delimiter = "|"+ else: # csv is the default+ delimiter = ","+ new_params.append((k, delimiter.join(str(value) for value in v)))+ else:+ new_params.append((k, v))+ return new_params++ def parameters_to_url_query(self, params, collection_formats):+ """Get parameters as list of tuples, formatting collections.++ :param params: Parameters as dict or list of two-tuples+ :param dict collection_formats: Parameter collection formats+ :return: URL query string (e.g. a=Hello%20World&b=123)+ """+ new_params = []+ if collection_formats is None:+ collection_formats = {}+ for k, v in (+ params.items() if isinstance(params, dict) else params+ ): # noqa: E501+ if isinstance(v, (int, float)):+ v = str(v)+ if isinstance(v, bool):+ v = str(v).lower()+ if isinstance(v, dict):+ v = json.dumps(v)++ if k in collection_formats:+ collection_format = collection_formats[k]+ if collection_format == "multi":+ new_params.extend((k, value) for value in v)+ else:+ if collection_format == "ssv":+ delimiter = " "+ elif collection_format == "tsv":+ delimiter = "\t"+ elif collection_format == "pipes":+ delimiter = "|"+ else: # csv is the default+ delimiter = ","+ new_params.append(+ (k, delimiter.join(quote(str(value)) for value in v))+ )+ else:+ new_params.append((k, quote(str(v))))++ return "&".join(["=".join(item) for item in new_params])++ def files_parameters(self, files=None):+ """Builds form parameters.++ :param files: File parameters.+ :return: Form parameters with files.+ """+ params = []++ if files:+ for k, v in files.items():+ if not v:+ continue+ file_names = v if type(v) is list else [v]+ for n in file_names:+ with open(n, "rb") as f:+ filename = os.path.basename(f.name)+ filedata = f.read()+ mimetype = (+ mimetypes.guess_type(filename)[0]+ or "application/octet-stream"+ )+ params.append(tuple([k, tuple([filename, filedata, mimetype])]))++ return params++ def select_header_accept(self, accepts):+ """Returns `Accept` based on an array of accepts provided.++ :param accepts: List of headers.+ :return: Accept (e.g. application/json).+ """+ if not accepts:+ return++ for accept in accepts:+ if re.search("json", accept, re.IGNORECASE):+ return accept++ return accepts[0]++ def select_header_content_type(self, content_types):+ """Returns `Content-Type` based on an array of content_types provided.++ :param content_types: List of content-types.+ :return: Content-Type (e.g. application/json).+ """+ if not content_types:+ return None++ for content_type in content_types:+ if re.search("json", content_type, re.IGNORECASE):+ return content_type++ return content_types[0]++ def update_params_for_auth(+ self,+ headers,+ queries,+ auth_settings,+ resource_path,+ method,+ body,+ request_auth=None,+ ):+ """Updates header and query params based on authentication setting.++ :param headers: Header parameters dict to be updated.+ :param queries: Query parameters tuple list to be updated.+ :param auth_settings: Authentication setting identifiers list.+ :resource_path: A string representation of the HTTP request resource path.+ :method: A string representation of the HTTP request method.+ :body: A object representing the body of the HTTP request.+ The object type is the return value of sanitize_for_serialization().+ :param request_auth: if set, the provided settings will+ override the token in the configuration.+ """+ if not auth_settings:+ return++ if request_auth:+ self._apply_auth_params(+ headers, queries, resource_path, method, body, request_auth+ )+ return++ for auth in auth_settings:+ auth_setting = self.configuration.auth_settings().get(auth)+ if auth_setting:+ self._apply_auth_params(+ headers, queries, resource_path, method, body, auth_setting+ )++ def _apply_auth_params(+ self, headers, queries, resource_path, method, body, auth_setting+ ):+ """Updates the request parameters based on a single auth_setting++ :param headers: Header parameters dict to be updated.+ :param queries: Query parameters tuple list to be updated.+ :resource_path: A string representation of the HTTP request resource path.+ :method: A string representation of the HTTP request method.+ :body: A object representing the body of the HTTP request.+ The object type is the return value of sanitize_for_serialization().+ :param auth_setting: auth settings for the endpoint+ """+ if auth_setting["in"] == "cookie":+ headers["Cookie"] = auth_setting["value"]+ elif auth_setting["in"] == "header":+ if auth_setting["type"] != "http-signature":+ headers[auth_setting["key"]] = auth_setting["value"]+ elif auth_setting["in"] == "query":+ queries.append((auth_setting["key"], auth_setting["value"]))+ else:+ raise ApiValueError("Authentication token must be in `query` or `header`")++ def __deserialize_file(self, response):+ """Deserializes body to file++ Saves response body into a file in a temporary folder,+ using the filename from the `Content-Disposition` header if provided.++ :param response: RESTResponse.+ :return: file path.+ """+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)+ os.close(fd)+ os.remove(path)++ content_disposition = response.getheader("Content-Disposition")+ if content_disposition:+ filename = re.search(+ r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition+ ).group(1)+ path = os.path.join(os.path.dirname(path), filename)++ with open(path, "wb") as f:+ f.write(response.data)++ return path++ def __deserialize_primitive(self, data, klass):+ """Deserializes string to primitive type.++ :param data: str.+ :param klass: class literal.++ :return: int, long, float, str, bool.+ """+ try:+ return klass(data)+ except UnicodeEncodeError:+ return str(data)+ except TypeError:+ return data++ def __deserialize_object(self, value):+ """Return an original value.++ :return: object.+ """+ return value++ def __deserialize_date(self, string):+ """Deserializes string to date.++ :param string: str.+ :return: date.+ """+ try:+ return parse(string).date()+ except ImportError:+ return string+ except ValueError:+ raise rest.ApiException(+ status=0, reason="Failed to parse `{0}` as date object".format(string)+ )++ def __deserialize_datetime(self, string):+ """Deserializes string to datetime.++ The string should be in iso8601 datetime format.++ :param string: str.+ :return: datetime.+ """+ try:+ return parse(string)+ except ImportError:+ return string+ except ValueError:+ raise rest.ApiException(+ status=0,+ reason=("Failed to parse `{0}` as datetime object".format(string)),+ )++ def __deserialize_model(self, data, klass):+ """Deserializes list or dict to model.++ :param data: dict, list.+ :param klass: class literal.+ :return: model object.+ """++ return klass.from_dict(data)diff --git a/packages/python-sdk/e2b/api/client/api_response.py b/packages/python-sdk/e2b/api/client/api_response.pynew file mode 100644index 000000000..0af0a2dd5--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api_response.py@@ -0,0 +1,26 @@+"""API response object."""++from __future__ import annotations+from typing import Any, Dict, Optional+from pydantic import Field, StrictInt, StrictStr+++class ApiResponse:+ """+ API response object+ """++ status_code: Optional[StrictInt] = Field(None, description="HTTP status code")+ headers: Optional[Dict[StrictStr, StrictStr]] = Field(+ None, description="HTTP headers"+ )+ data: Optional[Any] = Field(+ None, description="Deserialized data given the data type"+ )+ raw_data: Optional[Any] = Field(None, description="Raw data (HTTP response body)")++ def __init__(self, status_code=None, headers=None, data=None, raw_data=None):+ self.status_code = status_code+ self.headers = headers+ self.data = data+ self.raw_data = raw_datadiff --git a/packages/python-sdk/e2b/api/client/configuration.py b/packages/python-sdk/e2b/api/client/configuration.pynew file mode 100644index 000000000..845ce96d2--- /dev/null+++ b/packages/python-sdk/e2b/api/client/configuration.py@@ -0,0 +1,509 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import copy+import logging+import sys+import urllib3++import http.client as httplib+from e2b.api.client.exceptions import ApiValueError++JSON_SCHEMA_VALIDATION_KEYWORDS = {+ "multipleOf",+ "maximum",+ "exclusiveMaximum",+ "minimum",+ "exclusiveMinimum",+ "maxLength",+ "minLength",+ "pattern",+ "maxItems",+ "minItems",+}+++class Configuration(object):+ """This class contains various settings of the API client.++ :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 access_token: Access token.+ :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.+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates+ in PEM format.++ :Example:++ API Key Authentication Example.+ Given the following security scheme in the OpenAPI specification:+ components:+ securitySchemes:+ cookieAuth: # name for the security scheme+ type: apiKey+ in: cookie+ name: JSESSIONID # cookie name++ You can programmatically set the cookie:++ conf = e2b.api.client.Configuration(+ api_key={'cookieAuth': 'abc123'}+ api_key_prefix={'cookieAuth': 'JSESSIONID'}+ )++ The following cookie will be added to the HTTP request:+ Cookie: JSESSIONID abc123+ """++ _default = None++ def __init__(+ self,+ host=None,+ api_key=None,+ api_key_prefix=None,+ username=None,+ password=None,+ access_token=None,+ server_index=None,+ server_variables=None,+ server_operation_index=None,+ server_operation_variables=None,+ ssl_ca_cert=None,+ ):+ """Constructor"""+ self._base_path = "https://ondevbook.com" 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.api_key = {}+ if api_key:+ self.api_key = api_key+ """dict to store API key(s)+ """+ self.api_key_prefix = {}+ if api_key_prefix:+ self.api_key_prefix = api_key_prefix+ """dict to store API prefix (e.g. Bearer)+ """+ self.refresh_api_key_hook = None+ """function hook to refresh API key if expired+ """+ self.username = username+ """Username for HTTP basic authentication+ """+ self.password = password+ """Password for HTTP basic authentication+ """+ self.access_token = access_token+ """Access token+ """+ self.logger = {}+ """Logging Settings+ """+ self.logger["package_logger"] = logging.getLogger("e2b.api.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 = ssl_ca_cert+ """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 = 100+ """This value is passed to the aiohttp to limit simultaneous connections.+ Default values is 100, None means no-limit.+ """++ 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++ self.socket_options = None+ """Options to pass down to the underlying urllib3 socket+ """++ self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"+ """datetime format+ """++ self.date_format = "%Y-%m-%d"+ """date format+ """++ 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)++ @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 = default++ @classmethod+ def get_default_copy(cls):+ """Deprecated. Please use `get_default` instead.++ Deprecated. Please use `get_default` instead.++ :return: The configuration object.+ """+ return cls.get_default()++ @classmethod+ def get_default(cls):+ """Return the default configuration.++ This method returns newly created, based on default constructor,+ object of Configuration class or returns a copy of default+ configuration.++ :return: The configuration object.+ """+ if cls._default is None:+ cls._default = Configuration()+ return cls._default++ @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 httplib debug+ httplib.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 httplib debug+ httplib.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 = {}+ if "ApiKeyAuth" in self.api_key:+ auth["ApiKeyAuth"] = {+ "type": "api_key",+ "in": "query",+ "key": "api_key",+ "value": self.get_api_key_with_prefix(+ "ApiKeyAuth",+ ),+ }+ 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: 1.0.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": "https://ondevbook.com",+ "description": "API endpoint",+ },+ {+ "url": "https://{sessionID}-{clientID}.ondevbook.com",+ "description": "Session endpoint without a specified port",+ "variables": {+ "sessionID": {+ "description": "ID of the session",+ "default_value": "_sessionID",+ },+ "clientID": {+ "description": "ID of the client",+ "default_value": "_clientID",+ },+ },+ },+ {+ "url": "https://{port}-{sessionID}-{clientID}.ondevbook.com",+ "description": "Session endpoint with a specificed port",+ "variables": {+ "sessionID": {+ "description": "ID of the session",+ "default_value": "_sessionID",+ },+ "clientID": {+ "description": "ID of the client",+ "default_value": "_clientID",+ },+ "port": {+ "description": "Devbook Daemon default port",+ "default_value": "49982",+ },+ },+ },+ ]++ 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/packages/python-sdk/e2b/api/client/docs/DefaultApi.md b/packages/python-sdk/e2b/api/client/docs/DefaultApi.mdnew file mode 100644index 000000000..ae9239ecf--- /dev/null+++ b/packages/python-sdk/e2b/api/client/docs/DefaultApi.md@@ -0,0 +1,68 @@+# e2b.api.client.DefaultApi++All URIs are relative to *https://ondevbook.com*++Method | HTTP request | Description+------------- | ------------- | -------------+[**health_get**](DefaultApi.md#health_get) | **GET** /health |+++# **health_get**+> health_get()++++Health check++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.DefaultApi(api_client)++ try:+ await api_instance.health_get()+ except Exception as e:+ print("Exception when calling DefaultApi->health_get: %s\n" % e)+```+++### Parameters+This endpoint does not need any parameter.++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**200** | Request was successful | - |+**401** | Authentication error | - |++[[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/packages/python-sdk/e2b/api/client/docs/EnvsApi.md b/packages/python-sdk/e2b/api/client/docs/EnvsApi.mdnew file mode 100644index 000000000..66836e9bf--- /dev/null+++ b/packages/python-sdk/e2b/api/client/docs/EnvsApi.md@@ -0,0 +1,495 @@+# e2b.api.client.EnvsApi++All URIs are relative to *https://ondevbook.com*++Method | HTTP request | Description+------------- | ------------- | -------------+[**envs_code_snippet_id_delete**](EnvsApi.md#envs_code_snippet_id_delete) | **DELETE** /envs/{codeSnippetID} |+[**envs_code_snippet_id_patch**](EnvsApi.md#envs_code_snippet_id_patch) | **PATCH** /envs/{codeSnippetID} |+[**envs_code_snippet_id_post**](EnvsApi.md#envs_code_snippet_id_post) | **POST** /envs/{codeSnippetID} |+[**envs_code_snippet_id_state_put**](EnvsApi.md#envs_code_snippet_id_state_put) | **PUT** /envs/{codeSnippetID}/state |+[**envs_code_snippet_id_title_put**](EnvsApi.md#envs_code_snippet_id_title_put) | **PUT** /envs/{codeSnippetID}/title |+[**envs_get**](EnvsApi.md#envs_get) | **GET** /envs |+[**envs_post**](EnvsApi.md#envs_post) | **POST** /envs |+++# **envs_code_snippet_id_delete**+> envs_code_snippet_id_delete(api_key, code_snippet_id)++++Delete the code snippet environment++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ code_snippet_id = 'code_snippet_id_example' # str |++ try:+ await api_instance.envs_code_snippet_id_delete(api_key, code_snippet_id)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_code_snippet_id_delete: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **code_snippet_id** | **str**| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Successfully deleted the environment | - |+**400** | Cannot delete the environment | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **envs_code_snippet_id_patch**+> envs_code_snippet_id_patch(api_key, code_snippet_id)++++Update the environment of the code snippet to match the edit environment++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ code_snippet_id = 'code_snippet_id_example' # str |++ try:+ await api_instance.envs_code_snippet_id_patch(api_key, code_snippet_id)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_code_snippet_id_patch: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **code_snippet_id** | **str**| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Updated the edit environment for code snippet | - |+**400** | Bad request | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **envs_code_snippet_id_post**+> envs_code_snippet_id_post(api_key, code_snippet_id, new_environment)++++Create a new env for a code snippet++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.new_environment import NewEnvironment+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ code_snippet_id = 'code_snippet_id_example' # str |+ new_environment = e2b.api.client.NewEnvironment() # NewEnvironment |++ try:+ await api_instance.envs_code_snippet_id_post(api_key, code_snippet_id, new_environment)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_code_snippet_id_post: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **code_snippet_id** | **str**| |+ **new_environment** | [**NewEnvironment**](NewEnvironment.md)| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Successfully created an environment | - |+**400** | Bad request | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **envs_code_snippet_id_state_put**+> envs_code_snippet_id_state_put(api_key, code_snippet_id, environment_state_update)++++Update the state of the environment++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.environment_state_update import EnvironmentStateUpdate+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ code_snippet_id = 'code_snippet_id_example' # str |+ environment_state_update = e2b.api.client.EnvironmentStateUpdate() # EnvironmentStateUpdate |++ try:+ await api_instance.envs_code_snippet_id_state_put(api_key, code_snippet_id, environment_state_update)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_code_snippet_id_state_put: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **code_snippet_id** | **str**| |+ **environment_state_update** | [**EnvironmentStateUpdate**](EnvironmentStateUpdate.md)| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Updated the state of environment | - |+**400** | Bad request | - |+**401** | Authentication error | - |++[[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)++# **envs_code_snippet_id_title_put**+> envs_code_snippet_id_title_put(api_key, code_snippet_id, environment_title_update)++++Update the title of the environment++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ code_snippet_id = 'code_snippet_id_example' # str |+ environment_title_update = e2b.api.client.EnvironmentTitleUpdate() # EnvironmentTitleUpdate |++ try:+ await api_instance.envs_code_snippet_id_title_put(api_key, code_snippet_id, environment_title_update)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_code_snippet_id_title_put: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **code_snippet_id** | **str**| |+ **environment_title_update** | [**EnvironmentTitleUpdate**](EnvironmentTitleUpdate.md)| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Updated the title of the code snippet | - |+**400** | Bad request | - |+**401** | Authentication error | - |++[[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)++# **envs_get**+> List[EnvsGet200ResponseInner] envs_get(api_key)++++List all environments++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInner+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |++ try:+ api_response = await api_instance.envs_get(api_key)+ print("The response of EnvsApi->envs_get:\n")+ pprint(api_response)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_get: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |++### Return type++[**List[EnvsGet200ResponseInner]**](EnvsGet200ResponseInner.md)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**200** | Successfully returned all environments | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **envs_post**+> Environment envs_post(api_key, new_environment)++++Create a new environment++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.environment import Environment+from e2b.api.client.models.new_environment import NewEnvironment+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.EnvsApi(api_client)+ api_key = 'api_key_example' # str |+ new_environment = e2b.api.client.NewEnvironment() # NewEnvironment |++ try:+ api_response = await api_instance.envs_post(api_key, new_environment)+ print("The response of EnvsApi->envs_post:\n")+ pprint(api_response)+ except Exception as e:+ print("Exception when calling EnvsApi->envs_post: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **new_environment** | [**NewEnvironment**](NewEnvironment.md)| |++### Return type++[**Environment**](Environment.md)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**200** | Successfully created an environment | - |+**400** | Bad request | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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/packages/python-sdk/e2b/api/client/docs/SessionsApi.md b/packages/python-sdk/e2b/api/client/docs/SessionsApi.mdnew file mode 100644index 000000000..2554f9859--- /dev/null+++ b/packages/python-sdk/e2b/api/client/docs/SessionsApi.md@@ -0,0 +1,282 @@+# e2b.api.client.SessionsApi++All URIs are relative to *https://ondevbook.com*++Method | HTTP request | Description+------------- | ------------- | -------------+[**sessions_get**](SessionsApi.md#sessions_get) | **GET** /sessions |+[**sessions_post**](SessionsApi.md#sessions_post) | **POST** /sessions |+[**sessions_session_id_delete**](SessionsApi.md#sessions_session_id_delete) | **DELETE** /sessions/{sessionID} |+[**sessions_session_id_refresh_post**](SessionsApi.md#sessions_session_id_refresh_post) | **POST** /sessions/{sessionID}/refresh |+++# **sessions_get**+> List[SessionsGet200ResponseInner] sessions_get(api_key)++++List all sessions++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.sessions_get200_response_inner import SessionsGet200ResponseInner+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.SessionsApi(api_client)+ api_key = 'api_key_example' # str |++ try:+ api_response = await api_instance.sessions_get(api_key)+ print("The response of SessionsApi->sessions_get:\n")+ pprint(api_response)+ except Exception as e:+ print("Exception when calling SessionsApi->sessions_get: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |++### Return type++[**List[SessionsGet200ResponseInner]**](SessionsGet200ResponseInner.md)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**200** | Successfully returned all sessions | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **sessions_post**+> Session sessions_post(new_session, api_key=api_key)++++Create a session on the server++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.models.new_session import NewSession+from e2b.api.client.models.session import Session+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.SessionsApi(api_client)+ new_session = e2b.api.client.NewSession() # NewSession |+ api_key = 'api_key_example' # str | (optional)++ try:+ api_response = await api_instance.sessions_post(new_session, api_key=api_key)+ print("The response of SessionsApi->sessions_post:\n")+ pprint(api_response)+ except Exception as e:+ print("Exception when calling SessionsApi->sessions_post: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **new_session** | [**NewSession**](NewSession.md)| |+ **api_key** | **str**| | [optional]++### Return type++[**Session**](Session.md)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: application/json+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**201** | Successfully created a session | - |+**401** | Authentication error | - |+**400** | Bad request | - |+**500** | Server error | - |++[[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)++# **sessions_session_id_delete**+> sessions_session_id_delete(api_key, session_id)++++Delete a session on the server++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.SessionsApi(api_client)+ api_key = 'api_key_example' # str |+ session_id = 'session_id_example' # str |++ try:+ await api_instance.sessions_session_id_delete(api_key, session_id)+ except Exception as e:+ print("Exception when calling SessionsApi->sessions_session_id_delete: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **api_key** | **str**| |+ **session_id** | **str**| |++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Successfully deleted the session | - |+**401** | Authentication error | - |+**500** | Server error | - |++[[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)++# **sessions_session_id_refresh_post**+> sessions_session_id_refresh_post(session_id, api_key=api_key)++++Refresh the session extending its time to live++### Example++```python+import time+import os+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)+++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.SessionsApi(api_client)+ session_id = 'session_id_example' # str |+ api_key = 'api_key_example' # str | (optional)++ try:+ await api_instance.sessions_session_id_refresh_post(session_id, api_key=api_key)+ except Exception as e:+ print("Exception when calling SessionsApi->sessions_session_id_refresh_post: %s\n" % e)+```+++### Parameters++Name | Type | Description | Notes+------------- | ------------- | ------------- | -------------+ **session_id** | **str**| |+ **api_key** | **str**| | [optional]++### Return type++void (empty response body)++### Authorization++No authorization required++### HTTP request headers++ - **Content-Type**: Not defined+ - **Accept**: application/json++### HTTP response details+| Status code | Description | Response headers |+|-------------|-------------|------------------|+**204** | Successfully refreshed the session | - |+**401** | Authentication error | - |+**404** | Error refreshing session - session not found | - |++[[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/packages/python-sdk/e2b/api/client/exceptions.py b/packages/python-sdk/e2b/api/client/exceptions.pynew file mode 100644index 000000000..442c03e60--- /dev/null+++ b/packages/python-sdk/e2b/api/client/exceptions.py@@ -0,0 +1,154 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++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)+++class ApiException(OpenApiException):+ def __init__(self, status=None, reason=None, http_resp=None):+ if http_resp:+ self.status = http_resp.status+ self.reason = http_resp.reason+ self.body = http_resp.data+ self.headers = http_resp.getheaders()+ else:+ self.status = status+ self.reason = reason+ self.body = None+ self.headers = None++ 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+++class NotFoundException(ApiException):+ def __init__(self, status=None, reason=None, http_resp=None):+ super(NotFoundException, self).__init__(status, reason, http_resp)+++class UnauthorizedException(ApiException):+ def __init__(self, status=None, reason=None, http_resp=None):+ super(UnauthorizedException, self).__init__(status, reason, http_resp)+++class ForbiddenException(ApiException):+ def __init__(self, status=None, reason=None, http_resp=None):+ super(ForbiddenException, self).__init__(status, reason, http_resp)+++class ServiceException(ApiException):+ def __init__(self, status=None, reason=None, http_resp=None):+ super(ServiceException, self).__init__(status, reason, http_resp)+++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/packages/python-sdk/e2b/api/client/models/__init__.py b/packages/python-sdk/e2b/api/client/models/__init__.pynew file mode 100644index 000000000..b77b32644--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/__init__.py@@ -0,0 +1,29 @@+# coding: utf-8++# flake8: noqa+"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++# import models into model package+from e2b.api.client.models.environment import Environment+from e2b.api.client.models.environment_state import EnvironmentState+from e2b.api.client.models.environment_state_update import EnvironmentStateUpdate+from e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate+from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInner+from e2b.api.client.models.error import Error+from e2b.api.client.models.new_environment import NewEnvironment+from e2b.api.client.models.new_session import NewSession+from e2b.api.client.models.session import Session+from e2b.api.client.models.sessions_get200_response_inner import (+ SessionsGet200ResponseInner,+)+from e2b.api.client.models.template import Templatediff --git a/packages/python-sdk/e2b/api/client/models/environment.py b/packages/python-sdk/e2b/api/client/models/environment.pynew file mode 100644index 000000000..42b722466--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/environment.py@@ -0,0 +1,83 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from typing import Optional+from pydantic import BaseModel, Field, StrictStr+++class Environment(BaseModel):+ """+ Environment+ """++ id: StrictStr = Field(...)+ template: Optional[StrictStr] = None+ title: Optional[StrictStr] = None+ __properties = ["id", "template", "title"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> Environment:+ """Create an instance of Environment from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> Environment:+ """Create an instance of Environment from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return Environment.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in Environment) in the input: "+ + obj+ )++ _obj = Environment.parse_obj(+ {+ "id": obj.get("id"),+ "template": obj.get("template"),+ "title": obj.get("title"),+ }+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/environment_state.py b/packages/python-sdk/e2b/api/client/models/environment_state.pynew file mode 100644index 000000000..0674e93a0--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/environment_state.py@@ -0,0 +1,36 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import json+import pprint+import re # noqa: F401+from aenum import Enum, no_arg+++class EnvironmentState(str, Enum):+ """+ EnvironmentState+ """++ """+ allowed enum values+ """+ BUILDING = "Building"+ FAILED = "Failed"+ DONE = "Done"++ @classmethod+ def from_json(cls, json_str: str) -> EnvironmentState:+ """Create an instance of EnvironmentState from a JSON string"""+ return EnvironmentState(json.loads(json_str))diff --git a/packages/python-sdk/e2b/api/client/models/environment_state_update.py b/packages/python-sdk/e2b/api/client/models/environment_state_update.pynew file mode 100644index 000000000..1b3332748--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/environment_state_update.py@@ -0,0 +1,75 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from pydantic import BaseModel, Field+from e2b.api.client.models.environment_state import EnvironmentState+++class EnvironmentStateUpdate(BaseModel):+ """+ EnvironmentStateUpdate+ """++ state: EnvironmentState = Field(...)+ __properties = ["state"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> EnvironmentStateUpdate:+ """Create an instance of EnvironmentStateUpdate from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> EnvironmentStateUpdate:+ """Create an instance of EnvironmentStateUpdate from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return EnvironmentStateUpdate.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in EnvironmentStateUpdate) in the input: "+ + obj+ )++ _obj = EnvironmentStateUpdate.parse_obj({"state": obj.get("state")})+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/environment_title_update.py b/packages/python-sdk/e2b/api/client/models/environment_title_update.pynew file mode 100644index 000000000..4bee57af1--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/environment_title_update.py@@ -0,0 +1,75 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from typing import Optional+from pydantic import BaseModel, StrictStr+++class EnvironmentTitleUpdate(BaseModel):+ """+ EnvironmentTitleUpdate+ """++ title: Optional[StrictStr] = None+ __properties = ["title"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> EnvironmentTitleUpdate:+ """Create an instance of EnvironmentTitleUpdate from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> EnvironmentTitleUpdate:+ """Create an instance of EnvironmentTitleUpdate from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return EnvironmentTitleUpdate.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in EnvironmentTitleUpdate) in the input: "+ + obj+ )++ _obj = EnvironmentTitleUpdate.parse_obj({"title": obj.get("title")})+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.py b/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.pynew file mode 100644index 000000000..0596a79f2--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.py@@ -0,0 +1,83 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from typing import Optional+from pydantic import BaseModel, Field, StrictStr+++class EnvsGet200ResponseInner(BaseModel):+ """+ EnvsGet200ResponseInner+ """++ id: StrictStr = Field(...)+ template: Optional[StrictStr] = None+ title: Optional[StrictStr] = None+ __properties = ["id", "template", "title"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> EnvsGet200ResponseInner:+ """Create an instance of EnvsGet200ResponseInner from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> EnvsGet200ResponseInner:+ """Create an instance of EnvsGet200ResponseInner from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return EnvsGet200ResponseInner.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in EnvsGet200ResponseInner) in the input: "+ + obj+ )++ _obj = EnvsGet200ResponseInner.parse_obj(+ {+ "id": obj.get("id"),+ "template": obj.get("template"),+ "title": obj.get("title"),+ }+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/error.py b/packages/python-sdk/e2b/api/client/models/error.pynew file mode 100644index 000000000..f5520fe65--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/error.py@@ -0,0 +1,75 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from pydantic import BaseModel, Field, StrictInt, StrictStr+++class Error(BaseModel):+ """+ Error+ """++ code: StrictInt = Field(..., description="Error code")+ message: StrictStr = Field(..., description="Error")+ __properties = ["code", "message"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> Error:+ """Create an instance of Error from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> Error:+ """Create an instance of Error from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return Error.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in Error) in the input: "+ + obj+ )++ _obj = Error.parse_obj({"code": obj.get("code"), "message": obj.get("message")})+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/new_environment.py b/packages/python-sdk/e2b/api/client/models/new_environment.pynew file mode 100644index 000000000..d8b17d845--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/new_environment.py@@ -0,0 +1,78 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from typing import Optional+from pydantic import BaseModel, Field, StrictStr+++class NewEnvironment(BaseModel):+ """+ NewEnvironment+ """++ title: Optional[StrictStr] = None+ template: StrictStr = Field(...)+ __properties = ["title", "template"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> NewEnvironment:+ """Create an instance of NewEnvironment from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> NewEnvironment:+ """Create an instance of NewEnvironment from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return NewEnvironment.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in NewEnvironment) in the input: "+ + obj+ )++ _obj = NewEnvironment.parse_obj(+ {"title": obj.get("title"), "template": obj.get("template")}+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/new_session.py b/packages/python-sdk/e2b/api/client/models/new_session.pynew file mode 100644index 000000000..23e0e4c35--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/new_session.py@@ -0,0 +1,91 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from typing import Optional+from pydantic import BaseModel, Field, StrictBool, StrictStr+++class NewSession(BaseModel):+ """+ NewSession+ """++ edit_enabled: Optional[StrictBool] = Field(+ False,+ alias="editEnabled",+ description="Option determining if the session is a shared persistent edit session",+ )+ code_snippet_id: StrictStr = Field(+ ...,+ alias="codeSnippetID",+ description="Identifier of a code snippet which which is the environment associated",+ )+ __properties = ["editEnabled", "codeSnippetID"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> NewSession:+ """Create an instance of NewSession from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> NewSession:+ """Create an instance of NewSession from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return NewSession.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in NewSession) in the input: "+ + obj+ )++ _obj = NewSession.parse_obj(+ {+ "edit_enabled": obj.get("editEnabled")+ if obj.get("editEnabled") is not None+ else False,+ "code_snippet_id": obj.get("codeSnippetID"),+ }+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/session.py b/packages/python-sdk/e2b/api/client/models/session.pynew file mode 100644index 000000000..caca7dd75--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/session.py@@ -0,0 +1,96 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from pydantic import BaseModel, Field, StrictBool, StrictStr+++class Session(BaseModel):+ """+ Session+ """++ code_snippet_id: StrictStr = Field(+ ...,+ alias="codeSnippetID",+ description="Identifier of a code snippet which which is the environment associated",+ )+ edit_enabled: StrictBool = Field(+ ...,+ alias="editEnabled",+ description="Information if the session is a shared persistent edit session",+ )+ session_id: StrictStr = Field(+ ..., alias="sessionID", description="Identifier of the session"+ )+ client_id: StrictStr = Field(+ ..., alias="clientID", description="Identifier of the client"+ )+ __properties = ["codeSnippetID", "editEnabled", "sessionID", "clientID"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> Session:+ """Create an instance of Session from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> Session:+ """Create an instance of Session from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return Session.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in Session) in the input: "+ + obj+ )++ _obj = Session.parse_obj(+ {+ "code_snippet_id": obj.get("codeSnippetID"),+ "edit_enabled": obj.get("editEnabled"),+ "session_id": obj.get("sessionID"),+ "client_id": obj.get("clientID"),+ }+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.py b/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.pynew file mode 100644index 000000000..9f451a51b--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.py@@ -0,0 +1,96 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++from __future__ import annotations+import pprint+import re # noqa: F401+import json+++from pydantic import BaseModel, Field, StrictBool, StrictStr+++class SessionsGet200ResponseInner(BaseModel):+ """+ SessionsGet200ResponseInner+ """++ code_snippet_id: StrictStr = Field(+ ...,+ alias="codeSnippetID",+ description="Identifier of a code snippet which which is the environment associated",+ )+ edit_enabled: StrictBool = Field(+ ...,+ alias="editEnabled",+ description="Information if the session is a shared persistent edit session",+ )+ session_id: StrictStr = Field(+ ..., alias="sessionID", description="Identifier of the session"+ )+ client_id: StrictStr = Field(+ ..., alias="clientID", description="Identifier of the client"+ )+ __properties = ["codeSnippetID", "editEnabled", "sessionID", "clientID"]++ class Config:+ """Pydantic configuration"""++ allow_population_by_field_name = True+ validate_assignment = True++ def to_str(self) -> str:+ """Returns the string representation of the model using alias"""+ return pprint.pformat(self.dict(by_alias=True))++ def to_json(self) -> str:+ """Returns the JSON representation of the model using alias"""+ return json.dumps(self.to_dict())++ @classmethod+ def from_json(cls, json_str: str) -> SessionsGet200ResponseInner:+ """Create an instance of SessionsGet200ResponseInner from a JSON string"""+ return cls.from_dict(json.loads(json_str))++ def to_dict(self):+ """Returns the dictionary representation of the model using alias"""+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)+ return _dict++ @classmethod+ def from_dict(cls, obj: dict) -> SessionsGet200ResponseInner:+ """Create an instance of SessionsGet200ResponseInner from a dict"""+ if obj is None:+ return None++ if not isinstance(obj, dict):+ return SessionsGet200ResponseInner.parse_obj(obj)++ # raise errors for additional fields in the input+ for _key in obj.keys():+ if _key not in cls.__properties:+ raise ValueError(+ "Error due to additional fields (not defined in SessionsGet200ResponseInner) in the input: "+ + obj+ )++ _obj = SessionsGet200ResponseInner.parse_obj(+ {+ "code_snippet_id": obj.get("codeSnippetID"),+ "edit_enabled": obj.get("editEnabled"),+ "session_id": obj.get("sessionID"),+ "client_id": obj.get("clientID"),+ }+ )+ return _objdiff --git a/packages/python-sdk/e2b/api/client/models/template.py b/packages/python-sdk/e2b/api/client/models/template.pynew file mode 100644index 000000000..a85e15c56--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/template.py@@ -0,0 +1,42 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import json+import pprint+import re # noqa: F401+from aenum import Enum, no_arg+++class Template(Enum):+ """+ Template+ """++ """+ allowed enum values+ """+ NODEJS = "Nodejs"+ GO = "Go"+ BASH = "Bash"+ RUST = "Rust"+ PYTHON3 = "Python3"+ PHP = "PHP"+ JAVA = "Java"+ PERL = "Perl"+ DOTNET = "DotNET"++ @classmethod+ def from_json(cls, json_str: str) -> Template:+ """Create an instance of Template from a JSON string"""+ return Template(json.loads(json_str))diff --git a/packages/python-sdk/e2b/api/client/rest.py b/packages/python-sdk/e2b/api/client/rest.pynew file mode 100644index 000000000..de307f19b--- /dev/null+++ b/packages/python-sdk/e2b/api/client/rest.py@@ -0,0 +1,311 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import io+import json+import logging+import re+import ssl++import aiohttp+from urllib.parse import urlencode, quote_plus++from e2b.api.client.exceptions import ApiException, ApiValueError++logger = logging.getLogger(__name__)+++class RESTResponse(io.IOBase):+ def __init__(self, resp, data):+ self.aiohttp_response = resp+ self.status = resp.status+ self.reason = resp.reason+ self.data = data++ def getheaders(self):+ """Returns a CIMultiDictProxy of the response headers."""+ return self.aiohttp_response.headers++ def getheader(self, name, default=None):+ """Returns a given response header."""+ return self.aiohttp_response.headers.get(name, default)+++class RESTClientObject(object):+ def __init__(self, configuration, pools_size=4, maxsize=None):+ # maxsize is number of requests to host that are allowed in parallel+ if maxsize is None:+ maxsize = configuration.connection_pool_maxsize++ ssl_context = ssl.create_default_context(cafile=configuration.ssl_ca_cert)+ if configuration.cert_file:+ ssl_context.load_cert_chain(+ configuration.cert_file, keyfile=configuration.key_file+ )++ if not configuration.verify_ssl:+ ssl_context.check_hostname = False+ ssl_context.verify_mode = ssl.CERT_NONE++ connector = aiohttp.TCPConnector(limit=maxsize, ssl=ssl_context)++ self.proxy = configuration.proxy+ self.proxy_headers = configuration.proxy_headers++ # https pool manager+ self.pool_manager = aiohttp.ClientSession(connector=connector, trust_env=True)++ async def close(self):+ await self.pool_manager.close()++ async def request(+ self,+ method,+ url,+ query_params=None,+ headers=None,+ body=None,+ post_params=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ """Execute request++ :param method: http request method+ :param url: http request url+ :param query_params: query parameters in the url+ :param headers: http request headers+ :param body: request json body, for `application/json`+ :param post_params: request post parameters,+ `application/x-www-form-urlencoded`+ and `multipart/form-data`+ :param _preload_content: this is a non-applicable field for+ the AiohttpClient.+ :param _request_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 post_params and body:+ raise ApiValueError(+ "body parameter cannot be used with post_params parameter."+ )++ post_params = post_params or {}+ headers = headers or {}+ # url already contains the URL query string+ # so reset query_params to empty dict+ query_params = {}+ timeout = _request_timeout or 5 * 60++ if "Content-Type" not in headers:+ headers["Content-Type"] = "application/json"++ args = {"method": method, "url": url, "timeout": timeout, "headers": headers}++ if self.proxy:+ args["proxy"] = self.proxy+ if self.proxy_headers:+ args["proxy_headers"] = self.proxy_headers++ if query_params:+ args["url"] += "?" + urlencode(query_params)++ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`+ if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]:+ if re.search("json", headers["Content-Type"], re.IGNORECASE):+ if body is not None:+ body = json.dumps(body)+ args["data"] = body+ elif (+ headers["Content-Type"] == "application/x-www-form-urlencoded"+ ): # noqa: E501+ args["data"] = aiohttp.FormData(post_params)+ elif headers["Content-Type"] == "multipart/form-data":+ # must del headers['Content-Type'], or the correct+ # Content-Type which generated by aiohttp+ del headers["Content-Type"]+ data = aiohttp.FormData()+ for param in post_params:+ k, v = param+ if isinstance(v, tuple) and len(v) == 3:+ data.add_field(k, value=v[1], filename=v[0], content_type=v[2])+ else:+ data.add_field(k, v)+ args["data"] = data++ # Pass a `bytes` parameter directly in the body to support+ # other content types than Json when `body` argument is provided+ # in serialized form+ elif isinstance(body, bytes):+ args["data"] = body+ 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)++ r = await self.pool_manager.request(**args)+ if _preload_content:+ data = await r.read()+ r = RESTResponse(r, data)++ # log response body+ logger.debug("response body: %s", r.data)++ if not 200 <= r.status <= 299:+ raise ApiException(http_resp=r)++ return r++ async def get_request(+ self,+ url,+ headers=None,+ query_params=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "GET",+ url,+ headers=headers,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ query_params=query_params,+ )++ async def head_request(+ self,+ url,+ headers=None,+ query_params=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "HEAD",+ url,+ headers=headers,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ query_params=query_params,+ )++ async def options_request(+ self,+ url,+ headers=None,+ query_params=None,+ post_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "OPTIONS",+ url,+ headers=headers,+ query_params=query_params,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )++ async def delete_request(+ self,+ url,+ headers=None,+ query_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "DELETE",+ url,+ headers=headers,+ query_params=query_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )++ async def post_request(+ self,+ url,+ headers=None,+ query_params=None,+ post_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "POST",+ url,+ headers=headers,+ query_params=query_params,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )++ async def put_request(+ self,+ url,+ headers=None,+ query_params=None,+ post_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "PUT",+ url,+ headers=headers,+ query_params=query_params,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )++ async def patch_request(+ self,+ url,+ headers=None,+ query_params=None,+ post_params=None,+ body=None,+ _preload_content=True,+ _request_timeout=None,+ ):+ return await self.request(+ "PATCH",+ url,+ headers=headers,+ query_params=query_params,+ post_params=post_params,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ body=body,+ )diff --git a/packages/python-sdk/e2b/api/client/test/__init__.py b/packages/python-sdk/e2b/api/client/test/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/packages/python-sdk/e2b/api/client/test/test_default_api.py b/packages/python-sdk/e2b/api/client/test/test_default_api.pynew file mode 100644index 000000000..91cd9a75a--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_default_api.py@@ -0,0 +1,37 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest++import e2b.api.client+from e2b.api.client.api.default_api import DefaultApi # noqa: E501+from e2b.api.client.rest import ApiException+++class TestDefaultApi(unittest.TestCase):+ """DefaultApi unit test stubs"""++ def setUp(self):+ self.api = e2b.api.client.api.default_api.DefaultApi() # noqa: E501++ def tearDown(self):+ pass++ def test_health_get(self):+ """Test case for health_get"""+ pass+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_environment.py b/packages/python-sdk/e2b/api/client/test/test_environment.pynew file mode 100644index 000000000..7000d8a59--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_environment.py@@ -0,0 +1,59 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.environment import Environment # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvironment(unittest.TestCase):+ """Environment unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test Environment+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `Environment`+ """+ model = e2b.api.client.models.environment.Environment() # noqa: E501+ if include_optional :+ return Environment(+ id = '',+ template = '',+ title = ''+ )+ else :+ return Environment(+ id = '',+ )+ """++ def testEnvironment(self):+ """Test Environment"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_environment_state.py b/packages/python-sdk/e2b/api/client/test/test_environment_state.pynew file mode 100644index 000000000..eca4ec9ea--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_environment_state.py@@ -0,0 +1,38 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.environment_state import EnvironmentState # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvironmentState(unittest.TestCase):+ """EnvironmentState unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def testEnvironmentState(self):+ """Test EnvironmentState"""+ # inst = EnvironmentState()+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_environment_state_update.py b/packages/python-sdk/e2b/api/client/test/test_environment_state_update.pynew file mode 100644index 000000000..4c2854f1d--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_environment_state_update.py@@ -0,0 +1,59 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.environment_state_update import (+ EnvironmentStateUpdate,+) # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvironmentStateUpdate(unittest.TestCase):+ """EnvironmentStateUpdate unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test EnvironmentStateUpdate+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `EnvironmentStateUpdate`+ """+ model = e2b.api.client.models.environment_state_update.EnvironmentStateUpdate() # noqa: E501+ if include_optional :+ return EnvironmentStateUpdate(+ state = 'Building'+ )+ else :+ return EnvironmentStateUpdate(+ state = 'Building',+ )+ """++ def testEnvironmentStateUpdate(self):+ """Test EnvironmentStateUpdate"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_environment_title_update.py b/packages/python-sdk/e2b/api/client/test/test_environment_title_update.pynew file mode 100644index 000000000..7d9dae03d--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_environment_title_update.py@@ -0,0 +1,58 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.environment_title_update import (+ EnvironmentTitleUpdate,+) # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvironmentTitleUpdate(unittest.TestCase):+ """EnvironmentTitleUpdate unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test EnvironmentTitleUpdate+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `EnvironmentTitleUpdate`+ """+ model = e2b.api.client.models.environment_title_update.EnvironmentTitleUpdate() # noqa: E501+ if include_optional :+ return EnvironmentTitleUpdate(+ title = ''+ )+ else :+ return EnvironmentTitleUpdate(+ )+ """++ def testEnvironmentTitleUpdate(self):+ """Test EnvironmentTitleUpdate"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_envs_api.py b/packages/python-sdk/e2b/api/client/test/test_envs_api.pynew file mode 100644index 000000000..0161f57e8--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_envs_api.py@@ -0,0 +1,61 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest++import e2b.api.client+from e2b.api.client.api.envs_api import EnvsApi # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvsApi(unittest.TestCase):+ """EnvsApi unit test stubs"""++ def setUp(self):+ self.api = e2b.api.client.api.envs_api.EnvsApi() # noqa: E501++ def tearDown(self):+ pass++ def test_envs_code_snippet_id_delete(self):+ """Test case for envs_code_snippet_id_delete"""+ pass++ def test_envs_code_snippet_id_patch(self):+ """Test case for envs_code_snippet_id_patch"""+ pass++ def test_envs_code_snippet_id_post(self):+ """Test case for envs_code_snippet_id_post"""+ pass++ def test_envs_code_snippet_id_state_put(self):+ """Test case for envs_code_snippet_id_state_put"""+ pass++ def test_envs_code_snippet_id_title_put(self):+ """Test case for envs_code_snippet_id_title_put"""+ pass++ def test_envs_get(self):+ """Test case for envs_get"""+ pass++ def test_envs_post(self):+ """Test case for envs_post"""+ pass+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_envs_get200_response_inner.py b/packages/python-sdk/e2b/api/client/test/test_envs_get200_response_inner.pynew file mode 100644index 000000000..c80d81d84--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_envs_get200_response_inner.py@@ -0,0 +1,61 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.envs_get200_response_inner import (+ EnvsGet200ResponseInner,+) # noqa: E501+from e2b.api.client.rest import ApiException+++class TestEnvsGet200ResponseInner(unittest.TestCase):+ """EnvsGet200ResponseInner unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test EnvsGet200ResponseInner+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `EnvsGet200ResponseInner`+ """+ model = e2b.api.client.models.envs_get200_response_inner.EnvsGet200ResponseInner() # noqa: E501+ if include_optional :+ return EnvsGet200ResponseInner(+ id = '',+ template = '',+ title = ''+ )+ else :+ return EnvsGet200ResponseInner(+ id = '',+ )+ """++ def testEnvsGet200ResponseInner(self):+ """Test EnvsGet200ResponseInner"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_error.py b/packages/python-sdk/e2b/api/client/test/test_error.pynew file mode 100644index 000000000..38f66f927--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_error.py@@ -0,0 +1,59 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.error import Error # noqa: E501+from e2b.api.client.rest import ApiException+++class TestError(unittest.TestCase):+ """Error unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test Error+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `Error`+ """+ model = e2b.api.client.models.error.Error() # noqa: E501+ if include_optional :+ return Error(+ code = 56,+ message = ''+ )+ else :+ return Error(+ code = 56,+ message = '',+ )+ """++ def testError(self):+ """Test Error"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_new_environment.py b/packages/python-sdk/e2b/api/client/test/test_new_environment.pynew file mode 100644index 000000000..8c05f373b--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_new_environment.py@@ -0,0 +1,58 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.new_environment import NewEnvironment # noqa: E501+from e2b.api.client.rest import ApiException+++class TestNewEnvironment(unittest.TestCase):+ """NewEnvironment unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test NewEnvironment+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `NewEnvironment`+ """+ model = e2b.api.client.models.new_environment.NewEnvironment() # noqa: E501+ if include_optional :+ return NewEnvironment(+ title = '',+ template = ''+ )+ else :+ return NewEnvironment(+ template = '',+ )+ """++ def testNewEnvironment(self):+ """Test NewEnvironment"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_new_session.py b/packages/python-sdk/e2b/api/client/test/test_new_session.pynew file mode 100644index 000000000..46dfe9b1e--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_new_session.py@@ -0,0 +1,58 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.new_session import NewSession # noqa: E501+from e2b.api.client.rest import ApiException+++class TestNewSession(unittest.TestCase):+ """NewSession unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test NewSession+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `NewSession`+ """+ model = e2b.api.client.models.new_session.NewSession() # noqa: E501+ if include_optional :+ return NewSession(+ edit_enabled = True,+ code_snippet_id = ''+ )+ else :+ return NewSession(+ code_snippet_id = '',+ )+ """++ def testNewSession(self):+ """Test NewSession"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_session.py b/packages/python-sdk/e2b/api/client/test/test_session.pynew file mode 100644index 000000000..5e669662a--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_session.py@@ -0,0 +1,63 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.session import Session # noqa: E501+from e2b.api.client.rest import ApiException+++class TestSession(unittest.TestCase):+ """Session unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test Session+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `Session`+ """+ model = e2b.api.client.models.session.Session() # noqa: E501+ if include_optional :+ return Session(+ code_snippet_id = '',+ edit_enabled = True,+ session_id = '',+ client_id = ''+ )+ else :+ return Session(+ code_snippet_id = '',+ edit_enabled = True,+ session_id = '',+ client_id = '',+ )+ """++ def testSession(self):+ """Test Session"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_sessions_api.py b/packages/python-sdk/e2b/api/client/test/test_sessions_api.pynew file mode 100644index 000000000..6f4d2a327--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_sessions_api.py@@ -0,0 +1,49 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest++import e2b.api.client+from e2b.api.client.api.sessions_api import SessionsApi # noqa: E501+from e2b.api.client.rest import ApiException+++class TestSessionsApi(unittest.TestCase):+ """SessionsApi unit test stubs"""++ def setUp(self):+ self.api = e2b.api.client.api.sessions_api.SessionsApi() # noqa: E501++ def tearDown(self):+ pass++ def test_sessions_get(self):+ """Test case for sessions_get"""+ pass++ def test_sessions_post(self):+ """Test case for sessions_post"""+ pass++ def test_sessions_session_id_delete(self):+ """Test case for sessions_session_id_delete"""+ pass++ def test_sessions_session_id_refresh_post(self):+ """Test case for sessions_session_id_refresh_post"""+ pass+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_sessions_get200_response_inner.py b/packages/python-sdk/e2b/api/client/test/test_sessions_get200_response_inner.pynew file mode 100644index 000000000..a9e2f4b4c--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_sessions_get200_response_inner.py@@ -0,0 +1,65 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.sessions_get200_response_inner import (+ SessionsGet200ResponseInner,+) # noqa: E501+from e2b.api.client.rest import ApiException+++class TestSessionsGet200ResponseInner(unittest.TestCase):+ """SessionsGet200ResponseInner unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def make_instance(self, include_optional):+ """Test SessionsGet200ResponseInner+ include_option is a boolean, when False only required+ params are included, when True both required and+ optional params are included"""+ # uncomment below to create an instance of `SessionsGet200ResponseInner`+ """+ model = e2b.api.client.models.sessions_get200_response_inner.SessionsGet200ResponseInner() # noqa: E501+ if include_optional :+ return SessionsGet200ResponseInner(+ code_snippet_id = '',+ edit_enabled = True,+ session_id = '',+ client_id = ''+ )+ else :+ return SessionsGet200ResponseInner(+ code_snippet_id = '',+ edit_enabled = True,+ session_id = '',+ client_id = '',+ )+ """++ def testSessionsGet200ResponseInner(self):+ """Test SessionsGet200ResponseInner"""+ # inst_req_only = self.make_instance(include_optional=False)+ # inst_req_and_optional = self.make_instance(include_optional=True)+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client/test/test_template.py b/packages/python-sdk/e2b/api/client/test/test_template.pynew file mode 100644index 000000000..02a1c0a96--- /dev/null+++ b/packages/python-sdk/e2b/api/client/test/test_template.py@@ -0,0 +1,38 @@+# coding: utf-8++"""+ Devbook++ Devbook API # noqa: E501++ The version of the OpenAPI document: 1.0.0+ Generated by OpenAPI Generator (https://openapi-generator.tech)++ Do not edit the class manually.+"""+++import unittest+import datetime++import e2b.api.client+from e2b.api.client.models.template import Template # noqa: E501+from e2b.api.client.rest import ApiException+++class TestTemplate(unittest.TestCase):+ """Template unit test stubs"""++ def setUp(self):+ pass++ def tearDown(self):+ pass++ def testTemplate(self):+ """Test Template"""+ # inst = Template()+++if __name__ == "__main__":+ unittest.main()diff --git a/packages/python-sdk/e2b/api/client_README.md b/packages/python-sdk/e2b/api/client_README.mdnew file mode 100644index 000000000..b7cc6bf72--- /dev/null+++ b/packages/python-sdk/e2b/api/client_README.md@@ -0,0 +1,110 @@+# e2b.api.client+Devbook API++The `e2b.api.client` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:++- API version: 1.0.0+- Package version: 1.0.0+- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen++## Requirements.++Python 3.7+++## Installation & Usage++This python library package is generated without supporting files like setup.py or requirements files++To be able to use it, you will need these dependencies in your own package that uses this library:++* urllib3 >= 1.25.3+* python-dateutil+* aiohttp+* pydantic+* aenum++## Getting Started++In your own code, to use this library to connect and interact with e2b.api.client,+you can run the following:++```python++import time+import e2b.api.client+from e2b.api.client.rest import ApiException+from pprint import pprint++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = e2b.api.client.Configuration(+ host = "https://ondevbook.com"+)++++# Enter a context with an instance of the API client+async with e2b.api.client.ApiClient(configuration) as api_client:+ # Create an instance of the API class+ api_instance = e2b.api.client.DefaultApi(api_client)++ try:+ await api_instance.health_get()+ except ApiException as e:+ print("Exception when calling DefaultApi->health_get: %s\n" % e)++```++## Documentation for API Endpoints++All URIs are relative to *https://ondevbook.com*++Class | Method | HTTP request | Description+------------ | ------------- | ------------- | -------------+*DefaultApi* | [**health_get**](e2b/api/client/docs/DefaultApi.md#health_get) | **GET** /health |+*EnvsApi* | [**envs_code_snippet_id_delete**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_delete) | **DELETE** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_patch**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_patch) | **PATCH** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_post**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_post) | **POST** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_state_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_state_put) | **PUT** /envs/{codeSnippetID}/state |+*EnvsApi* | [**envs_code_snippet_id_title_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_title_put) | **PUT** /envs/{codeSnippetID}/title |+*EnvsApi* | [**envs_get**](e2b/api/client/docs/EnvsApi.md#envs_get) | **GET** /envs |+*EnvsApi* | [**envs_post**](e2b/api/client/docs/EnvsApi.md#envs_post) | **POST** /envs |+*SessionsApi* | [**sessions_get**](e2b/api/client/docs/SessionsApi.md#sessions_get) | **GET** /sessions |+*SessionsApi* | [**sessions_post**](e2b/api/client/docs/SessionsApi.md#sessions_post) | **POST** /sessions |+*SessionsApi* | [**sessions_session_id_delete**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_delete) | **DELETE** /sessions/{sessionID} |+*SessionsApi* | [**sessions_session_id_refresh_post**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_refresh_post) | **POST** /sessions/{sessionID}/refresh |+++## Documentation For Models++ - [Environment](e2b/api/client/docs/Environment.md)+ - [EnvironmentState](e2b/api/client/docs/EnvironmentState.md)+ - [EnvironmentStateUpdate](e2b/api/client/docs/EnvironmentStateUpdate.md)+ - [EnvironmentTitleUpdate](e2b/api/client/docs/EnvironmentTitleUpdate.md)+ - [EnvsGet200ResponseInner](e2b/api/client/docs/EnvsGet200ResponseInner.md)+ - [Error](e2b/api/client/docs/Error.md)+ - [NewEnvironment](e2b/api/client/docs/NewEnvironment.md)+ - [NewSession](e2b/api/client/docs/NewSession.md)+ - [Session](e2b/api/client/docs/Session.md)+ - [SessionsGet200ResponseInner](e2b/api/client/docs/SessionsGet200ResponseInner.md)+ - [Template](e2b/api/client/docs/Template.md)+++<a id="documentation-for-authorization"></a>+## Documentation For Authorization+++Authentication schemes defined for the API:+<a id="ApiKeyAuth"></a>+### ApiKeyAuth++- **Type**: API key+- **API key parameter name**: api_key+- **Location**: URL query string+++## Author++++diff --git a/packages/python-sdk/e2b/api/main.py b/packages/python-sdk/e2b/api/main.pynew file mode 100644index 000000000..fc1fc08b1--- /dev/null+++ b/packages/python-sdk/e2b/api/main.py@@ -0,0 +1,9 @@+import e2b.api.client as client++from e2b.constants import SESSION_DOMAIN++# Defining the host is optional and defaults to https://ondevbook.com+# See configuration.py for a list of all supported configuration parameters.+configuration = client.Configuration(+ host=f"https://{SESSION_DOMAIN}",+)diff --git a/packages/python-sdk/e2b/constants.py b/packages/python-sdk/e2b/constants.pynew file mode 100644index 000000000..e6a5a9a44--- /dev/null+++ b/packages/python-sdk/e2b/constants.py@@ -0,0 +1,6 @@+SESSION_REFRESH_PERIOD = 5 # seconds+WS_RECONNECT_INTERVAL = 6 # seconds++SESSION_DOMAIN = "ondevbook.com"+WS_PORT = 49982+WS_ROUTE = "/ws"diff --git a/packages/python-sdk/e2b/session/__init__.py b/packages/python-sdk/e2b/session/__init__.pynew file mode 100644index 000000000..1d7e37f22--- /dev/null+++ b/packages/python-sdk/e2b/session/__init__.py@@ -0,0 +1,14 @@+from .main import Session+from .filesystem_watcher import FilesystemOperation, FilesystemWatcher, FilesystemEvent+from .filesystem import FileInfo, FilesystemManager+from .terminal import TerminalManager, Terminal, TerminalOutput+from .process import ProcessManager, Process, ProcessMessage, ProcessOutput+from .code_snippet import OpenPort+from .env_vars import EnvVars+from .session_rpc import RpcException+from .exception import (+ TerminalException,+ ProcessException,+ FilesystemException,+ SessionException,+)diff --git a/packages/python-sdk/e2b/session/code_snippet.py b/packages/python-sdk/e2b/session/code_snippet.pynew file mode 100644index 000000000..9d07c9626--- /dev/null+++ b/packages/python-sdk/e2b/session/code_snippet.py@@ -0,0 +1,97 @@+from typing import Optional, ClassVar, Callable, List, Any+from pydantic import BaseModel+from enum import Enum++from e2b.session.exception import SessionException, MultipleExceptions+from e2b.session.out import OutStderrResponse, OutStdoutResponse+from e2b.session.session_connection import SessionConnection+from e2b.session.env_vars import EnvVars+from e2b.session.session_rpc import RpcException+++class OpenPort(BaseModel):+ ip: str+ port: int+ state: str+++class CodeSnippetExecState(str, Enum):+ Running = "Running"+ Stopped = "Stopped"+++CodeSnippetStateHandler = Callable[[CodeSnippetExecState], None]+CodeSnippetStderrHandler = Callable[[OutStderrResponse], None]+CodeSnippetStdoutHandler = Callable[[OutStdoutResponse], None]+ScanOpenedPortsHandler = Callable[[List[OpenPort]], Any]+++class CodeSnippetManager(BaseModel):+ service_name: ClassVar[str] = "codeSnippet"+ session: SessionConnection++ on_state_change: Optional[CodeSnippetStateHandler] = None+ on_stderr: Optional[CodeSnippetStderrHandler] = None+ on_stdout: Optional[CodeSnippetStdoutHandler] = None+ on_scan_ports: Optional[Callable[[List[OpenPort]], Any]] = None++ class Config:+ arbitrary_types_allowed = True++ async def run(+ self, code: str, envVars: Optional[EnvVars] = None+ ) -> CodeSnippetExecState:+ state: CodeSnippetExecState = await self.session._call(+ self.service_name, "run", [code, envVars]+ )+ if self.on_state_change:+ self.on_state_change(state)+ return state++ async def stop(self) -> CodeSnippetExecState:+ state: CodeSnippetExecState = await self.session._call(+ self.service_name, "stop"+ )+ if self.on_state_change:+ self.on_state_change(state)+ return state++ async def _subscribe(self):+ try:+ await self.session._handle_subscriptions(+ self.session._subscribe(+ self.service_name, self.on_state_change, "state"+ )+ if self.on_state_change+ else None,+ self.session._subscribe(self.service_name, self.on_stderr, "stderr")+ if self.on_stderr+ else None,+ self.session._subscribe(self.service_name, self.on_stdout, "stdout")+ if self.on_stdout+ else None,+ self.session._subscribe(+ self.service_name,+ lambda ports: self.on_scan_ports(+ [+ OpenPort(+ ip=port["Ip"],+ port=port["Port"],+ state=port["State"],+ )+ for port in ports+ ]+ )+ if self.on_scan_ports+ else None,+ "scanOpenedPorts",+ )+ if self.on_scan_ports+ else None,+ )+ except RpcException as e:+ raise SessionException(e.message) from e+ except MultipleExceptions as e:+ raise SessionException("Failed to subscribe to RPC services") from e++ return selfdiff --git a/packages/python-sdk/e2b/session/env_vars.py b/packages/python-sdk/e2b/session/env_vars.pynew file mode 100644index 000000000..ece9e8f31--- /dev/null+++ b/packages/python-sdk/e2b/session/env_vars.py@@ -0,0 +1,3 @@+from typing import Dict++EnvVars = Dict[str, str]diff --git a/packages/python-sdk/e2b/session/exception.py b/packages/python-sdk/e2b/session/exception.pynew file mode 100644index 000000000..50cf95906--- /dev/null+++ b/packages/python-sdk/e2b/session/exception.py@@ -0,0 +1,23 @@+from typing import List+++class SessionException(Exception):+ pass+++class MultipleExceptions(Exception):+ def __init__(self, message: str, exceptions: List[Exception]):+ super().__init__(f"Multiple exceptions occurred: {message}")+ self.exceptions = exceptions+++class FilesystemException(SessionException):+ pass+++class ProcessException(SessionException):+ pass+++class TerminalException(SessionException):+ passdiff --git a/packages/python-sdk/e2b/session/filesystem.py b/packages/python-sdk/e2b/session/filesystem.pynew file mode 100644index 000000000..4ca678103--- /dev/null+++ b/packages/python-sdk/e2b/session/filesystem.py@@ -0,0 +1,134 @@+import base64++from typing import List, Any+from pydantic import BaseModel++from e2b.session.session_connection import SessionConnection+from e2b.session.filesystem_watcher import FilesystemWatcher+from e2b.session.session_rpc import RpcException+from e2b.session.exception import FilesystemException+++class FileInfo(BaseModel):+ """+ Information about a file or a directory in the environment.+ """++ is_dir: bool+ name: str+++class FilesystemManager:+ """+ Filesystem manager is used to read, write, remove and list files and directories in the environment.+ """++ _service_name = "filesystem"++ def __init__(self, session: SessionConnection):+ self._session = session++ # async def read_bytes(self, path: str) -> bytearray:+ # """+ # Reads the whole content of a file as a byte array.+ # This can be used when you cannot represent the data as an UTF-8 string.++ # :param path: path to a file+ # :return: byte array representing the content of a file+ # """+ # result: str = await self.session.call(+ # self.service_name, "readBase64", [path]+ # )+ # return bytearray(result, "base64")++ # async def write_bytes(self, path: str, content: bytearray) -> None:+ # """+ # Writes content to a file as a byte array.+ # This can be used when you cannot represent the data as an UTF-8 string.++ # :param path: path to a file+ # :param content: byte array representing the content to write+ # """+ # base64_content = base64.b64encode(content).decode("utf-8")+ # await self.session.call(+ # self.service_name, "writeBase64", [path, base64_content]+ # )++ async def read(self, path: str) -> str:+ """+ Reads the whole content of a file as an array of bytes.++ :param path: path to a file+ :return: content of a file+ """+ try:+ result: str = await self._session._call(self._service_name, "read", [path])+ return result+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def write(self, path: str, content: str) -> None:+ """+ Writes content to a file.++ :param path: path to a file+ :param content: content to write+ """+ try:+ await self._session._call(self._service_name, "write", [path, content])+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def remove(self, path: str) -> None:+ """+ Removes a file or a directory.++ :param path: path to a file or a directory+ """+ try:+ await self._session._call(self._service_name, "remove", [path])+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def list(self, path: str) -> List[FileInfo]:+ """+ List files in a directory.++ :param path: path to a directory+ :return: array of files in a directory+ """+ try:+ result: List[Any] = await self._session._call(+ self._service_name, "list", [path]+ )+ return [+ FileInfo(is_dir=file_info["isDir"], name=file_info["name"])+ for file_info in result+ ]+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def make_dir(self, path: str) -> None:+ """+ Creates a new directory and all directories along the way if needed on the specified path.++ :param path: path to a new directory. For example '/dirA/dirB' when creating 'dirB'+ """+ try:+ await self._session._call(self._service_name, "makeDir", [path])+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def watch_dir(self, path: str) -> FilesystemWatcher:+ """+ Watches directory for filesystem events.++ :param path: path to a directory that will be watched++ :return: New watcher+ """+ return FilesystemWatcher(+ connection=self._session,+ path=path,+ service_name=self._service_name,+ )diff --git a/packages/python-sdk/e2b/session/filesystem_watcher.py b/packages/python-sdk/e2b/session/filesystem_watcher.pynew file mode 100644index 000000000..2437b06ff--- /dev/null+++ b/packages/python-sdk/e2b/session/filesystem_watcher.py@@ -0,0 +1,95 @@+from enum import Enum+from typing import Callable, Set, Any, Awaitable, Optional+from pydantic import BaseModel++from e2b.session.session_connection import SessionConnection+from e2b.session.exception import FilesystemException+from e2b.session.session_rpc import RpcException+++class FilesystemOperation(str, Enum):+ Create = "Create"+ Write = "Write"+ Remove = "Remove"+ Rename = "Rename"+ Chmod = "Chmod"+++class FilesystemEvent(BaseModel):+ path: str+ name: str+ operation: FilesystemOperation+ timestamp: int+ """+ Unix epoch in nanoseconds+ """+ is_dir: bool+++class FilesystemWatcher:+ @property+ def path(self) -> str:+ """+ The path to watch.+ """+ return self._path++ def __init__(+ self,+ connection: SessionConnection,+ path: str,+ service_name: str,+ ):+ self._connection = connection+ self._path = path+ self._service_name = service_name+ self._unsubscribe: Optional[Callable[[], Awaitable[Any]]] = None+ self._listeners: Set[Callable[[FilesystemEvent], Any]] = set()++ async def start(self) -> None:+ """+ Starts the filesystem watcher.+ """+ if self._unsubscribe:+ return++ try:+ self._unsubscribe = await self._connection._subscribe(+ self._service_name,+ self._handle_filesystem_events,+ "watchDir",+ self.path,+ )+ except RpcException as e:+ raise FilesystemException(e.message) from e++ async def stop(self) -> None:+ """+ Stops the filesystem watcher.+ """+ self._listeners.clear()+ if self._unsubscribe:+ try:+ await self._unsubscribe()+ self._unsubscribe = None+ except RpcException as e:+ raise FilesystemException(e.message) from e++ def add_event_listener(self, listener: Callable[[FilesystemEvent], Any]):+ """+ Adds a listener for filesystem events.++ :param listener: a listener to add++ :return: a function that removes the listener+ """+ self._listeners.add(listener)++ def delete_listener() -> None:+ self._listeners.remove(listener)++ return delete_listener++ def _handle_filesystem_events(self, event: FilesystemEvent) -> None:+ for listener in self._listeners:+ listener(event)diff --git a/packages/python-sdk/e2b/session/main.py b/packages/python-sdk/e2b/session/main.pynew file mode 100644index 000000000..663d2c6f7--- /dev/null+++ b/packages/python-sdk/e2b/session/main.py@@ -0,0 +1,156 @@+import logging++from typing import Literal, Optional, Callable, List, Any++from e2b.session.session_connection import SessionConnection+from e2b.session.code_snippet import CodeSnippetManager, OpenPort+from e2b.session.terminal import TerminalManager+from e2b.session.filesystem import FilesystemManager+from e2b.session.process import ProcessManager++Environment = Literal[+ "Nodejs",+ "Bash",+ "Python3",+ "Java",+ "Go",+ "Rust",+ "PHP",+ "Perl",+ "DotNET",+]+++class Session(SessionConnection):+ """+ E2B cloud environment gives your agent a full cloud development environment that's sandboxed. That means:++ - Access to Linux OS+ - Using filesystem (create, list, and delete files and dirs)+ - Run processes+ - Sandboxed - you can run any code+ - Access to the internet++ These cloud environments are meant to be used for agents. Like a sandboxed playgrounds, where the agent can do whatever it wants.+ """++ @property+ def process(self):+ """+ Process manager used to run commands.+ """+ return self._process++ @property+ def terminal(self):+ """+ Terminal manager used to create interactive terminals.+ """+ return self._terminal++ @property+ def filesystem(self):+ """+ Filesystem manager used to manage files.+ """+ return self._filesystem++ def __init__(+ self,+ id: Environment | str,+ api_key: Optional[str] = None,+ edit_enabled: bool = False,+ on_scan_ports: Optional[Callable[[List[OpenPort]], Any]] = None,+ _debug_hostname: Optional[str] = None,+ _debug_port: Optional[int] = None,+ _debug_dev_env: Optional[Literal["remote", "local"]] = None,+ ):+ """+ Creates a new cloud environment session.++ :param id: ID of the environment or the environment type template.+ Can be one of the following environment type templates or a custom environment ID:+ - `Nodejs`+ - `Bash`+ - `Python3`+ - `Java`+ - `Go`+ - `Rust`+ - `PHP`+ - `Perl`+ - `DotNET`++ :param api_key: The API key to use+ :param edit_enabled: Whether the session state will be saved after exit+ :param on_scan_ports: A callback to handle opened ports+ """++ logging.info(f"Session {id if isinstance(id, str) else type(id)}")+ super().__init__(+ id=id,+ api_key=api_key,+ edit_enabled=edit_enabled,+ _debug_hostname=_debug_hostname,+ _debug_port=_debug_port,+ _debug_dev_env=_debug_dev_env,+ )+ self._code_snippet = CodeSnippetManager(+ session=self,+ on_scan_ports=on_scan_ports,+ )+ self._terminal = TerminalManager(session=self)+ self._filesystem = FilesystemManager(session=self)+ self._process = ProcessManager(session=self)++ async def open(self) -> None:+ await super().open()+ await self._code_snippet._subscribe()++ async def close(self) -> None:+ self._terminal._close()+ self._process._close()+ await super().close()++ @classmethod+ async def create(+ cls,+ id: Environment | str,+ api_key: Optional[str] = None,+ edit_enabled: bool = False,+ on_scan_ports: Optional[Callable[[List[OpenPort]], Any]] = None,+ _debug_hostname: Optional[str] = None,+ _debug_port: Optional[int] = None,+ _debug_dev_env: Optional[Literal["remote", "local"]] = None,+ ):+ """+ Creates a new cloud environment session.++ :param id: ID of the environment or the environment type template.+ Can be one of the following environment type templates or a custom environment ID:+ - `Nodejs`+ - `Bash`+ - `Python`+ - `Java`+ - `Go`+ - `Rust`+ - `PHP`+ - `Perl`+ - `DotNET`++ :param api_key: The API key to use+ :param edit_enabled: Whether the session state will be saved after exit+ :param on_scan_ports: A callback to handle opened ports+ """++ logging.info(f"Session {id if isinstance(id, str) else type(id)}")+ session = cls(+ id=id,+ api_key=api_key,+ edit_enabled=edit_enabled,+ on_scan_ports=on_scan_ports,+ _debug_hostname=_debug_hostname,+ _debug_port=_debug_port,+ _debug_dev_env=_debug_dev_env,+ )+ await session.open()+ return sessiondiff --git a/packages/python-sdk/e2b/session/out.py b/packages/python-sdk/e2b/session/out.pynew file mode 100644index 000000000..7559a5d30--- /dev/null+++ b/packages/python-sdk/e2b/session/out.py@@ -0,0 +1,24 @@+from enum import Enum+from pydantic import BaseModel+++class OutType(str, Enum):+ Stdout = "Stdout"+ Stderr = "Stderr"+++class OutResponse(BaseModel):+ type: OutType+ timestamp: int+ """+ Unix epoch in nanoseconds+ """+ line: str+++class OutStdoutResponse(OutResponse):+ type: OutType = OutType.Stdout+++class OutStderrResponse(OutResponse):+ type: OutType = OutType.Stderrdiff --git a/packages/python-sdk/e2b/session/process.py b/packages/python-sdk/e2b/session/process.pynew file mode 100644index 000000000..0068baaf9--- /dev/null+++ b/packages/python-sdk/e2b/session/process.py@@ -0,0 +1,312 @@+import asyncio+import logging++from typing import Awaitable, ClassVar, Optional, Callable, Any, Coroutine, List, Dict+from pydantic import BaseModel++from e2b.utils.noop import noop+from e2b.session.out import OutStdoutResponse, OutStderrResponse, OutResponse, OutType+from e2b.utils.future import DeferredFuture+from e2b.session.env_vars import EnvVars+from e2b.session.session_connection import SessionConnection+from e2b.utils.id import create_id+from e2b.session.session_rpc import RpcException+from e2b.session.exception import ProcessException, MultipleExceptions+++logger = logging.getLogger(__name__)+++class ProcessMessage(BaseModel):+ """+ A message from a process+ """++ line: str+ error: bool = False+ timestamp: int+ """+ Unix epoch in nanoseconds+ """+++class ProcessOutput(BaseModel):+ """+ Output from a process.+ """++ delimiter: ClassVar[str] = "\n"+ messages: List[ProcessMessage] = []++ error = False++ @property+ def stdout(self) -> str:+ """+ The stdout from the process+ """+ return self.delimiter.join(out.line for out in self.messages if not out.error)++ @property+ def stderr(self) -> str:+ """+ The stderr from the process+ """+ return self.delimiter.join(out.line for out in self.messages if out.error)++ def _insert_by_timestamp(self, message: ProcessMessage):+ """Insert an out based on its timestamp using insertion sort."""+ i = len(self.messages) - 1+ while i >= 0 and self.messages[i].timestamp > message.timestamp:+ i -= 1+ self.messages.insert(i + 1, message)++ def _add_stdout(self, message: ProcessMessage):+ self._insert_by_timestamp(message)++ def _add_stderr(self, message: ProcessMessage):+ self.error = True+ self._insert_by_timestamp(message)+++class Process:+ """+ A process running in the environment.+ """++ @property+ def output(self) -> ProcessOutput:+ """+ The output from the process+ """+ return self._output++ @property+ def stdout(self) -> str:+ """+ The stdout from the process+ """+ return self._output.stdout++ @property+ def stderr(self) -> str:+ """+ The stderr from the process+ """+ return self._output.stderr++ @property+ def error(self) -> bool:+ """+ True if the process has written to stderr+ """+ return self._output.error++ @property+ def output_messages(self) -> List[ProcessMessage]:+ """+ The output messages from the process+ """+ return self._output.messages++ @property+ def finished(self):+ """+ A future that is resolved when the process exits.+ """+ return self._finished++ @property+ def process_id(self) -> str:+ """+ The process id used to identify the process in the session.+ This is not the system process id of the process running in the environment session.+ """+ return self._process_id++ def __await__(self):+ return self._finished.__await__()++ def __init__(+ self,+ process_id: str,+ session: SessionConnection,+ trigger_exit: Callable[[], Coroutine[Any, Any, None]],+ finished: Awaitable[ProcessOutput],+ output: ProcessOutput,+ ):+ self._process_id = process_id+ self._session = session+ self._trigger_exit = trigger_exit+ self._finished = finished+ self._output = output++ async def send_stdin(self, data: str) -> None:+ """+ Sends data to the process stdin.++ :param data: Data to send+ """+ try:+ await self._session._call(+ ProcessManager._service_name, "stdin", [self.process_id, data]+ )+ except RpcException as e:+ raise ProcessException(e.message) from e++ async def kill(self) -> None:+ """+ Kills the process.+ """+ try:+ await self._session._call(+ ProcessManager._service_name, "kill", [self.process_id]+ )+ except RpcException as e:+ raise ProcessException(e.message) from e+ await self._trigger_exit()+++class ProcessManager:+ """+ Manager for starting and interacting with processes in the environment.+ """++ _service_name = "process"++ def __init__(self, session: SessionConnection):+ self._session = session+ self._process_cleanup: List[Callable[[], Any]] = []++ def __del__(self):+ self._close()++ def _close(self):+ for cleanup in self._process_cleanup:+ cleanup()++ self._process_cleanup.clear()++ async def start(+ self,+ cmd: str,+ on_stdout: Optional[Callable[[ProcessMessage], Any]] = None,+ on_stderr: Optional[Callable[[ProcessMessage], Any]] = None,+ on_exit: Optional[Callable[[], Any]] = None,+ env_vars: Optional[EnvVars] = {},+ rootdir: str = "",+ process_id: str | None = None,+ ) -> Process:+ """+ Starts a process in the environment.++ :param cmd: The command to run+ :param on_stdout: A callback that is called when stdout with a newline is received from the process+ :param on_stderr: A callback that is called when stderr with a newline is received from the process+ :param on_exit: A callback that is called when the process exits+ :param env_vars: A dictionary of environment variables to set for the process+ :param rootdir: The root directory for the process+ :param process_id: The process id to use for the process. If not provided, a random id is generated++ :return: A process object.+ """++ future_exit = DeferredFuture(self._process_cleanup)+ process_id = process_id or create_id(12)++ unsub_all: Optional[Callable[[], Awaitable[Any]]] = None++ output = ProcessOutput()++ def handle_stdout(data: Dict[Any, Any]):+ out = OutStdoutResponse(**data)++ message = ProcessMessage(+ line=out.line,+ timestamp=out.timestamp,+ error=False,+ )++ output._add_stdout(message)+ if on_stdout:+ on_stdout(message)++ def handle_stderr(data: Dict[Any, Any]):+ out = OutStderrResponse(**data)++ message = ProcessMessage(+ line=out.line,+ timestamp=out.timestamp,+ error=True,+ )++ output._add_stderr(message)+ if on_stderr:+ on_stderr(message)++ try:+ unsub_all = await self._session._handle_subscriptions(+ self._session._subscribe(+ self._service_name, future_exit, "onExit", process_id+ ),+ self._session._subscribe(+ self._service_name, handle_stdout, "onStdout", process_id+ ),+ self._session._subscribe(+ self._service_name, handle_stderr, "onStderr", process_id+ ),+ )+ except (RpcException, MultipleExceptions) as e:+ future_exit.cancel()++ if isinstance(e, RpcException):+ raise ProcessException(e.message) from e+ elif isinstance(e, MultipleExceptions):+ raise ProcessException(+ "Failed to subscribe to RPC services necessary for starting process"+ ) from e++ future_exit_handler_finish = DeferredFuture[ProcessOutput](+ self._process_cleanup+ )++ async def exit_handler():+ await future_exit+ logger.info(+ f"Handling process exit {process_id} - {future_exit._future.done()}",+ )+ if unsub_all:+ await unsub_all()+ if on_exit:+ on_exit()+ future_exit_handler_finish(output)++ exit_task = asyncio.create_task(exit_handler())+ self._process_cleanup.append(exit_task.cancel)++ async def trigger_exit():+ logger.info("Triggering exit")+ future_exit(None)+ await future_exit_handler_finish++ try:+ await self._session._call(+ self._service_name,+ "start",+ [+ process_id,+ cmd,+ env_vars,+ rootdir,+ ],+ )+ return Process(+ output=output,+ session=self._session,+ process_id=process_id,+ trigger_exit=trigger_exit,+ finished=future_exit_handler_finish,+ )+ except RpcException as e:+ await trigger_exit()+ raise ProcessException(e.message) from ediff --git a/packages/python-sdk/e2b/session/session_connection.py b/packages/python-sdk/e2b/session/session_connection.pynew file mode 100644index 000000000..02ad9c823--- /dev/null+++ b/packages/python-sdk/e2b/session/session_connection.py@@ -0,0 +1,265 @@+import asyncio+import logging++from typing import Awaitable, Literal, Optional, Callable, List, Any, Coroutine+from pydantic import BaseModel++from e2b.session.exception import MultipleExceptions+from e2b.utils.future import DeferredFuture+from e2b.utils.future import format_settled_errors+from e2b.session.session_rpc import SessionRpc, Notification+from e2b.api.client import NewSession, Session as SessionInfo+from e2b.utils.noop import noop+from e2b.api.main import client, configuration+from e2b.constants import (+ SESSION_DOMAIN,+ WS_PORT,+ WS_ROUTE,+ SESSION_REFRESH_PERIOD,+)++logger = logging.getLogger(__name__)+++class Subscription(BaseModel):+ service: str+ id: str+ handler: Callable[[Any], Awaitable[None]]+++class SessionConnection:+ @property+ def finished(self):+ """+ A future that is resolved when the session exits.+ """+ return self._finished++ @property+ def is_open(self) -> bool:+ """+ Whether the session is open.+ """+ return self._is_open++ def __await__(self):+ return self._finished.__await__()++ def __init__(+ self,+ id: str,+ api_key: Optional[str] = None,+ edit_enabled: bool = False,+ _debug_hostname: Optional[str] = None,+ _debug_port: Optional[int] = None,+ _debug_dev_env: Optional[Literal["remote", "local"]] = None,+ ):+ self._id = id+ self._api_key = api_key+ self._debug_hostname = _debug_hostname+ self._debug_port = _debug_port+ self._debug_dev_env = _debug_dev_env+ self._edit_enabled = edit_enabled++ self._session: Optional[SessionInfo] = None+ self._is_open = False+ self._process_cleanup: List[Callable[[], Any]] = []+ self._refreshing_task: Optional[asyncio.Task] = None+ self._subscribers = {}+ self._rpc: SessionRpc+ self._finished = DeferredFuture(self._process_cleanup)++ logger.info(f"Session for code snippet {self._id} initialized")++ def get_hostname(self, port: Optional[int] = None):+ """+ Get the hostname for the session or for the specified session's port.++ :param port: specify if you want to connect to a specific port of the session++ :return: hostname of the session or session's port+ """+ if not self._session:+ raise Exception("Session is not initialized")++ if self._debug_hostname:+ if port and self._debug_dev_env == "remote":+ return f"{port}-{self._debug_hostname}"+ elif port:+ return f"{self._debug_hostname}:{port}"+ else:+ return self._debug_hostname++ hostname = (+ f"{self._session.session_id}-{self._session.client_id}.{SESSION_DOMAIN}"+ )+ if port:+ return f"{port}-{hostname}"+ return hostname++ async def close(self) -> None:+ """+ Close the session and unsubscribe from all the subscriptions.+ """+ self._close()++ if self._is_open:+ logger.info(f"Closing session {self._session}")+ self._is_open = False+ if self._rpc:+ await self._rpc.close()++ def __del__(self):+ self._close()++ def _close(self):+ self._subscribers.clear()++ for cleanup in self._process_cleanup:+ cleanup()+ self._process_cleanup.clear()++ async def open(self) -> None:+ """+ Open a connection to a new session.++ You must call this method before using the session.+ """+ if self._is_open or self._session:+ raise Exception("Session connect was already called")+ else:+ self._is_open = True++ try:+ async with client.ApiClient(configuration) as api_client:+ api = client.SessionsApi(api_client)++ self._session = await api.sessions_post(+ NewSession(codeSnippetID=self._id, editEnabled=self._edit_enabled),+ )+ logger.info(f"Acquired session: {self._session}")+ self._session.session_id+ self._refreshing_task = asyncio.create_task(+ self._refresh(self._session.session_id)+ )+ self._process_cleanup.append(self._refreshing_task.cancel)+ except Exception as e:+ logger.info(f"Failed to acquire session: {e}")+ raise e++ hostname = self.get_hostname(self._debug_port or WS_PORT)+ protocol = "ws" if self._debug_dev_env == "local" else "wss"++ session_url = f"{protocol}://{hostname}{WS_ROUTE}"++ try:+ logger.info(f"Connection to session: {self._session}")+ self._rpc = SessionRpc(+ url=session_url,+ on_message=self._handle_notification,+ )+ await self._rpc.connect()+ except Exception as e:+ logger.info(e)+ raise e++ async def _call(self, service: str, method: str, params: List[Any] = []):+ return await self._rpc.send_message(f"{service}_{method}", params)++ async def _handle_subscriptions(+ self,+ *subs: Awaitable[Callable[[], Awaitable[None]]] | None,+ ):+ results: List[+ Callable[[], Awaitable[None]] | None | Exception+ ] = await asyncio.gather(+ *[sub if sub else noop() for sub in subs],+ return_exceptions=True,+ )++ exceptions = [e for e in results if isinstance(e, Exception)]++ async def unsub_all():+ return await asyncio.gather(+ *[+ unsub()+ for unsub in results+ if not isinstance(unsub, Exception) and unsub+ ],+ return_exceptions=True,+ )++ if len(exceptions) > 0:+ await unsub_all()++ if len(exceptions) == 1:+ raise exceptions[0]++ error_message = format_settled_errors(exceptions)+ logger.info(f"Failed to subscribe: {error_message}")+ raise MultipleExceptions(+ message=error_message,+ exceptions=exceptions,+ )++ return unsub_all++ async def _unsubscribe(self, sub_id: str):+ sub = self._subscribers[sub_id]+ await self._call(sub.service, "unsubscribe", [sub.id])+ del self._subscribers[sub_id]+ logger.info(f"Unsubscribed from {sub_id}")++ async def _subscribe(+ self,+ service: str,+ handler: Callable[[Any], Any],+ method: str,+ *params,+ ):+ sub_id = await self._call(service, "subscribe", [method, *params])+ if not isinstance(sub_id, str):+ raise Exception(f"Failed to subscribe: ${sub_id}")++ self._subscribers[sub_id] = Subscription(+ service=service, id=sub_id, handler=handler+ )+ logger.info(+ f"Subscribed to {service}_{method} with params [{', '.join(params)}] and with id {sub_id}"+ )++ async def unsub():+ await self._unsubscribe(sub_id)++ return unsub++ def _handle_notification(self, data: Notification):+ logger.info(f"Notification {data}")++ for id, sub in self._subscribers.items():+ if id == data.params["subscription"]:+ sub.handler(data.params["result"])++ async def _refresh(self, session_id: str):+ logger.info(f"Started refreshing session {session_id}")+ try:+ async with client.ApiClient(configuration) as api_client:+ api = client.SessionsApi(api_client)+ while True:+ if not self._is_open:+ logger.info(+ f"Cannot refresh session - it was closed. {self._session}"+ )+ return+ await asyncio.sleep(SESSION_REFRESH_PERIOD)+ try:+ await api.sessions_session_id_refresh_post(+ session_id,+ )+ logger.info(f"Refreshed session {session_id}")+ except Exception as e:+ logger.info(e)+ logger.info(f"Refreshing session {session_id} failed")+ finally:+ logger.info(f"Stopped refreshing session {session_id}")+ await self.close()diff --git a/packages/python-sdk/e2b/session/session_rpc.py b/packages/python-sdk/e2b/session/session_rpc.pynew file mode 100644index 000000000..64839ec1e--- /dev/null+++ b/packages/python-sdk/e2b/session/session_rpc.py@@ -0,0 +1,188 @@+import asyncio+import json+import logging++from websockets.client import WebSocketClientProtocol, connect+from typing import (+ Callable,+ Optional,+ Any,+ Dict,+ List,+ Union,+ Iterable,+ Iterator,+)+from pydantic import BaseModel, PrivateAttr+from jsonrpcclient import request_json, Ok+from jsonrpcclient.id_generators import decimal as decimal_id_generator+from jsonrpcclient.responses import Response, Error, Deserialized+from websockets.typing import Data+from e2b.session.exception import SessionException++from e2b.utils.future import DeferredFuture++logger = logging.getLogger(__name__)+++class RpcException(SessionException):+ def __init__(+ self,+ message: str,+ code: int,+ id: str,+ data: Optional[Dict] = None,+ ):+ super().__init__(message)+ self.data = data+ self.code = code+ self.message = message+ self.id = id+++class Notification(BaseModel):+ """Nofification"""++ method: str+ params: Dict+++Message = Response | Notification+++def to_response_or_notification(response: Dict[str, Any]) -> Message:+ """Create a Response namedtuple from a dict"""+ logger.info(f"Received response: {response}")+ if "error" in response:+ return Error(+ response["error"]["code"],+ response["error"]["message"],+ response["error"].get("data"),+ response["id"],+ )+ elif "result" in response and "id" in response:+ return Ok(response["result"], response["id"])++ elif "params" in response:+ return Notification(method=response["method"], params=response["params"])++ raise ValueError("Invalid response", response)+++def parse(deserialized: Deserialized) -> Union[Message, Iterable[Message]]:+ """Create a Response or list of Responses from a dict or list of dicts"""+ if isinstance(deserialized, str):+ raise TypeError("Use parse_json on strings")+ return (+ map(to_response_or_notification, deserialized)+ if isinstance(deserialized, list)+ else to_response_or_notification(deserialized)+ )+++class SessionRpc(BaseModel):+ url: str+ on_message: Callable[[Notification], None]++ _id_generator: Iterator[int] = PrivateAttr(default_factory=decimal_id_generator)+ _waiting_for_replies: Dict[int, DeferredFuture] = PrivateAttr(default_factory=dict)+ _ws: Optional[WebSocketClientProtocol] = PrivateAttr()++ _process_cleanup: List[Callable[[], Any]] = PrivateAttr(default_factory=list)++ class Config:+ arbitrary_types_allowed = True++ async def connect(self):+ future_connect = DeferredFuture(self._process_cleanup)++ async def handle_messages():+ async for websocket in connect(self.url):+ self._ws = websocket+ logger.info(f"Connected to {self.url}")+ future_connect(None)+ try:+ async for message in self._ws:+ await self._receive_message(message)+ except Exception as e:+ logger.info(f"Error: {e}")+ continue++ if not self._ws:+ raise Exception("Not connected")+ async for message in self._ws:+ await self._receive_message(message)++ handle_messages_task = asyncio.create_task(handle_messages())+ self._process_cleanup.append(handle_messages_task.cancel)+ await future_connect++ async def send_message(self, method: str, params: List[Any]) -> Any:+ if not self._ws:+ raise Exception("Not connected")++ id = next(self._id_generator)+ request = request_json(method, params, id)+ future_reply = DeferredFuture(self._process_cleanup)++ try:+ self._waiting_for_replies[id] = future_reply+ logger.info(f"Sending request: {request}")+ await self._ws.send(request)+ r = await future_reply+ logger.info(f"Received reply: {r}")+ return r+ except Exception as e:+ logger.info(f"Error: {request} {e}")+ raise e+ finally:+ del self._waiting_for_replies[id]+ logger.info(f"Removed waiting handler for {id}")++ async def _receive_message(self, data: Data):+ message = to_response_or_notification(json.loads(data))++ logger.info(f"Current waiting handlers: {self._waiting_for_replies}")+ if isinstance(message, Ok):+ if (+ message.id in self._waiting_for_replies+ and self._waiting_for_replies[message.id]+ ):+ self._waiting_for_replies[message.id](message.result)+ return+ elif isinstance(message, Error):+ if (+ message.id in self._waiting_for_replies+ and self._waiting_for_replies[message.id]+ ):+ self._waiting_for_replies[message.id].reject(+ RpcException(+ code=message.code,+ message=message.message,+ id=message.id,+ data=message.data,+ )+ )+ return++ elif isinstance(message, Notification):+ self.on_message(message)++ def __del__(self):+ self._close()++ def _close(self):+ for cancel in self._process_cleanup:+ cancel()++ self._process_cleanup.clear()++ for handler in self._waiting_for_replies.values():+ handler.cancel()+ del handler++ async def close(self):+ self._close()++ if self._ws:+ await self._ws.close()diff --git a/packages/python-sdk/e2b/session/terminal.py b/packages/python-sdk/e2b/session/terminal.pynew file mode 100644index 000000000..fc530e899--- /dev/null+++ b/packages/python-sdk/e2b/session/terminal.py@@ -0,0 +1,237 @@+import asyncio++from typing import Awaitable, Callable, Optional, Coroutine, Any, List+from pydantic import BaseModel++from e2b.utils.noop import noop+from e2b.utils.future import DeferredFuture+from e2b.session.env_vars import EnvVars+from e2b.session.session_connection import SessionConnection+from e2b.utils.id import create_id+from e2b.session.exception import TerminalException, MultipleExceptions+from e2b.session.session_rpc import RpcException+++class TerminalOutput(BaseModel):+ data = ""++ def _add_data(self, data: str) -> None:+ self.data += data+++class Terminal:+ """+ Terminal session.+ """++ @property+ def data(self) -> str:+ """+ Terminal output data.+ """+ return self._output.data++ @property+ def output(self) -> TerminalOutput:+ """+ Terminal output.+ """+ return self._output++ @property+ def finished(self):+ """+ A future that is resolved when the terminal session exits.+ """+ return self._finished++ @property+ def terminal_id(self) -> str:+ """+ The terminal id used to identify the terminal in the session.+ """+ return self._terminal_id++ def __await__(self):+ return self.finished.__await__()++ def __init__(+ self,+ terminal_id: str,+ session: SessionConnection,+ trigger_exit: Callable[[], Coroutine[Any, Any, None]],+ finished: Awaitable[TerminalOutput],+ output: TerminalOutput,+ ):+ self._terminal_id = terminal_id+ self._session = session+ self._trigger_exit = trigger_exit+ self._finished = finished+ self._output = output++ async def send_data(self, data: str) -> None:+ """+ Sends data to the terminal standard input.++ :param data: Data to send+ """+ try:+ await self._session._call(+ TerminalManager._service_name,+ "data",+ [self.terminal_id, data],+ )+ except RpcException as e:+ raise TerminalException(e.message) from e++ async def resize(self, cols: int, rows: int) -> None:+ """+ Resizes the terminal tty.++ :param cols: Number of columns+ :param rows: Number of rows+ """+ try:+ await self._session._call(+ TerminalManager._service_name,+ "resize",+ [self.terminal_id, cols, rows],+ )+ except RpcException as e:+ raise TerminalException(e.message) from e++ async def kill(self) -> None:+ """+ Kill the terminal session.+ """+ try:+ await self._session._call(+ TerminalManager._service_name, "destroy", [self.terminal_id]+ )+ except RpcException as e:+ raise TerminalException(e.message) from e+ await self._trigger_exit()+++class TerminalManager:+ """+ Manager for starting and interacting with terminal sessions in the environment.+ """++ _service_name = "terminal"++ def __init__(self, session: SessionConnection):+ self._session = session+ self._process_cleanup: List[Callable[[], Any]] = []++ def __del__(self):+ self._close()++ def _close(self):+ for cleanup in self._process_cleanup:+ cleanup()++ self._process_cleanup.clear()++ async def start(+ self,+ on_data: Callable[[str], Any],+ cols: int,+ rows: int,+ rootdir: str = "",+ terminal_id: str | None = None,+ on_exit: Optional[Callable[[], Any]] = None,+ cmd: Optional[str] = None,+ env_vars: Optional[EnvVars] = None,+ ) -> Terminal:+ """+ Start a new terminal session.++ :param on_data: Callback that will be called when the terminal sends data+ :param size: Initial size of the terminal+ :param rootdir: Working directory where will the terminal start+ :param terminal_id: Unique identifier of the terminal session+ :param on_exit: Callback that will be called when the terminal exits+ :param cols: Number of columns the terminal will have. This affects rendering+ :param rows: Number of rows the terminal will have. This affects rendering+ :param cmd: If the `cmd` parameter is defined it will be executed as a command+ and this terminal session will exit when the command exits+ :param env_vars: Environment variables that will be accessible inside of the terminal++ :return: Terminal session+ """+ future_exit = DeferredFuture(self._process_cleanup)+ terminal_id = terminal_id or create_id(12)++ unsub_all: Optional[Callable[[], Awaitable[Any]]] = None++ output = TerminalOutput()++ def handle_data(data: str):+ output._add_data(data)+ on_data(data)++ try:+ unsub_all = await self._session._handle_subscriptions(+ self._session._subscribe(+ self._service_name, handle_data, "onData", terminal_id+ ),+ self._session._subscribe(+ self._service_name, future_exit, "onExit", terminal_id+ ),+ )+ except (RpcException, MultipleExceptions) as e:+ future_exit.cancel()++ if isinstance(e, RpcException):+ raise TerminalException(e.message) from e+ elif isinstance(e, MultipleExceptions):+ raise TerminalException(+ "Failed to subscribe to RPC services necessary for starting terminal"+ ) from e++ # TODO: Handle exit handler finish for exits (the same for processes)+ future_exit_handler_finish = DeferredFuture[TerminalOutput](+ self._process_cleanup+ )++ async def exit_handler():+ await future_exit++ if unsub_all:+ await unsub_all()++ if on_exit:+ on_exit()+ future_exit_handler_finish(output)++ exit_task = asyncio.create_task(exit_handler())+ self._process_cleanup.append(exit_task.cancel)++ async def trigger_exit():+ future_exit(None)+ await future_exit_handler_finish++ try:+ await self._session._call(+ self._service_name,+ "start",+ [+ terminal_id,+ cols,+ rows,+ env_vars if env_vars else {},+ cmd,+ rootdir,+ ],+ )+ return Terminal(+ terminal_id=terminal_id,+ session=self._session,+ trigger_exit=trigger_exit,+ finished=future_exit_handler_finish,+ output=output,+ )+ except RpcException as e:+ await trigger_exit()+ raise TerminalException(e.message) from ediff --git a/packages/python-sdk/e2b/utils/future.py b/packages/python-sdk/e2b/utils/future.pynew file mode 100644index 000000000..984502b8d--- /dev/null+++ b/packages/python-sdk/e2b/utils/future.py@@ -0,0 +1,38 @@+import asyncio+import json++from typing import TypeVar, Generic, List, Callable, Any++T = TypeVar("T")+++class DeferredFuture(Generic[T]):+ def __init__(self, cleanup_list: List[Callable[[], Any]] | None = None):+ self._future = asyncio.Future[T]()+ if cleanup_list is not None:+ cleanup_list.append(self.cancel)++ def __call__(self, result: T):+ if not self._future.done():+ self._future.set_result(result)++ def __await__(self):+ result = yield from self._future.__await__()+ return result++ def cancel(self):+ if not self._future.done():+ self._future.cancel()++ def reject(self, reason: Exception):+ if not self._future.done():+ self._future.set_exception(reason)+++def format_settled_errors(settled: List[Exception]):+ errors = "errors:\n"+ for i, s in enumerate(settled):+ if s is Exception:+ errors += f"\n[{i}]: {json.dumps(s.exception().__str__())}"++ return errorsdiff --git a/packages/python-sdk/e2b/utils/id.py b/packages/python-sdk/e2b/utils/id.pynew file mode 100644index 000000000..16ee60c37--- /dev/null+++ b/packages/python-sdk/e2b/utils/id.py@@ -0,0 +1,8 @@+import random+import string++characters = string.ascii_letters + string.digits+++def create_id(length: int):+ return "".join(random.choices(characters, k=length))diff --git a/packages/python-sdk/e2b/utils/noop.py b/packages/python-sdk/e2b/utils/noop.pynew file mode 100644index 000000000..8e7b9233a--- /dev/null+++ b/packages/python-sdk/e2b/utils/noop.py@@ -0,0 +1,2 @@+async def noop():+ return Nonediff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.pynew file mode 100644index 000000000..fc81a63cb--- /dev/null+++ b/packages/python-sdk/example.py@@ -0,0 +1,127 @@+import asyncio+import logging++from e2b import Session++id = "Python3"++logging.basicConfig(level=logging.ERROR)+++async def main():+ print("a")+ s = Session("Nodejs")+ await s.open()+ print("b")+ proc = await s.process.start(+ cmd="echo testing",+ on_stderr=lambda data: print(data),+ on_stdout=lambda data: print(data),+ on_exit=lambda: print("exit"),+ )++ await proc+ await s.close()++ return+ session = await Session.create(id)++ # proc = await session.terminal.start(+ # rootdir="/code",+ # cols=80,+ # rows=24,+ # on_data=lambda data: print("DATA", data),+ # cmd="ls",+ # )++ # out = proc.output++ # out = await proc+ # print("OUT", out)++ # await proc.finished+ proc = await session.process.start(+ "ls",+ rootdir="/",+ on_stderr=lambda data: print("ERR", data),+ on_stdout=lambda data: print("OUT", data),+ )+ output = await proc++ # output.lines++ print(output.messages)++ await session.close()+ return+ await session.filesystem.write("test.txt", "Hello World")++ f = await session.filesystem.read("test.txt")+ print("RESULT read2", f)++ await session.filesystem.make_dir("test")+ ls = await session.filesystem.list("/")+ print("RESULT ls", [ls for ls in ls if ls.is_dir and ls.name == "test"])++ await session.filesystem.remove("test")+ ls = await session.filesystem.list("/")+ print("RESULT ls", [ls for ls in ls if ls.is_dir and ls.name == "test"])++ w = await session.filesystem.watch_dir("/")++ w.add_event_listener(lambda e: print("EVENT", e))+ await w.start()++ print("PATH", w.path)++ await session.filesystem.make_dir("testx")++ await w.stop()++ def on_stdout(data):+ print("STDOUT", data)++ def on_stderr(data):+ print("STDERR", data)++ url = session.get_hostname(80)+ print("URL", url)++ proc = await session.process.start(+ "pwd",+ on_stdout=on_stdout,+ on_stderr=on_stderr,+ on_exit=lambda: print("EXIT"),+ rootdir="/code",+ )+ # await proc.send_stdin("lore olympus")+ # await proc.send_stdin("\nnew line too")++ # await proc.kill()++ print("end")++ await session.process.start(cmd="python3 -m http.server 8022")++ term = await session.terminal.start(+ on_data=lambda data: print("DATA", data),+ cols=80,+ rows=24,+ rootdir="/code",+ )++ await term.send_data("echo 1\n")++ # await term+ print("end")++ # await term.resize(80, 30)++ await term.kill()++ await session.close()++ # await asyncio.Future()+++asyncio.new_event_loop().run_until_complete(main())diff --git a/packages/python-sdk/openapitools.json b/packages/python-sdk/openapitools.jsonnew file mode 100644index 000000000..cd53ff4ca--- /dev/null+++ b/packages/python-sdk/openapitools.json@@ -0,0 +1,7 @@+{+ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",+ "spaces": 2,+ "generator-cli": {+ "version": "6.6.0"+ }+}diff --git a/packages/python-sdk/poetry.lock b/packages/python-sdk/poetry.locknew file mode 100644index 000000000..3c5a0266a--- /dev/null+++ b/packages/python-sdk/poetry.lock@@ -0,0 +1,856 @@+# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.++[[package]]+name = "aenum"+version = "3.1.15"+description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants"+category = "main"+optional = false+python-versions = "*"+files = [+ {file = "aenum-3.1.15-py2-none-any.whl", hash = "sha256:27b1710b9d084de6e2e695dab78fe9f269de924b51ae2850170ee7e1ca6288a5"},+ {file = "aenum-3.1.15-py3-none-any.whl", hash = "sha256:e0dfaeea4c2bd362144b87377e2c61d91958c5ed0b4daf89cb6f45ae23af6288"},+ {file = "aenum-3.1.15.tar.gz", hash = "sha256:8cbd76cd18c4f870ff39b24284d3ea028fbe8731a58df3aa581e434c575b9559"},+]++[[package]]+name = "aiohttp"+version = "3.8.5"+description = "Async http client/server framework (asyncio)"+category = "main"+optional = false+python-versions = ">=3.6"+files = [+ {file = "aiohttp-3.8.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a94159871304770da4dd371f4291b20cac04e8c94f11bdea1c3478e557fbe0d8"},+ {file = "aiohttp-3.8.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:13bf85afc99ce6f9ee3567b04501f18f9f8dbbb2ea11ed1a2e079670403a7c84"},+ {file = "aiohttp-3.8.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2ce2ac5708501afc4847221a521f7e4b245abf5178cf5ddae9d5b3856ddb2f3a"},+ {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:96943e5dcc37a6529d18766597c491798b7eb7a61d48878611298afc1fca946c"},+ {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2ad5c3c4590bb3cc28b4382f031f3783f25ec223557124c68754a2231d989e2b"},+ {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0c413c633d0512df4dc7fd2373ec06cc6a815b7b6d6c2f208ada7e9e93a5061d"},+ {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:df72ac063b97837a80d80dec8d54c241af059cc9bb42c4de68bd5b61ceb37caa"},+ {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c48c5c0271149cfe467c0ff8eb941279fd6e3f65c9a388c984e0e6cf57538e14"},+ {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:368a42363c4d70ab52c2c6420a57f190ed3dfaca6a1b19afda8165ee16416a82"},+ {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7607ec3ce4993464368505888af5beb446845a014bc676d349efec0e05085905"},+ {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:0d21c684808288a98914e5aaf2a7c6a3179d4df11d249799c32d1808e79503b5"},+ {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:312fcfbacc7880a8da0ae8b6abc6cc7d752e9caa0051a53d217a650b25e9a691"},+ {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ad093e823df03bb3fd37e7dec9d4670c34f9e24aeace76808fc20a507cace825"},+ {file = "aiohttp-3.8.5-cp310-cp310-win32.whl", hash = "sha256:33279701c04351a2914e1100b62b2a7fdb9a25995c4a104259f9a5ead7ed4802"},+ {file = "aiohttp-3.8.5-cp310-cp310-win_amd64.whl", hash = "sha256:6e4a280e4b975a2e7745573e3fc9c9ba0d1194a3738ce1cbaa80626cc9b4f4df"},+ {file = "aiohttp-3.8.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ae871a964e1987a943d83d6709d20ec6103ca1eaf52f7e0d36ee1b5bebb8b9b9"},+ {file = "aiohttp-3.8.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:461908b2578955045efde733719d62f2b649c404189a09a632d245b445c9c975"},+ {file = "aiohttp-3.8.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:72a860c215e26192379f57cae5ab12b168b75db8271f111019509a1196dfc780"},+ {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc14be025665dba6202b6a71cfcdb53210cc498e50068bc088076624471f8bb9"},+ {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8af740fc2711ad85f1a5c034a435782fbd5b5f8314c9a3ef071424a8158d7f6b"},+ {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:841cd8233cbd2111a0ef0a522ce016357c5e3aff8a8ce92bcfa14cef890d698f"},+ {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5ed1c46fb119f1b59304b5ec89f834f07124cd23ae5b74288e364477641060ff"},+ {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:84f8ae3e09a34f35c18fa57f015cc394bd1389bce02503fb30c394d04ee6b938"},+ {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:62360cb771707cb70a6fd114b9871d20d7dd2163a0feafe43fd115cfe4fe845e"},+ {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:23fb25a9f0a1ca1f24c0a371523546366bb642397c94ab45ad3aedf2941cec6a"},+ {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:b0ba0d15164eae3d878260d4c4df859bbdc6466e9e6689c344a13334f988bb53"},+ {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:5d20003b635fc6ae3f96d7260281dfaf1894fc3aa24d1888a9b2628e97c241e5"},+ {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0175d745d9e85c40dcc51c8f88c74bfbaef9e7afeeeb9d03c37977270303064c"},+ {file = "aiohttp-3.8.5-cp311-cp311-win32.whl", hash = "sha256:2e1b1e51b0774408f091d268648e3d57f7260c1682e7d3a63cb00d22d71bb945"},+ {file = "aiohttp-3.8.5-cp311-cp311-win_amd64.whl", hash = "sha256:043d2299f6dfdc92f0ac5e995dfc56668e1587cea7f9aa9d8a78a1b6554e5755"},+ {file = "aiohttp-3.8.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cae533195e8122584ec87531d6df000ad07737eaa3c81209e85c928854d2195c"},+ {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f21e83f355643c345177a5d1d8079f9f28b5133bcd154193b799d380331d5d3"},+ {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a7a75ef35f2df54ad55dbf4b73fe1da96f370e51b10c91f08b19603c64004acc"},+ {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2e2e9839e14dd5308ee773c97115f1e0a1cb1d75cbeeee9f33824fa5144c7634"},+ {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44e65da1de4403d0576473e2344828ef9c4c6244d65cf4b75549bb46d40b8dd"},+ {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78d847e4cde6ecc19125ccbc9bfac4a7ab37c234dd88fbb3c5c524e8e14da543"},+ {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:c7a815258e5895d8900aec4454f38dca9aed71085f227537208057853f9d13f2"},+ {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:8b929b9bd7cd7c3939f8bcfffa92fae7480bd1aa425279d51a89327d600c704d"},+ {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:5db3a5b833764280ed7618393832e0853e40f3d3e9aa128ac0ba0f8278d08649"},+ {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:a0215ce6041d501f3155dc219712bc41252d0ab76474615b9700d63d4d9292af"},+ {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:fd1ed388ea7fbed22c4968dd64bab0198de60750a25fe8c0c9d4bef5abe13824"},+ {file = "aiohttp-3.8.5-cp36-cp36m-win32.whl", hash = "sha256:6e6783bcc45f397fdebc118d772103d751b54cddf5b60fbcc958382d7dd64f3e"},+ {file = "aiohttp-3.8.5-cp36-cp36m-win_amd64.whl", hash = "sha256:b5411d82cddd212644cf9360879eb5080f0d5f7d809d03262c50dad02f01421a"},+ {file = "aiohttp-3.8.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:01d4c0c874aa4ddfb8098e85d10b5e875a70adc63db91f1ae65a4b04d3344cda"},+ {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e5980a746d547a6ba173fd5ee85ce9077e72d118758db05d229044b469d9029a"},+ {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a482e6da906d5e6e653be079b29bc173a48e381600161c9932d89dfae5942ef"},+ {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80bd372b8d0715c66c974cf57fe363621a02f359f1ec81cba97366948c7fc873"},+ {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1161b345c0a444ebcf46bf0a740ba5dcf50612fd3d0528883fdc0eff578006a"},+ {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cd56db019015b6acfaaf92e1ac40eb8434847d9bf88b4be4efe5bfd260aee692"},+ {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:153c2549f6c004d2754cc60603d4668899c9895b8a89397444a9c4efa282aaf4"},+ {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4a01951fabc4ce26ab791da5f3f24dca6d9a6f24121746eb19756416ff2d881b"},+ {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bfb9162dcf01f615462b995a516ba03e769de0789de1cadc0f916265c257e5d8"},+ {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:7dde0009408969a43b04c16cbbe252c4f5ef4574ac226bc8815cd7342d2028b6"},+ {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4149d34c32f9638f38f544b3977a4c24052042affa895352d3636fa8bffd030a"},+ {file = "aiohttp-3.8.5-cp37-cp37m-win32.whl", hash = "sha256:68c5a82c8779bdfc6367c967a4a1b2aa52cd3595388bf5961a62158ee8a59e22"},+ {file = "aiohttp-3.8.5-cp37-cp37m-win_amd64.whl", hash = "sha256:2cf57fb50be5f52bda004b8893e63b48530ed9f0d6c96c84620dc92fe3cd9b9d"},+ {file = "aiohttp-3.8.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:eca4bf3734c541dc4f374ad6010a68ff6c6748f00451707f39857f429ca36ced"},+ {file = "aiohttp-3.8.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1274477e4c71ce8cfe6c1ec2f806d57c015ebf84d83373676036e256bc55d690"},+ {file = "aiohttp-3.8.5-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:28c543e54710d6158fc6f439296c7865b29e0b616629767e685a7185fab4a6b9"},+ {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:910bec0c49637d213f5d9877105d26e0c4a4de2f8b1b29405ff37e9fc0ad52b8"},+ {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5443910d662db951b2e58eb70b0fbe6b6e2ae613477129a5805d0b66c54b6cb7"},+ {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2e460be6978fc24e3df83193dc0cc4de46c9909ed92dd47d349a452ef49325b7"},+ {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb1558def481d84f03b45888473fc5a1f35747b5f334ef4e7a571bc0dfcb11f8"},+ {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:34dd0c107799dcbbf7d48b53be761a013c0adf5571bf50c4ecad5643fe9cfcd0"},+ {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:aa1990247f02a54185dc0dff92a6904521172a22664c863a03ff64c42f9b5410"},+ {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:0e584a10f204a617d71d359fe383406305a4b595b333721fa50b867b4a0a1548"},+ {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:a3cf433f127efa43fee6b90ea4c6edf6c4a17109d1d037d1a52abec84d8f2e42"},+ {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:c11f5b099adafb18e65c2c997d57108b5bbeaa9eeee64a84302c0978b1ec948b"},+ {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:84de26ddf621d7ac4c975dbea4c945860e08cccde492269db4e1538a6a6f3c35"},+ {file = "aiohttp-3.8.5-cp38-cp38-win32.whl", hash = "sha256:ab88bafedc57dd0aab55fa728ea10c1911f7e4d8b43e1d838a1739f33712921c"},+ {file = "aiohttp-3.8.5-cp38-cp38-win_amd64.whl", hash = "sha256:5798a9aad1879f626589f3df0f8b79b3608a92e9beab10e5fda02c8a2c60db2e"},+ {file = "aiohttp-3.8.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a6ce61195c6a19c785df04e71a4537e29eaa2c50fe745b732aa937c0c77169f3"},+ {file = "aiohttp-3.8.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:773dd01706d4db536335fcfae6ea2440a70ceb03dd3e7378f3e815b03c97ab51"},+ {file = "aiohttp-3.8.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f83a552443a526ea38d064588613aca983d0ee0038801bc93c0c916428310c28"},+ {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f7372f7341fcc16f57b2caded43e81ddd18df53320b6f9f042acad41f8e049a"},+ {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ea353162f249c8097ea63c2169dd1aa55de1e8fecbe63412a9bc50816e87b761"},+ {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d47ae48db0b2dcf70bc8a3bc72b3de86e2a590fc299fdbbb15af320d2659de"},+ {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d827176898a2b0b09694fbd1088c7a31836d1a505c243811c87ae53a3f6273c1"},+ {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3562b06567c06439d8b447037bb655ef69786c590b1de86c7ab81efe1c9c15d8"},+ {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4e874cbf8caf8959d2adf572a78bba17cb0e9d7e51bb83d86a3697b686a0ab4d"},+ {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:6809a00deaf3810e38c628e9a33271892f815b853605a936e2e9e5129762356c"},+ {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:33776e945d89b29251b33a7e7d006ce86447b2cfd66db5e5ded4e5cd0340585c"},+ {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:eaeed7abfb5d64c539e2db173f63631455f1196c37d9d8d873fc316470dfbacd"},+ {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e91d635961bec2d8f19dfeb41a539eb94bd073f075ca6dae6c8dc0ee89ad6f91"},+ {file = "aiohttp-3.8.5-cp39-cp39-win32.whl", hash = "sha256:00ad4b6f185ec67f3e6562e8a1d2b69660be43070bd0ef6fcec5211154c7df67"},+ {file = "aiohttp-3.8.5-cp39-cp39-win_amd64.whl", hash = "sha256:c0a9034379a37ae42dea7ac1e048352d96286626251862e448933c0f59cbd79c"},+ {file = "aiohttp-3.8.5.tar.gz", hash = "sha256:b9552ec52cc147dbf1944ac7ac98af7602e51ea2dcd076ed194ca3c0d1c7d0bc"},+]++[package.dependencies]+aiosignal = ">=1.1.2"+async-timeout = ">=4.0.0a3,<5.0"+attrs = ">=17.3.0"+charset-normalizer = ">=2.0,<4.0"+frozenlist = ">=1.1.1"+multidict = ">=4.5,<7.0"+yarl = ">=1.0,<2.0"++[package.extras]+speedups = ["Brotli", "aiodns", "cchardet"]++[[package]]+name = "aiosignal"+version = "1.3.1"+description = "aiosignal: a list of registered asynchronous callbacks"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"},+ {file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"},+]++[package.dependencies]+frozenlist = ">=1.1.0"++[[package]]+name = "async-timeout"+version = "4.0.2"+description = "Timeout context manager for asyncio programs"+category = "main"+optional = false+python-versions = ">=3.6"+files = [+ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"},+ {file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"},+]++[[package]]+name = "attrs"+version = "23.1.0"+description = "Classes Without Boilerplate"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"},+ {file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"},+]++[package.extras]+cov = ["attrs[tests]", "coverage[toml] (>=5.3)"]+dev = ["attrs[docs,tests]", "pre-commit"]+docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"]+tests = ["attrs[tests-no-zope]", "zope-interface"]+tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]++[[package]]+name = "black"+version = "23.7.0"+description = "The uncompromising code formatter."+category = "dev"+optional = false+python-versions = ">=3.8"+files = [+ {file = "black-23.7.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:5c4bc552ab52f6c1c506ccae05681fab58c3f72d59ae6e6639e8885e94fe2587"},+ {file = "black-23.7.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:552513d5cd5694590d7ef6f46e1767a4df9af168d449ff767b13b084c020e63f"},+ {file = "black-23.7.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:86cee259349b4448adb4ef9b204bb4467aae74a386bce85d56ba4f5dc0da27be"},+ {file = "black-23.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:501387a9edcb75d7ae8a4412bb8749900386eaef258f1aefab18adddea1936bc"},+ {file = "black-23.7.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb074d8b213749fa1d077d630db0d5f8cc3b2ae63587ad4116e8a436e9bbe995"},+ {file = "black-23.7.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:b5b0ee6d96b345a8b420100b7d71ebfdd19fab5e8301aff48ec270042cd40ac2"},+ {file = "black-23.7.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:893695a76b140881531062d48476ebe4a48f5d1e9388177e175d76234ca247cd"},+ {file = "black-23.7.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:c333286dc3ddca6fdff74670b911cccedacb4ef0a60b34e491b8a67c833b343a"},+ {file = "black-23.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:831d8f54c3a8c8cf55f64d0422ee875eecac26f5f649fb6c1df65316b67c8926"},+ {file = "black-23.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:7f3bf2dec7d541b4619b8ce526bda74a6b0bffc480a163fed32eb8b3c9aed8ad"},+ {file = "black-23.7.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:f9062af71c59c004cd519e2fb8f5d25d39e46d3af011b41ab43b9c74e27e236f"},+ {file = "black-23.7.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:01ede61aac8c154b55f35301fac3e730baf0c9cf8120f65a9cd61a81cfb4a0c3"},+ {file = "black-23.7.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:327a8c2550ddc573b51e2c352adb88143464bb9d92c10416feb86b0f5aee5ff6"},+ {file = "black-23.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1c6022b86f83b632d06f2b02774134def5d4d4f1dac8bef16d90cda18ba28a"},+ {file = "black-23.7.0-cp38-cp38-win_amd64.whl", hash = "sha256:27eb7a0c71604d5de083757fbdb245b1a4fae60e9596514c6ec497eb63f95320"},+ {file = "black-23.7.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:8417dbd2f57b5701492cd46edcecc4f9208dc75529bcf76c514864e48da867d9"},+ {file = "black-23.7.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:47e56d83aad53ca140da0af87678fb38e44fd6bc0af71eebab2d1f59b1acf1d3"},+ {file = "black-23.7.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:25cc308838fe71f7065df53aedd20327969d05671bac95b38fdf37ebe70ac087"},+ {file = "black-23.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:642496b675095d423f9b8448243336f8ec71c9d4d57ec17bf795b67f08132a91"},+ {file = "black-23.7.0-cp39-cp39-win_amd64.whl", hash = "sha256:ad0014efc7acf0bd745792bd0d8857413652979200ab924fbf239062adc12491"},+ {file = "black-23.7.0-py3-none-any.whl", hash = "sha256:9fd59d418c60c0348505f2ddf9609c1e1de8e7493eab96198fc89d9f865e7a96"},+ {file = "black-23.7.0.tar.gz", hash = "sha256:022a582720b0d9480ed82576c920a8c1dde97cc38ff11d8d8859b3bd6ca9eedb"},+]++[package.dependencies]+click = ">=8.0.0"+mypy-extensions = ">=0.4.3"+packaging = ">=22.0"+pathspec = ">=0.9.0"+platformdirs = ">=2"+tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}+typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}++[package.extras]+colorama = ["colorama (>=0.4.3)"]+d = ["aiohttp (>=3.7.4)"]+jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]+uvloop = ["uvloop (>=0.15.2)"]++[[package]]+name = "charset-normalizer"+version = "3.2.0"+description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."+category = "main"+optional = false+python-versions = ">=3.7.0"+files = [+ {file = "charset-normalizer-3.2.0.tar.gz", hash = "sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-win32.whl", hash = "sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96"},+ {file = "charset_normalizer-3.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-win32.whl", hash = "sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1"},+ {file = "charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-win32.whl", hash = "sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1"},+ {file = "charset_normalizer-3.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-win32.whl", hash = "sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706"},+ {file = "charset_normalizer-3.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-win32.whl", hash = "sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9"},+ {file = "charset_normalizer-3.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80"},+ {file = "charset_normalizer-3.2.0-py3-none-any.whl", hash = "sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6"},+]++[[package]]+name = "click"+version = "8.1.6"+description = "Composable command line interface toolkit"+category = "dev"+optional = false+python-versions = ">=3.7"+files = [+ {file = "click-8.1.6-py3-none-any.whl", hash = "sha256:fa244bb30b3b5ee2cae3da8f55c9e5e0c0e86093306301fb418eb9dc40fbded5"},+ {file = "click-8.1.6.tar.gz", hash = "sha256:48ee849951919527a045bfe3bf7baa8a959c423134e1a5b98c05c20ba75a1cbd"},+]++[package.dependencies]+colorama = {version = "*", markers = "platform_system == \"Windows\""}++[[package]]+name = "colorama"+version = "0.4.6"+description = "Cross-platform colored terminal text."+category = "dev"+optional = false+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"+files = [+ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},+ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},+]++[[package]]+name = "frozenlist"+version = "1.4.0"+description = "A list-like structure which implements collections.abc.MutableSequence"+category = "main"+optional = false+python-versions = ">=3.8"+files = [+ {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:764226ceef3125e53ea2cb275000e309c0aa5464d43bd72abd661e27fffc26ab"},+ {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d6484756b12f40003c6128bfcc3fa9f0d49a687e171186c2d85ec82e3758c559"},+ {file = "frozenlist-1.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9ac08e601308e41eb533f232dbf6b7e4cea762f9f84f6357136eed926c15d12c"},+ {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d081f13b095d74b67d550de04df1c756831f3b83dc9881c38985834387487f1b"},+ {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:71932b597f9895f011f47f17d6428252fc728ba2ae6024e13c3398a087c2cdea"},+ {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:981b9ab5a0a3178ff413bca62526bb784249421c24ad7381e39d67981be2c326"},+ {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e41f3de4df3e80de75845d3e743b3f1c4c8613c3997a912dbf0229fc61a8b963"},+ {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6918d49b1f90821e93069682c06ffde41829c346c66b721e65a5c62b4bab0300"},+ {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0e5c8764c7829343d919cc2dfc587a8db01c4f70a4ebbc49abde5d4b158b007b"},+ {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8d0edd6b1c7fb94922bf569c9b092ee187a83f03fb1a63076e7774b60f9481a8"},+ {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:e29cda763f752553fa14c68fb2195150bfab22b352572cb36c43c47bedba70eb"},+ {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:0c7c1b47859ee2cac3846fde1c1dc0f15da6cec5a0e5c72d101e0f83dcb67ff9"},+ {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:901289d524fdd571be1c7be054f48b1f88ce8dddcbdf1ec698b27d4b8b9e5d62"},+ {file = "frozenlist-1.4.0-cp310-cp310-win32.whl", hash = "sha256:1a0848b52815006ea6596c395f87449f693dc419061cc21e970f139d466dc0a0"},+ {file = "frozenlist-1.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:b206646d176a007466358aa21d85cd8600a415c67c9bd15403336c331a10d956"},+ {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:de343e75f40e972bae1ef6090267f8260c1446a1695e77096db6cfa25e759a95"},+ {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ad2a9eb6d9839ae241701d0918f54c51365a51407fd80f6b8289e2dfca977cc3"},+ {file = "frozenlist-1.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bd7bd3b3830247580de99c99ea2a01416dfc3c34471ca1298bccabf86d0ff4dc"},+ {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bdf1847068c362f16b353163391210269e4f0569a3c166bc6a9f74ccbfc7e839"},+ {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:38461d02d66de17455072c9ba981d35f1d2a73024bee7790ac2f9e361ef1cd0c"},+ {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5a32087d720c608f42caed0ef36d2b3ea61a9d09ee59a5142d6070da9041b8f"},+ {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dd65632acaf0d47608190a71bfe46b209719bf2beb59507db08ccdbe712f969b"},+ {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261b9f5d17cac914531331ff1b1d452125bf5daa05faf73b71d935485b0c510b"},+ {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b89ac9768b82205936771f8d2eb3ce88503b1556324c9f903e7156669f521472"},+ {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:008eb8b31b3ea6896da16c38c1b136cb9fec9e249e77f6211d479db79a4eaf01"},+ {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:e74b0506fa5aa5598ac6a975a12aa8928cbb58e1f5ac8360792ef15de1aa848f"},+ {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:490132667476f6781b4c9458298b0c1cddf237488abd228b0b3650e5ecba7467"},+ {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:76d4711f6f6d08551a7e9ef28c722f4a50dd0fc204c56b4bcd95c6cc05ce6fbb"},+ {file = "frozenlist-1.4.0-cp311-cp311-win32.whl", hash = "sha256:a02eb8ab2b8f200179b5f62b59757685ae9987996ae549ccf30f983f40602431"},+ {file = "frozenlist-1.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:515e1abc578dd3b275d6a5114030b1330ba044ffba03f94091842852f806f1c1"},+ {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:f0ed05f5079c708fe74bf9027e95125334b6978bf07fd5ab923e9e55e5fbb9d3"},+ {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ca265542ca427bf97aed183c1676e2a9c66942e822b14dc6e5f42e038f92a503"},+ {file = "frozenlist-1.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:491e014f5c43656da08958808588cc6c016847b4360e327a62cb308c791bd2d9"},+ {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:17ae5cd0f333f94f2e03aaf140bb762c64783935cc764ff9c82dff626089bebf"},+ {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1e78fb68cf9c1a6aa4a9a12e960a5c9dfbdb89b3695197aa7064705662515de2"},+ {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5655a942f5f5d2c9ed93d72148226d75369b4f6952680211972a33e59b1dfdc"},+ {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c11b0746f5d946fecf750428a95f3e9ebe792c1ee3b1e96eeba145dc631a9672"},+ {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e66d2a64d44d50d2543405fb183a21f76b3b5fd16f130f5c99187c3fb4e64919"},+ {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:88f7bc0fcca81f985f78dd0fa68d2c75abf8272b1f5c323ea4a01a4d7a614efc"},+ {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:5833593c25ac59ede40ed4de6d67eb42928cca97f26feea219f21d0ed0959b79"},+ {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:fec520865f42e5c7f050c2a79038897b1c7d1595e907a9e08e3353293ffc948e"},+ {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:b826d97e4276750beca7c8f0f1a4938892697a6bcd8ec8217b3312dad6982781"},+ {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ceb6ec0a10c65540421e20ebd29083c50e6d1143278746a4ef6bcf6153171eb8"},+ {file = "frozenlist-1.4.0-cp38-cp38-win32.whl", hash = "sha256:2b8bcf994563466db019fab287ff390fffbfdb4f905fc77bc1c1d604b1c689cc"},+ {file = "frozenlist-1.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:a6c8097e01886188e5be3e6b14e94ab365f384736aa1fca6a0b9e35bd4a30bc7"},+ {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:6c38721585f285203e4b4132a352eb3daa19121a035f3182e08e437cface44bf"},+ {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a0c6da9aee33ff0b1a451e867da0c1f47408112b3391dd43133838339e410963"},+ {file = "frozenlist-1.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93ea75c050c5bb3d98016b4ba2497851eadf0ac154d88a67d7a6816206f6fa7f"},+ {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f61e2dc5ad442c52b4887f1fdc112f97caeff4d9e6ebe78879364ac59f1663e1"},+ {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aa384489fefeb62321b238e64c07ef48398fe80f9e1e6afeff22e140e0850eef"},+ {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:10ff5faaa22786315ef57097a279b833ecab1a0bfb07d604c9cbb1c4cdc2ed87"},+ {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:007df07a6e3eb3e33e9a1fe6a9db7af152bbd8a185f9aaa6ece10a3529e3e1c6"},+ {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f4f399d28478d1f604c2ff9119907af9726aed73680e5ed1ca634d377abb087"},+ {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c5374b80521d3d3f2ec5572e05adc94601985cc526fb276d0c8574a6d749f1b3"},+ {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ce31ae3e19f3c902de379cf1323d90c649425b86de7bbdf82871b8a2a0615f3d"},+ {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7211ef110a9194b6042449431e08c4d80c0481e5891e58d429df5899690511c2"},+ {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:556de4430ce324c836789fa4560ca62d1591d2538b8ceb0b4f68fb7b2384a27a"},+ {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:7645a8e814a3ee34a89c4a372011dcd817964ce8cb273c8ed6119d706e9613e3"},+ {file = "frozenlist-1.4.0-cp39-cp39-win32.whl", hash = "sha256:19488c57c12d4e8095a922f328df3f179c820c212940a498623ed39160bc3c2f"},+ {file = "frozenlist-1.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:6221d84d463fb110bdd7619b69cb43878a11d51cbb9394ae3105d082d5199167"},+ {file = "frozenlist-1.4.0.tar.gz", hash = "sha256:09163bdf0b2907454042edb19f887c6d33806adc71fbd54afc14908bfdc22251"},+]++[[package]]+name = "idna"+version = "3.4"+description = "Internationalized Domain Names in Applications (IDNA)"+category = "main"+optional = false+python-versions = ">=3.5"+files = [+ {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"},+ {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"},+]++[[package]]+name = "jsonrpcclient"+version = "4.0.3"+description = "Send JSON-RPC requests"+category = "main"+optional = false+python-versions = ">=3.6"+files = [+ {file = "jsonrpcclient-4.0.3-py3-none-any.whl", hash = "sha256:3cbb9e27e1be29821becf135ea183144a836215422727e1ffe5056a49a670f0d"},+]++[package.extras]+qa = ["pytest", "pytest-cov", "tox"]++[[package]]+name = "multidict"+version = "6.0.4"+description = "multidict implementation"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b1a97283e0c85772d613878028fec909f003993e1007eafa715b24b377cb9b8"},+ {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:eeb6dcc05e911516ae3d1f207d4b0520d07f54484c49dfc294d6e7d63b734171"},+ {file = "multidict-6.0.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d6d635d5209b82a3492508cf5b365f3446afb65ae7ebd755e70e18f287b0adf7"},+ {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c048099e4c9e9d615545e2001d3d8a4380bd403e1a0578734e0d31703d1b0c0b"},+ {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ea20853c6dbbb53ed34cb4d080382169b6f4554d394015f1bef35e881bf83547"},+ {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16d232d4e5396c2efbbf4f6d4df89bfa905eb0d4dc5b3549d872ab898451f569"},+ {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:36c63aaa167f6c6b04ef2c85704e93af16c11d20de1d133e39de6a0e84582a93"},+ {file = "multidict-6.0.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:64bdf1086b6043bf519869678f5f2757f473dee970d7abf6da91ec00acb9cb98"},+ {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:43644e38f42e3af682690876cff722d301ac585c5b9e1eacc013b7a3f7b696a0"},+ {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7582a1d1030e15422262de9f58711774e02fa80df0d1578995c76214f6954988"},+ {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ddff9c4e225a63a5afab9dd15590432c22e8057e1a9a13d28ed128ecf047bbdc"},+ {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ee2a1ece51b9b9e7752e742cfb661d2a29e7bcdba2d27e66e28a99f1890e4fa0"},+ {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a2e4369eb3d47d2034032a26c7a80fcb21a2cb22e1173d761a162f11e562caa5"},+ {file = "multidict-6.0.4-cp310-cp310-win32.whl", hash = "sha256:574b7eae1ab267e5f8285f0fe881f17efe4b98c39a40858247720935b893bba8"},+ {file = "multidict-6.0.4-cp310-cp310-win_amd64.whl", hash = "sha256:4dcbb0906e38440fa3e325df2359ac6cb043df8e58c965bb45f4e406ecb162cc"},+ {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0dfad7a5a1e39c53ed00d2dd0c2e36aed4650936dc18fd9a1826a5ae1cad6f03"},+ {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:64da238a09d6039e3bd39bb3aee9c21a5e34f28bfa5aa22518581f910ff94af3"},+ {file = "multidict-6.0.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ff959bee35038c4624250473988b24f846cbeb2c6639de3602c073f10410ceba"},+ {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:01a3a55bd90018c9c080fbb0b9f4891db37d148a0a18722b42f94694f8b6d4c9"},+ {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c5cb09abb18c1ea940fb99360ea0396f34d46566f157122c92dfa069d3e0e982"},+ {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:666daae833559deb2d609afa4490b85830ab0dfca811a98b70a205621a6109fe"},+ {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11bdf3f5e1518b24530b8241529d2050014c884cf18b6fc69c0c2b30ca248710"},+ {file = "multidict-6.0.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d18748f2d30f94f498e852c67d61261c643b349b9d2a581131725595c45ec6c"},+ {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:458f37be2d9e4c95e2d8866a851663cbc76e865b78395090786f6cd9b3bbf4f4"},+ {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:b1a2eeedcead3a41694130495593a559a668f382eee0727352b9a41e1c45759a"},+ {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:7d6ae9d593ef8641544d6263c7fa6408cc90370c8cb2bbb65f8d43e5b0351d9c"},+ {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:5979b5632c3e3534e42ca6ff856bb24b2e3071b37861c2c727ce220d80eee9ed"},+ {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dcfe792765fab89c365123c81046ad4103fcabbc4f56d1c1997e6715e8015461"},+ {file = "multidict-6.0.4-cp311-cp311-win32.whl", hash = "sha256:3601a3cece3819534b11d4efc1eb76047488fddd0c85a3948099d5da4d504636"},+ {file = "multidict-6.0.4-cp311-cp311-win_amd64.whl", hash = "sha256:81a4f0b34bd92df3da93315c6a59034df95866014ac08535fc819f043bfd51f0"},+ {file = "multidict-6.0.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:67040058f37a2a51ed8ea8f6b0e6ee5bd78ca67f169ce6122f3e2ec80dfe9b78"},+ {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:853888594621e6604c978ce2a0444a1e6e70c8d253ab65ba11657659dcc9100f"},+ {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:39ff62e7d0f26c248b15e364517a72932a611a9b75f35b45be078d81bdb86603"},+ {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:af048912e045a2dc732847d33821a9d84ba553f5c5f028adbd364dd4765092ac"},+ {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1e8b901e607795ec06c9e42530788c45ac21ef3aaa11dbd0c69de543bfb79a9"},+ {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62501642008a8b9871ddfccbf83e4222cf8ac0d5aeedf73da36153ef2ec222d2"},+ {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:99b76c052e9f1bc0721f7541e5e8c05db3941eb9ebe7b8553c625ef88d6eefde"},+ {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:509eac6cf09c794aa27bcacfd4d62c885cce62bef7b2c3e8b2e49d365b5003fe"},+ {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:21a12c4eb6ddc9952c415f24eef97e3e55ba3af61f67c7bc388dcdec1404a067"},+ {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:5cad9430ab3e2e4fa4a2ef4450f548768400a2ac635841bc2a56a2052cdbeb87"},+ {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ab55edc2e84460694295f401215f4a58597f8f7c9466faec545093045476327d"},+ {file = "multidict-6.0.4-cp37-cp37m-win32.whl", hash = "sha256:5a4dcf02b908c3b8b17a45fb0f15b695bf117a67b76b7ad18b73cf8e92608775"},+ {file = "multidict-6.0.4-cp37-cp37m-win_amd64.whl", hash = "sha256:6ed5f161328b7df384d71b07317f4d8656434e34591f20552c7bcef27b0ab88e"},+ {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5fc1b16f586f049820c5c5b17bb4ee7583092fa0d1c4e28b5239181ff9532e0c"},+ {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1502e24330eb681bdaa3eb70d6358e818e8e8f908a22a1851dfd4e15bc2f8161"},+ {file = "multidict-6.0.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b692f419760c0e65d060959df05f2a531945af31fda0c8a3b3195d4efd06de11"},+ {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45e1ecb0379bfaab5eef059f50115b54571acfbe422a14f668fc8c27ba410e7e"},+ {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ddd3915998d93fbcd2566ddf9cf62cdb35c9e093075f862935573d265cf8f65d"},+ {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:59d43b61c59d82f2effb39a93c48b845efe23a3852d201ed2d24ba830d0b4cf2"},+ {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc8e1d0c705233c5dd0c5e6460fbad7827d5d36f310a0fadfd45cc3029762258"},+ {file = "multidict-6.0.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d6aa0418fcc838522256761b3415822626f866758ee0bc6632c9486b179d0b52"},+ {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6748717bb10339c4760c1e63da040f5f29f5ed6e59d76daee30305894069a660"},+ {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4d1a3d7ef5e96b1c9e92f973e43aa5e5b96c659c9bc3124acbbd81b0b9c8a951"},+ {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4372381634485bec7e46718edc71528024fcdc6f835baefe517b34a33c731d60"},+ {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:fc35cb4676846ef752816d5be2193a1e8367b4c1397b74a565a9d0389c433a1d"},+ {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:4b9d9e4e2b37daddb5c23ea33a3417901fa7c7b3dee2d855f63ee67a0b21e5b1"},+ {file = "multidict-6.0.4-cp38-cp38-win32.whl", hash = "sha256:e41b7e2b59679edfa309e8db64fdf22399eec4b0b24694e1b2104fb789207779"},+ {file = "multidict-6.0.4-cp38-cp38-win_amd64.whl", hash = "sha256:d6c254ba6e45d8e72739281ebc46ea5eb5f101234f3ce171f0e9f5cc86991480"},+ {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:16ab77bbeb596e14212e7bab8429f24c1579234a3a462105cda4a66904998664"},+ {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc779e9e6f7fda81b3f9aa58e3a6091d49ad528b11ed19f6621408806204ad35"},+ {file = "multidict-6.0.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4ceef517eca3e03c1cceb22030a3e39cb399ac86bff4e426d4fc6ae49052cc60"},+ {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:281af09f488903fde97923c7744bb001a9b23b039a909460d0f14edc7bf59706"},+ {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:52f2dffc8acaba9a2f27174c41c9e57f60b907bb9f096b36b1a1f3be71c6284d"},+ {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b41156839806aecb3641f3208c0dafd3ac7775b9c4c422d82ee2a45c34ba81ca"},+ {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3fc56f88cc98ef8139255cf8cd63eb2c586531e43310ff859d6bb3a6b51f1"},+ {file = "multidict-6.0.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8316a77808c501004802f9beebde51c9f857054a0c871bd6da8280e718444449"},+ {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f70b98cd94886b49d91170ef23ec5c0e8ebb6f242d734ed7ed677b24d50c82cf"},+ {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bf6774e60d67a9efe02b3616fee22441d86fab4c6d335f9d2051d19d90a40063"},+ {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:e69924bfcdda39b722ef4d9aa762b2dd38e4632b3641b1d9a57ca9cd18f2f83a"},+ {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:6b181d8c23da913d4ff585afd1155a0e1194c0b50c54fcfe286f70cdaf2b7176"},+ {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:52509b5be062d9eafc8170e53026fbc54cf3b32759a23d07fd935fb04fc22d95"},+ {file = "multidict-6.0.4-cp39-cp39-win32.whl", hash = "sha256:27c523fbfbdfd19c6867af7346332b62b586eed663887392cff78d614f9ec313"},+ {file = "multidict-6.0.4-cp39-cp39-win_amd64.whl", hash = "sha256:33029f5734336aa0d4c0384525da0387ef89148dc7191aae00ca5fb23d7aafc2"},+ {file = "multidict-6.0.4.tar.gz", hash = "sha256:3666906492efb76453c0e7b97f2cf459b0682e7402c0489a95484965dbc1da49"},+]++[[package]]+name = "mypy-extensions"+version = "1.0.0"+description = "Type system extensions for programs checked with the mypy type checker."+category = "dev"+optional = false+python-versions = ">=3.5"+files = [+ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"},+ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"},+]++[[package]]+name = "packaging"+version = "23.1"+description = "Core utilities for Python packages"+category = "dev"+optional = false+python-versions = ">=3.7"+files = [+ {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"},+ {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"},+]++[[package]]+name = "pathspec"+version = "0.11.2"+description = "Utility library for gitignore style pattern matching of file paths."+category = "dev"+optional = false+python-versions = ">=3.7"+files = [+ {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"},+ {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"},+]++[[package]]+name = "platformdirs"+version = "3.10.0"+description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."+category = "dev"+optional = false+python-versions = ">=3.7"+files = [+ {file = "platformdirs-3.10.0-py3-none-any.whl", hash = "sha256:d7c24979f292f916dc9cbf8648319032f551ea8c49a4c9bf2fb556a02070ec1d"},+ {file = "platformdirs-3.10.0.tar.gz", hash = "sha256:b45696dab2d7cc691a3226759c0d3b00c47c8b6e293d96f6436f733303f77f6d"},+]++[package.extras]+docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.1)", "sphinx-autodoc-typehints (>=1.24)"]+test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)"]++[[package]]+name = "pydantic"+version = "1.10.12"+description = "Data validation and settings management using python type hints"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "pydantic-1.10.12-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a1fcb59f2f355ec350073af41d927bf83a63b50e640f4dbaa01053a28b7a7718"},+ {file = "pydantic-1.10.12-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b7ccf02d7eb340b216ec33e53a3a629856afe1c6e0ef91d84a4e6f2fb2ca70fe"},+ {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8fb2aa3ab3728d950bcc885a2e9eff6c8fc40bc0b7bb434e555c215491bcf48b"},+ {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:771735dc43cf8383959dc9b90aa281f0b6092321ca98677c5fb6125a6f56d58d"},+ {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ca48477862372ac3770969b9d75f1bf66131d386dba79506c46d75e6b48c1e09"},+ {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a5e7add47a5b5a40c49b3036d464e3c7802f8ae0d1e66035ea16aa5b7a3923ed"},+ {file = "pydantic-1.10.12-cp310-cp310-win_amd64.whl", hash = "sha256:e4129b528c6baa99a429f97ce733fff478ec955513630e61b49804b6cf9b224a"},+ {file = "pydantic-1.10.12-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b0d191db0f92dfcb1dec210ca244fdae5cbe918c6050b342d619c09d31eea0cc"},+ {file = "pydantic-1.10.12-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:795e34e6cc065f8f498c89b894a3c6da294a936ee71e644e4bd44de048af1405"},+ {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:69328e15cfda2c392da4e713443c7dbffa1505bc9d566e71e55abe14c97ddc62"},+ {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2031de0967c279df0d8a1c72b4ffc411ecd06bac607a212892757db7462fc494"},+ {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:ba5b2e6fe6ca2b7e013398bc7d7b170e21cce322d266ffcd57cca313e54fb246"},+ {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:2a7bac939fa326db1ab741c9d7f44c565a1d1e80908b3797f7f81a4f86bc8d33"},+ {file = "pydantic-1.10.12-cp311-cp311-win_amd64.whl", hash = "sha256:87afda5539d5140cb8ba9e8b8c8865cb5b1463924d38490d73d3ccfd80896b3f"},+ {file = "pydantic-1.10.12-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:549a8e3d81df0a85226963611950b12d2d334f214436a19537b2efed61b7639a"},+ {file = "pydantic-1.10.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:598da88dfa127b666852bef6d0d796573a8cf5009ffd62104094a4fe39599565"},+ {file = "pydantic-1.10.12-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ba5c4a8552bff16c61882db58544116d021d0b31ee7c66958d14cf386a5b5350"},+ {file = "pydantic-1.10.12-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c79e6a11a07da7374f46970410b41d5e266f7f38f6a17a9c4823db80dadf4303"},+ {file = "pydantic-1.10.12-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ab26038b8375581dc832a63c948f261ae0aa21f1d34c1293469f135fa92972a5"},+ {file = "pydantic-1.10.12-cp37-cp37m-win_amd64.whl", hash = "sha256:e0a16d274b588767602b7646fa05af2782576a6cf1022f4ba74cbb4db66f6ca8"},+ {file = "pydantic-1.10.12-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6a9dfa722316f4acf4460afdf5d41d5246a80e249c7ff475c43a3a1e9d75cf62"},+ {file = "pydantic-1.10.12-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a73f489aebd0c2121ed974054cb2759af8a9f747de120acd2c3394cf84176ccb"},+ {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b30bcb8cbfccfcf02acb8f1a261143fab622831d9c0989707e0e659f77a18e0"},+ {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2fcfb5296d7877af406ba1547dfde9943b1256d8928732267e2653c26938cd9c"},+ {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:2f9a6fab5f82ada41d56b0602606a5506aab165ca54e52bc4545028382ef1c5d"},+ {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:dea7adcc33d5d105896401a1f37d56b47d443a2b2605ff8a969a0ed5543f7e33"},+ {file = "pydantic-1.10.12-cp38-cp38-win_amd64.whl", hash = "sha256:1eb2085c13bce1612da8537b2d90f549c8cbb05c67e8f22854e201bde5d98a47"},+ {file = "pydantic-1.10.12-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ef6c96b2baa2100ec91a4b428f80d8f28a3c9e53568219b6c298c1125572ebc6"},+ {file = "pydantic-1.10.12-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6c076be61cd0177a8433c0adcb03475baf4ee91edf5a4e550161ad57fc90f523"},+ {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2d5a58feb9a39f481eda4d5ca220aa8b9d4f21a41274760b9bc66bfd72595b86"},+ {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5f805d2d5d0a41633651a73fa4ecdd0b3d7a49de4ec3fadf062fe16501ddbf1"},+ {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:1289c180abd4bd4555bb927c42ee42abc3aee02b0fb2d1223fb7c6e5bef87dbe"},+ {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5d1197e462e0364906cbc19681605cb7c036f2475c899b6f296104ad42b9f5fb"},+ {file = "pydantic-1.10.12-cp39-cp39-win_amd64.whl", hash = "sha256:fdbdd1d630195689f325c9ef1a12900524dceb503b00a987663ff4f58669b93d"},+ {file = "pydantic-1.10.12-py3-none-any.whl", hash = "sha256:b749a43aa51e32839c9d71dc67eb1e4221bb04af1033a32e3923d46f9effa942"},+ {file = "pydantic-1.10.12.tar.gz", hash = "sha256:0fe8a415cea8f340e7a9af9c54fc71a649b43e8ca3cc732986116b3cb135d303"},+]++[package.dependencies]+typing-extensions = ">=4.2.0"++[package.extras]+dotenv = ["python-dotenv (>=0.10.4)"]+email = ["email-validator (>=1.0.3)"]++[[package]]+name = "python-dateutil"+version = "2.8.2"+description = "Extensions to the standard Python datetime module"+category = "main"+optional = false+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"+files = [+ {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"},+ {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"},+]++[package.dependencies]+six = ">=1.5"++[[package]]+name = "six"+version = "1.16.0"+description = "Python 2 and 3 compatibility utilities"+category = "main"+optional = false+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"+files = [+ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},+ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},+]++[[package]]+name = "tomli"+version = "2.0.1"+description = "A lil' TOML parser"+category = "dev"+optional = false+python-versions = ">=3.7"+files = [+ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},+ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},+]++[[package]]+name = "typing-extensions"+version = "4.7.1"+description = "Backported and Experimental Type Hints for Python 3.7+"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},+ {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},+]++[[package]]+name = "urllib3"+version = "2.0.4"+description = "HTTP library with thread-safe connection pooling, file post, and more."+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "urllib3-2.0.4-py3-none-any.whl", hash = "sha256:de7df1803967d2c2a98e4b11bb7d6bd9210474c46e8a0401514e3a42a75ebde4"},+ {file = "urllib3-2.0.4.tar.gz", hash = "sha256:8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11"},+]++[package.extras]+brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]+secure = ["certifi", "cryptography (>=1.9)", "idna (>=2.0.0)", "pyopenssl (>=17.1.0)", "urllib3-secure-extra"]+socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]+zstd = ["zstandard (>=0.18.0)"]++[[package]]+name = "websockets"+version = "11.0.3"+description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "websockets-11.0.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3ccc8a0c387629aec40f2fc9fdcb4b9d5431954f934da3eaf16cdc94f67dbfac"},+ {file = "websockets-11.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d67ac60a307f760c6e65dad586f556dde58e683fab03323221a4e530ead6f74d"},+ {file = "websockets-11.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:84d27a4832cc1a0ee07cdcf2b0629a8a72db73f4cf6de6f0904f6661227f256f"},+ {file = "websockets-11.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffd7dcaf744f25f82190856bc26ed81721508fc5cbf2a330751e135ff1283564"},+ {file = "websockets-11.0.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7622a89d696fc87af8e8d280d9b421db5133ef5b29d3f7a1ce9f1a7bf7fcfa11"},+ {file = "websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bceab846bac555aff6427d060f2fcfff71042dba6f5fca7dc4f75cac815e57ca"},+ {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:54c6e5b3d3a8936a4ab6870d46bdd6ec500ad62bde9e44462c32d18f1e9a8e54"},+ {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:41f696ba95cd92dc047e46b41b26dd24518384749ed0d99bea0a941ca87404c4"},+ {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:86d2a77fd490ae3ff6fae1c6ceaecad063d3cc2320b44377efdde79880e11526"},+ {file = "websockets-11.0.3-cp310-cp310-win32.whl", hash = "sha256:2d903ad4419f5b472de90cd2d40384573b25da71e33519a67797de17ef849b69"},+ {file = "websockets-11.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:1d2256283fa4b7f4c7d7d3e84dc2ece74d341bce57d5b9bf385df109c2a1a82f"},+ {file = "websockets-11.0.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e848f46a58b9fcf3d06061d17be388caf70ea5b8cc3466251963c8345e13f7eb"},+ {file = "websockets-11.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aa5003845cdd21ac0dc6c9bf661c5beddd01116f6eb9eb3c8e272353d45b3288"},+ {file = "websockets-11.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b58cbf0697721120866820b89f93659abc31c1e876bf20d0b3d03cef14faf84d"},+ {file = "websockets-11.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:660e2d9068d2bedc0912af508f30bbeb505bbbf9774d98def45f68278cea20d3"},+ {file = "websockets-11.0.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c1f0524f203e3bd35149f12157438f406eff2e4fb30f71221c8a5eceb3617b6b"},+ {file = "websockets-11.0.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:def07915168ac8f7853812cc593c71185a16216e9e4fa886358a17ed0fd9fcf6"},+ {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b30c6590146e53149f04e85a6e4fcae068df4289e31e4aee1fdf56a0dead8f97"},+ {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:619d9f06372b3a42bc29d0cd0354c9bb9fb39c2cbc1a9c5025b4538738dbffaf"},+ {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:01f5567d9cf6f502d655151645d4e8b72b453413d3819d2b6f1185abc23e82dd"},+ {file = "websockets-11.0.3-cp311-cp311-win32.whl", hash = "sha256:e1459677e5d12be8bbc7584c35b992eea142911a6236a3278b9b5ce3326f282c"},+ {file = "websockets-11.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:e7837cb169eca3b3ae94cc5787c4fed99eef74c0ab9506756eea335e0d6f3ed8"},+ {file = "websockets-11.0.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:9f59a3c656fef341a99e3d63189852be7084c0e54b75734cde571182c087b152"},+ {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2529338a6ff0eb0b50c7be33dc3d0e456381157a31eefc561771ee431134a97f"},+ {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:34fd59a4ac42dff6d4681d8843217137f6bc85ed29722f2f7222bd619d15e95b"},+ {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:332d126167ddddec94597c2365537baf9ff62dfcc9db4266f263d455f2f031cb"},+ {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:6505c1b31274723ccaf5f515c1824a4ad2f0d191cec942666b3d0f3aa4cb4007"},+ {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:f467ba0050b7de85016b43f5a22b46383ef004c4f672148a8abf32bc999a87f0"},+ {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:9d9acd80072abcc98bd2c86c3c9cd4ac2347b5a5a0cae7ed5c0ee5675f86d9af"},+ {file = "websockets-11.0.3-cp37-cp37m-win32.whl", hash = "sha256:e590228200fcfc7e9109509e4d9125eace2042fd52b595dd22bbc34bb282307f"},+ {file = "websockets-11.0.3-cp37-cp37m-win_amd64.whl", hash = "sha256:b16fff62b45eccb9c7abb18e60e7e446998093cdcb50fed33134b9b6878836de"},+ {file = "websockets-11.0.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fb06eea71a00a7af0ae6aefbb932fb8a7df3cb390cc217d51a9ad7343de1b8d0"},+ {file = "websockets-11.0.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8a34e13a62a59c871064dfd8ffb150867e54291e46d4a7cf11d02c94a5275bae"},+ {file = "websockets-11.0.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4841ed00f1026dfbced6fca7d963c4e7043aa832648671b5138008dc5a8f6d99"},+ {file = "websockets-11.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a073fc9ab1c8aff37c99f11f1641e16da517770e31a37265d2755282a5d28aa"},+ {file = "websockets-11.0.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:68b977f21ce443d6d378dbd5ca38621755f2063d6fdb3335bda981d552cfff86"},+ {file = "websockets-11.0.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e1a99a7a71631f0efe727c10edfba09ea6bee4166a6f9c19aafb6c0b5917d09c"},+ {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:bee9fcb41db2a23bed96c6b6ead6489702c12334ea20a297aa095ce6d31370d0"},+ {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4b253869ea05a5a073ebfdcb5cb3b0266a57c3764cf6fe114e4cd90f4bfa5f5e"},+ {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:1553cb82942b2a74dd9b15a018dce645d4e68674de2ca31ff13ebc2d9f283788"},+ {file = "websockets-11.0.3-cp38-cp38-win32.whl", hash = "sha256:f61bdb1df43dc9c131791fbc2355535f9024b9a04398d3bd0684fc16ab07df74"},+ {file = "websockets-11.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:03aae4edc0b1c68498f41a6772d80ac7c1e33c06c6ffa2ac1c27a07653e79d6f"},+ {file = "websockets-11.0.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:777354ee16f02f643a4c7f2b3eff8027a33c9861edc691a2003531f5da4f6bc8"},+ {file = "websockets-11.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8c82f11964f010053e13daafdc7154ce7385ecc538989a354ccc7067fd7028fd"},+ {file = "websockets-11.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3580dd9c1ad0701169e4d6fc41e878ffe05e6bdcaf3c412f9d559389d0c9e016"},+ {file = "websockets-11.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f1a3f10f836fab6ca6efa97bb952300b20ae56b409414ca85bff2ad241d2a61"},+ {file = "websockets-11.0.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:df41b9bc27c2c25b486bae7cf42fccdc52ff181c8c387bfd026624a491c2671b"},+ {file = "websockets-11.0.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:279e5de4671e79a9ac877427f4ac4ce93751b8823f276b681d04b2156713b9dd"},+ {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:1fdf26fa8a6a592f8f9235285b8affa72748dc12e964a5518c6c5e8f916716f7"},+ {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:69269f3a0b472e91125b503d3c0b3566bda26da0a3261c49f0027eb6075086d1"},+ {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:97b52894d948d2f6ea480171a27122d77af14ced35f62e5c892ca2fae9344311"},+ {file = "websockets-11.0.3-cp39-cp39-win32.whl", hash = "sha256:c7f3cb904cce8e1be667c7e6fef4516b98d1a6a0635a58a57528d577ac18a128"},+ {file = "websockets-11.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:c792ea4eabc0159535608fc5658a74d1a81020eb35195dd63214dcf07556f67e"},+ {file = "websockets-11.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f2e58f2c36cc52d41f2659e4c0cbf7353e28c8c9e63e30d8c6d3494dc9fdedcf"},+ {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de36fe9c02995c7e6ae6efe2e205816f5f00c22fd1fbf343d4d18c3d5ceac2f5"},+ {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0ac56b661e60edd453585f4bd68eb6a29ae25b5184fd5ba51e97652580458998"},+ {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e052b8467dd07d4943936009f46ae5ce7b908ddcac3fda581656b1b19c083d9b"},+ {file = "websockets-11.0.3-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:42cc5452a54a8e46a032521d7365da775823e21bfba2895fb7b77633cce031bb"},+ {file = "websockets-11.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:e6316827e3e79b7b8e7d8e3b08f4e331af91a48e794d5d8b099928b6f0b85f20"},+ {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8531fdcad636d82c517b26a448dcfe62f720e1922b33c81ce695d0edb91eb931"},+ {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c114e8da9b475739dde229fd3bc6b05a6537a88a578358bc8eb29b4030fac9c9"},+ {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e063b1865974611313a3849d43f2c3f5368093691349cf3c7c8f8f75ad7cb280"},+ {file = "websockets-11.0.3-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:92b2065d642bf8c0a82d59e59053dd2fdde64d4ed44efe4870fa816c1232647b"},+ {file = "websockets-11.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:0ee68fe502f9031f19d495dae2c268830df2760c0524cbac5d759921ba8c8e82"},+ {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcacf2c7a6c3a84e720d1bb2b543c675bf6c40e460300b628bab1b1efc7c034c"},+ {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b67c6f5e5a401fc56394f191f00f9b3811fe843ee93f4a70df3c389d1adf857d"},+ {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1d5023a4b6a5b183dc838808087033ec5df77580485fc533e7dab2567851b0a4"},+ {file = "websockets-11.0.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:ed058398f55163a79bb9f06a90ef9ccc063b204bb346c4de78efc5d15abfe602"},+ {file = "websockets-11.0.3-py3-none-any.whl", hash = "sha256:6681ba9e7f8f3b19440921e99efbb40fc89f26cd71bf539e45d8c8a25c976dc6"},+ {file = "websockets-11.0.3.tar.gz", hash = "sha256:88fc51d9a26b10fc331be344f1781224a375b78488fc343620184e95a4b27016"},+]++[[package]]+name = "yarl"+version = "1.9.2"+description = "Yet another URL library"+category = "main"+optional = false+python-versions = ">=3.7"+files = [+ {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"},+ {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82aa6264b36c50acfb2424ad5ca537a2060ab6de158a5bd2a72a032cc75b9eb8"},+ {file = "yarl-1.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0c77533b5ed4bcc38e943178ccae29b9bcf48ffd1063f5821192f23a1bd27b9"},+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee4afac41415d52d53a9833ebae7e32b344be72835bbb589018c9e938045a560"},+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9bf345c3a4f5ba7f766430f97f9cc1320786f19584acc7086491f45524a551ac"},+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2a96c19c52ff442a808c105901d0bdfd2e28575b3d5f82e2f5fd67e20dc5f4ea"},+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:891c0e3ec5ec881541f6c5113d8df0315ce5440e244a716b95f2525b7b9f3608"},+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c3a53ba34a636a256d767c086ceb111358876e1fb6b50dfc4d3f4951d40133d5"},+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:566185e8ebc0898b11f8026447eacd02e46226716229cea8db37496c8cdd26e0"},+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2b0738fb871812722a0ac2154be1f049c6223b9f6f22eec352996b69775b36d4"},+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:32f1d071b3f362c80f1a7d322bfd7b2d11e33d2adf395cc1dd4df36c9c243095"},+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e9fdc7ac0d42bc3ea78818557fab03af6181e076a2944f43c38684b4b6bed8e3"},+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:56ff08ab5df8429901ebdc5d15941b59f6253393cb5da07b4170beefcf1b2528"},+ {file = "yarl-1.9.2-cp310-cp310-win32.whl", hash = "sha256:8ea48e0a2f931064469bdabca50c2f578b565fc446f302a79ba6cc0ee7f384d3"},+ {file = "yarl-1.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:50f33040f3836e912ed16d212f6cc1efb3231a8a60526a407aeb66c1c1956dde"},+ {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:646d663eb2232d7909e6601f1a9107e66f9791f290a1b3dc7057818fe44fc2b6"},+ {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aff634b15beff8902d1f918012fc2a42e0dbae6f469fce134c8a0dc51ca423bb"},+ {file = "yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a83503934c6273806aed765035716216cc9ab4e0364f7f066227e1aaea90b8d0"},+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b25322201585c69abc7b0e89e72790469f7dad90d26754717f3310bfe30331c2"},+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:22a94666751778629f1ec4280b08eb11815783c63f52092a5953faf73be24191"},+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ec53a0ea2a80c5cd1ab397925f94bff59222aa3cf9c6da938ce05c9ec20428d"},+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:159d81f22d7a43e6eabc36d7194cb53f2f15f498dbbfa8edc8a3239350f59fe7"},+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:832b7e711027c114d79dffb92576acd1bd2decc467dec60e1cac96912602d0e6"},+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:95d2ecefbcf4e744ea952d073c6922e72ee650ffc79028eb1e320e732898d7e8"},+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d4e2c6d555e77b37288eaf45b8f60f0737c9efa3452c6c44626a5455aeb250b9"},+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:783185c75c12a017cc345015ea359cc801c3b29a2966c2655cd12b233bf5a2be"},+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b8cc1863402472f16c600e3e93d542b7e7542a540f95c30afd472e8e549fc3f7"},+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:822b30a0f22e588b32d3120f6d41e4ed021806418b4c9f0bc3048b8c8cb3f92a"},+ {file = "yarl-1.9.2-cp311-cp311-win32.whl", hash = "sha256:a60347f234c2212a9f0361955007fcf4033a75bf600a33c88a0a8e91af77c0e8"},+ {file = "yarl-1.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:be6b3fdec5c62f2a67cb3f8c6dbf56bbf3f61c0f046f84645cd1ca73532ea051"},+ {file = "yarl-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:38a3928ae37558bc1b559f67410df446d1fbfa87318b124bf5032c31e3447b74"},+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac9bb4c5ce3975aeac288cfcb5061ce60e0d14d92209e780c93954076c7c4367"},+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3da8a678ca8b96c8606bbb8bfacd99a12ad5dd288bc6f7979baddd62f71c63ef"},+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13414591ff516e04fcdee8dc051c13fd3db13b673c7a4cb1350e6b2ad9639ad3"},+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf74d08542c3a9ea97bb8f343d4fcbd4d8f91bba5ec9d5d7f792dbe727f88938"},+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e7221580dc1db478464cfeef9b03b95c5852cc22894e418562997df0d074ccc"},+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:494053246b119b041960ddcd20fd76224149cfea8ed8777b687358727911dd33"},+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:52a25809fcbecfc63ac9ba0c0fb586f90837f5425edfd1ec9f3372b119585e45"},+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:e65610c5792870d45d7b68c677681376fcf9cc1c289f23e8e8b39c1485384185"},+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1b1bba902cba32cdec51fca038fd53f8beee88b77efc373968d1ed021024cc04"},+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:662e6016409828ee910f5d9602a2729a8a57d74b163c89a837de3fea050c7582"},+ {file = "yarl-1.9.2-cp37-cp37m-win32.whl", hash = "sha256:f364d3480bffd3aa566e886587eaca7c8c04d74f6e8933f3f2c996b7f09bee1b"},+ {file = "yarl-1.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6a5883464143ab3ae9ba68daae8e7c5c95b969462bbe42e2464d60e7e2698368"},+ {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5610f80cf43b6202e2c33ba3ec2ee0a2884f8f423c8f4f62906731d876ef4fac"},+ {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b9a4e67ad7b646cd6f0938c7ebfd60e481b7410f574c560e455e938d2da8e0f4"},+ {file = "yarl-1.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:83fcc480d7549ccebe9415d96d9263e2d4226798c37ebd18c930fce43dfb9574"},+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fcd436ea16fee7d4207c045b1e340020e58a2597301cfbcfdbe5abd2356c2fb"},+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84e0b1599334b1e1478db01b756e55937d4614f8654311eb26012091be109d59"},+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3458a24e4ea3fd8930e934c129b676c27452e4ebda80fbe47b56d8c6c7a63a9e"},+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:838162460b3a08987546e881a2bfa573960bb559dfa739e7800ceeec92e64417"},+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78"},+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:de119f56f3c5f0e2fb4dee508531a32b069a5f2c6e827b272d1e0ff5ac040333"},+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:149ddea5abf329752ea5051b61bd6c1d979e13fbf122d3a1f9f0c8be6cb6f63c"},+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:674ca19cbee4a82c9f54e0d1eee28116e63bc6fd1e96c43031d11cbab8b2afd5"},+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:9b3152f2f5677b997ae6c804b73da05a39daa6a9e85a512e0e6823d81cdad7cc"},+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5415d5a4b080dc9612b1b63cba008db84e908b95848369aa1da3686ae27b6d2b"},+ {file = "yarl-1.9.2-cp38-cp38-win32.whl", hash = "sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7"},+ {file = "yarl-1.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:63c48f6cef34e6319a74c727376e95626f84ea091f92c0250a98e53e62c77c72"},+ {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:75df5ef94c3fdc393c6b19d80e6ef1ecc9ae2f4263c09cacb178d871c02a5ba9"},+ {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c027a6e96ef77d401d8d5a5c8d6bc478e8042f1e448272e8d9752cb0aff8b5c8"},+ {file = "yarl-1.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7"},+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59723a029760079b7d991a401386390c4be5bfec1e7dd83e25a6a0881859e716"},+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b03917871bf859a81ccb180c9a2e6c1e04d2f6a51d953e6a5cdd70c93d4e5a2a"},+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c1012fa63eb6c032f3ce5d2171c267992ae0c00b9e164efe4d73db818465fac3"},+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a74dcbfe780e62f4b5a062714576f16c2f3493a0394e555ab141bf0d746bb955"},+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c56986609b057b4839968ba901944af91b8e92f1725d1a2d77cbac6972b9ed1"},+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:2c315df3293cd521033533d242d15eab26583360b58f7ee5d9565f15fee1bef4"},+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b7232f8dfbd225d57340e441d8caf8652a6acd06b389ea2d3222b8bc89cbfca6"},+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:53338749febd28935d55b41bf0bcc79d634881195a39f6b2f767870b72514caf"},+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:066c163aec9d3d073dc9ffe5dd3ad05069bcb03fcaab8d221290ba99f9f69ee3"},+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8288d7cd28f8119b07dd49b7230d6b4562f9b61ee9a4ab02221060d21136be80"},+ {file = "yarl-1.9.2-cp39-cp39-win32.whl", hash = "sha256:b124e2a6d223b65ba8768d5706d103280914d61f5cae3afbc50fc3dfcc016623"},+ {file = "yarl-1.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:61016e7d582bc46a5378ffdd02cd0314fb8ba52f40f9cf4d9a5e7dbef88dee18"},+ {file = "yarl-1.9.2.tar.gz", hash = "sha256:04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571"},+]++[package.dependencies]+idna = ">=2.0"+multidict = ">=4.0"++[metadata]+lock-version = "2.0"+python-versions = "^3.8"+content-hash = "41f37a0d6416abca8a05729bb7b1422d3245b6ebd007f58da229c3a401833fd4"diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlnew file mode 100644index 000000000..8b1852dce--- /dev/null+++ b/packages/python-sdk/pyproject.toml@@ -0,0 +1,31 @@+[tool.poetry]+name = "e2b"+version = "0.1.5"+description = "E2B SDK that give agents cloud environments"+authors = ["e2b <[email protected]>"]+license = "MIT"+readme = "README.md"+homepage = "https://e2b.dev/"+repository = "https://github.com/e2b-dev/e2b/tree/main/packages/python-sdk"+packages = [{ include = "e2b" }]++[tool.poetry.dependencies]+python = "^3.8"++urllib3 = ">= 1.25.3"+python-dateutil = ">=2.8.2"+aiohttp = ">= 3.8.4"+pydantic = "^1.10.5, <2"+aenum = ">=3.1.11"+websockets = "^11.0.3"+jsonrpcclient = "^4.0.3"++[tool.poetry.group.dev.dependencies]+black = "^23.7.0"++[build-system]+requires = ["poetry-core"]+build-backend = "poetry.core.masonry.api"++[tool.poetry.urls]+"Bug Tracker" = "https://github.com/e2b-dev/e2b/issues"diff --git a/packages/python-sdk/python-sdk-example.ipynb b/packages/python-sdk/python-sdk-example.ipynbnew file mode 100644index 000000000..08e422982--- /dev/null+++ b/packages/python-sdk/python-sdk-example.ipynb@@ -0,0 +1,539 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# E2B Python SDK\n",+ "The E2B Python SDK provides an interface for managing cloud environments for AI agents.\n",+ "\n",+ "This SDK gives your agent a full cloud development environment that's sandboxed. That means:\n",+ "\n",+ "- Access to Linux OS\n",+ "- Using filesystem (create, list, and delete files and dirs)\n",+ "- Run processes\n",+ "- Sandboxed - you can run any code\n",+ "- Access to the internet\n",+ "\n",+ "These cloud environments are meant to be used for agents. Like a sandboxed playgrounds, where the agent can do whatever it wants.\n"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Installation"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 1,+ "metadata": {+ "vscode": {+ "languageId": "shellscript"+ }+ },+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Collecting e2b==0.1.4\n",+ " Downloading e2b-0.1.4-py3-none-any.whl (71 kB)\n",+ "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m71.3/71.3 kB\u001b[0m \u001b[31m3.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",+ "\u001b[?25hRequirement already satisfied: aenum>=3.1.11 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (3.1.15)\n",+ "Requirement already satisfied: aiohttp>=3.8.4 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (3.8.4)\n",+ "Requirement already satisfied: jsonrpcclient<5.0.0,>=4.0.3 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (4.0.3)\n",+ "Requirement already satisfied: pydantic<2.0.0,>=1.10.5 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (1.10.7)\n",+ "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (2.8.2)\n",+ "Requirement already satisfied: urllib3>=1.25.3 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (1.26.16)\n",+ "Requirement already satisfied: websockets<12.0.0,>=11.0.3 in /opt/homebrew/lib/python3.11/site-packages (from e2b==0.1.4) (11.0.3)\n",+ "Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (23.1.0)\n",+ "Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (3.1.0)\n",+ "Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (6.0.4)\n",+ "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (4.0.2)\n",+ "Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (1.9.2)\n",+ "Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (1.3.3)\n",+ "Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/lib/python3.11/site-packages (from aiohttp>=3.8.4->e2b==0.1.4) (1.3.1)\n",+ "Requirement already satisfied: typing-extensions>=4.2.0 in /opt/homebrew/lib/python3.11/site-packages (from pydantic<2.0.0,>=1.10.5->e2b==0.1.4) (4.5.0)\n",+ "Requirement already satisfied: six>=1.5 in /opt/homebrew/lib/python3.11/site-packages (from python-dateutil>=2.8.2->e2b==0.1.4) (1.16.0)\n",+ "Requirement already satisfied: idna>=2.0 in /opt/homebrew/lib/python3.11/site-packages (from yarl<2.0,>=1.0->aiohttp>=3.8.4->e2b==0.1.4) (3.4)\n",+ "Installing collected packages: e2b\n",+ " Attempting uninstall: e2b\n",+ " Found existing installation: e2b 0.1.3\n",+ " Uninstalling e2b-0.1.3:\n",+ " Successfully uninstalled e2b-0.1.3\n",+ "Successfully installed e2b-0.1.4\n",+ "\n",+ "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.0.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.2.1\u001b[0m\n",+ "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpython3.11 -m pip install --upgrade pip\u001b[0m\n",+ "Note: you may need to restart the kernel to use updated packages.\n"+ ]+ }+ ],+ "source": [+ "pip install e2b==0.1.4"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Usage"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 2,+ "metadata": {},+ "outputs": [],+ "source": [+ "from e2b import Session\n",+ "\n",+ "id = \"Nodejs\""+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Initialization"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 5,+ "metadata": {},+ "outputs": [],+ "source": [+ "# You can use some of the predefined environments by using specific id:\n",+ "# 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'\n",+ "session = await Session.create(id)\n",+ "\n",+ "# Close the session after you are done\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Filesystem"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 13,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Hello World!\n"+ ]+ }+ ],+ "source": [+ "# Create, read and delete file\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "await session.filesystem.write(\"/tmp/test.txt\", \"Hello World!\")\n",+ "\n",+ "content = await session.filesystem.read(\"/tmp/test.txt\")\n",+ "print(content)\n",+ "\n",+ "await session.filesystem.remove(\"/tmp/test.txt\")\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 14,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "[]\n",+ "['test']\n",+ "[]\n"+ ]+ }+ ],+ "source": [+ "# List files in a directory, create a new directory and remove a directory\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "ls = await session.filesystem.list(\"/\")\n",+ "print([x.name for x in ls if x.name.startswith(\"test\")])\n",+ "\n",+ "await session.filesystem.make_dir(\"/test/new\")\n",+ "\n",+ "ls = await session.filesystem.list(\"/\")\n",+ "print([x.name for x in ls if x.name.startswith(\"test\")])\n",+ "\n",+ "await session.filesystem.remove(\"/test\")\n",+ "\n",+ "ls = await session.filesystem.list(\"/\")\n",+ "print([x.name for x in ls if x.name.startswith(\"test\")])\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 15,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Event {'path': '//test.txt', 'name': 'test.txt', 'operation': 'Create', 'timestamp': 1691532768257138654, 'isDir': False}\n",+ "Event {'path': '//test.txt', 'name': 'test.txt', 'operation': 'Write', 'timestamp': 1691532768259136251, 'isDir': False}\n"+ ]+ }+ ],+ "source": [+ "# Watch directory for changes (WIP)\n",+ "\n",+ "session = Session(id)\n",+ "await session.open()\n",+ "\n",+ "watcher = await session.filesystem.watch_dir(\"/\")\n",+ "watcher.add_event_listener(lambda event: print(\"Event\", event))\n",+ "await watcher.start()\n",+ "\n",+ "await session.filesystem.write(\"/test.txt\", \"Hello World!\")\n",+ "\n",+ "await watcher.stop()\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Process"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 3,+ "metadata": {+ "tags": [+ "process"+ ]+ },+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Process session ID wI6N300SFSvq\n",+ "Current output []\n",+ "Stdout line='/code' error=False timestamp=1691532768326208600\n",+ "Exit\n",+ "Output [ProcessMessage(line='/code', error=False, timestamp=1691532768326208600)]\n",+ "Stdout /code\n",+ "Stderr \n"+ ]+ }+ ],+ "source": [+ "# Execute a command and get the output\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "proc = await session.process.start(\n",+ " \"pwd\",\n",+ " # If you add a callback for stdout you will get the stderr data as it comes in. \n",+ " # You can still access the stdout after `output = await proc` as `output.stdout` or anytime as `proc.output.stdout`.\n",+ " on_stdout=lambda data: print(\"Stdout\", data),\n",+ " # If you add a callback for stderr you will get the stderr data as it comes in.\n",+ " # You can still access the stderr after `output = await proc` as `output.stderr` or anytime as `proc.output.stderr`.\n",+ " on_stderr=lambda data: print(\"Stderr\", data),\n",+ " on_exit=lambda: print(\"Exit\"),\n",+ " rootdir=\"/code\",\n",+ ")\n",+ "print(\"Process session ID\", proc.process_id)\n",+ "\n",+ "# You can access `proc.output...` even before the process finishes\n",+ "print(\"Current output\", proc.output.messages)\n",+ "\n",+ "# You can directly await the started process to wait for exit\n",+ "output = await proc\n",+ "\n",+ "# List of all output messages\n",+ "print(\"Output\", output.messages)\n",+ "# Concatenated stdout\n",+ "print(\"Stdout\", output.stdout)\n",+ "# Concatenated stderr\n",+ "print(\"Stderr\", output.stderr)\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 9,+ "metadata": {+ "tags": [+ "process",+ "stdin",+ "kill"+ ]+ },+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Stdout line='marco' error=False timestamp=1691532768254368795\n",+ "Exit\n",+ "Output [ProcessMessage(line='marco', error=False, timestamp=1691532768254368795)]\n",+ "Stdout marco\n",+ "Stdout \n"+ ]+ }+ ],+ "source": [+ "# Start command, send stdin to it and then kill it\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "proc = await session.process.start(\n",+ " \"while IFS= read -r line; do echo \\\"$line\\\"; sleep 1; done\",\n",+ " # If you add a callback for stdout you will get the stderr data as it comes in. \n",+ " # You can still access the stdout after `output = await proc` as `output.stdout` or anytime as `proc.output.stdout`.\n",+ " on_stdout=lambda data: print(\"Stdout\", data),\n",+ " # If you add a callback for stderr you will get the stderr data as it comes in.\n",+ " # You can still access the stderr after `output = await proc` as `output.stderr` or anytime as `proc.output.stderr`.\n",+ " on_stderr=lambda data: print(\"Stderr\", data),\n",+ " on_exit=lambda: print(\"Exit\"),\n",+ " rootdir=\"/code\",\n",+ ")\n",+ "await proc.send_stdin(\"marco\\n\")\n",+ "await proc.kill()\n",+ "\n",+ "print(\"Output\", proc.output.messages)\n",+ "print(\"Stdout\", proc.output.stdout)\n",+ "print(\"Stdout\", proc.output.stderr)\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Terminal"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 19,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Terminal session ID FSSpmurO9BNP\n",+ "\u001b[?2004h\n",+ "/code $ \n",+ "ls -a\n",+ "\u001b[?2004l\n",+ "\u001b[0m\u001b[01;34m.\u001b[0m \u001b[01;34m..\u001b[0m package.json\n",+ "\n",+ "\u001b[?2004h/code $ \n",+ "Exit\n"+ ]+ }+ ],+ "source": [+ "# Start and interact with a terminal session\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "term = await session.terminal.start(\n",+ " on_data=lambda data: print(data),\n",+ " on_exit=lambda: print(\"Exit\"),\n",+ " cols=80,\n",+ " rows=24,\n",+ " rootdir=\"/code\",\n",+ ")\n",+ "print(\"Terminal session ID\", term.terminal_id)\n",+ "await term.resize(80, 30)\n",+ "\n",+ "await term.send_data(\"ls -a\\n\")\n",+ "\n",+ "await term.kill()\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 16,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Data: Hello World\n",+ "\n",+ "Exit\n"+ ]+ }+ ],+ "source": [+ "# Execute one command inside of a terminal session\n",+ "\n",+ "session = await Session.create(id)\n",+ "\n",+ "term = await session.terminal.start(\n",+ " on_data=lambda data: print(\"Data:\", data),\n",+ " on_exit=lambda: print(\"Exit\"),\n",+ " cols=80,\n",+ " rows=24,\n",+ " rootdir=\"/code\",\n",+ " # If you specify a command, the terminal will be closed after the command finishes.\n",+ " cmd=\"echo Hello World\",\n",+ ")\n",+ "\n",+ "await term\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Ports and hostnames - connecting to environment"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 17,+ "metadata": {+ "tags": [+ "process",+ "ports",+ "hostname"+ ]+ },+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Hostname: https://8000-s2t6u9y1-fce131d5.ondevbook.com\n",+ "Open ports: [49982, 22, 53, 49982]\n",+ "Open ports: [22, 49982, 8000, 49982, 53]\n",+ "Open ports: [49982, 49982, 22, 8000, 53]\n",+ "Open ports: [49982, 49982, 22, 8000, 53]\n",+ "Open ports: [22, 53, 49982, 49982, 8000]\n",+ "Open ports: [49982, 8000, 49982, 53, 22]\n",+ "Open ports: [22, 49982, 8000, 53, 49982]\n",+ "Open ports: [49982, 53, 49982, 8000, 22]\n",+ "Open ports: [49982, 49982, 22, 8000, 53]\n",+ "Open ports: [49982, 49982, 8000, 22, 53]\n"+ ]+ }+ ],+ "source": [+ "# Get notified when a port opens and how to get a public hostname for an open port in the cloud environment\n",+ "\n",+ "import asyncio\n",+ "\n",+ "session = await Session.create(\n",+ " id,\n",+ " on_scan_ports=lambda ports: print(\"Open ports:\", [port.port for port in ports]),\n",+ ")\n",+ "\n",+ "port = 8000\n",+ "proc = await session.process.start(f\"python3 -m http.server {port}\")\n",+ "\n",+ "hostname = session.get_hostname(port)\n",+ "print(f\"Hostname: https://{hostname}\")\n",+ "\n",+ "await asyncio.sleep(10)\n",+ "\n",+ "await proc.kill()\n",+ "\n",+ "await session.close()"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 20,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Current output []\n",+ "Output [ProcessMessage(line='/code', error=False, timestamp=1691532768216519914)]\n",+ "Stdout /code\n",+ "Stderr \n"+ ]+ }+ ],+ "source": [+ "# One line initialization\n",+ "session = await Session.create(id)\n",+ "\n",+ "proc = await session.process.start(\n",+ " \"pwd\",\n",+ " rootdir=\"/code\",\n",+ ")\n",+ "\n",+ "# You can access `proc.output...` even before the process finishes\n",+ "print(\"Current output\", proc.output.messages)\n",+ "\n",+ "# You can directly await the started process to wait for exit\n",+ "output = await proc\n",+ "\n",+ "# List of all output messages\n",+ "print(\"Output\", output.messages)\n",+ "# Concatenated stdout\n",+ "print(\"Stdout\", output.stdout)\n",+ "# Concatenated stderr\n",+ "print(\"Stderr\", output.stderr)\n",+ "\n",+ "await session.close()"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": "Python 3",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "codemirror_mode": {+ "name": "ipython",+ "version": 3+ },+ "file_extension": ".py",+ "mimetype": "text/x-python",+ "name": "python",+ "nbconvert_exporter": "python",+ "pygments_lexer": "ipython3",+ "version": "3.11.3"+ },+ "orig_nbformat": 4+ },+ "nbformat": 4,+ "nbformat_minor": 2+}