Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add low-level TS API client with generated types (#4538)

sarayourfriendf61a869725b8
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 719d6e706..dee1cf5ea 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -124,11 +124,11 @@ repos:
- id: eslint
name: eslint
- files: (frontend|automations|packages/js).*?\.(js|ts|mjs|vue|json5|json)$
+ files: (frontend|automations|packages/js).*?\.(js|ts|mjs|vue|json5?)$
"types": [file] # ESLint only accepts [javascript] by default.
language: system
pass_filenames: false
- entry: bash -c 'pnpm run eslint --fix'
+ entry: just eslint
- id: test:unit
name: test:unit
diff --git a/.vale/styles/Openverse/TermCasing.yml b/.vale/styles/Openverse/TermCasing.yml
index cf64c6d5f..db9fc5e17 100644
--- a/.vale/styles/Openverse/TermCasing.yml
+++ b/.vale/styles/Openverse/TermCasing.yml
@@ -5,17 +5,19 @@ message: "Incorrect casing. Use '%s' instead of '%s'."
level: error
ignorecase: false
scope:
- - text
+ # Non-code sentence level text OR headings
+ - summary
+ - heading
swap:
# [^/\.] prevents matching things that look like URLs, file paths, or GitHub team mentions
# For example: @WordPress/openverse-maintainers
- '[^/\.]openverse[^.\.]': Openverse
+ '[^/\.]openverse[^/\.]': Openverse
# OpenVerse should never be used, except as an example of something that is always wrong,
# in which case we'll tell Vale to ignore that line.
"OpenVerse": Openverse
- '[^/\.]wordpress[^.\.]': WordPress
+ '[^/\.]wordpress[^/\.]': WordPress
# Wordpress is the same as OpenVerse
"Wordpress": WordPress
- '[^/\.]github[^.\.]': GitHub
+ '[^/\.]github[^/\.]': GitHub
# Github is the same as Wordpress and OpenVerse
"Github": GitHub
diff --git a/documentation/conf.py b/documentation/conf.py
index d928c4cf6..560b9ff13 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -110,6 +110,10 @@ redirects = {
"catalog/guides/deploy": "/meta/release_and_deployment/runbooks/catalog.html",
"catalog/guides/deployment": "/meta/release_and_deployment/index.html#catalog",
"ingestion_server/guides/deploy": "/meta/release_and_deployment/runbooks/ingestion_server.html",
+ "packages/eslint_plugin/index": "/packages/js/eslint_plugin/index.html",
+ "packages/eslint_plugin/analytics_configuration": "/packages/js/eslint_plugin/analytics_configuration.html",
+ "packages/eslint_plugin/no-unexplained-disabled-test": "/packages/js/eslint_plugin/no-unexplained-disabled-test.html",
+ "packages/openverse_attribution/index": "/packages/python/openverse_attribution/index.html",
}
myst_enable_extensions = ["linkify"]
diff --git a/documentation/packages/index.md b/documentation/packages/index.md
index 0ebbd808f..ea8b7e24d 100644
--- a/documentation/packages/index.md
+++ b/documentation/packages/index.md
@@ -9,8 +9,9 @@ packages and how to add/maintain them.
```{toctree}
:titlesonly:
:glob:
+:maxdepth: 1
-eslint_plugin/index
+js/*/index
```
```{caution}
@@ -91,8 +92,9 @@ how to add/maintain them.
```{toctree}
:titlesonly:
:glob:
+:maxdepth: 1
-openverse_attribution/index
+python/*/index
```
```{caution}
diff --git a/documentation/packages/js/api_client/index.md b/documentation/packages/js/api_client/index.md
new file mode 100644
index 000000000..19dad13c0
--- /dev/null
+++ b/documentation/packages/js/api_client/index.md
@@ -0,0 +1,114 @@
+# `@openverse/api-client`
+
+Thoroughly typed JavaScript client for the Openverse API.
+
+[![Repository](https://img.shields.io/badge/GitHub-@openverse%2Fapi--client-purple?logo=github)](https://github.com/WordPress/openverse/tree/HEAD/packages/js/api-client)
+[![NPM Version](https://img.shields.io/npm/v/%40openverse%2Fapi-client)](https://www.npmjs.com/package/@openverse/api-client)
+
+---
+
+## Installation
+
+```shell
+npm install @openverse/api-client
+```
+
+By default, global fetch is used to make request. As such, there is no explicit
+HTTP client library dependency.
+
+## Usage
+
+Create an Openverse API client using the `createClient` function exported by the
+package.
+
+```ts
+import { createClient } from "@openverse/api-client"
+
+const openverse = createClient()
+```
+
+`createClient` accepts the following options:
+
+- `baseUrl`: The base URL for the Openverse API instance you wish to use. This
+ defaults to the public Openverse API.
+- `credentials`: An object definition optional credentials with which to
+ authenticate the client's requests. See the
+ ["Authentication" section](#authentication) for details of how this works when
+ supplied. If credentials are not passed to `createClient`, requests will
+ proceed anonymously.
+- `fetch`: The `fetch` instance to use for the client. Defaults to
+ `globalThis.fetch`.
+- `headers`: Headers to send with every request.
+
+For a description of how to use the request functions of the client, refer to
+[the documentation for the library used to generate this client, `openapi-fetch`](https://openapi-ts.dev/openapi-fetch/api#fetch-options).
+
+```ts
+const images = await openverse.GET("/v1/images/", {
+ params: {
+ query: {
+ q: "dogs",
+ license: "by-nc-sa",
+ source: ["flickr", "wikimedia"],
+ },
+ },
+})
+
+if (images.error) {
+ throw images.error
+}
+
+images.data.results.forEach((image) => console.log(image.title))
+```
+
+### Rate limiting
+
+The requester function does _not_ automatically handle rate limit back-off. To
+implement this yourself, check the rate limit headers from the response
+`response.headers`.
+
+### Authentication
+
+By default, the `createClient` function will return an unauthenticated client.
+
+To use an authenticated client, pass a `credentials` object containing
+`clientId` and `clientSecret` to the `createClient` function. The client will
+automatically request tokens as needed, including upon expiration.
+
+```ts
+import { createClient } from "@openverse/api-client"
+
+const authenticatedOpenverse = createClient({
+ credentials: {
+ clientId: "...",
+ clientSecret: "...",
+ },
+})
+```
+
+The client automatically requests API tokens when authenticated, including
+eagerly refreshing tokens to avoid halting ongoing requests. This is safe, as
+the Openverse API does not immediately expire existing tokens when a new one
+issued. This also means you do not need to share the same token between multiple
+client instances (e.g., across multiple instances of the same application, as in
+an application server cluster).
+
+## Development and implementation details
+
+The types used in this package for the Openverse REST API's route definitions
+(including request parameter and response types) are generated based on the
+Openverse REST API's OpenAPI Schema. Generation is managed with a thin wrapper
+around [`openapi-typescript`](https://openapi-ts.dev/node).
+
+Refer to <https://openapi-ts.dev/> for more details about the project and how it
+works.
+
+## Versioning
+
+This package follows semantic versioning. Version numbers correspond to the API
+of the package code, not the Openverse REST API.
+
+## License
+
+`@openverse/api-client` is distributed under the terms of the
+[MIT license](https://spdx.org/licenses/MIT.html).
diff --git a/documentation/packages/eslint_plugin/analytics_configuration.md b/documentation/packages/js/eslint_plugin/analytics_configuration.md
similarity index 100%
rename from documentation/packages/eslint_plugin/analytics_configuration.md
rename to documentation/packages/js/eslint_plugin/analytics_configuration.md
diff --git a/documentation/packages/eslint_plugin/index.md b/documentation/packages/js/eslint_plugin/index.md
similarity index 100%
rename from documentation/packages/eslint_plugin/index.md
rename to documentation/packages/js/eslint_plugin/index.md
diff --git a/documentation/packages/eslint_plugin/no-unexplained-disabled-test.md b/documentation/packages/js/eslint_plugin/no-unexplained-disabled-test.md
similarity index 100%
rename from documentation/packages/eslint_plugin/no-unexplained-disabled-test.md
rename to documentation/packages/js/eslint_plugin/no-unexplained-disabled-test.md
diff --git a/documentation/packages/openverse_attribution/index.md b/documentation/packages/python/openverse_attribution/index.md
similarity index 100%
rename from documentation/packages/openverse_attribution/index.md
rename to documentation/packages/python/openverse_attribution/index.md
diff --git a/frontend/package.json b/frontend/package.json
index 8d89e45f6..ee242cba6 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -92,7 +92,6 @@
"@playwright/test": "1.46.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/vue": "^8.1.0",
- "@types/node": "^20.14.11",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.5",
"@vue/test-utils": "^2.4.6",
diff --git a/justfile b/justfile
index b93edf8ab..67fb8912c 100644
--- a/justfile
+++ b/justfile
@@ -49,6 +49,7 @@ DC_USER := env_var_or_default("DC_USER", "opener")
# Install Node.js dependencies for the entire monorepo
node-install:
pnpm i
+ pnpm --filter './packages/js/*' run build
pnpm prepare:nuxt
just frontend/run i18n:en
@@ -353,3 +354,14 @@ f:
# alias for `pnpm --filter {package} run {script}`
p package script +args="":
pnpm --filter {{ package }} run {{ script }} {{ args }}
+
+# Run eslint with --fix and default file selection enabled; used to enable easy file overriding whilst retaining the defaults when running --all-files
+eslint *files="frontend automations/js packages/js .pnpmfile.cjs .eslintrc.js prettier.config.js tsconfig.base.json":
+ just p '@openverse/eslint-plugin' run build
+ pnpm exec eslint \
+ --ext .js,.ts,.vue,.json,.json5 \
+ --ignore-path .gitignore \
+ --ignore-path .eslintignore \
+ --max-warnings=0 \
+ --fix \
+ {{ files }}
diff --git a/package.json b/package.json
index 5b0418f17..84c577221 100644
--- a/package.json
+++ b/package.json
@@ -9,18 +9,16 @@
},
"author": "Openverse <[email protected]>",
"scripts": {
- "postinstall": "pnpm --filter './packages/js/*' run build",
- "prepare:nuxt": "pnpm --filter frontend run prepare:nuxt",
- "preeslint": "pnpm --filter '@openverse/eslint-plugin' run build",
- "eslint": "eslint --ext .js,.ts,.vue,.json,.json5 --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 frontend automations/js packages/js .pnpmfile.cjs .eslintrc.js prettier.config.js tsconfig.base.json"
+ "prepare:nuxt": "pnpm --filter frontend run prepare:nuxt"
},
"packageManager": "[email protected]",
"engines": {
"node": ">= 20.0.0 <21"
},
"devDependencies": {
+ "@types/node": "22.5.1",
"@openverse/eslint-plugin": "workspace:*",
- "bindings": "^1.5.0",
+ "bindings": "1.5.0",
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "0.6.6",
"typescript": "5.5.4",
diff --git a/packages/js/api-client/.gitignore b/packages/js/api-client/.gitignore
new file mode 100644
index 000000000..cd464261e
--- /dev/null
+++ b/packages/js/api-client/.gitignore
@@ -0,0 +1 @@
+openverse-api-client-*.tgz
diff --git a/packages/js/api-client/.npmignore b/packages/js/api-client/.npmignore
new file mode 100644
index 000000000..7ddd61336
--- /dev/null
+++ b/packages/js/api-client/.npmignore
@@ -0,0 +1,6 @@
+*
+!package.json
+!src/*
+!dist/*
+!README.md
+!LICENSE
diff --git a/packages/js/api-client/README.md b/packages/js/api-client/README.md
new file mode 100644
index 000000000..469f94a3f
--- /dev/null
+++ b/packages/js/api-client/README.md
@@ -0,0 +1,8 @@
+# `@openverse/api-client`
+
+Thoroughly typed JavaScript client for the Openverse API.
+
+[![Repository](https://img.shields.io/badge/GitHub-@openverse%2Fapi--client-purple?logo=github)](https://github.com/WordPress/openverse/tree/HEAD/packages/js/api-client)
+[![NPM Version](https://img.shields.io/npm/v/%40openverse%2Fapi-client)](https://www.npmjs.com/package/@openverse/api-client)
+
+Documentation: <https://docs.openverse.org/packages/js/api_client/index.html>
diff --git a/packages/js/api-client/bin/generate.mjs b/packages/js/api-client/bin/generate.mjs
new file mode 100644
index 000000000..b6e634503
--- /dev/null
+++ b/packages/js/api-client/bin/generate.mjs
@@ -0,0 +1,57 @@
+import fs from "node:fs"
+import path from "node:path"
+
+import openapiTS, { astToString } from "openapi-typescript"
+
+import * as prettier from "prettier"
+import { ESLint } from "eslint"
+
+const ast = await openapiTS(new URL("https://api.openverse.org/v1/schema/"))
+const cleanedContents = astToString(ast)
+ // This tag doesn't exist in TSDoc
+ .replace(/@description/g, "")
+ // Escape `>`
+ .replace(/ > /g, " \\> ")
+ // Rewrite double back-tick to single back-tick
+ .replace(/``/g, "`")
+ // The `@enum` tag does not exist in TSDoc
+ .replace(/@enum \{string\}/g, "")
+ // Some of the replacements above result in empty comments, which can be removed
+ .replace(/(?<=\n\s*)\/\*\*[*\s]+?\*\/\n/g, "")
+ // Escape curly braces that aren't the start of TSDoc tags to avoid parser confusion
+ .replace(/\*.+?[{}]\n/g, (substring) =>
+ substring.replace(/\{/, "\\{").replace(/\}/, "\\}")
+ )
+
+const prettierConfig = await prettier.resolveConfig(import.meta.url)
+
+if (!prettierConfig) {
+ throw new Error(
+ "Unable to resolve Prettier configuration location for `@openverse/api-client` type generation.",
+ import.meta.url
+ )
+}
+
+const formattedContents = await prettier.format(cleanedContents, {
+ ...prettierConfig,
+ parser: "typescript",
+})
+
+const eslint = new ESLint({ fix: true })
+
+// Supply a filePath so ESLint can guess which linters to apply
+const [{ output }] = await eslint.lintText(formattedContents, {
+ filePath: "openverse.d.ts",
+})
+
+// output is only defined if changes were made
+const lintedContents = output || formattedContents
+
+const out = path.resolve(
+ import.meta.dirname,
+ "..",
+ "src",
+ "generated",
+ "openverse.ts"
+)
+fs.writeFileSync(out, lintedContents)
diff --git a/packages/js/api-client/package.json b/packages/js/api-client/package.json
new file mode 100644
index 000000000..318bc9896
--- /dev/null
+++ b/packages/js/api-client/package.json
@@ -0,0 +1,54 @@
+{
+ "name": "@openverse/api-client",
+ "version": "0.0.1-a2",
+ "description": "API client for the Openverse REST API",
+ "main": "dist/cjs/index.js",
+ "module": "dist/esm/index.js",
+ "types": "dist/cjs/index.d.ts",
+ "sideEffects": false,
+ "type": "module",
+ "exports": {
+ "import": {
+ "default": "./dist/esm/index.js",
+ "types": "./dist/esm/index.d.ts"
+ },
+ "require": {
+ "default": "./dist/cjs/index.js",
+ "types": "./dist/cjs/index.d.ts"
+ }
+ },
+ "scripts": {
+ "build": "rm -rf dist && mkdir dist && pnpm run build:rollup && pnpm pack && pnpm publish --dry-run --no-git-checks",
+ "build:rollup": "rollup --config rollup.config.ts --configPlugin typescript",
+ "types": "tsc -p . --noEmit",
+ "test:unit": "vitest run",
+ "generate": "node ./bin/generate.mjs"
+ },
+ "keywords": [
+ "openverse",
+ "creative commons"
+ ],
+ "homepage": "https://docs.openverse.org/packages/js/api_client/index.html",
+ "bugs": {
+ "url": "https://github.com/WordPress/openverse/issues"
+ },
+ "author": "Openverse Contributors <[email protected]>",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/WordPress/openverse",
+ "directory": "packages/js/openverse-api-client"
+ },
+ "license": "MIT",
+ "devDependencies": {
+ "@rollup/plugin-typescript": "^11.1.6",
+ "nock": "14.0.0-beta.11",
+ "openapi-typescript": "^7.3.2",
+ "rollup": "^4.21.1",
+ "typescript": "^5.5.4",
+ "vite-tsconfig-paths": "^5.0.1",
+ "vitest": "^2.0.5"
+ },
+ "dependencies": {
+ "openapi-fetch": "^0.11.2"
+ }
+}
diff --git a/packages/js/api-client/rollup.config.ts b/packages/js/api-client/rollup.config.ts
new file mode 100644
index 000000000..329aa9d5b
--- /dev/null
+++ b/packages/js/api-client/rollup.config.ts
@@ -0,0 +1,26 @@
+import { defineConfig } from "rollup"
+
+import typescript from "@rollup/plugin-typescript"
+
+export default defineConfig(
+ (["esm", "cjs"] as const).map((format) => ({
+ input: "src/index.ts",
+ external: ["openapi-fetch"],
+ output: {
+ format: format,
+ dir: `dist/${format}`,
+ preserveModules: true,
+ preserveModulesRoot: "src",
+ },
+ plugins: [
+ typescript({
+ outDir: `dist/${format}`,
+ tsconfig: "tsconfig.prod.json",
+ noEmitOnError: true,
+ declarationDir: `dist/${format}`,
+ declaration: true,
+ declarationMap: true,
+ }),
+ ],
+ }))
+)
diff --git a/packages/js/api-client/src/auth.ts b/packages/js/api-client/src/auth.ts
new file mode 100644
index 000000000..cadb3da51
--- /dev/null
+++ b/packages/js/api-client/src/auth.ts
@@ -0,0 +1,187 @@
+import type { Middleware } from "openapi-fetch"
+
+import type { components } from "./generated/openverse"
+
+import type { OpenverseClient, ClientCredentials } from "./types"
+
+type OAuth2Token = components["schemas"]["OAuth2Token"]
+
+/**
+ * Get the timestamp as the number of seconds from the UNIX epoch.
+ * @returns the UNIX timestamp with a resolution of one second
+ */
+const currTimestamp = (): number => Math.floor(Date.now() / 1e3)
+export const EXPIRY_THRESHOLD = 5 // seconds
+
+export class OpenverseAuthMiddleware implements Middleware {
+ /**
+ * An Openverse REST API client.
+ *
+ * Used to perform the authentication workflow.
+ */
+ client: OpenverseClient
+
+ /**
+ * Credentials for the Openverse API.
+ */
+ credentials: ClientCredentials
+
+ /**
+ * The most recently retrieved API token.
+ */
+ apiToken: OAuth2Token | null = null
+
+ /**
+ * Represents the requesting state of the auth middleware.
+ *
+ * When `null`, no request is underway. When it is a Promise,
+ * the Promise will resolve with `true` once the API token is available,
+ * or `false` if an error occurs.
+ *
+ * If the token request fails, it will throw.
+ *
+ * This is immediately set back to `null` once the request cycle is complete.
+ */
+ requesting: null | Promise<boolean> = null
+
+ /**
+ * The most recent API token request failure, if any.
+ */
+ failure = null as unknown
+
+ /**
+ * The UNIX timestamp at which the current token will expire.
+ */
+ tokenExpiry: number | null = null
+
+ constructor(client: OpenverseClient, credentials: ClientCredentials) {
+ this.client = client
+ this.credentials = credentials
+ }
+
+ onRequest: Middleware["onRequest"] = async ({ schemaPath, request }) => {
+ if (schemaPath == "/v1/auth_tokens/token/") {
+ // Do not send auth headers for token generation requests
+ return request
+ }
+
+ const apiToken = await this.getApiToken()
+ request.headers.set("Authorization", `Bearer ${apiToken}`)
+ return request
+ }
+
+ /**
+ * Determine if the current state of the client requires waiting for
+ * a token refresh to complete. This is distinct from whether
+ * the client should trigger a token refresh, because if an API token
+ * already exists, the refresh is eagerly requested before the current
+ * token expires. That means that if the request triggering the token refresh
+ * happens within the expiry threshold (see `expiryThreshold`), it
+ * can proceed with the existing token, as it is still valid.
+ *
+ * However, if the token is expired (or no token yet exists), the request
+ * must be held until the client has an API token.
+ *
+ * This is only relevant to clients configured with credentials. Non-credentialed
+ * clients bypass this process altogether.
+ *
+ * @returns Whether the client should wait.
+ */
+ private mustAwaitTokenRefresh = () =>
+ !(this.apiToken && this.tokenExpiry) || this.tokenExpiry <= currTimestamp()
+
+ /**
+ * Determine if the client requires a new API token, whether due to
+ * the lack of a token altogether or due to the existing token's
+ * pending expiration.
+ *
+ * Furthermore, prevent further API token requests if a previous API token
+ * request failed.
+ *
+ * TODO: is that safe?
+ *
+ * Refer to the documentation on `mustAwaitTokenRefresh` for further details.
+ *
+ * @returns Whether the client should trigger a token refresh.
+ */
+ private shouldTriggerTokenRefresh = () =>
+ !(this.failure || this.requesting) &&
+ (!(this.apiToken && this.tokenExpiry) ||
+ this.tokenExpiry - EXPIRY_THRESHOLD < currTimestamp())
+
+ /**
+ * Refresh the API token used by credentialed clients.
+ *
+ * In regular usage, it is not necessary to call this function, as
+ * `request` handles this for you automatically.
+ *
+ * The function is exposed primarily to make debugging the authentication
+ * flow easier during development of applications using the API client.
+ */
+ refreshAuthentication() {
+ this.requesting = new Promise((resolve) => {
+ this.client
+ .POST("/v1/auth_tokens/token/", {
+ body: {
+ grant_type: "client_credentials",
+ client_id: this.credentials.clientId,
+ client_secret: this.credentials.clientSecret,
+ },
+ })
+ .then((tokenResponse) => {
+ if (!tokenResponse.response.ok || !tokenResponse.data) {
+ throw tokenResponse
+ }
+
+ this.tokenExpiry = currTimestamp() + tokenResponse.data.expires_in
+
+ this.apiToken = tokenResponse.data
+
+ // Clear any previous failures, given this request succeeded
+ this.failure = null
+ resolve(true)
+ })
+ .catch((e) => {
+ console.error("[openverse-api-client]: Token refresh failed!", e)
+ this.failure = e
+ resolve(false)
+ })
+ })
+
+ this.requesting.finally(() => {
+ this.requesting = null
+ })
+
+ return this.requesting
+ }
+
+ /**
+ * Retrieve the Openverse API token for the configured credentials.
+ *
+ * If necessary (due to non-existence, expiration, or pending expiration),
+ * and if not already underway, trigger the retrieval of a new API token.
+ * If there is no current usable API token, then wait for the in progress
+ * API token request to resolve.
+ *
+ * @returns Openverse API token
+ */
+ async getApiToken(): Promise<string> {
+ if (this.shouldTriggerTokenRefresh()) {
+ this.refreshAuthentication()
+ }
+
+ if (this.mustAwaitTokenRefresh()) {
+ await this.requesting
+ }
+
+ if (!this.apiToken || this.failure) {
+ const error = new Error(
+ "Failed to retrieve Openverse API token for credentialed client. Check logs or `cause` for details."
+ )
+ error.cause = this.failure
+ throw error
+ }
+
+ return this.apiToken.access_token
+ }
+}
diff --git a/packages/js/api-client/src/client.ts b/packages/js/api-client/src/client.ts
new file mode 100644
index 000000000..5d161b01f
--- /dev/null
+++ b/packages/js/api-client/src/client.ts
@@ -0,0 +1,36 @@
+import _createClient, {
+ type ClientOptions as _ClientOptions,
+} from "openapi-fetch"
+
+import { paths } from "./generated/openverse"
+
+import { OpenverseAuthMiddleware } from "./auth"
+
+import type { ClientCredentials, OpenverseClient } from "./types"
+
+export interface ClientOptions
+ extends Partial<Pick<_ClientOptions, "baseUrl" | "fetch" | "headers">> {
+ credentials?: ClientCredentials
+}
+
+export const createClient = ({
+ baseUrl = "https://api.openverse.org/",
+ credentials,
+ ...options
+}: ClientOptions = {}): OpenverseClient => {
+ options.headers = new Headers(
+ (options.headers as Record<string, string>) ?? {}
+ )
+ if (!options.headers.has("user-agent")) {
+ options.headers.set(
+ "user-agent",
+ `OpenverseAPIClient; https://docs.openverse.org/packages/js/api_client/index.html`
+ )
+ }
+
+ const client = _createClient<paths>({ baseUrl, ...options })
+ if (credentials) {
+ client.use(new OpenverseAuthMiddleware(client, credentials))
+ }
+ return client
+}
diff --git a/packages/js/api-client/src/generated/openverse.ts b/packages/js/api-client/src/generated/openverse.ts
new file mode 100644
index 000000000..7f3e99c97
--- /dev/null
+++ b/packages/js/api-client/src/generated/openverse.ts
@@ -0,0 +1,1967 @@
+export interface paths {
+ "/v1/audio/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Return audio files that match the query.
+ *
+ * This endpoint allows you to search within specific fields, or to retrieve
+ * a collection of all audio files from a specific source, creator or tag.
+ * Results are paginated on the basis of the `page` parameter. The `page_size`
+ * parameter controls the total number of pages.
+ *
+ * Although there may be millions of relevant records, only the most relevant
+ * or the most recent several thousand records can be viewed. This is by design:
+ * the search endpoint should be used to find the top 10,000 most relevant
+ * results, not for exhaustive search or bulk download of every barely relevant
+ * result. As such, the caller should not try to access pages beyond `page_count`,
+ * or else the server will reject the query.
+ *
+ * ### Default search
+ * The **default search** allows users to find media based on a query string.
+ * It supports a wide range of optional filters to narrow down search results
+ * according to specific needs.
+ *
+ * By default, this endpoint performs a full-text search for the value of `q` parameter.
+ * You can search within the `creator`, `title` or `tags` fields by omitting
+ * the `q` parameter and using one of these field parameters.
+ * These results can be filtered by `source`, `excluded_source`, `license`, `license_type`, `creator`, `tags`, `title`, `filter_dead`, `extension`, `mature`, `unstable__include_sensitive_results`, `category` and `length`.
+ *
+ * The default search results are sorted by relevance.
+ *
+ * ### Collection search
+ * The collection search allows to retrieve a collection of media from a specific source,
+ * creator or tag. The `unstable__collection` parameter is used to specify the type of collection to retrieve.
+ *
+ * - `unstable__collection=tag&unstable__tag=tagName` will return the media with tag `tagName`.
+ * - `unstable__collection=source&source=sourceName` will return the media from source `sourceName`.
+ * - `unstable__collection=creator&creator=creatorName&source=sourceName` will return the media by creator `creatorName` at `sourceName`.
+ *
+ * Collection results are sorted by the time they were added to Openverse, with the most recent
+ * additions appearing first. The filters such as `license` are not available for collections.
+ * */
+ get: operations["audio_search"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/{identifier}/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get the details of a specified audio track.
+ *
+ * By using this endpoint, you can obtain info about audio files such as
+ * `id`, `title`, `indexed_on`, `foreign_landing_url`, `url`, `creator`, `creator_url`, `license`, `license_version`, `license_url`, `provider`, `source`, `category`, `genres`, `filesize`, `filetype`, `tags`, `alt_files`, `attribution`, `fields_matched`, `mature`, `audio_set`, `duration`, `bit_rate`, `sample_rate`, `thumbnail`, `detail_url`, `related_url`, `waveform`, `peaks` and `unstable__sensitivity` */
+ get: operations["audio_detail"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/{identifier}/related/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get related audio files for a specified audio track.
+ *
+ * By using this endpoint, you can get the details of related audio such as
+ * `id`, `title`, `indexed_on`, `foreign_landing_url`, `url`, `creator`, `creator_url`, `license`, `license_version`, `license_url`, `provider`, `source`, `category`, `genres`, `filesize`, `filetype`, `tags`, `alt_files`, `attribution`, `fields_matched`, `mature`, `audio_set`, `duration`, `bit_rate`, `sample_rate`, `thumbnail`, `detail_url`, `related_url`, `waveform`, `peaks` and `unstable__sensitivity`. */
+ get: operations["audio_related"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/{identifier}/report/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Report an issue about a specified audio track to Openverse.
+ *
+ * By using this endpoint, you can report an audio track if it infringes
+ * copyright, contains mature or sensitive content or some other reason. */
+ post: operations["audio_report"]
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/{identifier}/thumb/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Retrieve the scaled down and compressed thumbnail of the artwork of an
+ * audio track or its audio set. */
+ get: operations["audio_thumb"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/{identifier}/waveform/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Get the waveform peaks for an audio track.
+ *
+ * The peaks are provided as a list of numbers, each of these numbers being
+ * a fraction between 0 and 1. The list contains approximately 1000 numbers,
+ * although it can be slightly higher or lower, depending on the track's length. */
+ get: operations["audio_waveform"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/audio/stats/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get a list of all content sources and their respective number of
+ * audio files in the Openverse catalog.
+ *
+ * By using this endpoint, you can obtain info about content sources such
+ * as `source_name`, `display_name`, `source_url`, `logo_url` and `media_count`. */
+ get: operations["audio_stats"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/auth_tokens/register/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Register an application to access to API via OAuth2.
+ *
+ * Upon registering, you will receive a `client_id` and `client_secret`,
+ * which you can then use to authenticate using the standard OAuth2 flow.
+ *
+ * \> ⚠️ **WARNINGS:**
+ * \> - Store your `client_id` and `client_secret` because you will not be
+ * \> able to retrieve them later.
+ * \> - You must keep `client_secret` confidential, as anybody with your
+ * \> `client_secret` can impersonate your application.
+ *
+ * You must verify your email address by click the link sent to you in an
+ * email. Until you do that, the application will be subject to the same
+ * rate limits as an anonymous user. */
+ post: operations["register"]
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/auth_tokens/token/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Get an access token using client credentials.
+ *
+ * To authenticate your requests to the Openverse API, you need to provide
+ * an access token as a bearer token in the `Authorization` header of your
+ * requests. This endpoint takes your client ID and secret, and issues an
+ * access token.
+ *
+ * \> **NOTE:** This endpoint only accepts data as
+ * \> `application/x-www-form-urlencoded`. Any other encoding will not work.
+ *
+ * Once your access token expires, you can request another one from this
+ * endpoint. */
+ post: operations["token"]
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Return images that match the query.
+ *
+ * This endpoint allows you to search within specific fields, or to retrieve
+ * a collection of all images from a specific source, creator or tag.
+ * Results are paginated on the basis of the `page` parameter. The `page_size`
+ * parameter controls the total number of pages.
+ *
+ * Although there may be millions of relevant records, only the most relevant
+ * or the most recent several thousand records can be viewed. This is by design:
+ * the search endpoint should be used to find the top 10,000 most relevant
+ * results, not for exhaustive search or bulk download of every barely relevant
+ * result. As such, the caller should not try to access pages beyond `page_count`,
+ * or else the server will reject the query.
+ *
+ * ### Default search
+ * The **default search** allows users to find media based on a query string.
+ * It supports a wide range of optional filters to narrow down search results
+ * according to specific needs.
+ *
+ * By default, this endpoint performs a full-text search for the value of `q` parameter.
+ * You can search within the `creator`, `title` or `tags` fields by omitting
+ * the `q` parameter and using one of these field parameters.
+ * These results can be filtered by `source`, `excluded_source`, `license`, `license_type`, `creator`, `tags`, `title`, `filter_dead`, `extension`, `mature`, `unstable__include_sensitive_results`, `category`, `aspect_ratio` and `size`.
+ *
+ * The default search results are sorted by relevance.
+ *
+ * ### Collection search
+ * The collection search allows to retrieve a collection of media from a specific source,
+ * creator or tag. The `unstable__collection` parameter is used to specify the type of collection to retrieve.
+ *
+ * - `unstable__collection=tag&unstable__tag=tagName` will return the media with tag `tagName`.
+ * - `unstable__collection=source&source=sourceName` will return the media from source `sourceName`.
+ * - `unstable__collection=creator&creator=creatorName&source=sourceName` will return the media by creator `creatorName` at `sourceName`.
+ *
+ * Collection results are sorted by the time they were added to Openverse, with the most recent
+ * additions appearing first. The filters such as `license` are not available for collections.
+ * */
+ get: operations["images_search"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/{identifier}/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get the details of a specified image.
+ *
+ * By using this endpoint, you can obtain info about images such as
+ * `id`, `title`, `indexed_on`, `foreign_landing_url`, `url`, `creator`, `creator_url`, `license`, `license_version`, `license_url`, `provider`, `source`, `category`, `filesize`, `filetype`, `tags`, `attribution`, `fields_matched`, `mature`, `height`, `width`, `thumbnail`, `detail_url`, `related_url` and `unstable__sensitivity` */
+ get: operations["images_detail"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/{identifier}/related/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get related images for a specified image.
+ *
+ * By using this endpoint, you can get the details of related images such as
+ * `id`, `title`, `indexed_on`, `foreign_landing_url`, `url`, `creator`, `creator_url`, `license`, `license_version`, `license_url`, `provider`, `source`, `category`, `filesize`, `filetype`, `tags`, `attribution`, `fields_matched`, `mature`, `height`, `width`, `thumbnail`, `detail_url`, `related_url` and `unstable__sensitivity`. */
+ get: operations["images_related"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/{identifier}/report/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Report an issue about a specified image to Openverse.
+ *
+ * By using this endpoint, you can report an image if it infringes
+ * copyright, contains mature or sensitive content or some other reason. */
+ post: operations["images_report"]
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/{identifier}/thumb/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Retrieve the scaled down and compressed thumbnail of the image. */
+ get: operations["images_thumb"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/{identifier}/watermark/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * @deprecated
+ * Note that this endpoint is deprecated.
+ *
+ * ---
+ *
+ * 🚧 **TODO:** Document this.
+ */
+ get: operations["images_watermark"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/oembed/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Retrieve the structured data for a specified image URL as per the
+ * [oEmbed spec](https://oembed.com/).
+ *
+ * This info can be used to embed the image on the consumer's website. Only
+ * JSON format is supported. */
+ get: operations["images_oembed"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/images/stats/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /**
+ * Get a list of all content sources and their respective number of
+ * images in the Openverse catalog.
+ *
+ * By using this endpoint, you can obtain info about content sources such
+ * as `source_name`, `display_name`, `source_url`, `logo_url` and `media_count`. */
+ get: operations["images_stats"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ "/v1/rate_limit/": {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Get information about your API key.
+ *
+ * You can use this endpoint to get information about your API key such as
+ * `requests_this_minute`, `requests_today`, and `rate_limit_model`.
+ *
+ * \> ℹ️ **NOTE:** If you get a 401 Unauthorized, it means your token is invalid
+ * \> (malformed, non-existent, or expired). */
+ get: operations["key_info"]
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+}
+export type webhooks = Record<string, never>
+export interface components {
+ schemas: {
+ /** APIException */
+ APIException: {
+ /** A description of what went wrong. */
+ detail?: string
+ }
+ /** A single audio file. Used in search results. */
+ Audio: {
+ /** Our unique identifier for an open-licensed work. */
+ id: string
+ /** The name of the media. */
+ title?: string | null
+ /**
+ * Format: date-time
+ * The timestamp of when the media was indexed by Openverse.
+ */
+ indexed_on: string
+ /** The landing page of the work. */
+ foreign_landing_url?: string | null
+ /** The actual URL to the media file. */
+ url?: string | null
+ /** The name of the media creator. */
+ creator?: string | null
+ /** A direct link to the media creator. */
+ creator_url?: string | null
+ /** The name of license for the media. */
+ license: string
+ /** The version of the media license. */
+ license_version?: string | null
+ /** A direct link to the license deed or legal terms. */
+ readonly license_url: string | null
+ /** The content provider, e.g. Flickr, Jamendo... */
+ provider?: string | null
+ /** The source of the data, meaning a particular dataset. Source and provider can be different. Eg: the Google Open Images dataset is source=openimages, but provider=flickr. */
+ source?: string | null
+ /** The top-level classification of this media file. */
+ category?: string | null
+ /** An array of audio genres such as `rock`, `electronic` for `music` category, or `politics`, `sport`, `education` for `podcast` category */
+ genres?: string[] | null
+ /** Number in bytes, e.g. 1024. */
+ filesize?: number | null
+ /** The type of the file, related to the file extension. */
+ filetype?: string | null
+ /** Tags with detailed metadata, such as accuracy. */
+ tags: components["schemas"]["Tag"][] | null
+ /** JSON describing alternative files for this audio. */
+ readonly alt_files: components["schemas"]["AudioAltFile"][] | null
+ /** Legally valid attribution for the media item in plain-text English. */
+ readonly attribution: string | null
+ /** List the fields that matched the query for this result. */
+ fields_matched: unknown[] | null
+ /** Whether the media item is marked as mature */
+ mature: boolean
+ /** Reference to set of which this track is a part. */
+ readonly audio_set: components["schemas"]["AudioSet"] | null
+ /** The time length of the audio file in milliseconds. */
+ duration?: number | null
+ /** Number in bits per second, eg. 128000. */
+ bit_rate?: number | null
+ /** Number in hertz, eg. 44100. */
+ sample_rate?: number | null
+ /**
+ * Format: uri
+ * A direct link to the miniature artwork.
+ */
+ readonly thumbnail: string | null
+ /**
+ * Format: uri
+ * A direct link to the detail view of this audio file.
+ */
+ readonly detail_url: string
+ /**
+ * Format: uri
+ * A link to an endpoint that provides similar audio files.
+ */
+ readonly related_url: string
+ /**
+ * Format: uri
+ * A direct link to the waveform peaks.
+ */
+ readonly waveform: string
+ }
+ /** A set of alternative files for a single audio object,
+ * rendered as a part of the `AudioSerializer` output. */
+ AudioAltFile: {
+ /**
+ * Format: uri
+ * URL of the alternative file.
+ */
+ url: string
+ /** Bit rate of the alternative file. */
+ bit_rate?: number
+ /** Size of the alternative file in bytes. */
+ filesize?: number
+ /** File type of the alternative file. */
+ filetype: string
+ /** Sample rate of the alternative file. */
+ sample_rate?: number
+ }
+ AudioReportRequest: {
+ /**
+ * Format: uuid
+ * Our unique identifier for an open-licensed work.
+ */
+ identifier: string
+ /** The reason to report media to Openverse.
+ *
+ * * `mature` - mature
+ * * `dmca` - dmca
+ * * `other` - other */
+ reason: components["schemas"]["ReasonEnum"]
+ /** The explanation on why media is being reported. */
+ description?: string | null
+ }
+ /** An audio set, rendered as a part of the `AudioSerializer` output. */
+ AudioSet: {
+ /** The name of the media. */
+ title?: string | null
+ /** The landing page of the work. */
+ foreign_landing_url?: string | null
+ /** The name of the media creator. */
+ creator?: string | null
+ /** A direct link to the media creator. */
+ creator_url?: string | null
+ /** The actual URL to the media file. */
+ url?: string | null
+ /** Number in bytes, e.g. 1024. */
+ filesize?: number | null
+ /** The type of the file, related to the file extension. */
+ filetype?: string | null
+ }
+ AudioWaveform: {
+ readonly len: number
+ points: number[]
+ }
+ /** AuthenticationFailed */
+ AuthenticationFailed: {
+ /** A description of what went wrong. */
+ detail?: string
+ }
+ /**
+ * * `client_credentials` - client_credentials
+ *
+ */
+ GrantTypeEnum: "client_credentials"
+ /** A single image. Used in search results. */
+ Image: {
+ /** Our unique identifier for an open-licensed work. */
+ id: string
+ /** The name of the media. */
+ title?: string | null
+ /**
+ * Format: date-time
+ * The timestamp of when the media was indexed by Openverse.
+ */
+ indexed_on: string
+ /** The landing page of the work. */
+ foreign_landing_url?: string | null
+ /** The actual URL to the media file. */
+ url?: string | null
+ /** The name of the media creator. */
+ creator?: string | null
+ /** A direct link to the media creator. */
+ creator_url?: string | null
+ /** The name of license for the media. */
+ license: string
+ /** The version of the media license. */
+ license_version?: string | null
+ /** A direct link to the license deed or legal terms. */
+ readonly license_url: string | null
+ /** The content provider, e.g. Flickr, Jamendo... */
+ provider?: string | null
+ /** The source of the data, meaning a particular dataset. Source and provider can be different. Eg: the Google Open Images dataset is source=openimages, but provider=flickr. */
+ source?: string | null
+ /** The top-level classification of this media file. */
+ category?: string | null
+ /** Number in bytes, e.g. 1024. */
+ filesize?: number | null
+ /** The type of the file, related to the file extension. */
+ filetype?: string | null
+ /** Tags with detailed metadata, such as accuracy. */
+ tags: components["schemas"]["Tag"][] | null
+ /** Legally valid attribution for the media item in plain-text English. */
+ readonly attribution: string | null
+ /** List the fields that matched the query for this result. */
+ fields_matched: unknown[] | null
+ /** Whether the media item is marked as mature */
+ mature: boolean
+ /** The height of the image in pixels. Not always available. */
+ height?: number | null
+ /** The width of the image in pixels. Not always available. */
+ width?: number | null
+ /**
+ * Format: uri
+ * A direct link to the miniature artwork.
+ */
+ readonly thumbnail: string
+ /**
+ * Format: uri
+ * A direct link to the detail view of this audio file.
+ */
+ readonly detail_url: string
+ /**
+ * Format: uri
+ * A link to an endpoint that provides similar audio files.
+ */
+ readonly related_url: string
+ }
+ ImageReportRequest: {
+ /**
+ * Format: uuid
+ * Our unique identifier for an open-licensed work.
+ */
+ identifier: string
+ /** The reason to report media to Openverse.
+ *
+ * * `mature` - mature
+ * * `dmca` - dmca
+ * * `other` - other */
+ reason: components["schemas"]["ReasonEnum"]
+ /** The explanation on why media is being reported. */
+ description?: string | null
+ }
+ /** NotAuthenticated */
+ NotAuthenticated: {
+ /** A description of what went wrong. */
+ detail?: string
+ }
+ /** NotFound */
+ NotFound: {
+ /** A description of what went wrong. */
+ detail?: string
+ }
+ OAuth2Application: {
+ /** The unique, public identifier of your application. */
+ client_id: string
+ /** The secret key used to authenticate your application. */
+ client_secret: string
+ /** The name of your application or project. */
+ name: string
+ /** Some additional information about the application. */
+ msg: string
+ }
+ OAuth2KeyInfo: {
+ /** The number of requests your key has performed in the last minute. */
+ requests_this_minute: number | null
+ /** The number of requests your key has performed in the last day. */
+ requests_today: number | null
+ /** The type of rate limit applied to your key. Can be 'standard' or 'enhanced'; enhanced users enjoy higher rate limits than their standard key counterparts. Contact Openverse if you need a higher rate limit. */
+ rate_limit_model: string
+ /** Whether the application has verified the submitted email address. */
+ verified: boolean
+ }
+ OAuth2Registration: {
+ /** A unique human-readable name for your application or project requiring access to the Openverse API. */
+ name: string
+ /** A description of what you are trying to achieve with your project using the API. Please provide as much detail as possible! */
+ description: string
+ /**
+ * Format: email
+ * A valid email that we can reach you at if we have any questions about your use case or data consumption.
+ */
+ email: string
+ }
+ /** Serializes the response for an access token.
+ *
+ * This is a dummy serializer for OpenAPI and is not actually used. */
+ OAuth2Token: {
+ /** The access token that can be used to authenticate requests. */
+ access_token: string
+ /** The type of token. This will always be 'Bearer'. */
+ token_type: string
+ /** The number of seconds until the token expires. */
+ expires_in: number
+ /** The scope of the token. */
+ scope: string
+ }
+ /** Serializes a request for an access token.
+ *
+ * This is a dummy serializer for OpenAPI and is not actually used. */
+ OAuth2TokenRequest: {
+ /** The unique, public identifier of your application. */
+ client_id: string
+ /** The secret key used to authenticate your application. */
+ client_secret: string
+ grant_type: components["schemas"]["GrantTypeEnum"]
+ }
+ /** The embedded content from a specified image URL.
+ *
+ * This is essentially an `ImageSerializer` with some changes to match the oEmbed
+ * spec: https://oembed.com. */
+ Oembed: {
+ /** The oEmbed version number, always set to 1.0. */
+ readonly version: components["schemas"]["VersionEnum"]
+ /** The resource type, always set to 'photo' for images. */
+ readonly type: components["schemas"]["TypeEnum"]
+ /** The width of the image in pixels. */
+ readonly width: number
+ /** The height of the image in pixels. */
+ readonly height: number
+ /** The name of the media. */
+ title?: string | null
+ /** The name of the media creator. */
+ author_name: string
+ /**
+ * Format: uri
+ * A direct link to the media creator.
+ */
+ author_url: string
+ /** A direct link to the license deed or legal terms. */
+ readonly license_url: string | null
+ }
+ PaginatedAudioList: {
+ /**
+ * The total number of items returned by search result.
+ * @example 10000
+ */
+ result_count: number
+ /**
+ * The total number of pages returned by search result.
+ * @example 20
+ */
+ page_count: number
+ /**
+ * The number of items per page.
+ * @example 20
+ */
+ page_size: number
+ /**
+ * The current page number returned in the response.
+ * @example 1
+ */
+ page: number
+ results: components["schemas"]["Audio"][]
+ /**
+ * Warnings pertinent to the request. If there are no warnings, this property will not be present on the response. Warnings are non-critical problems with the request. Responses with warnings should be treated as unstable. Warning descriptions must not be treated as machine readable and their schema can change at any time.
+ * @example [
+ * \{
+ * "code": "partially invalid request parameter",
+ * "message": "Some of the request parameters were bad, but we processed the request anywhere. Here's some information that might help you fix the problem for future requests."
+ * \}
+ * ]
+ */
+ warnings?: Record<string, never>[]
+ }
+ PaginatedImageList: {
+ /**
+ * The total number of items returned by search result.
+ * @example 10000
+ */
+ result_count: number
+ /**
+ * The total number of pages returned by search result.
+ * @example 20
+ */
+ page_count: number
+ /**
+ * The number of items per page.
+ * @example 20
+ */
+ page_size: number
+ /**
+ * The current page number returned in the response.
+ * @example 1
+ */
+ page: number
+ results: components["schemas"]["Image"][]
+ /**
+ * Warnings pertinent to the request. If there are no warnings, this property will not be present on the response. Warnings are non-critical problems with the request. Responses with warnings should be treated as unstable. Warning descriptions must not be treated as machine readable and their schema can change at any time.
+ * @example [
+ * \{
+ * "code": "partially invalid request parameter",
+ * "message": "Some of the request parameters were bad, but we processed the request anywhere. Here's some information that might help you fix the problem for future requests."
+ * \}
+ * ]
+ */
+ warnings?: Record<string, never>[]
+ }
+ /**
+ * * `mature` - mature
+ * * `dmca` - dmca
+ * * `other` - other
+ *
+ */
+ ReasonEnum: "mature" | "dmca" | "other"
+ Source: {
+ /** The source of the media, e.g. flickr */
+ source_name: string
+ /** The name of content source, e.g. Flickr */
+ display_name: string
+ /**
+ * Format: uri
+ * The URL of the source, e.g. https://www.flickr.com
+ */
+ source_url: string
+ /**
+ * @deprecated
+ * The URL to a logo for the source.
+ */
+ readonly logo_url: string | null
+ /** The number of media items indexed from the source. */
+ readonly media_count: number
+ }
+ /** This output serializer serializes a singular tag. */
+ Tag: {
+ /** The name of a detailed tag. */
+ name: string
+ /**
+ * Format: double
+ * The accuracy of a machine-generated tag. Human-generated tags have a null accuracy field.
+ */
+ accuracy?: number | null
+ /**
+ * provider
+ * The source of the tag. When this field matches the provider for the record, the tag originated from the upstream provider. Otherwise, the tag was added with an external machine-generated labeling processes.
+ */
+ unstable__provider: string | null
+ }
+ TypeEnum: "photo"
+ /** ValidationError */
+ ValidationError: {
+ detail?:
+ | string
+ | {
+ [key: string]: unknown
+ }
+ }
+ VersionEnum: "1.0"
+ }
+ responses: never
+ parameters: never
+ requestBodies: never
+ headers: never
+ pathItems: never
+}
+export type $defs = Record<string, never>
+export interface operations {
+ audio_search: {
+ parameters: {
+ query?: {
+ /** The page of results to retrieve. This parameter is subject to limitations based on authentication and access level. For details, refer to [the authentication documentation](#tag/auth). */
+ page?: number
+ /** Number of results to return per page. This parameter is subject to limitations based on authentication and access level. For details, refer to [the authentication documentation](#tag/auth). */
+ page_size?: number
+ /** A query string that should not exceed 200 characters in length */
+ q?: string
+ /**
+ * For default search, a comma separated list of data sources.
+ * When the `unstable__collection` parameter is used, this parameter only accepts a single source.
+ *
+ * Valid values are `source_name`s from the stats endpoint: https://api.openverse.org/v1/audio/stats/.
+ * */
+ source?: string
+ /**
+ * A comma separated list of data sources to exclude from the search.
+ * Valid values are `source_name`s from the stats endpoint: https://api.openverse.org/v1/audio/stats/.
+ * */
+ excluded_source?: string
+ /** Search by tag only. Cannot be used with `q`. The search is fuzzy, so `tags=cat` will match any value that includes the word `cat`. If the value contains space, items that contain any of the words in the value will match. To search for several values, join them with a comma. */
+ tags?: string
+ /** Search by title only. Cannot be used with `q`. The search is fuzzy, so `title=photo` will match any value that includes the word `photo`. If the value contains space, items that contain any of the words in the value will match. To search for several values, join them with a comma. */
+ title?: string
+ /**
+ * _When `q` parameter is present, `creator` parameter is ignored._
+ *
+ * **Creator collection**
+ * When used with `unstable__collection=creator&source=sourceName`, returns the collection of media
+ * by the specified creator. Notice that a single creator's media items
+ * can be found on several sources, but this collection only returns the
+ * items from the specified source.
+ * This is why for this collection, both the creator and the source
+ * parameters are required, and matched exactly. For a fuzzy creator search,
+ * use the default search without the `unstable__collection` parameter.
+ *
+ * **Creator search**
+ * When used without the `unstable__collection` parameter, will search in the creator field only.
+ * The search is fuzzy, so `creator=john` will match any value that includes the
+ * word `john`. If the value contains space, items that contain any of
+ * the words in the value will match. To search for several values,
+ * join them with a comma.
+ * */
+ creator?: string
+ /**
+ *
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ *
+ * The kind of media collection to return.
+ *
+ * Must be used with `unstable__tag`, `source` or `creator`+`source`
+ *
+ * * `tag` - tag
+ * * `source` - source
+ * * `creator` - creator */
+ unstable__collection?: "tag" | "source" | "creator"
+ /**
+ *
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ *
+ * _Must be used with `unstable__collection=tag`_
+ *
+ * Get the collection of media with a specific tag. Returns the collection of media
+ * that has the specified tag, matching exactly and entirely.
+ *
+ * Differences that will cause tags to not match are:
+ * - upper and lower case letters
+ * - diacritical marks
+ * - hyphenation
+ * - spacing
+ * - multi-word tags where the query is only one of the words in the tag
+ * - multi-word tags where the words are in a different order.
+ *
+ * Examples of tags that **do not** match:
+ * - "Low-Quality" and "low-quality"
+ * - "jalapeño" and "jalapeno"
+ * - "Saint Pierre des Champs" and "Saint-Pierre-des-Champs"
+ * - "dog walking" and "dog walking" (where the latter has two spaces between the
+ * last two words, as in a typographical error)
+ * - "runner" and "marathon runner"
+ * - "exclaiming loudly" and "loudly exclaiming"
+ *
+ * For non-exact or multi-tag matching, using the `tags` query parameter.
+ * */
+ unstable__tag?: string
+ /** A comma separated list of licenses; available licenses include: `by`, `by-nc`, `by-nc-nd`, `by-nc-sa`, `by-nd`, `by-sa`, `cc0`, `nc-sampling+`, `pdm`, and `sampling+`. */
+ license?: string
+ /** A comma separated list of license types; available license types include: `all`, `all-cc`, `commercial`, and `modification`. */
+ license_type?: string
+ /** Control whether 404 links are filtered out. */
+ filter_dead?: boolean
+ /** A comma separated list of desired file extensions. */
+ extension?: string
+ /** Whether to include sensitive content. */
+ mature?: boolean
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The field which should be the basis for sorting results.
+ *
+ * * `relevance` - Relevance
+ * * `indexed_on` - Indexing date */
+ unstable__sort_by?: "relevance" | "indexed_on"
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The direction of sorting. Cannot be applied when sorting by `relevance`.
+ *
+ * * `desc` - Descending
+ * * `asc` - Ascending */
+ unstable__sort_dir?: "desc" | "asc"
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * If enabled, the search will add a boost to results that are from authoritative sources. */
+ unstable__authority?: boolean
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The boost coefficient to apply to authoritative sources, multiplied with the popularity boost. */
+ unstable__authority_boost?: number
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * Whether to include results considered sensitive. */
+ unstable__include_sensitive_results?: boolean
+ /** A comma separated list of categories; available categories include: `audiobook`, `music`, `news`, `podcast`, `pronunciation`, and `sound_effect`. */
+ category?: string
+ /** A comma separated list of lengths; available lengths include: `long`, `medium`, `short`, and `shortest`. */
+ length?: string
+ /** Whether to include the waveform peaks or not */
+ peaks?: boolean
+ }
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["PaginatedAudioList"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotAuthenticated"]
+ }
+ }
+ }
+ }
+ audio_detail: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Audio"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ audio_related: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["PaginatedAudioList"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ audio_report: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["AudioReportRequest"]
+ "application/x-www-form-urlencoded": components["schemas"]["AudioReportRequest"]
+ "multipart/form-data": components["schemas"]["AudioReportRequest"]
+ }
+ }
+ responses: {
+ /** Created */
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AudioReportRequest"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ }
+ }
+ audio_thumb: {
+ parameters: {
+ query?: {
+ /** whether to render the actual image and not a thumbnail version */
+ full_size?: boolean | null
+ /** whether to compress the output image to reduce file size,defaults to opposite of `full_size` */
+ compressed?: boolean | null
+ }
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** Thumbnail image */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ audio_waveform: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AudioWaveform"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ audio_stats: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Source"][]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ }
+ }
+ register: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["OAuth2Registration"]
+ "application/x-www-form-urlencoded": components["schemas"]["OAuth2Registration"]
+ "multipart/form-data": components["schemas"]["OAuth2Registration"]
+ }
+ }
+ responses: {
+ /** Created */
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["OAuth2Application"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": {
+ error?: string
+ }
+ }
+ }
+ /** Too Many Requests */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["APIException"]
+ }
+ }
+ }
+ }
+ token: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ "application/x-www-form-urlencoded": components["schemas"]["OAuth2TokenRequest"]
+ }
+ }
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["OAuth2Token"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["APIException"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotAuthenticated"]
+ }
+ }
+ }
+ }
+ images_search: {
+ parameters: {
+ query?: {
+ /** The page of results to retrieve. This parameter is subject to limitations based on authentication and access level. For details, refer to [the authentication documentation](#tag/auth). */
+ page?: number
+ /** Number of results to return per page. This parameter is subject to limitations based on authentication and access level. For details, refer to [the authentication documentation](#tag/auth). */
+ page_size?: number
+ /** A query string that should not exceed 200 characters in length */
+ q?: string
+ /**
+ * For default search, a comma separated list of data sources.
+ * When the `unstable__collection` parameter is used, this parameter only accepts a single source.
+ *
+ * Valid values are `source_name`s from the stats endpoint: https://api.openverse.org/v1/images/stats/.
+ * */
+ source?: string
+ /**
+ * A comma separated list of data sources to exclude from the search.
+ * Valid values are `source_name`s from the stats endpoint: https://api.openverse.org/v1/images/stats/.
+ * */
+ excluded_source?: string
+ /** Search by tag only. Cannot be used with `q`. The search is fuzzy, so `tags=cat` will match any value that includes the word `cat`. If the value contains space, items that contain any of the words in the value will match. To search for several values, join them with a comma. */
+ tags?: string
+ /** Search by title only. Cannot be used with `q`. The search is fuzzy, so `title=photo` will match any value that includes the word `photo`. If the value contains space, items that contain any of the words in the value will match. To search for several values, join them with a comma. */
+ title?: string
+ /**
+ * _When `q` parameter is present, `creator` parameter is ignored._
+ *
+ * **Creator collection**
+ * When used with `unstable__collection=creator&source=sourceName`, returns the collection of media
+ * by the specified creator. Notice that a single creator's media items
+ * can be found on several sources, but this collection only returns the
+ * items from the specified source.
+ * This is why for this collection, both the creator and the source
+ * parameters are required, and matched exactly. For a fuzzy creator search,
+ * use the default search without the `unstable__collection` parameter.
+ *
+ * **Creator search**
+ * When used without the `unstable__collection` parameter, will search in the creator field only.
+ * The search is fuzzy, so `creator=john` will match any value that includes the
+ * word `john`. If the value contains space, items that contain any of
+ * the words in the value will match. To search for several values,
+ * join them with a comma.
+ * */
+ creator?: string
+ /**
+ *
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ *
+ * The kind of media collection to return.
+ *
+ * Must be used with `unstable__tag`, `source` or `creator`+`source`
+ *
+ * * `tag` - tag
+ * * `source` - source
+ * * `creator` - creator */
+ unstable__collection?: "tag" | "source" | "creator"
+ /**
+ *
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ *
+ * _Must be used with `unstable__collection=tag`_
+ *
+ * Get the collection of media with a specific tag. Returns the collection of media
+ * that has the specified tag, matching exactly and entirely.
+ *
+ * Differences that will cause tags to not match are:
+ * - upper and lower case letters
+ * - diacritical marks
+ * - hyphenation
+ * - spacing
+ * - multi-word tags where the query is only one of the words in the tag
+ * - multi-word tags where the words are in a different order.
+ *
+ * Examples of tags that **do not** match:
+ * - "Low-Quality" and "low-quality"
+ * - "jalapeño" and "jalapeno"
+ * - "Saint Pierre des Champs" and "Saint-Pierre-des-Champs"
+ * - "dog walking" and "dog walking" (where the latter has two spaces between the
+ * last two words, as in a typographical error)
+ * - "runner" and "marathon runner"
+ * - "exclaiming loudly" and "loudly exclaiming"
+ *
+ * For non-exact or multi-tag matching, using the `tags` query parameter.
+ * */
+ unstable__tag?: string
+ /** A comma separated list of licenses; available licenses include: `by`, `by-nc`, `by-nc-nd`, `by-nc-sa`, `by-nd`, `by-sa`, `cc0`, `nc-sampling+`, `pdm`, and `sampling+`. */
+ license?: string
+ /** A comma separated list of license types; available license types include: `all`, `all-cc`, `commercial`, and `modification`. */
+ license_type?: string
+ /** Control whether 404 links are filtered out. */
+ filter_dead?: boolean
+ /** A comma separated list of desired file extensions. */
+ extension?: string
+ /** Whether to include sensitive content. */
+ mature?: boolean
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The field which should be the basis for sorting results.
+ *
+ * * `relevance` - Relevance
+ * * `indexed_on` - Indexing date */
+ unstable__sort_by?: "relevance" | "indexed_on"
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The direction of sorting. Cannot be applied when sorting by `relevance`.
+ *
+ * * `desc` - Descending
+ * * `asc` - Ascending */
+ unstable__sort_dir?: "desc" | "asc"
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * If enabled, the search will add a boost to results that are from authoritative sources. */
+ unstable__authority?: boolean
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * The boost coefficient to apply to authoritative sources, multiplied with the popularity boost. */
+ unstable__authority_boost?: number
+ /**
+ *
+ *
+ * _Caution: Parameters prefixed with `unstable__` are experimental and
+ * may change or be removed without notice in future updates. Use them
+ * with caution as they are not covered by our API versioning policy._
+ *
+ *
+ * Whether to include results considered sensitive. */
+ unstable__include_sensitive_results?: boolean
+ /** A comma separated list of categories; available categories include: `digitized_artwork`, `illustration`, and `photograph`. */
+ category?: string
+ /** A comma separated list of aspect ratios; available aspect ratios include: `square`, `tall`, and `wide`. */
+ aspect_ratio?: string
+ /** A comma separated list of image sizes; available image sizes include: `large`, `medium`, and `small`. */
+ size?: string
+ }
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["PaginatedImageList"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotAuthenticated"]
+ }
+ }
+ }
+ }
+ images_detail: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Image"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ images_related: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Image"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ images_report: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["ImageReportRequest"]
+ "application/x-www-form-urlencoded": components["schemas"]["ImageReportRequest"]
+ "multipart/form-data": components["schemas"]["ImageReportRequest"]
+ }
+ }
+ responses: {
+ /** Created */
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ImageReportRequest"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ }
+ }
+ images_thumb: {
+ parameters: {
+ query?: {
+ /** whether to render the actual image and not a thumbnail version */
+ full_size?: boolean | null
+ /** whether to compress the output image to reduce file size,defaults to opposite of `full_size` */
+ compressed?: boolean | null
+ }
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** Thumbnail image */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ images_watermark: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ identifier: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ images_oembed: {
+ parameters: {
+ query: {
+ /** The link to an image present in Openverse. */
+ url: string
+ }
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Oembed"]
+ }
+ }
+ /** Bad Request */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["ValidationError"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ /** Not Found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotFound"]
+ }
+ }
+ }
+ }
+ images_stats: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["Source"][]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["AuthenticationFailed"]
+ }
+ }
+ }
+ }
+ key_info: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ /** OK */
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["OAuth2KeyInfo"]
+ }
+ }
+ /** Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["NotAuthenticated"]
+ }
+ }
+ /** Too Many Requests */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["APIException"]
+ }
+ }
+ /** Internal Server Error */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ "application/json": components["schemas"]["APIException"]
+ }
+ }
+ }
+ }
+}
diff --git a/packages/js/api-client/src/index.ts b/packages/js/api-client/src/index.ts
new file mode 100644
index 000000000..af3ed99bf
--- /dev/null
+++ b/packages/js/api-client/src/index.ts
@@ -0,0 +1,3 @@
+export { createClient, type ClientOptions } from "./client"
+
+export type * from "./types"
diff --git a/packages/js/api-client/src/types.ts b/packages/js/api-client/src/types.ts
new file mode 100644
index 000000000..397d992e8
--- /dev/null
+++ b/packages/js/api-client/src/types.ts
@@ -0,0 +1,12 @@
+import type { Client } from "openapi-fetch"
+
+import type { paths } from "./generated/openverse"
+
+export type { components, paths } from "./generated/openverse"
+
+export type OpenverseClient = Client<paths>
+
+export interface ClientCredentials {
+ clientId: string
+ clientSecret: string
+}
diff --git a/packages/js/api-client/tests/client.test.ts b/packages/js/api-client/tests/client.test.ts
new file mode 100644
index 000000000..94f294df9
--- /dev/null
+++ b/packages/js/api-client/tests/client.test.ts
@@ -0,0 +1,287 @@
+import fs from "node:fs"
+
+import path from "node:path"
+
+import { describe, test, expect } from "vitest"
+import rootNock from "nock"
+
+const mockThumbnailBuffer = fs.readFileSync(
+ path.resolve(__dirname, "mock-thumbnail.bin")
+)
+
+import { createClient, ClientCredentials } from "@openverse/api-client"
+
+const getClientAndNock = (credentials?: ClientCredentials) => ({
+ client: createClient({
+ baseUrl: "https://nock.local/",
+ credentials,
+ }),
+ nock: rootNock("https://nock.local/"),
+})
+
+describe("OpenverseClient", () => {
+ describe("api token refresh", async () => {
+ test("should automatically refresh api token before sending final request", async () => {
+ const { client, nock } = getClientAndNock({
+ clientId: "test",
+ clientSecret: "test-secret",
+ })
+
+ const scope = nock
+ .post("/v1/auth_tokens/token/", /test-secret/)
+ .reply(200, {
+ access_token: "test-access-token",
+ scope: "test-scope",
+ expires_in: 10,
+ token_type: "test-token-type",
+ })
+ .get("/v1/images/")
+ .matchHeader("Authorization", "Bearer test-access-token")
+ .reply(200, {
+ results: ["this would be an image, under normal circumstances..."],
+ })
+
+ const images = await client.GET("/v1/images/")
+
+ expect(images.error).toBeUndefined()
+
+ expect(images.data?.results[0]).toEqual(
+ "this would be an image, under normal circumstances..."
+ )
+
+ scope.done()
+ })
+
+ test("should not send multiple api token requests if already requesting", async () => {
+ const { client, nock } = getClientAndNock({
+ clientId: "test",
+ clientSecret: "test-secret",
+ })
+
+ const scope = nock
+ .post("/v1/auth_tokens/token/", /test-secret/)
+ .delay(1000)
+ // times=1 enforces that only a single auth token request is ever made, otherwise `nock` would raise an error
+ .times(1)
+ .reply(200, {
+ access_token: "test-access-token",
+ scope: "test-scope",
+ expires_in: 100,
+ token_type: "test-token-type",
+ })
+ .get("/v1/images/")
+ .matchHeader("Authorization", "Bearer test-access-token")
+ .reply(200, {
+ results: ["this would be an image, under normal circumstances..."],
+ })
+ .get("/v1/audio/")
+ .matchHeader("Authorization", "Bearer test-access-token")
+ .reply(200, {
+ results: [
+ "this would be an audio track, under normal circumstances...",
+ ],
+ })
+
+ const [images, audio] = await Promise.all([
+ client.GET("/v1/images/"),
+ client.GET("/v1/audio/"),
+ ])
+
+ // The fact that both requests resolved to successful responses, which were
+ // predicated on the Authorization header's specific value, indicates that they
+ // blocked on the API token retrieval.
+ expect(images.error).toBeUndefined()
+ expect(audio.error).toBeUndefined()
+
+ expect(images.data?.results[0]).toEqual(
+ "this would be an image, under normal circumstances..."
+ )
+ expect(audio.data?.results[0]).toEqual(
+ "this would be an audio track, under normal circumstances..."
+ )
+
+ scope.done()
+ })
+
+ test("api token request failure does not proceed with request", async () => {
+ // Because this is a complex error-handling test, ensure the number of assertions
+ // are stable. This avoids false-positives.
+ // See warning at the end of this section of the vitest docs for more details:
+ // https://vitest.dev/api/expect.html#rejects
+ expect.assertions(3)
+
+ const { client, nock } = getClientAndNock({
+ clientId: "test",
+ clientSecret: "test-secret",
+ })
+
+ const scope = nock
+ .post("/v1/auth_tokens/token/", /test-secret/)
+ .times(1)
+ .reply(401, "Invalid credentials")
+
+ const requestPromise = client.GET("/v1/images/")
+
+ await expect(
+ () => requestPromise
+ ).rejects.toThrowErrorMatchingInlineSnapshot(
+ `[Error: Failed to retrieve Openverse API token for credentialed client. Check logs or \`cause\` for details.]`
+ )
+ expect(await requestPromise.catch((e) => e.cause.error)).toMatch(
+ /invalid credentials/i
+ )
+
+ // use expect instead of scope.done() alias so that expect.assertions tracks this
+ expect(scope.isDone()).toBe(true)
+ })
+
+ test("should send but not await token response if current token still within expiry threshold", async () => {
+ const { client, nock } = getClientAndNock({
+ clientId: "test",
+ clientSecret: "test-secret",
+ })
+
+ const scope = nock
+ .post("/v1/auth_tokens/token/", /test-secret/)
+ .times(1)
+ .reply(200, {
+ access_token: "test-access-token-1",
+ scope: "test-scope",
+ // Expiry threshold is 5 so requests after this come back will need to make a new one
+ expires_in: 2,
+ token_type: "test-token-type",
+ })
+ .get("/v1/images/")
+ .matchHeader("Authorization", "Bearer test-access-token-1")
+ .reply(200, {
+ results: ["this would be an image, under normal circumstances..."],
+ })
+ .get("/v1/audio/")
+ .matchHeader("Authorization", "Bearer test-access-token-1")
+ .reply(200, {
+ results: [
+ "this would be an audio track, under normal circumstances...",
+ ],
+ })
+ .get("/v1/audio/single-audio/")
+ .matchHeader("Authorization", "Bearer test-access-token-1")
+ .reply(200, {
+ id: "single-audio",
+ })
+ .post("/v1/auth_tokens/token/", /test-secret/)
+ .delay(3)
+ .times(1)
+ .reply(200, {
+ access_token: "test-access-token-2",
+ scope: "test-scope",
+ expires_in: 10,
+ token_type: "test-token-type",
+ })
+ .get("/v1/images/single-image/")
+ .matchHeader("Authorization", "Bearer test-access-token-2")
+ .reply(200, {
+ id: "single-image",
+ })
+
+ // The two search requests will match the first access token
+ // Await each so that the audio search definitely happens after the token is available
+ // That confirms that requests inside the expiry threshold queue a token refresh but still use the previous valid token
+ // until the expiry threshold is passed. The single audio request will still match the first token.
+ // Then we need to wait 3 seconds to ensure we're past the expiry of the first token
+ // And the single image request will match the second token, triggered by the audio request
+ const images = await client.GET("/v1/images/")
+ expect(images.error).toBeUndefined()
+ expect(images.data?.results[0]).toEqual(
+ "this would be an image, under normal circumstances..."
+ )
+ const audioTracks = await client.GET("/v1/audio/")
+ expect(audioTracks.error).toBeUndefined()
+ expect(audioTracks.data?.results[0]).toEqual(
+ "this would be an audio track, under normal circumstances..."
+ )
+ const singleAudio = await client.GET("/v1/audio/{identifier}/", {
+ params: { path: { identifier: "single-audio" } },
+ })
+ expect(singleAudio.error).toBeUndefined()
+ expect(singleAudio.data?.id).toEqual("single-audio")
+
+ await new Promise((res) => setTimeout(res, 3000))
+
+ const singleResult = await client.GET("/v1/images/{identifier}/", {
+ params: {
+ path: { identifier: "single-image" },
+ },
+ })
+
+ expect(singleResult.error).toBeUndefined()
+ expect(singleResult.data?.id).toEqual("single-image")
+ scope.done()
+ })
+ })
+
+ test("image stats", async () => {
+ const { client, nock } = getClientAndNock()
+ const scope = nock
+ .get("/v1/images/stats/")
+ .reply(200, [{ source_name: "flickr" }])
+
+ const response = await client.GET("/v1/images/stats/")
+
+ expect(response).toEqual(
+ expect.objectContaining({
+ data: expect.arrayContaining([
+ expect.objectContaining({ source_name: "flickr" }),
+ ]),
+ })
+ )
+ scope.done()
+ })
+
+ test("queried search", async () => {
+ const { client, nock } = getClientAndNock()
+ const scope = nock
+ .get("/v1/images/")
+ .query({
+ q: "dogs",
+ })
+ .reply(200, {
+ results: [
+ {
+ id: "a-dog",
+ },
+ ],
+ })
+ .get("/v1/images/a-dog/thumb/")
+ .reply(200, mockThumbnailBuffer, { "Content-Type": "image/jpeg" })
+
+ const imageSearch = await client.GET("/v1/images/", {
+ params: { query: { q: "dogs" } },
+ })
+
+ expect(imageSearch).toEqual(
+ expect.objectContaining({
+ response: expect.objectContaining({
+ status: 200,
+ }),
+ data: expect.objectContaining({
+ results: expect.arrayContaining([
+ expect.objectContaining({
+ id: "a-dog",
+ }),
+ ]),
+ }),
+ })
+ )
+
+ const identifier = imageSearch.data?.results[0].id as string
+
+ const thumbnail = await client.GET("/v1/images/{identifier}/thumb/", {
+ params: { path: { identifier } },
+ parseAs: "stream",
+ })
+
+ expect(thumbnail.response.status).toEqual(200)
+
+ scope.done()
+ })
+})
diff --git a/packages/js/api-client/tests/mock-thumbnail.bin b/packages/js/api-client/tests/mock-thumbnail.bin
new file mode 100644
index 000000000..c7353842a
Binary files /dev/null and b/packages/js/api-client/tests/mock-thumbnail.bin differ
diff --git a/packages/js/api-client/tsconfig.json b/packages/js/api-client/tsconfig.json
new file mode 100644
index 000000000..2589a1939
--- /dev/null
+++ b/packages/js/api-client/tsconfig.json
@@ -0,0 +1,112 @@
+{
+ "compilerOptions": {
+ /* Visit https://aka.ms/tsconfig to read more about this file */
+
+ /* Projects */
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
+
+ /* Language and Environment */
+ "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
+
+ /* Modules */
+ "module": "ESNext" /* Specify what module code is generated. */,
+ // "rootDir": "", /* Specify the root folder within your source files. */
+ "moduleResolution": "Bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
+ "paths": {
+ "@openverse/api-client": ["./src"]
+ } /* Specify a set of entries that re-map imports to additional lookup locations. */,
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
+ // "resolveJsonModule": true, /* Enable importing .json files. */
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
+
+ /* JavaScript Support */
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
+
+ /* Emit */
+ // "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
+ // "declarationMap": true /* Create sourcemaps for d.ts files. */,
+ // "emitDeclarationOnly": true /* Only output d.ts files and not JavaScript files. */,
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
+ // "outFile": "./dist/index.d.ts" /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */,
+ // "outDir": "./dist" /* Specify an output folder for all emitted files. */,
+ // "removeComments": true, /* Disable emitting comments. */
+ // "noEmit": true, /* Disable emitting files from a compilation. */
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
+ // "declarationDir": "./dist", /* Specify the output directory for generated declaration files. */
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
+
+ /* Interop Constraints */
+ "isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
+
+ /* Type Checking */
+ "strict": true /* Enable all strict type-checking options. */,
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
+
+ /* Completeness */
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
+ },
+ "exclude": ["./dist/**"]
+}
diff --git a/packages/js/api-client/tsconfig.prod.json b/packages/js/api-client/tsconfig.prod.json
new file mode 100644
index 000000000..96f5a4ef7
--- /dev/null
+++ b/packages/js/api-client/tsconfig.prod.json
@@ -0,0 +1,4 @@
+{
+ "extends": "./tsconfig.json",
+ "exclude": ["./tests/**", "./vitest.config.mts", "./rollup.config.ts"]
+}
diff --git a/packages/js/api-client/vitest.config.mjs b/packages/js/api-client/vitest.config.mjs
new file mode 100644
index 000000000..f24dc34b4
--- /dev/null
+++ b/packages/js/api-client/vitest.config.mjs
@@ -0,0 +1,5 @@
+import { defineConfig } from "vitest/config"
+import tsconfigPaths from "vite-tsconfig-paths"
+export default defineConfig({
+ plugins: [tsconfigPaths()],
+})
diff --git a/packages/js/api-client/vitest.config.mts b/packages/js/api-client/vitest.config.mts
new file mode 100644
index 000000000..8f1bf7611
--- /dev/null
+++ b/packages/js/api-client/vitest.config.mts
@@ -0,0 +1,6 @@
+import { defineConfig } from "vitest/config"
+import tsconfigPaths from "vite-tsconfig-paths"
+
+export default defineConfig({
+ plugins: [tsconfigPaths()],
+})
diff --git a/packages/js/eslint-plugin/README.md b/packages/js/eslint-plugin/README.md
index 85a5f0be7..7db9bcb67 100644
--- a/packages/js/eslint-plugin/README.md
+++ b/packages/js/eslint-plugin/README.md
@@ -1,4 +1,4 @@
# `@openverse/eslint-plugin`
This package is documented at
-[docs.openverse.org/packages/eslint_plugin](https://docs.openverse.org/packages/eslint_plugin).
+[docs.openverse.org/packages/js/eslint_plugin](https://docs.openverse.org/packages/js/eslint_plugin).
diff --git a/packages/js/eslint-plugin/package.json b/packages/js/eslint-plugin/package.json
index 6ab43783f..986631f1f 100644
--- a/packages/js/eslint-plugin/package.json
+++ b/packages/js/eslint-plugin/package.json
@@ -6,7 +6,7 @@
"main": "dist/index.js",
"scripts": {
"build": "swc ./src -d ./dist --strip-leading-paths --delete-dir-on-start",
- "test:unit": "vitest",
+ "test:unit": "vitest run",
"types": "tsc -p ."
},
"dependencies": {
@@ -36,6 +36,6 @@
"@swc/core": "^1.3.82",
"@typescript-eslint/rule-tester": "^7.8.0",
"babel-plugin-add-module-exports": "^1.0.4",
- "vitest": "^1.6.0"
+ "vitest": "^2.0.5"
}
}
diff --git a/packages/python/openverse-attribution/README.md b/packages/python/openverse-attribution/README.md
index cf1f7b5ed..4a10f6f04 100644
--- a/packages/python/openverse-attribution/README.md
+++ b/packages/python/openverse-attribution/README.md
@@ -5,4 +5,4 @@ open licenses, tools, and attribution.
This library is a part of the Openverse project. For more information, refer to
the
-[documentation](https://docs.openverse.org/packages/openverse_attribution/index.html).
+[documentation](https://docs.openverse.org/packages/python/openverse_attribution/index.html).
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7825d1d4e..732ea243c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13,8 +13,11 @@ importers:
'@openverse/eslint-plugin':
specifier: workspace:*
version: link:packages/js/eslint-plugin
+ '@types/node':
+ specifier: 22.5.1
+ version: 22.5.1
bindings:
- specifier: ^1.5.0
+ specifier: 1.5.0
version: 1.5.0
prettier:
specifier: 3.3.3
@@ -70,10 +73,10 @@ importers:
'@nuxtjs/robots':
specifier: ^4.0.2
'@nuxtjs/sitemap':
specifier: ^5.3.5
'@nuxtjs/tailwindcss':
specifier: ^6.12.1
@@ -137,7 +140,7 @@ importers:
version: 7.25.6
'@nuxt/test-utils':
specifier: ^3.14.1
'@nuxtjs/i18n':
specifier: 8.3.1
@@ -150,12 +153,9 @@ importers:
'@testing-library/vue':
specifier: ^8.1.0
- '@types/node':
- specifier: ^20.14.11
- version: 20.14.11
'@vitest/coverage-v8':
specifier: ^2.0.5
'@vitest/ui':
specifier: ^2.0.5
version: 2.0.5([email protected])
@@ -185,7 +185,7 @@ importers:
version: 6.2.2
nuxt:
specifier: 3.13.1
rimraf:
specifier: ^6.0.1
version: 6.0.1
@@ -197,10 +197,10 @@ importers:
version: 5.5.4
vitest:
specifier: ^2.0.5
vitest-dom:
specifier: ^0.1.1
vue:
specifier: 3.5.0
version: 3.5.0([email protected])
@@ -211,6 +211,34 @@ importers:
specifier: 2.1.4
version: 2.1.4([email protected])
+ packages/js/api-client:
+ dependencies:
+ openapi-fetch:
+ specifier: ^0.11.2
+ version: 0.11.2
+ devDependencies:
+ '@rollup/plugin-typescript':
+ specifier: ^11.1.6
+ nock:
+ specifier: 14.0.0-beta.11
+ version: 14.0.0-beta.11
+ openapi-typescript:
+ specifier: ^7.3.2
+ rollup:
+ specifier: ^4.21.1
+ version: 4.21.1
+ typescript:
+ specifier: ^5.5.4
+ version: 5.5.4
+ vite-tsconfig-paths:
+ specifier: ^5.0.1
+ vitest:
+ specifier: ^2.0.5
+
packages/js/eslint-plugin:
dependencies:
'@intlify/eslint-plugin-vue-i18n':
@@ -254,7 +282,7 @@ importers:
version: 52.0.0([email protected])
eslint-plugin-vitest:
specifier: ^0.3.18
eslint-plugin-vue:
specifier: ^9.25.0
version: 9.25.0([email protected])
@@ -287,8 +315,8 @@ importers:
specifier: ^1.0.4
version: 1.0.4
vitest:
- specifier: ^1.6.0
+ specifier: ^2.0.5
packages:
@@ -1192,6 +1220,10 @@ packages:
resolution: {integrity: sha512-sTGoeZnjI8N4KS+sW2AN95gDBErhAguvkw/tWdCjeM8bvxpz5lqrnd0vOJABA1A+Ic3zED7PYoLP/RANLgVotA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ '@mswjs/[email protected]':
+ resolution: {integrity: sha512-UPi1V51c4+PVVG1lhVK2i29aOyBqXvBF8WBvlXIp2Q0vTVKrm20x2voLfunVC3N5wzocxEoHJyOwAXNdoMqy3Q==}
+ engines: {node: '>=18'}
+
'@netlify/[email protected]':
resolution: {integrity: sha512-+6wtYdoz0yE06dSa9XkP47tw5zm6g13QMeCwM3MmHx1vn8hzwFa51JtmfraprdkL7amvb7gaNM+OOhQU1h6T8A==}
engines: {node: '>=14.0.0'}
@@ -1219,6 +1251,11 @@ packages:
resolution: {integrity: sha512-GBzP8zOc7CGWyFQS6dv1lQz8VVpz5C2yRszbXufwG/9zhStTIH50EtD87NmWbTMwXDvZLNg8GIpb1UFdH93JCA==}
+ resolution: {integrity: sha512-mLPuCf5nFYLm/1JD0twt8qfFGwoVhTRA4Zx9CPiyWCQNf7XJXb3TfhCm89vHpcPP+9T6ulZxRJp+JZETjXY8+A==}
+ peerDependencies:
+ vite: '*'
+
resolution: {integrity: sha512-6h7T9B0tSZVap13/hf7prEAgIzraj/kyux6/Iif455Trew96jHIFCCboBApUMastYEuCo3l17tgZKe0HW+jrtA==}
peerDependencies:
@@ -1300,8 +1337,8 @@ packages:
'@nuxtjs/[email protected]':
resolution: {integrity: sha512-AT5GoVddqgvbp39OY1/DtWHUgjn+6LGjJXB75imdEUxPok2uAVGtr3oZ0F7merC9T3y0rIqZx8HzpUmCcipBnQ==}
- '@nuxtjs/[email protected]':
- resolution: {integrity: sha512-7hpAbSXjrzZNZ2vvzJf5E9H8+yVxJlPNY5wP/MSOWlw3pEJzTJQilAFsJj+jofocGj9y3iNDeqv/a5v/Lz8ppg==}
+ '@nuxtjs/[email protected]':
+ resolution: {integrity: sha512-H3pJ42RiWpE0AoEu3Uq7+M/IXiLUppdBzhjmskwEm4uvTgW++4zuAc8Evzi5mlHod7Hx1f8MWyY1cpX3S7Jh8w==}
'@nuxtjs/[email protected]':
resolution: {integrity: sha512-TfhEImgVHEZaI/vphZdoCaWM2TRBJqprHZPhIQwWYJz+dpQWkfY6z8UpjhmUh6npvbj5kNY9ncLenkw0cDJp9g==}
@@ -1404,6 +1441,15 @@ packages:
'@one-ini/[email protected]':
resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}
+
'@opentelemetry/[email protected]':
resolution: {integrity: sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==}
engines: {node: '>=14'}
@@ -1664,6 +1710,16 @@ packages:
'@prisma/[email protected]':
resolution: {integrity: sha512-c1Sle4ji8aasMcYfBBHFM56We4ljfenVtRmS8aY06BllS7SoU6SmJBwG7vil+GHiR0Yrh+t9iBwt4AY0Jr4KNQ==}
+ '@redocly/[email protected]':
+ resolution: {integrity: sha512-9GWx27t7xWhDIR02PA18nzBdLcKQRgc46xNQvjFkrYk4UOmvKhJ/dawwiX0cCOeetN5LcaaiqQbVOWYK62SGHw==}
+
+ '@redocly/[email protected]':
+ resolution: {integrity: sha512-rRd0pSiPC68AQGud2VbrHqUov1VHospfcYE2pFYmGYfZhzZfHBSiVaeiTY+CZmrhf5RB9aVdOHRCm25Vb6GFkQ==}
+
+ '@redocly/[email protected]':
+ resolution: {integrity: sha512-8KwL/0jiQBSJMNp1lSMLM1UeV2FW9DdqcjO0J9s5w7yL7ZN+SNh11MTp0zU4om/pGYExQ64hxLM/+7VdjznHRQ==}
+ engines: {node: '>=14.19.0', npm: '>=7.0.0'}
+
'@rollup/[email protected]':
resolution: {integrity: sha512-lpA3RZ9PdIG7qqhEfv79tBffNaoDuukFDrmhLqg9ifv99u/ehn+lOg30x2zmhf8AQqQUZaMk/B9fZraQ6/acDQ==}
engines: {node: '>=14.0.0'}
@@ -1727,6 +1783,19 @@ packages:
rollup:
optional: true
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^2.14.0||^3.0.0||^4.0.0
+ tslib: '*'
+ typescript: '>=3.7.0'
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ tslib:
+ optional: true
+
'@rollup/[email protected]':
resolution: {integrity: sha512-RpupciIeZMUqhgFE97ba0s98mOFS7CWzN3EJNhJkqSv9XLlWYtwVdtE6cDw6ASOF/sZVFS7kRJXftaqM2Vakdw==}
engines: {node: '>=14.0.0'}
@@ -1749,81 +1818,161 @@ packages:
rollup:
optional: true
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-2thheikVEuU7ZxFXubPDOtspKn1x0yqaYQwvALVtEcvFhMifPADBrgRPyHV0TF3b+9BgvgjgagVyvA/UqPZHmg==}
+ cpu: [arm]
+ os: [android]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==}
cpu: [arm]
os: [android]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-t1lLYn4V9WgnIFHXy1d2Di/7gyzBWS8G5pQSXdZqfrdCGTwi1VasRMSS81DTYb+avDs/Zz4A6dzERki5oRYz1g==}
+ cpu: [arm64]
+ os: [android]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==}
cpu: [arm64]
os: [android]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-AH/wNWSEEHvs6t4iJ3RANxW5ZCK3fUnmf0gyMxWCesY1AlUj8jY7GC+rQE4wd3gwmZ9XDOpL0kcFnCjtN7FXlA==}
+ cpu: [arm64]
+ os: [darwin]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==}
cpu: [arm64]
os: [darwin]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-dO0BIz/+5ZdkLZrVgQrDdW7m2RkrLwYTh2YMFG9IpBtlC1x1NPNSXkfczhZieOlOLEqgXOFH3wYHB7PmBtf+Bg==}
+ cpu: [x64]
+ os: [darwin]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==}
cpu: [x64]
os: [darwin]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-sWWgdQ1fq+XKrlda8PsMCfut8caFwZBmhYeoehJ05FdI0YZXk6ZyUjWLrIgbR/VgiGycrFKMMgp7eJ69HOF2pQ==}
+ cpu: [arm]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==}
cpu: [arm]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-9OIiSuj5EsYQlmwhmFRA0LRO0dRRjdCVZA3hnmZe1rEwRk11Jy3ECGGq3a7RrVEZ0/pCsYWx8jG3IvcrJ6RCew==}
+ cpu: [arm]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==}
cpu: [arm]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-0kuAkRK4MeIUbzQYu63NrJmfoUVicajoRAL1bpwdYIYRcs57iyIV9NLcuyDyDXE2GiZCL4uhKSYAnyWpjZkWow==}
+ cpu: [arm64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==}
cpu: [arm64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-/6dYC9fZtfEY0vozpc5bx1RP4VrtEOhNQGb0HwvYNwXD1BBbwQ5cKIbUVVU7G2d5WRE90NfB922elN8ASXAJEA==}
+ cpu: [arm64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==}
cpu: [arm64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-ltUWy+sHeAh3YZ91NUsV4Xg3uBXAlscQe8ZOXRCVAKLsivGuJsrkawYPUEyCV3DYa9urgJugMLn8Z3Z/6CeyRQ==}
+ cpu: [ppc64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==}
cpu: [ppc64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-BggMndzI7Tlv4/abrgLwa/dxNEMn2gC61DCLrTzw8LkpSKel4o+O+gtjbnkevZ18SKkeN3ihRGPuBxjaetWzWg==}
+ cpu: [riscv64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==}
cpu: [riscv64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-z/9rtlGd/OMv+gb1mNSjElasMf9yXusAxnRDrBaYB+eS1shFm6/4/xDH1SAISO5729fFKUkJ88TkGPRUh8WSAA==}
+ cpu: [s390x]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==}
cpu: [s390x]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-kXQVcWqDcDKw0S2E0TmhlTLlUgAmMVqPrJZR+KpH/1ZaZhLSl23GZpQVmawBQGVhyP5WXIsIQ/zqbDBBYmxm5w==}
+ cpu: [x64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==}
cpu: [x64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-CbFv/WMQsSdl+bpX6rVbzR4kAjSSBuDgCqb1l4J68UYsQNalz5wOqLGYj4ZI0thGpyX5kc+LLZ9CL+kpqDovZA==}
+ cpu: [x64]
+ os: [linux]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==}
cpu: [x64]
os: [linux]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-3Q3brDgA86gHXWHklrwdREKIrIbxC0ZgU8lwpj0eEKGBQH+31uPqr0P2v11pn0tSIxHvcdOWxa4j+YvLNx1i6g==}
+ cpu: [arm64]
+ os: [win32]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==}
cpu: [arm64]
os: [win32]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-tNg+jJcKR3Uwe4L0/wY3Ro0H+u3nrb04+tcq1GSYzBEmKLeOQF2emk1whxlzNqb6MMrQ2JOcQEpuuiPLyRcSIw==}
+ cpu: [ia32]
+ os: [win32]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==}
cpu: [ia32]
os: [win32]
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-xGiIH95H1zU7naUyTKEyOA/I0aexNMUdO9qRv0bLKN3qu25bBdrxZHqA3PTJ24YNN/GdMzG4xkDcd/GvjuhfLg==}
+ cpu: [x64]
+ os: [win32]
+
'@rollup/[email protected]':
resolution: {integrity: sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==}
cpu: [x64]
@@ -2068,6 +2217,9 @@ packages:
resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-KkHsxej0j9IW1KKOOAA/XBA0z08UFSrRQHErzEfA3Vgq57eXIMYboIlHJuYIfd+lwCQjtKqUu3UnmKbtUc9yRw==}
+
resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}
@@ -2210,46 +2362,26 @@ packages:
peerDependencies:
vitest: 2.0.5
- '@vitest/[email protected]':
- resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==}
'@vitest/[email protected]':
resolution: {integrity: sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-k3Lyo+ONLOgylctiGovRKy7V4+dIN2yxstX3eY5cWFXH6WP+ooVX79YSyi0GagdTQzLmT43BF27T0s6dOIPBXA==}
- peerDependencies:
- vitest: 1.6.0
-
'@vitest/[email protected]':
resolution: {integrity: sha512-m+ZpVt/PVi/nbeRKEjdiYeoh0aOfI9zr3Ria9LO7V2PlMETtAXJS3uETEZkc8Be2oOl8mhd7Ew+5SRBXRYncNw==}
peerDependencies:
vitest: 2.0.5
- '@vitest/[email protected]':
- resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==}
-
'@vitest/[email protected]':
resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==}
@@ -2403,10 +2535,6 @@ packages:
peerDependencies:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
- resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==}
- engines: {node: '>=0.4.0'}
-
resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}
engines: {node: '>=0.4.0'}
@@ -2534,9 +2662,6 @@ packages:
resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}
- resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}
-
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
@@ -2728,10 +2853,6 @@ packages:
resolution: {integrity: sha512-DPbJAlP8/BAXy3IgiWmZKItubb3TYGP0WscQQlVGIfT4s/YlFYVuJgyOsQNP7rJRChx/qdMeLJQJP0Sgg2yjNA==}
- resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==}
- engines: {node: '>=4'}
-
resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==}
engines: {node: '>=12'}
@@ -2748,9 +2869,6 @@ packages:
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
- resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==}
-
resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}
engines: {node: '>= 16'}
@@ -2826,6 +2944,9 @@ packages:
resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==}
+ resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==}
+
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
@@ -3075,10 +3196,6 @@ packages:
resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==}
- engines: {node: '>=6'}
-
resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
engines: {node: '>=6'}
@@ -3844,6 +3961,9 @@ packages:
resolution: {integrity: sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}
+
resolution: {integrity: sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==}
@@ -3964,8 +4084,8 @@ packages:
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
engines: {node: '>= 6'}
- resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==}
+ resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==}
engines: {node: '>= 14'}
@@ -4022,6 +4142,10 @@ packages:
resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
@@ -4147,6 +4271,9 @@ packages:
resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}
+
resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==}
engines: {node: '>= 0.4'}
@@ -4335,6 +4462,10 @@ packages:
resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -4391,6 +4522,9 @@ packages:
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+ resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
+
resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
hasBin: true
@@ -4500,6 +4634,9 @@ packages:
resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==}
+ resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
+
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
@@ -4515,9 +4652,6 @@ packages:
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
- resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==}
-
resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==}
@@ -4754,6 +4888,10 @@ packages:
xml2js:
optional: true
+ resolution: {integrity: sha512-tmImk6btCUcCFHXkhqZnuSe4e/4M/YYs8qYaQGdjZSBloTXgQyuPrgjzn45zmFWpK2bDSEtIcF8olFdFxRaA1g==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==}
@@ -4956,10 +5094,22 @@ packages:
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-zc37VvX9vHJjJxNY3JLhg5Ks3J3KSL56NJrIAp2QRt/fdkOhGQHBTVY+Zz7tEOdqocS/1xfRTzWC6NguCGjUnA==}
+
+ resolution: {integrity: sha512-FO+5kTWO6KDutigamr2MRwciYkAUYhqdctlyVRrQOe2uxif2/O2+GcS07jNnP36AUK6ubSsGu3GeBiYIc6eQzA==}
+
resolution: {integrity: sha512-c/hfooPx+RBIOPM09GSxABOZhYPblDoyaGhqBkD/59vtpN21jEuWKDlM0KYTvqJVlSYjKs0tBcIdeXKChlSPtw==}
hasBin: true
+ resolution: {integrity: sha512-bNHPVlTrzRRD+7RBARjcbRrLDvNOLMNV6uHXDCneH9iQsm7WUoccvBtMaG8Y8eZ1GeFsQvnXZteNXt46snBJZQ==}
+ hasBin: true
+ peerDependencies:
+ typescript: ^5.x
+
resolution: {integrity: sha512-Qb11T7KvoCevMaSeuamcLsAD+pZnavkhDnlVL0kRozfhl42dKG5Q3anUklAFKJZjY3twLR+BnRa6DlwwkIE/+A==}
engines: {node: '>18.0.0'}
@@ -4974,6 +5124,9 @@ packages:
resolution: {integrity: sha512-uksVLsqG3pVdzzPvmAHpBK0wKxYItuzZr7SziusRPoz67tGV8rL1szZ6IdeUrbqLjGDwApBtN29eEE3IqGHOjg==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}
+
resolution: {integrity: sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==}
engines: {node: '>=8'}
@@ -4990,10 +5143,6 @@ packages:
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
engines: {node: '>=8'}
@@ -5021,6 +5170,10 @@ packages:
resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog==}
@@ -5082,9 +5235,6 @@ packages:
resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
- resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}
-
resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
engines: {node: '>= 14.16'}
@@ -5493,6 +5643,10 @@ packages:
resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==}
+ engines: {node: '>= 8'}
+
resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
@@ -5683,6 +5837,11 @@ packages:
rollup:
optional: true
+ resolution: {integrity: sha512-ZnYyKvscThhgd3M5+Qt3pmhO4jIRR5RGzaSovB6Q7rGNrK5cUncrtLmcTTJVSdcKXyZjW8X8MB0JMSuH9bcAJg==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
@@ -5919,6 +6078,9 @@ packages:
resolution: {integrity: sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==}
+ resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==}
+
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
engines: {node: '>=8'}
@@ -6115,10 +6277,6 @@ packages:
resolution: {integrity: sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==}
- engines: {node: '>=14.0.0'}
-
resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -6127,10 +6285,6 @@ packages:
resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==}
engines: {node: '>=14.0.0'}
- resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==}
- engines: {node: '>=14.0.0'}
-
resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==}
engines: {node: '>=14.0.0'}
@@ -6186,6 +6340,16 @@ packages:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
+ resolution: {integrity: sha512-00eoI6WY57SvZEVjm13stEVE90VkEdJAFGgpFLTsZbJyW/LwFQ7uQxJHWpZ2hzSWgCPKc9AnBnNP+0X7o3hAmQ==}
+ engines: {node: ^18 || >=20}
+ hasBin: true
+ peerDependencies:
+ typescript: ^5.0.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
@@ -6228,6 +6392,10 @@ packages:
resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==}
engines: {node: '>=14.16'}
+ resolution: {integrity: sha512-bRkIGlXsnGBRBQRAY56UXBm//9qH4bmJfFvq83gSz41N282df+fjy8ofcEgc1sM8geNt5cl6mC2g9Fht1cs8Aw==}
+ engines: {node: '>=16'}
+
resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}
engines: {node: '>= 0.6'}
@@ -6271,6 +6439,9 @@ packages:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
+ resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
+
resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==}
engines: {node: '>=14.0'}
@@ -6416,11 +6587,6 @@ packages:
peerDependencies:
vite: ^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0
- resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==}
- engines: {node: ^18.0.0 || >=20.0.0}
- hasBin: true
-
resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -6475,6 +6641,14 @@ packages:
peerDependencies:
vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0
+ resolution: {integrity: sha512-yqwv+LstU7NwPeNqajZzLEBVpUFU6Dugtb2P84FXuvaoYA+/70l9MHE+GYfYAycVyPSDYZ7mjOFuYBRqlEpTig==}
+ peerDependencies:
+ vite: '*'
+ peerDependenciesMeta:
+ vite:
+ optional: true
+
resolution: {integrity: sha512-IH+nl64eq9lJjFqU+/yrRnrHPVTlgy42/+IzbOdaFDVlyLgI/wDlf+FCobXLX1cT0X5+7LMyH1mIy2xJdLfo8Q==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -6514,31 +6688,6 @@ packages:
resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==}
- resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==}
- engines: {node: ^18.0.0 || >=20.0.0}
- hasBin: true
- peerDependencies:
- '@edge-runtime/vm': '*'
- '@types/node': ^18.0.0 || >=20.0.0
- '@vitest/browser': 1.6.0
- '@vitest/ui': 1.6.0
- happy-dom: '*'
- jsdom: '*'
- peerDependenciesMeta:
- '@edge-runtime/vm':
- optional: true
- '@types/node':
- optional: true
- '@vitest/browser':
- optional: true
- '@vitest/ui':
- optional: true
- happy-dom:
- optional: true
- jsdom:
- optional: true
-
resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -6763,6 +6912,9 @@ packages:
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
+ resolution: {integrity: sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==}
+
resolution: {integrity: sha512-pEwzfsKbTrB8G3xc/sN7aw1v6A6c/pKxLAkjclnAyo5g5qOh6eL9WGu0o3cSDQZKrTNk4KL4lQSwZW+nBkANEg==}
engines: {node: ^14.17.0 || >=16.0.0}
@@ -6788,10 +6940,6 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==}
- engines: {node: '>=12.20'}
-
resolution: {integrity: sha512-8F0OI5dpWIA5IGG5NHUg9staDwz/ZPxZtvGVf01j7vHqSyZ0raHY+78atOVxRqb73AotX22uV1pXt3gYSstGag==}
@@ -6850,7 +6998,7 @@ snapshots:
'@babel/traverse': 7.24.7
'@babel/types': 7.25.6
convert-source-map: 2.0.0
- debug: 4.3.6
+ debug: 4.3.6([email protected])
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 6.3.1
@@ -7120,7 +7268,7 @@ snapshots:
'@babel/helper-split-export-declaration': 7.24.7
'@babel/parser': 7.25.6
'@babel/types': 7.25.6
- debug: 4.3.6
+ debug: 4.3.6([email protected])
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@@ -7367,7 +7515,7 @@ snapshots:
'@eslint/[email protected]':
dependencies:
ajv: 6.12.6
- debug: 4.3.6
+ debug: 4.3.6([email protected])
espree: 9.6.1
globals: 13.24.0
ignore: 5.3.2
@@ -7381,7 +7529,7 @@ snapshots:
'@eslint/[email protected]':
dependencies:
ajv: 6.12.6
- debug: 4.3.6
+ debug: 4.3.6([email protected])
espree: 9.6.1
globals: 13.24.0
ignore: 5.3.2
@@ -7395,7 +7543,7 @@ snapshots:
'@eslint/[email protected]':
dependencies:
ajv: 6.12.6
- debug: 4.3.6
+ debug: 4.3.6([email protected])
espree: 10.0.1
globals: 14.0.0
ignore: 5.3.2
@@ -7424,7 +7572,7 @@ snapshots:
'@humanwhocodes/[email protected]':
dependencies:
'@humanwhocodes/object-schema': 2.0.3
- debug: 4.3.6
+ debug: 4.3.6([email protected])
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
@@ -7463,7 +7611,7 @@ snapshots:
'@eslint/eslintrc': 1.4.1
'@intlify/core-base': 9.13.1
'@intlify/message-compiler': 9.13.1
- debug: 4.3.6
+ debug: 4.3.6([email protected])
eslint: 8.57.0
glob: 8.1.0
ignore: 5.3.2
@@ -7497,7 +7645,7 @@ snapshots:
'@intlify/shared': 9.13.1
'@rollup/pluginutils': 5.1.0([email protected])
'@vue/compiler-sfc': 3.5.2
- debug: 4.3.6
+ debug: 4.3.6([email protected])
fast-glob: 3.3.2
js-yaml: 4.1.0
json5: 2.2.3
@@ -7540,7 +7688,7 @@ snapshots:
dependencies:
'@jest/fake-timers': 29.7.0
'@jest/types': 29.6.3
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
jest-mock: 29.7.0
optional: true
@@ -7561,7 +7709,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
'@sinonjs/fake-timers': 10.3.0
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
jest-message-util: 29.7.0
jest-mock: 29.7.0
jest-util: 29.7.0
@@ -7580,6 +7728,7 @@ snapshots:
dependencies:
'@sinclair/typebox': 0.27.8
+ optional: true
dependencies:
@@ -7607,7 +7756,7 @@ snapshots:
'@jest/schemas': 29.6.3
'@types/istanbul-lib-coverage': 2.0.4
'@types/istanbul-reports': 3.0.1
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
'@types/yargs': 17.0.24
chalk: 4.1.2
optional: true
@@ -7636,7 +7785,7 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
http-errors: 2.0.0
koa-compose: 4.1.0
methods: 1.1.2
@@ -7646,7 +7795,7 @@ snapshots:
'@kwsites/[email protected]':
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -7693,6 +7842,15 @@ snapshots:
got: 11.8.6
os-filter-obj: 2.0.0
+ '@mswjs/[email protected]':
+ dependencies:
+ '@open-draft/deferred-promise': 2.2.0
+ '@open-draft/logger': 0.3.0
+ '@open-draft/until': 2.1.0
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ strict-event-emitter: 0.5.1
+
'@netlify/[email protected]':
dependencies:
'@netlify/serverless-functions-api': 1.19.1
@@ -7718,12 +7876,24 @@ snapshots:
'@nuxt/[email protected]': {}
dependencies:
'@nuxt/schema': 3.13.1([email protected])([email protected])
execa: 7.2.0
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - magicast
+ - rollup
+ - supports-color
+ - webpack-sources
+
+ dependencies:
+ '@nuxt/schema': 3.13.1([email protected])([email protected])
+ execa: 7.2.0
+ vite: 5.4.3(@types/[email protected])([email protected])
transitivePeerDependencies:
- magicast
- rollup
@@ -7743,13 +7913,13 @@ snapshots:
rc9: 2.1.2
semver: 7.6.3
dependencies:
'@antfu/utils': 0.7.10
'@nuxt/devtools-wizard': 1.4.1
- '@vue/devtools-core': 7.3.3([email protected](@types/[email protected])([email protected]))
+ '@vue/devtools-core': 7.3.3([email protected](@types/[email protected])([email protected]))
'@vue/devtools-kit': 7.3.3
birpc: 0.2.17
consola: 3.2.3
@@ -7778,9 +7948,9 @@ snapshots:
sirv: 2.0.4
tinyglobby: 0.2.5
- vite: 5.4.3(@types/[email protected])([email protected])
- vite-plugin-vue-inspector: 5.2.0([email protected](@types/[email protected])([email protected]))
+ vite: 5.4.3(@types/[email protected])([email protected])
+ vite-plugin-vue-inspector: 5.2.0([email protected](@types/[email protected])([email protected]))
which: 3.0.1
ws: 8.18.0
transitivePeerDependencies:
@@ -7862,7 +8032,7 @@ snapshots:
- supports-color
- webpack-sources
dependencies:
'@nuxt/schema': 3.13.1([email protected])([email protected])
@@ -7888,8 +8058,8 @@ snapshots:
ufo: 1.5.4
unenv: 1.10.0
unplugin: 1.13.1([email protected])
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
vue: 3.5.0([email protected])
optionalDependencies:
@@ -7900,19 +8070,19 @@ snapshots:
'@vue/test-utils': 2.4.6
jsdom: 24.1.0
playwright-core: 1.46.1
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- webpack-sources
dependencies:
'@rollup/plugin-replace': 5.0.7([email protected])
autoprefixer: 10.4.20([email protected])
clear: 0.1.0
consola: 3.2.3
@@ -7938,9 +8108,9 @@ snapshots:
ufo: 1.5.4
unenv: 1.10.0
unplugin: 1.13.1([email protected])
- vite: 5.4.3(@types/[email protected])([email protected])
- vite-node: 2.0.5(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
+ vite-node: 2.0.5(@types/[email protected])([email protected])
vue: 3.5.0([email protected])
vue-bundle-renderer: 2.1.0
transitivePeerDependencies:
@@ -7977,7 +8147,7 @@ snapshots:
'@rollup/plugin-yaml': 4.1.2([email protected])
'@vue/compiler-sfc': 3.5.2
- debug: 4.3.6
+ debug: 4.3.6([email protected])
defu: 6.1.4
estree-walker: 3.0.3
is-https: 4.0.0
@@ -8011,13 +8181,13 @@ snapshots:
- supports-color
- webpack-sources
dependencies:
consola: 3.2.3
defu: 6.1.4
pathe: 1.1.2
pkg-types: 1.2.0
@@ -8032,14 +8202,14 @@ snapshots:
- vue
- webpack-sources
dependencies:
chalk: 5.3.0
defu: 6.1.4
h3-compression: 0.3.2([email protected])
ofetch: 1.3.4
pathe: 1.1.2
@@ -8229,6 +8399,15 @@ snapshots:
'@one-ini/[email protected]': {}
+ '@open-draft/[email protected]': {}
+
+ '@open-draft/[email protected]':
+ dependencies:
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+
+ '@open-draft/[email protected]': {}
+
'@opentelemetry/[email protected]':
dependencies:
'@opentelemetry/api': 1.9.0
@@ -8532,6 +8711,32 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@redocly/[email protected]':
+ dependencies:
+ fast-deep-equal: 3.1.3
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+ uri-js: 4.4.1
+
+ '@redocly/[email protected]': {}
+
+ dependencies:
+ '@redocly/ajv': 8.11.0
+ '@redocly/config': 0.9.0
+ colorette: 1.4.0
+ https-proxy-agent: 7.0.5([email protected])
+ js-levenshtein: 1.1.6
+ js-yaml: 4.1.0
+ lodash.isequal: 4.5.0
+ minimatch: 5.1.6
+ node-fetch: 2.7.0([email protected])
+ pluralize: 8.0.0
+ yaml-ast-parser: 0.0.43
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+
dependencies:
slash: 4.0.0
@@ -8589,6 +8794,15 @@ snapshots:
optionalDependencies:
rollup: 4.21.2
+ dependencies:
+ '@rollup/pluginutils': 5.1.0([email protected])
+ resolve: 1.22.8
+ typescript: 5.5.4
+ optionalDependencies:
+ rollup: 4.21.1
+ tslib: 2.6.2
+
dependencies:
'@rollup/pluginutils': 5.1.0([email protected])
@@ -8602,6 +8816,14 @@ snapshots:
estree-walker: 2.0.2
picomatch: 2.3.1
+ dependencies:
+ '@types/estree': 1.0.5
+ estree-walker: 2.0.2
+ picomatch: 2.3.1
+ optionalDependencies:
+ rollup: 4.21.1
+
dependencies:
'@types/estree': 1.0.5
@@ -8610,51 +8832,99 @@ snapshots:
optionalDependencies:
rollup: 4.21.2
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
+ '@rollup/[email protected]':
+ optional: true
+
'@rollup/[email protected]':
optional: true
@@ -8760,7 +9030,8 @@ snapshots:
'@sentry/utils': 8.26.0
vue: 3.5.0([email protected])
- '@sinclair/[email protected]': {}
+ '@sinclair/[email protected]':
+ optional: true
'@sindresorhus/[email protected]': {}
@@ -8886,18 +9157,18 @@ snapshots:
dependencies:
'@types/http-cache-semantics': 4.0.1
'@types/keyv': 3.1.4
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
'@types/responselike': 1.0.0
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
'@types/[email protected]': {}
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
optional: true
'@types/[email protected]': {}
@@ -8925,21 +9196,25 @@ snapshots:
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
form-data: 4.0.0
dependencies:
undici-types: 5.26.5
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.19.8
+
'@types/[email protected]': {}
@@ -8948,7 +9223,7 @@ snapshots:
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
pg-protocol: 1.6.1
pg-types: 2.2.0
@@ -8956,7 +9231,7 @@ snapshots:
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
'@types/[email protected]': {}
@@ -8983,7 +9258,7 @@ snapshots:
'@typescript-eslint/type-utils': 7.8.0([email protected])([email protected])
'@typescript-eslint/utils': 7.8.0([email protected])([email protected])
'@typescript-eslint/visitor-keys': 7.8.0
- debug: 4.3.6
+ debug: 4.3.6([email protected])
eslint: 8.57.0
graphemer: 1.4.0
ignore: 5.3.2
@@ -9001,7 +9276,7 @@ snapshots:
'@typescript-eslint/types': 7.8.0
'@typescript-eslint/typescript-estree': 7.8.0([email protected])
'@typescript-eslint/visitor-keys': 7.8.0
- debug: 4.3.6
+ debug: 4.3.6([email protected])
eslint: 8.57.0
optionalDependencies:
typescript: 5.5.4
@@ -9030,7 +9305,7 @@ snapshots:
dependencies:
'@typescript-eslint/typescript-estree': 7.8.0([email protected])
'@typescript-eslint/utils': 7.8.0([email protected])([email protected])
- debug: 4.3.6
+ debug: 4.3.6([email protected])
eslint: 8.57.0
ts-api-utils: 1.3.0([email protected])
optionalDependencies:
@@ -9044,7 +9319,7 @@ snapshots:
dependencies:
'@typescript-eslint/types': 7.8.0
'@typescript-eslint/visitor-keys': 7.8.0
- debug: 4.3.6
+ debug: 4.3.6([email protected])
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.4
@@ -9121,26 +9396,26 @@ snapshots:
- encoding
- supports-color
dependencies:
'@babel/core': 7.24.7
'@babel/plugin-transform-typescript': 7.24.7(@babel/[email protected])
'@vue/babel-plugin-jsx': 1.2.2(@babel/[email protected])
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
vue: 3.5.0([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
vue: 3.5.0([email protected])
dependencies:
'@ampproject/remapping': 2.3.0
'@bcoe/v8-coverage': 0.2.3
- debug: 4.3.6
+ debug: 4.3.6([email protected])
istanbul-lib-coverage: 3.2.2
istanbul-lib-report: 3.0.1
istanbul-lib-source-maps: 5.0.6
@@ -9150,16 +9425,10 @@ snapshots:
std-env: 3.7.0
test-exclude: 7.0.1
tinyrainbow: 1.2.0
transitivePeerDependencies:
- supports-color
- '@vitest/[email protected]':
- dependencies:
- '@vitest/spy': 1.6.0
- '@vitest/utils': 1.6.0
- chai: 4.4.1
-
'@vitest/[email protected]':
dependencies:
'@vitest/spy': 2.0.5
@@ -9171,49 +9440,21 @@ snapshots:
dependencies:
tinyrainbow: 1.2.0
- '@vitest/[email protected]':
- dependencies:
- '@vitest/utils': 1.6.0
- p-limit: 5.0.0
- pathe: 1.1.2
-
'@vitest/[email protected]':
dependencies:
'@vitest/utils': 2.0.5
pathe: 1.1.2
- '@vitest/[email protected]':
- dependencies:
- magic-string: 0.30.11
- pathe: 1.1.2
- pretty-format: 29.7.0
-
'@vitest/[email protected]':
dependencies:
'@vitest/pretty-format': 2.0.5
magic-string: 0.30.11
pathe: 1.1.2
- '@vitest/[email protected]':
- dependencies:
- tinyspy: 2.2.1
-
'@vitest/[email protected]':
dependencies:
tinyspy: 3.0.0
- dependencies:
- '@vitest/utils': 1.6.0
- fast-glob: 3.3.2
- fflate: 0.8.2
- flatted: 3.3.1
- pathe: 1.1.2
- picocolors: 1.0.1
- sirv: 2.0.4
- optional: true
-
dependencies:
'@vitest/utils': 2.0.5
@@ -9223,14 +9464,7 @@ snapshots:
pathe: 1.1.2
sirv: 2.0.4
tinyrainbow: 1.2.0
-
- '@vitest/[email protected]':
- dependencies:
- diff-sequences: 29.6.3
- estree-walker: 3.0.3
- loupe: 2.3.7
- pretty-format: 29.7.0
'@vitest/[email protected]':
dependencies:
@@ -9360,14 +9594,14 @@ snapshots:
'@vue/[email protected]': {}
dependencies:
'@vue/devtools-kit': 7.3.3
'@vue/devtools-shared': 7.3.4
mitt: 3.0.1
nanoid: 3.3.7
pathe: 1.1.2
- vite-hot-client: 0.2.3([email protected](@types/[email protected])([email protected]))
+ vite-hot-client: 0.2.3([email protected](@types/[email protected])([email protected]))
transitivePeerDependencies:
- vite
@@ -9480,21 +9714,19 @@ snapshots:
dependencies:
acorn: 8.12.1
-
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -9639,8 +9871,6 @@ snapshots:
-
@@ -9868,16 +10098,6 @@ snapshots:
- dependencies:
- assertion-error: 1.1.0
- check-error: 1.0.3
- deep-eql: 4.1.3
- get-func-name: 2.0.2
- loupe: 2.3.7
- pathval: 1.1.1
- type-detect: 4.0.8
-
dependencies:
assertion-error: 2.0.1
@@ -9899,10 +10119,6 @@ snapshots:
- dependencies:
- get-func-name: 2.0.2
-
@@ -9978,6 +10194,8 @@ snapshots:
+
dependencies:
delayed-stream: 1.0.0
@@ -10194,9 +10412,11 @@ snapshots:
dependencies:
ms: 2.1.3
dependencies:
ms: 2.1.2
+ optionalDependencies:
+ supports-color: 9.4.0
@@ -10204,10 +10424,6 @@ snapshots:
dependencies:
mimic-response: 3.1.0
- dependencies:
- type-detect: 4.0.8
-
@@ -10292,7 +10508,8 @@ snapshots:
+ optional: true
@@ -10591,7 +10808,7 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
enhanced-resolve: 5.16.1
eslint: 8.57.0
@@ -10706,13 +10923,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 7.8.0([email protected])([email protected])
eslint: 8.57.0
optionalDependencies:
'@typescript-eslint/eslint-plugin': 7.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -10762,7 +10979,7 @@ snapshots:
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.3
- debug: 4.3.6
+ debug: 4.3.6([email protected])
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.2.2
@@ -11199,6 +11416,8 @@ snapshots:
slash: 5.1.0
unicorn-magic: 0.1.0
+
dependencies:
delegate: 3.2.0
@@ -11320,8 +11539,8 @@ snapshots:
dependencies:
- agent-base: 7.1.1
- debug: 4.3.6
+ agent-base: 7.1.1([email protected])
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -11335,14 +11554,14 @@ snapshots:
dependencies:
agent-base: 6.0.2
- debug: 4.3.6
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- agent-base: 7.1.1
- debug: 4.3.6
+ agent-base: 7.1.1([email protected])
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -11401,6 +11620,8 @@ snapshots:
+
dependencies:
once: 1.4.0
@@ -11424,7 +11645,7 @@ snapshots:
dependencies:
'@ioredis/commands': 1.2.0
cluster-key-slot: 1.1.2
- debug: 4.3.6
+ debug: 4.3.6([email protected])
denque: 2.1.0
lodash.defaults: 4.2.0
lodash.isarguments: 3.1.0
@@ -11518,6 +11739,8 @@ snapshots:
+
dependencies:
has-tostringtag: 1.0.2
@@ -11624,7 +11847,7 @@ snapshots:
dependencies:
'@jridgewell/trace-mapping': 0.3.25
- debug: 4.3.6
+ debug: 4.3.6([email protected])
istanbul-lib-coverage: 3.2.2
transitivePeerDependencies:
- supports-color
@@ -11661,7 +11884,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
'@types/graceful-fs': 4.1.5
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
anymatch: 3.1.3
fb-watchman: 2.0.1
graceful-fs: 4.2.11
@@ -11698,7 +11921,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
jest-util: 29.7.0
optional: true
@@ -11734,7 +11957,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
chalk: 4.1.2
ci-info: 3.8.0
graceful-fs: 4.2.11
@@ -11743,7 +11966,7 @@ snapshots:
dependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
jest-util: 29.7.0
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -11763,6 +11986,8 @@ snapshots:
+
@@ -11785,7 +12010,7 @@ snapshots:
form-data: 4.0.0
html-encoding-sniffer: 4.0.0
http-proxy-agent: 7.0.2
- https-proxy-agent: 7.0.4
+ https-proxy-agent: 7.0.5([email protected])
is-potential-custom-element-name: 1.0.1
nwsapi: 2.2.10
parse5: 7.1.2
@@ -11823,6 +12048,8 @@ snapshots:
+
dependencies:
minimist: 1.2.8
@@ -11867,7 +12094,7 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
http-errors: 1.8.1
resolve-path: 1.4.0
transitivePeerDependencies:
@@ -11887,7 +12114,7 @@ snapshots:
content-disposition: 0.5.4
content-type: 1.0.5
cookies: 0.9.1
- debug: 4.3.6
+ debug: 4.3.6([email protected])
delegates: 1.0.0
depd: 2.0.0
destroy: 1.2.0
@@ -11974,6 +12201,8 @@ snapshots:
+
@@ -11984,10 +12213,6 @@ snapshots:
- dependencies:
- get-func-name: 2.0.2
-
dependencies:
get-func-name: 2.0.2
@@ -12255,6 +12480,12 @@ snapshots:
- uWebSockets.js
- webpack-sources
+ dependencies:
+ '@mswjs/interceptors': 0.34.3
+ json-stringify-safe: 5.0.1
+ propagate: 2.0.1
+
optional: true
@@ -12365,9 +12596,9 @@ snapshots:
- vue
- webpack-sources
dependencies:
'@nuxt/schema': 3.13.1([email protected])([email protected])
@@ -12384,14 +12615,14 @@ snapshots:
- vue
- webpack-sources
dependencies:
'@nuxt/devalue': 2.0.2
'@nuxt/schema': 3.13.1([email protected])([email protected])
'@unhead/dom': 1.10.4
'@unhead/ssr': 1.10.4
'@unhead/vue': 1.10.4([email protected]([email protected]))
@@ -12450,7 +12681,7 @@ snapshots:
optionalDependencies:
'@parcel/watcher': 2.4.1
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
transitivePeerDependencies:
- '@azure/app-configuration'
- '@azure/cosmos'
@@ -12589,6 +12820,12 @@ snapshots:
is-docker: 2.2.1
is-wsl: 2.2.0
+ dependencies:
+ openapi-typescript-helpers: 0.0.12
+
+
dependencies:
ansi-colors: 4.1.3
@@ -12598,6 +12835,17 @@ snapshots:
undici: 5.28.4
yargs-parser: 21.1.1
+ dependencies:
+ '@redocly/openapi-core': 1.21.0([email protected])([email protected])
+ ansi-colors: 4.1.3
+ parse-json: 8.1.0
+ supports-color: 9.4.0
+ typescript: 5.5.4
+ yargs-parser: 21.1.1
+ transitivePeerDependencies:
+ - encoding
+
dependencies:
'@opentelemetry/api': 1.9.0
@@ -12620,6 +12868,8 @@ snapshots:
dependencies:
arch: 2.2.0
+
@@ -12632,10 +12882,6 @@ snapshots:
dependencies:
yocto-queue: 0.1.0
- dependencies:
- yocto-queue: 1.0.0
-
dependencies:
p-limit: 2.3.0
@@ -12664,6 +12910,12 @@ snapshots:
json-parse-even-better-errors: 2.3.1
lines-and-columns: 1.2.4
+ dependencies:
+ '@babel/code-frame': 7.24.7
+ index-to-position: 0.1.2
+ type-fest: 4.25.0
+
dependencies:
protocols: 2.0.1
@@ -12710,8 +12962,6 @@ snapshots:
-
@@ -13014,6 +13264,7 @@ snapshots:
'@jest/schemas': 29.6.3
ansi-styles: 5.2.0
react-is: 18.2.0
+ optional: true
@@ -13024,6 +13275,8 @@ snapshots:
kleur: 3.0.3
sisteransi: 1.0.5
+
@@ -13064,7 +13317,8 @@ snapshots:
+ optional: true
dependencies:
@@ -13162,7 +13416,7 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
module-details-from-path: 1.0.3
resolve: 1.22.8
transitivePeerDependencies:
@@ -13215,6 +13469,28 @@ snapshots:
optionalDependencies:
rollup: 4.21.2
+ dependencies:
+ '@types/estree': 1.0.5
+ optionalDependencies:
+ '@rollup/rollup-android-arm-eabi': 4.21.1
+ '@rollup/rollup-android-arm64': 4.21.1
+ '@rollup/rollup-darwin-arm64': 4.21.1
+ '@rollup/rollup-darwin-x64': 4.21.1
+ '@rollup/rollup-linux-arm-gnueabihf': 4.21.1
+ '@rollup/rollup-linux-arm-musleabihf': 4.21.1
+ '@rollup/rollup-linux-arm64-gnu': 4.21.1
+ '@rollup/rollup-linux-arm64-musl': 4.21.1
+ '@rollup/rollup-linux-powerpc64le-gnu': 4.21.1
+ '@rollup/rollup-linux-riscv64-gnu': 4.21.1
+ '@rollup/rollup-linux-s390x-gnu': 4.21.1
+ '@rollup/rollup-linux-x64-gnu': 4.21.1
+ '@rollup/rollup-linux-x64-musl': 4.21.1
+ '@rollup/rollup-win32-arm64-msvc': 4.21.1
+ '@rollup/rollup-win32-ia32-msvc': 4.21.1
+ '@rollup/rollup-win32-x64-msvc': 4.21.1
+ fsevents: 2.3.3
+
dependencies:
'@types/estree': 1.0.5
@@ -13378,7 +13654,7 @@ snapshots:
dependencies:
'@kwsites/file-exists': 1.1.1
'@kwsites/promise-deferred': 1.1.1
- debug: 4.3.6
+ debug: 4.3.6([email protected])
transitivePeerDependencies:
- supports-color
@@ -13467,6 +13743,8 @@ snapshots:
optionalDependencies:
bare-events: 2.2.2
+
dependencies:
emoji-regex: 8.0.0
@@ -13717,14 +13995,10 @@ snapshots:
fdir: 6.3.0([email protected])
picomatch: 4.0.2
-
-
@@ -13770,6 +14044,10 @@ snapshots:
+ optionalDependencies:
+ typescript: 5.5.4
+
dependencies:
'@types/json5': 0.0.29
@@ -13787,7 +14065,8 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
+ optional: true
@@ -13799,6 +14078,8 @@ snapshots:
+
dependencies:
media-typer: 0.3.0
@@ -13862,6 +14143,8 @@ snapshots:
+
dependencies:
'@fastify/busboy': 2.1.1
@@ -14018,35 +14301,17 @@ snapshots:
dependencies:
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
dependencies:
cac: 6.7.14
- debug: 4.3.6
- pathe: 1.1.2
- picocolors: 1.0.1
- vite: 5.4.3(@types/[email protected])([email protected])
- transitivePeerDependencies:
- - '@types/node'
- - less
- - lightningcss
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
-
- dependencies:
- cac: 6.7.14
- debug: 4.3.6
+ debug: 4.3.6([email protected])
pathe: 1.1.2
tinyrainbow: 1.2.0
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -14058,7 +14323,7 @@ snapshots:
- supports-color
- terser
dependencies:
'@babel/code-frame': 7.24.7
ansi-escapes: 4.3.2
@@ -14070,7 +14335,7 @@ snapshots:
npm-run-path: 4.0.1
strip-ansi: 6.0.1
tiny-invariant: 1.3.3
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
vscode-languageclient: 7.0.0
vscode-languageserver: 7.0.0
vscode-languageserver-textdocument: 1.0.11
@@ -14081,25 +14346,25 @@ snapshots:
typescript: 5.5.4
vue-tsc: 2.1.4([email protected])
dependencies:
'@antfu/utils': 0.7.10
'@rollup/pluginutils': 5.1.0([email protected])
- debug: 4.3.6
+ debug: 4.3.6([email protected])
error-stack-parser-es: 0.1.5
fs-extra: 11.2.0
open: 10.1.0
perfect-debounce: 1.0.0
picocolors: 1.0.1
sirv: 2.0.4
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
optionalDependencies:
transitivePeerDependencies:
- rollup
- supports-color
dependencies:
'@babel/core': 7.24.7
'@babel/plugin-proposal-decorators': 7.24.1(@babel/[email protected])
@@ -14110,21 +14375,32 @@ snapshots:
'@vue/compiler-dom': 3.5.2
kolorist: 1.8.0
magic-string: 0.30.11
- vite: 5.4.3(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ debug: 4.3.6([email protected])
+ globrex: 0.1.2
+ tsconfck: 3.1.1([email protected])
+ optionalDependencies:
+ vite: 5.4.3(@types/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
+ - typescript
dependencies:
esbuild: 0.21.5
postcss: 8.4.45
rollup: 4.21.2
optionalDependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
fsevents: 2.3.3
terser: 5.31.0
dependencies:
aria-query: 5.3.0
chalk: 5.3.0
@@ -14132,11 +14408,11 @@ snapshots:
dom-accessibility-api: 0.6.3
lodash-es: 4.17.21
redent: 4.0.0
dependencies:
transitivePeerDependencies:
- '@cucumber/cucumber'
- '@jest/globals'
@@ -14158,43 +14434,7 @@ snapshots:
- vue-router
- webpack-sources
- dependencies:
- '@vitest/expect': 1.6.0
- '@vitest/runner': 1.6.0
- '@vitest/snapshot': 1.6.0
- '@vitest/spy': 1.6.0
- '@vitest/utils': 1.6.0
- acorn-walk: 8.3.2
- chai: 4.4.1
- debug: 4.3.6
- execa: 8.0.1
- local-pkg: 0.5.0
- magic-string: 0.30.11
- pathe: 1.1.2
- picocolors: 1.0.1
- std-env: 3.7.0
- strip-literal: 2.1.0
- tinybench: 2.8.0
- tinypool: 0.8.4
- vite: 5.4.3(@types/[email protected])([email protected])
- vite-node: 1.6.0(@types/[email protected])([email protected])
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@types/node': 20.14.11
- '@vitest/ui': 1.6.0([email protected])
- jsdom: 24.1.0
- transitivePeerDependencies:
- - less
- - lightningcss
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
-
dependencies:
'@ampproject/remapping': 2.3.0
'@vitest/expect': 2.0.5
@@ -14204,7 +14444,7 @@ snapshots:
'@vitest/spy': 2.0.5
'@vitest/utils': 2.0.5
chai: 5.1.1
- debug: 4.3.6
+ debug: 4.3.6([email protected])
execa: 8.0.1
magic-string: 0.30.11
pathe: 1.1.2
@@ -14212,11 +14452,11 @@ snapshots:
tinybench: 2.8.0
tinypool: 1.0.0
tinyrainbow: 1.2.0
- vite: 5.4.3(@types/[email protected])([email protected])
- vite-node: 2.0.5(@types/[email protected])([email protected])
+ vite: 5.4.3(@types/[email protected])([email protected])
+ vite-node: 2.0.5(@types/[email protected])([email protected])
why-is-node-running: 2.3.0
optionalDependencies:
- '@types/node': 20.14.11
+ '@types/node': 22.5.1
'@vitest/ui': 2.0.5([email protected])
jsdom: 24.1.0
transitivePeerDependencies:
@@ -14266,7 +14506,7 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.6([email protected])
eslint: 8.57.0
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3
@@ -14422,6 +14662,8 @@ snapshots:
+
dependencies:
eslint-visitor-keys: 3.4.3
@@ -14446,8 +14688,6 @@ snapshots:
-