@scalar/cli 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/chunks/{action-UZQJNYK4.js → action-42D2C47G.js} +3 -3
  2. package/chunks/{action-G26LSVZ7.js → action-6FAJNP6C.js} +4 -4
  3. package/chunks/{action-IUE4IOWO.js → action-6MZZHPVQ.js} +66 -13
  4. package/chunks/{action-CH24QGTE.js → action-7H3XARJP.js} +5 -5
  5. package/chunks/{action-5IU77OII.js → action-AMNYOA4B.js} +4 -4
  6. package/chunks/{action-OGQSTRMX.js → action-DCINFQ57.js} +10 -10
  7. package/chunks/{action-FDB7NEOK.js → action-DGD6Q6Y5.js} +4 -4
  8. package/chunks/{action-JZLZ7ZAD.js → action-EPNE5XCM.js} +13 -13
  9. package/chunks/{action-SQG3JAII.js → action-FF2OMGAS.js} +9 -9
  10. package/chunks/{action-SNLCIBQC.js → action-HIL5ZFNB.js} +5 -5
  11. package/chunks/{action-4XI7XJR4.js → action-HXHBU7XC.js} +2 -2
  12. package/chunks/{action-MSLBC2SO.js → action-LFL3ZZKN.js} +12 -12
  13. package/chunks/{action-QE2ZQQX7.js → action-LUVBQEIQ.js} +4 -4
  14. package/chunks/{action-WFWYGY7O.js → action-OILGZAMK.js} +10 -10
  15. package/chunks/{action-QPUSPD5M.js → action-OK55BFGM.js} +3 -3
  16. package/chunks/{action-VC4DCVST.js → action-P7RFXIC7.js} +10 -10
  17. package/chunks/{action-LA6KVAXQ.js → action-PAA4NWUJ.js} +5 -5
  18. package/chunks/{action-F3UX5E3M.js → action-PHLOE27S.js} +15 -15
  19. package/chunks/{action-37EV4UHW.js → action-RBVPKCRI.js} +5 -5
  20. package/chunks/{action-FIXBOJEW.js → action-SJYAMXYI.js} +4 -4
  21. package/chunks/{action-R7IMFHQ5.js → action-TWHLZW4V.js} +7 -7
  22. package/chunks/{action-HGBBV353.js → action-V5KYG7XD.js} +8 -8
  23. package/chunks/{action-NVSZT2ZD.js → action-W62AIEBN.js} +5 -5
  24. package/chunks/{action-M7RQKBSB.js → action-X7TZA3RE.js} +6 -6
  25. package/chunks/{action-PAGJ5PWC.js → action-XUQ7TKKJ.js} +3 -3
  26. package/chunks/{action-VTVFY2MP.js → action-Y6CEKYEK.js} +16 -16
  27. package/chunks/{action-B3KKREWQ.js → action-YRWHX2AE.js} +4 -4
  28. package/chunks/{action-XMNX5ZYT.js → action-ZLTUMRO2.js} +15 -15
  29. package/chunks/{action-SH4UUXPL.js → action-ZWQLQENM.js} +4 -4
  30. package/chunks/{agent-HCQRMHQ5.js → agent-JAXLLDPE.js} +2 -2
  31. package/chunks/{asyncapi-QM76O55R.js → asyncapi-P6Y3L7RG.js} +6 -6
  32. package/chunks/{build.action-P7FCIMYU.js → build.action-AZ5ECU4B.js} +12 -12
  33. package/chunks/{chunk-3L6DLIXJ.js → chunk-3BWGTPPT.js} +1992 -500
  34. package/chunks/{chunk-4NHMAG6F.js → chunk-3DJ2GKEG.js} +1 -1
  35. package/chunks/{chunk-HPL3ZZ2P.js → chunk-CIFOFSZ3.js} +1 -1
  36. package/chunks/{chunk-Q7DOQHZN.js → chunk-CX7ZRMTC.js} +1 -1
  37. package/chunks/{chunk-PT5TI77I.js → chunk-FOKFF4EP.js} +2 -2
  38. package/chunks/{chunk-HCPN3KNF.js → chunk-FQVVKQPU.js} +1 -1
  39. package/chunks/{chunk-7AGLC7WV.js → chunk-HUCR333E.js} +1 -1
  40. package/chunks/{chunk-X5T526CE.js → chunk-HXIDUCSZ.js} +1 -1
  41. package/chunks/{chunk-4ZDQXWBT.js → chunk-JV7TUEXQ.js} +1 -1
  42. package/chunks/{chunk-F467BYYR.js → chunk-KEOCJ3NJ.js} +4 -4
  43. package/chunks/{chunk-K4DTP5TV.js → chunk-LCPFHE4Z.js} +1 -1
  44. package/chunks/{chunk-GSGZHE26.js → chunk-LQN4S62O.js} +2 -2
  45. package/chunks/{chunk-P7H7GY5A.js → chunk-M622VXRQ.js} +1 -1
  46. package/chunks/{chunk-XCSR4RIT.js → chunk-M6Q3ARBV.js} +2 -2
  47. package/chunks/{chunk-CISTON3A.js → chunk-MNLXYOVF.js} +2 -2
  48. package/chunks/{chunk-M37TP6U2.js → chunk-NIXG4KDE.js} +1 -1
  49. package/chunks/{chunk-PBXZN65A.js → chunk-NNMSZVAB.js} +1 -1
  50. package/chunks/{chunk-UGGNHILG.js → chunk-RAO7VUGM.js} +1 -1
  51. package/chunks/{chunk-Z2KMGFE6.js → chunk-RPVHJMQT.js} +2 -2
  52. package/chunks/{chunk-24WAOKGG.js → chunk-SWWWYWHC.js} +1 -1
  53. package/chunks/{chunk-COBPBRQF.js → chunk-TYLWJ2UL.js} +2 -2
  54. package/chunks/{chunk-AO3F5XWR.js → chunk-UB3XGOUW.js} +6 -6
  55. package/chunks/{chunk-LFU5ZUAP.js → chunk-UMPODUJO.js} +2 -2
  56. package/chunks/{create.action-HDD2WUON.js → create.action-34OTO2SB.js} +12 -12
  57. package/chunks/{delete.action-VE66JFDS.js → delete.action-6LRT4M3S.js} +12 -12
  58. package/chunks/{delete.action-7GOZY7ID.js → delete.action-ZYXFMIOW.js} +12 -12
  59. package/chunks/{get.action-2745EB4N.js → get.action-XP36SA2J.js} +8 -8
  60. package/chunks/{list.action-3VTXQJRA.js → list.action-6LF6KSD5.js} +10 -10
  61. package/chunks/{list.action-4QDCZLSZ.js → list.action-WVRVLX5E.js} +12 -12
  62. package/chunks/{publish.action-ULQLZKWU.js → publish.action-AHFUBT5C.js} +16 -16
  63. package/chunks/{update.action-6QEFP7NA.js → update.action-YQTVUDYE.js} +12 -12
  64. package/chunks/{update.action-OROQSP2S.js → update.action-ZREAFJVG.js} +12 -12
  65. package/docs.html +65 -63
  66. package/index.js +46 -46
  67. package/package.json +18 -18
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  baseRegistrySchema,
7
7
  contentShaSchema
8
- } from "./chunk-Q7DOQHZN.js";
8
+ } from "./chunk-CX7ZRMTC.js";
9
9
  import {
10
10
  brandedUid,
11
11
  docVersionSchema,
@@ -7643,7 +7643,7 @@ import semver from "semver";
7643
7643
  // ../../packages/entities/dist/sdk/scalar-config.js
7644
7644
  var import_yaml2 = __toESM(require_dist(), 1);
7645
7645
 
7646
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.schema.json
7646
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.schema.json
7647
7647
  var scalar_sdk_config_schema_default = {
7648
7648
  $schema: "https://json-schema.org/draft/2020-12/schema",
7649
7649
  $id: "https://scalar.com/schemas/sdk-generator.config.schema.json",
@@ -7788,6 +7788,7 @@ var scalar_sdk_config_schema_default = {
7788
7788
  properties: {
7789
7789
  failOn: {
7790
7790
  enum: ["off", "info", "warn", "error"],
7791
+ default: "error",
7791
7792
  description: "Lowest severity that fails the build (default `error`); `off` disables severity gating."
7792
7793
  },
7793
7794
  maxWarnings: {
@@ -8100,6 +8101,7 @@ var scalar_sdk_config_schema_default = {
8100
8101
  },
8101
8102
  perspective: {
8102
8103
  enum: ["provider", "client"],
8104
+ default: "provider",
8103
8105
  description: "Whose point of view the document's `action` values are written from. `provider` (default) means a `send` operation is the API sending to the SDK, so it becomes a received event."
8104
8106
  }
8105
8107
  },
@@ -8128,10 +8130,12 @@ var scalar_sdk_config_schema_default = {
8128
8130
  },
8129
8131
  signatureAlgorithm: {
8130
8132
  enum: ["hmac-sha1", "hmac-sha256", "hmac-sha512", "ed25519", "rsa-sha256"],
8133
+ default: "hmac-sha256",
8131
8134
  description: "Signature verification algorithm for generated webhook helpers. Defaults to hmac-sha256 when verification is enabled."
8132
8135
  },
8133
8136
  signatureHeader: {
8134
8137
  type: "string",
8138
+ default: "webhook-signature",
8135
8139
  description: "Header carrying the webhook signature. Defaults to webhook-signature when verification is enabled."
8136
8140
  },
8137
8141
  timestampHeader: {
@@ -8454,6 +8458,7 @@ var scalar_sdk_config_schema_default = {
8454
8458
  },
8455
8459
  useNamespaceInTypeNames: {
8456
8460
  type: "boolean",
8461
+ default: true,
8457
8462
  description: "When false, generated operation type names for this resource drop the parent-resource namespace prefix and use the leaf resource name only. Defaults to true. Currently only affects targets with a flat package namespace (Go)."
8458
8463
  },
8459
8464
  only: {
@@ -8629,7 +8634,7 @@ var scalar_sdk_config_schema_default = {
8629
8634
  }
8630
8635
  },
8631
8636
  publishAuthMethod: {
8632
- description: "Registry authentication mechanism for a target's generated release workflows: `oidc` for the registry's [OIDC trusted publishing](https://docs.github.com/en/actions/concepts/security/openid-connect), or `access-token` for a long-lived token read from a repository secret. These are the only two mechanisms a generated workflow can use, so the value is a closed enum; a config still carrying any other string is dropped at load time and resolves to the registry's default, as it always did. Each registry's own `publish.<registry>` entry names the page to register the trusted publisher on and the secret its `access-token` mode reads.",
8637
+ description: "Registry authentication mechanism for a target's generated release workflows: `oidc` for the registry's [OIDC trusted publishing](https://docs.github.com/en/actions/concepts/security/openid-connect), or `access-token` for a long-lived token read from a repository secret. These are the only two mechanisms a generated workflow can use, so the value is a closed enum; a config still carrying any other string is dropped at load time and resolves to the registry's default, as it always did. Almost every trusted-publisher registration asks for the destination repository, the **workflow file** the publish job runs from, and the environment when `releaseEnvironment` is set. That workflow file is `release-please.yml` \u2014 the workflow the automated release publishes from \u2014 for every registry that authorizes by workflow file, which is all of them except `pub`; register `sdk-release.yml`, the manual re-publish workflow, as a second publisher only if it is used. pub.dev authorizes a repository and a git tag pattern instead, which neither generated workflow can satisfy; `pub` still defaults to `oidc` all the same, so a Dart target has to set `authMethod` to `access-token` itself \u2014 see `publish.pub`. Each registry's own `publish.<registry>` entry names the page to register on and the secret its `access-token` mode reads.",
8633
8638
  type: "string",
8634
8639
  enum: ["oidc", "access-token"]
8635
8640
  },
@@ -8648,26 +8653,12 @@ var scalar_sdk_config_schema_default = {
8648
8653
  properties: {
8649
8654
  authMethod: {
8650
8655
  $ref: "#/$defs/publishAuthMethod",
8651
- description: "How the generated release workflow authenticates with the registry.\n\n`oidc` uses the registry's [OIDC trusted publishing](https://docs.github.com/en/actions/concepts/security/openid-connect): the publish job exchanges its GitHub Actions id-token for a short-lived, package-scoped token, so no long-lived credential is stored in the destination repository. It is the default for every registry that supports it \u2014 npm, PyPI, crates.io, NuGet, pub.dev, and RubyGems \u2014 and requires a trusted publisher registered on the registry naming the destination repository, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\n`access-token` publishes with a long-lived token read from a repository secret instead; use it for a registry where no trusted publisher is registered yet, then drop the override once one is. Each registry's trusted-publisher page and token secret:\n\n| Registry | Trusted publisher (OIDC) | Secret for `access-token` |\n| --- | --- | --- |\n| `npm` | [npm trusted publishers](https://docs.npmjs.com/trusted-publishers) \u2014 the package's **Settings \u2192 Trusted Publisher** tab | `NPM_TOKEN` |\n| `pypi` | [PyPI publishing settings](https://pypi.org/manage/account/publishing/) | `PYPI_API_TOKEN` |\n| `cargo` | [crates.io trusted publishing](https://crates.io/docs/trusted-publishing) \u2014 the crate's **Settings** tab | `CARGO_REGISTRY_TOKEN` |\n| `nuget` | [nuget.org trusted publishing](https://learn.microsoft.com/nuget/nuget-org/trusted-publishing) \u2014 also reads `NUGET_USER` under OIDC | `NUGET_API_KEY` |\n| `pub` | [pub.dev automated publishing](https://dart.dev/tools/pub/automated-publishing) \u2014 authorizes a tag pattern, not a workflow file, and the generated workflow cannot satisfy it; see `publish.pub` | `PUB_TOKEN` |\n| `rubygems` | [RubyGems trusted publishing](https://guides.rubygems.org/trusted-publishing/) | `RUBYGEMS_API_KEY` |\n| `maven` | not supported \u2014 always token | `MAVEN_CENTRAL_USERNAME`, `MAVEN_CENTRAL_PASSWORD`, `MAVEN_GPG_PRIVATE_KEY`, `MAVEN_GPG_PASSPHRASE` |\n| `homebrew` | not supported \u2014 pushes to a tap repository | `HOMEBREW_TAP_TOKEN` |\n| `binaries` | not applicable \u2014 uploads to the GitHub Release | none (ambient `GITHUB_TOKEN`) |\n| `go`, `swiftpm`, `packagist` | not applicable \u2014 published by git tag | none |\n\nRepository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set. Registries without OIDC support default to `access-token` regardless, and ecosystems published by git tag alone (Go, SwiftPM, Packagist) ignore this."
8656
+ description: "How the generated release workflow authenticates with the registry.\n\n`oidc` uses the registry's [OIDC trusted publishing](https://docs.github.com/en/actions/concepts/security/openid-connect): the publish job exchanges its GitHub Actions id-token for a short-lived, package-scoped token, so no long-lived credential is stored in the destination repository. It is the default for every registry that supports it \u2014 npm, PyPI, crates.io, NuGet, pub.dev, and RubyGems \u2014 and requires a trusted publisher registered on the registry naming the destination repository, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set. pub.dev is the exception: it authorizes a git tag pattern rather than a workflow file, and no generated workflow can satisfy it, so a Dart target has to set `access-token` itself \u2014 see the table below and `publish.pub`.\n\n`access-token` publishes with a long-lived token read from a repository secret instead; use it for a registry where no trusted publisher is registered yet, then drop the override once one is \u2014 except on `pub`, where it is not a stepping stone but the permanent answer, since pub.dev accepts a publish only from a tag-triggered run and neither generated workflow is one. Each registry's trusted-publisher page and token secret:\n\n| Registry | Trusted publisher (OIDC) | Secret for `access-token` |\n| --- | --- | --- |\n| `npm` | [npm trusted publishers](https://docs.npmjs.com/trusted-publishers) \u2014 the package's **Settings \u2192 Trusted Publisher** tab | `NPM_TOKEN` |\n| `pypi` | [PyPI publishing settings](https://pypi.org/manage/account/publishing/) | `PYPI_API_TOKEN` |\n| `cargo` | [crates.io trusted publishing](https://crates.io/docs/trusted-publishing) \u2014 the crate's **Settings** tab | `CARGO_REGISTRY_TOKEN` |\n| `nuget` | [nuget.org trusted publishing](https://learn.microsoft.com/nuget/nuget-org/trusted-publishing) \u2014 also reads `NUGET_USER` under OIDC | `NUGET_API_KEY` |\n| `pub` | [pub.dev automated publishing](https://dart.dev/tools/pub/automated-publishing) \u2014 authorizes a tag pattern, not a workflow file, and the generated workflow cannot satisfy it; see `publish.pub` | `PUB_TOKEN` |\n| `rubygems` | [RubyGems trusted publishing](https://guides.rubygems.org/trusted-publishing/) | `RUBYGEMS_API_KEY` |\n| `maven` | not supported \u2014 always token | `MAVEN_CENTRAL_USERNAME`, `MAVEN_CENTRAL_PASSWORD`, `MAVEN_GPG_PRIVATE_KEY`, `MAVEN_GPG_PASSPHRASE` |\n| `homebrew` | not supported \u2014 pushes to a tap repository | `HOMEBREW_TAP_TOKEN` |\n| `binaries` | not applicable \u2014 uploads to the GitHub Release | none (ambient `GITHUB_TOKEN`) |\n| `go`, `swiftpm`, `packagist` | not applicable \u2014 published by git tag | none |\n\nRepository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set. Registries without OIDC support default to `access-token` regardless, and ecosystems published by git tag alone (Go, SwiftPM, Packagist) ignore this."
8652
8657
  },
8653
8658
  releaseEnvironment: {
8654
8659
  type: "string",
8655
8660
  description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's [environment protection rules](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments) \u2014 required reviewers, wait timers, environment secrets \u2014 gate the release. Under OIDC trusted publishing the name must also match the environment registered on the trusted publisher, which is how a registry constrains who in a repository may publish; leave the registry's environment field blank when this is unset, since a publisher that names an environment rejects a run without one. When it is set, the publish job can read that environment's secrets as well as the repository's, and an environment secret takes precedence over a repository secret of the same name."
8656
8661
  },
8657
- sonatypePlatform: {
8658
- anyOf: [
8659
- {
8660
- const: "portal"
8661
- },
8662
- {
8663
- const: "ossrh"
8664
- },
8665
- {
8666
- type: "string"
8667
- }
8668
- ],
8669
- description: "Maven Central/Sonatype platform variant for Java and Kotlin publishing."
8670
- },
8671
8662
  homepage: {
8672
8663
  type: "string",
8673
8664
  description: "Registry or package homepage metadata."
@@ -8688,7 +8679,7 @@ var scalar_sdk_config_schema_default = {
8688
8679
  tapRepo: {
8689
8680
  type: "string",
8690
8681
  pattern: "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$",
8691
- description: "Homebrew tap repository (`owner/repo`) the release workflow pushes the generated formula to, e.g. `acme/homebrew-tap`. Required, because a tap is the only thing a Homebrew release has to push to: there is no central registry to fall back on, so a guessed repository either does not exist or belongs to someone else. Restricted to a single `owner/repo` pair of GitHub name characters because the value is spliced into the `git clone` URL of the generated release workflow."
8682
+ description: "Homebrew tap repository (`owner/repo`) the release workflow pushes the generated formula to, e.g. `acme/homebrew-tap`. Required, because a tap is the only thing a Homebrew release has to push to: there is no central registry to fall back on, so a guessed repository either does not exist or belongs to someone else. Restricted to a single `owner/repo` pair of GitHub name characters because the value is spliced into the `git clone` URL of the generated release workflow.\n\nCreate the repository yourself before the first release \u2014 nothing in the generated workflow creates it \u2014 and set it up so a user can install from it:\n\n- **Name it `homebrew-<tap>`.** Homebrew expands the `brew install <owner>/<tap>/<formula>` shorthand back to `github.com/<owner>/homebrew-<tap>`, so a conventionally named tap installs in one command. Any other name is still a working tap, but users have to `brew tap <owner>/<repo> https://github.com/<owner>/<repo>` first, and that is what the generated README documents instead.\n- **Keep it public.** `brew install` fetches the formula anonymously; a private tap only installs for users who have configured their own GitHub credentials for Homebrew.\n\nThe owner does not have to match the SDK repository's owner \u2014 a tap shared across several CLIs usually does not. Access to it comes from the `HOMEBREW_TAP_TOKEN` secret, not from the workflow's own repository permissions; see `publish.homebrew` for how to mint and store it."
8692
8683
  },
8693
8684
  authMethod: {
8694
8685
  $ref: "#/$defs/publishAuthMethod",
@@ -8768,7 +8759,7 @@ var scalar_sdk_config_schema_default = {
8768
8759
  properties: {
8769
8760
  npm: {
8770
8761
  $ref: "#/$defs/npmRegistryConfig",
8771
- description: "npm registry publishing configuration for TypeScript packages. `true` publishes with the defaults; an object tunes them.\n\nReleases use [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, package-scoped npm token, so no `NPM_TOKEN` secret is stored. Register the publisher on the package's **Settings \u2192 Trusted Publisher** tab (`https://www.npmjs.com/package/<package>/access`), naming the destination repository's owner and name, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\nnpm has no pending-publisher flow, so the package must already exist before a publisher can be registered: publish the first version with `authMethod` set to `access-token` and a [granular access token](https://docs.npmjs.com/creating-and-viewing-access-tokens) stored as the `NPM_TOKEN` repository secret, then register the publisher and drop the override. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set.\n\n`authMethod` and `releaseEnvironment` decide how the publish authenticates; `access` and `tag` decide what it publishes \u2014 the package's visibility and the dist-tag stable releases land on."
8762
+ description: "npm registry publishing configuration for TypeScript packages. `true` publishes with the defaults; an object tunes them.\n\nReleases use [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, package-scoped npm token, so no `NPM_TOKEN` secret is stored. Register the publisher on the package's **Settings \u2192 Trusted Publisher** tab (`https://www.npmjs.com/package/<package>/access`), naming the destination repository's owner and name, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\nnpm has no pending-publisher flow, so the package must already exist before a publisher can be registered: publish the first version with `authMethod` set to `access-token` and a [granular access token](https://docs.npmjs.com/creating-and-viewing-access-tokens) stored as the `NPM_TOKEN` repository secret, then register the publisher and drop the override. Give that token **Read and write (publish and stage)** \u2014 the *stage only* variant parks the version awaiting an interactive approval instead of publishing it \u2014 and turn **Bypass 2FA** on, since account-level or package-level 2FA otherwise answers the publish with an OTP prompt no workflow can satisfy. Its package selector lists packages and scopes that already exist, so a first release has nothing to point it at: select the npm scope for a scoped name, creating that scope or organization first, and fall back to **All packages** for an unscoped one, then narrow or revoke the token once the trusted publisher is registered. Treat the override as a bootstrap and nothing more: npm is removing direct publishing with a granular token in January 2027, so register the trusted publisher as soon as the first version exists. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set.\n\n`authMethod` and `releaseEnvironment` decide how the publish authenticates; `access` and `tag` decide what it publishes \u2014 the package's visibility and the dist-tag stable releases land on."
8772
8763
  }
8773
8764
  }
8774
8765
  },
@@ -8824,6 +8815,11 @@ var scalar_sdk_config_schema_default = {
8824
8815
  enum: ["wire", "sdk"],
8825
8816
  default: "wire",
8826
8817
  description: "Naming style for generated properties and parameters. 'wire' (the default) preserves the OpenAPI wire names, e.g. `order_by` and `event_name`. 'sdk' emits the target's idiomatic SDK name \u2014 camelCase for TypeScript, so `orderBy` and `eventName` \u2014 and generates a wire<->sdk remap so request query/body keys and response bodies stay correct on the network. The value is named 'sdk' (rather than 'camelCase') to match the shared naming used across language targets, where the idiomatic style differs by language; for TypeScript specifically 'sdk' means camelCase."
8818
+ },
8819
+ dateTimeType: {
8820
+ enum: ["string", "Date"],
8821
+ default: "string",
8822
+ description: "How `format: date-time` values are typed. 'string' (the default) declares them as ISO 8601 strings and passes them through untouched, which is what every generated TypeScript SDK does today. 'Date' declares them as a JavaScript `Date`: response values are parsed from their ISO string on the paths the response remap reaches, and a `Date` handed to a request is written as ISO by the runtime that already serializes it \u2014 the query serializer, or `JSON.stringify` for a body. Request-side inputs accept `Date | string`, so a caller that already holds an ISO string need not round-trip it. A header, a path segment and a `multipart/form-data` part are excluded, because none of those serializers handles a `Date`: an inline date-time there stays a string. A `format: date` (date-only) value is unaffected and stays a string \u2014 putting a date-only value in a `Date` gives it a spurious local midnight and timezone. Where the response remap cannot run \u2014 streaming, paginated, websocket, gRPC/Connect and unwrapped responses \u2014 a method's own inline response type stays 'string' so it never promises a `Date` the runtime does not deliver. Three gaps remain, all because a shared model is declared once under the SDK-wide setting rather than per use site, so a reference to it renders its declared name wherever it appears. A model reached only through a union or intersection arm, and a model reached through one of those non-remapping methods, both carry `Date` over fields the remap never visits, and those fields hold the ISO string the server sent. And a parameter whose schema references a declared date-time model keeps that model's `Date` even in the excluded request positions above, since the reference renders the name rather than a date-time this option could withhold."
8827
8823
  }
8828
8824
  }
8829
8825
  },
@@ -8844,6 +8840,7 @@ var scalar_sdk_config_schema_default = {
8844
8840
  },
8845
8841
  environment_enum_name: {
8846
8842
  type: "string",
8843
+ default: "Environment",
8847
8844
  description: "Name of the generated environment enum (UpperCamelCase). Defaults to `Environment`."
8848
8845
  },
8849
8846
  date_time_type: {
@@ -9083,7 +9080,7 @@ var scalar_sdk_config_schema_default = {
9083
9080
  type: "string"
9084
9081
  }
9085
9082
  ],
9086
- description: "Maven Central/Sonatype platform variant for Java and Kotlin publishing."
9083
+ description: "Maven Central/Sonatype platform variant an imported config named: `portal` for the Central Portal, `ossrh` for the retired OSSRH staging API. Declared on `maven` alone, because it describes nothing an npm, PyPI, or tag-served release could act on \u2014 a `sonatypePlatform` on any other registry is reported as an unknown publish option rather than silently accepted. The generated JVM release always publishes through the Central Portal, since OSSRH's June 2025 retirement leaves that the only path that publishes anything, so the value records where the SDK came from and does not change what is emitted."
9087
9084
  },
9088
9085
  homepage: {
9089
9086
  type: "string",
@@ -9102,7 +9099,7 @@ var scalar_sdk_config_schema_default = {
9102
9099
  properties: {
9103
9100
  maven: {
9104
9101
  $ref: "#/$defs/mavenRegistryConfig",
9105
- description: "Maven Central publishing configuration for JVM packages. `true` publishes with the defaults; an object tunes them, and carries `artifactId` on top of the shared registry fields since a Maven coordinate means nothing to npm or PyPI.\n\nMaven Central has no OIDC trusted publishing in the generated workflow, so `authMethod` is ignored here and releases always authenticate with repository secrets. Four are required: `MAVEN_CENTRAL_USERNAME` and `MAVEN_CENTRAL_PASSWORD`, which are the two halves of a [Central Portal user token](https://central.sonatype.com/usertoken) rather than the account's own login, and `MAVEN_GPG_PRIVATE_KEY` (an ASCII-armored private key) with `MAVEN_GPG_PASSPHRASE`, which sign the artifacts \u2014 Central rejects an unsigned upload. The publishing namespace must also be [verified on the Central Portal](https://central.sonatype.org/register/central-portal/) before the first release. It is not a config key here: it is the target's `reverseDomain`, and for a JVM target that sets none the emitter derives one, which is a namespace nobody can verify \u2014 so set `reverseDomain` on any target that publishes. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9102
+ description: "Maven Central publishing configuration for JVM packages. `true` publishes with the defaults; an object tunes them, and carries `artifactId` on top of the shared registry fields since a Maven coordinate means nothing to npm or PyPI.\n\nMaven Central has no OIDC trusted publishing in the generated workflow, so `authMethod` is ignored here and releases always authenticate with repository secrets. Four are required: `MAVEN_CENTRAL_USERNAME` and `MAVEN_CENTRAL_PASSWORD`, which are the two halves of a [Central Portal user token](https://central.sonatype.com/usertoken) rather than the account's own login, and `MAVEN_GPG_PRIVATE_KEY` (an ASCII-armored private key) with `MAVEN_GPG_PASSPHRASE`, which sign the artifacts \u2014 Central rejects an unsigned upload. Distribute the matching public key to a public keyserver \u2014 `keyserver.ubuntu.com`, `keys.openpgp.org`, or `pgp.mit.edu` \u2014 well before the first release, since a key can take hours to propagate and a release cut minutes after sending it still fails: Central verifies every signature against one, so a key that never left your machine fails the upload exactly as an unsigned artifact does. The publishing namespace must also be [verified on the Central Portal](https://central.sonatype.org/register/central-portal/) before the first release. It is not a config key here: it is the target's `reverseDomain`, and for a JVM target that sets none the emitter derives one, which is a namespace nobody can verify \u2014 so set `reverseDomain` on any target that publishes. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9106
9103
  }
9107
9104
  }
9108
9105
  },
@@ -9152,6 +9149,7 @@ var scalar_sdk_config_schema_default = {
9152
9149
  },
9153
9150
  elideConst: {
9154
9151
  type: "boolean",
9152
+ default: true,
9155
9153
  description: "Elide a required constant-valued property, so the generated class pins the value instead of exposing the property. True by default: such a property renders as a pinned raw JSON value with no typed getter, no generated enum, and no typed builder setter \u2014 only the raw accessor and a single raw setter documented as the escape hatch for sending a value the document does not describe \u2014 and it is not checked on `build()`. A closed union variant whose discriminator is its only property, and which nothing else declares a class for, collapses to raw JSON instead of a class of its own. Set it to false to render the property as an ordinary typed field \u2014 typed getter, required builder slot, and a required-field check on `build()` \u2014 and to give such a union variant a real class, which is the shape a JVM SDK published before constants were elided exposes. A **string** constant is then typed by a generated single-member enum wrapper, matching how a one-value `enum` is already rendered; a numeric or boolean one keeps its plain scalar type, since the wrapper spells its members through their wire text and would send the value as a string. A constant that is the whole of a response body keeps its scalar type too. A constant property that is `readOnly` or nullable is not elided under either setting, since the caller must still be able to omit or null it; a discriminated union's tag is pinned on the union's own terms and is not subject to that carve-out."
9156
9154
  }
9157
9155
  }
@@ -9161,14 +9159,17 @@ var scalar_sdk_config_schema_default = {
9161
9159
  properties: {
9162
9160
  flatModelPackages: {
9163
9161
  type: "boolean",
9162
+ default: false,
9164
9163
  description: "Emit every model into one flat `models` package instead of a package per resource, and name each operation-derived class \u2014 params, page, async page, page response, and the response an operation implies, unless `unnamespacedImplicitResponses` exempts that last one \u2014 after its full chain of resource ancestors rather than its leaf resource: `models/AuthRuleV2BacktestCreateParams` where the default writes `models/authRules/v2/backtests/BacktestCreateParams`. The flat package and the chain-prefixed names are one option because they cannot be separated: flattening on its own drops the leaf-named params of sibling resources into a single package, where the sibling that loses the race is renamed to an arbitrary deduplicated spelling. A model named after a component schema keeps its name and only moves up a package, an operation on a resource with `useNamespaceInTypeNames` disabled is named from that resource alone with its ancestors dropped from the prefix, and services are unaffected and stay nested. Off by default."
9165
9164
  },
9166
9165
  refNameNestedModels: {
9167
9166
  type: "boolean",
9167
+ default: false,
9168
9168
  description: "Name a nested class after the component schema backing it rather than after the property or union variant that uses it: a `latestRejection` property whose schema is a `DecisionRejected` component renders `DecisionRejected` instead of `LatestRejection`, and a request body backed by a component renders that component's name instead of `Body`. This renames nested classes only \u2014 it promotes nothing to a top-level model, and union member accessors keep their tag-derived names. Off by default."
9169
9169
  },
9170
9170
  unnamespacedImplicitResponses: {
9171
9171
  type: "boolean",
9172
+ default: false,
9172
9173
  description: "Name the response model an operation implies \u2014 one with no component schema of its own to be named after \u2014 from the leaf resource alone, never from the chain of resource ancestors that `flatModelPackages` prefixes onto that operation's params: `store.order.create` yields `OrderCreateResponse` alongside `StoreOrderCreateParams`. A top-level client method's implied response drops the prefix altogether, so `client.retrieveRateLimits` yields `RetrieveRateLimitsResponse` rather than `ClientRetrieveRateLimitsResponse`. A page response is named from the params side and keeps its prefix either way. Off by default."
9173
9174
  }
9174
9175
  }
@@ -9178,7 +9179,7 @@ var scalar_sdk_config_schema_default = {
9178
9179
  properties: {
9179
9180
  rubygems: {
9180
9181
  $ref: "#/$defs/publishRegistryConfig",
9181
- description: "RubyGems publishing configuration for Ruby gems. `true` publishes with the defaults; an object tunes them.\n\nReleases use [RubyGems trusted publishing](https://guides.rubygems.org/trusted-publishing/) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, gem-scoped rubygems.org API key, so no `RUBYGEMS_API_KEY` secret is stored. Register the publisher on the gem's **Trusted publishers** page (`https://rubygems.org/gems/<gem>/trusted_publishers`) \u2014 or, for a gem with no releases yet, as a *pending* publisher at [rubygems.org/profile/oidc/pending_trusted_publishers](https://rubygems.org/profile/oidc/pending_trusted_publishers), which names the gem up front and becomes an ordinary publisher on the first successful push \u2014 naming the destination repository, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\nSet `authMethod` to `access-token` to publish with a [rubygems.org API key](https://rubygems.org/profile/api_keys) that has the *Push rubygem* scope, stored as the `RUBYGEMS_API_KEY` repository secret, instead. Both mechanisms are fully supported and switching between them is a config change and nothing else, which is the usual adoption order: a gem with no trusted publisher registered yet can release with `authMethod` set to `access-token`, then drop the override (or set `oidc` explicitly) once the publisher is registered on rubygems.org. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9182
+ description: "RubyGems publishing configuration for Ruby gems. `true` publishes with the defaults; an object tunes them.\n\nReleases use [RubyGems trusted publishing](https://guides.rubygems.org/trusted-publishing/) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, gem-scoped rubygems.org API key, so no `RUBYGEMS_API_KEY` secret is stored. Register this repository and its release workflow as a *pending* publisher at [rubygems.org/profile/oidc/pending_trusted_publishers](https://rubygems.org/profile/oidc/pending_trusted_publishers), naming the destination repository, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set. A pending publisher names the gem up front and becomes an ordinary publisher on the first successful push, which is what a gem with no releases yet needs: the gem's own **Trusted publishers** page (`https://rubygems.org/gems/<gem>/trusted_publishers`) is served only for a gem that already exists and is owned by you, and that page is where an already-released gem is configured.\n\nSet `authMethod` to `access-token` to publish with a [rubygems.org API key](https://rubygems.org/profile/api_keys) that has the *Push rubygem* scope, stored as the `RUBYGEMS_API_KEY` repository secret, instead. That key is only usable unattended at the right [MFA level](https://guides.rubygems.org/setting-up-multifactor-authentication/): at **UI and API** every push is answered with an OTP prompt no workflow can satisfy, so either publish over OIDC or move the account to **UI and gem signin** and leave MFA off this key. Both mechanisms are fully supported, and switching to OIDC is a config change and nothing else, which is the usual adoption order: a gem with no trusted publisher registered yet can release with `authMethod` set to `access-token`, then drop the override (or set `oidc` explicitly) once the publisher is registered on rubygems.org. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9182
9183
  }
9183
9184
  }
9184
9185
  },
@@ -9206,7 +9207,7 @@ var scalar_sdk_config_schema_default = {
9206
9207
  },
9207
9208
  gemName: {
9208
9209
  type: "string",
9209
- description: "Ruby gem name."
9210
+ description: "Ruby gem name.\n\nDefaults to a `snake_case` name derived from `organization.name`, which is what RubyGems prefers for a gem that occupies a single namespace: a dash is read there as a namespace separator, so `acme-widget` conventionally means the `Acme::Widget` gem whose entrypoint is `lib/acme/widget.rb`, and the generated gem is flat.\n\nA dash spelled here is preserved, so a gem already published under a kebab-case name (`orb-billing`) keeps it. Each dash-delimited segment is normalized on its own, so other separators and casing still fold into `snake_case` \u2014 `context.dev` becomes `context_dev` and `MyGem` becomes `my_gem`. Changing this value renames the published gem and the release-please component, so pin it to the current name for a gem that has already shipped."
9210
9211
  },
9211
9212
  publish: {
9212
9213
  $ref: "#/$defs/rubyGemsPublishConfig",
@@ -9303,7 +9304,7 @@ var scalar_sdk_config_schema_default = {
9303
9304
  properties: {
9304
9305
  npm: {
9305
9306
  $ref: "#/$defs/npmRegistryConfig",
9306
- description: "npm publishing configuration for the generated CLI package, installed globally with `npm install -g`. `true` publishes with the defaults; an object tunes them.\n\nAuthentication matches the TypeScript target's npm publishing: [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC) by default, registered on the package's **Settings \u2192 Trusted Publisher** tab (`https://www.npmjs.com/package/<package>/access`) against the destination repository and the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used). npm cannot register a publisher for a package that does not exist yet, so the first version publishes with `authMethod` set to `access-token` and an `NPM_TOKEN` repository secret. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set.\n\n`authMethod` and `releaseEnvironment` decide how the publish authenticates; `access` and `tag` decide what it publishes \u2014 the package's visibility and the dist-tag stable releases land on."
9307
+ description: "npm publishing configuration for the generated CLI package, installed globally with `npm install -g`. `true` publishes with the defaults; an object tunes them.\n\nAuthentication matches the TypeScript target's npm publishing: [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC) by default, registered on the package's **Settings \u2192 Trusted Publisher** tab (`https://www.npmjs.com/package/<package>/access`) against the destination repository and the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used). npm cannot register a publisher for a package that does not exist yet, so the first version publishes with `authMethod` set to `access-token` and an `NPM_TOKEN` repository secret \u2014 a [granular access token](https://docs.npmjs.com/creating-and-viewing-access-tokens) with **Read and write (publish and stage)** and **Bypass 2FA** on, since the *stage only* variant never publishes and 2FA otherwise answers the publish with an OTP prompt no workflow can satisfy. An unscoped package that does not exist yet cannot be picked in that token's package selector, so the first one needs **All packages**; see `targets.typescript.publish.npm`. npm is removing direct publishing with such a token in January 2027, so register the trusted publisher once the package exists and drop the override. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set.\n\n`authMethod` and `releaseEnvironment` decide how the publish authenticates; `access` and `tag` decide what it publishes \u2014 the package's visibility and the dist-tag stable releases land on."
9307
9308
  },
9308
9309
  binaries: {
9309
9310
  $ref: "#/$defs/publishRegistryConfig",
@@ -9311,7 +9312,7 @@ var scalar_sdk_config_schema_default = {
9311
9312
  },
9312
9313
  homebrew: {
9313
9314
  $ref: "#/$defs/homebrewPublishConfig",
9314
- description: "Homebrew formula publishing configuration for CLI packages. Unlike every other registry this is not a boolean toggle: enabling it requires an object naming the `tapRepo` to push the formula to. `false` (or omitting the key) disables Homebrew publishing.\n\nThere is no registry account and no OIDC path here, so `authMethod` is unused: the release workflow commits the rendered formula to the tap repository over HTTPS with the `HOMEBREW_TAP_TOKEN` repository secret \u2014 a [GitHub personal access token](https://github.com/settings/personal-access-tokens) with **Contents: read and write** on the tap. The workflow's ambient `GITHUB_TOKEN` cannot stand in for it, because that token is scoped to the repository the workflow runs in and the tap is a different repository. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9315
+ description: "Homebrew formula publishing configuration for CLI packages. Unlike every other registry this is not a boolean toggle: enabling it requires an object naming the `tapRepo` to push the formula to. `false` (or omitting the key) disables Homebrew publishing.\n\nThere is no registry account and no OIDC path here, so `authMethod` is unused. Each release clones the tap over HTTPS as `x-access-token` with the `HOMEBREW_TAP_TOKEN` repository secret, renders the formula into that clone, and commits it straight to the tap's default branch \u2014 no pull request, no review. The workflow's ambient `GITHUB_TOKEN` cannot stand in for that secret, because that token is scoped to the repository the workflow runs in and the tap is a different repository.\n\nSetting Homebrew publishing up, once:\n\n1. **Create the tap repository** and name it `homebrew-<tap>` \u2014 see `tapRepo` for the naming and visibility it needs.\n2. **Mint the token.** A [fine-grained personal access token](https://github.com/settings/personal-access-tokens/new) needs **Resource owner** set to the tap's owner (the user or organization, not the SDK repository's owner if they differ), **Repository access** set to *Only select repositories* \u2192 the tap, and exactly one repository permission: **Contents: Read and write**. **Metadata: Read-only** is added automatically alongside it; nothing else is required \u2014 no Administration, no Workflows, no account permissions. A classic token works too, with the `repo` scope (`public_repo` is enough for a public tap), but it carries that access to every repository its account can reach, which is why the fine-grained token is worth the extra minute.\n3. **Check the token can actually push.** A token never exceeds what its own account has, so that account needs write access to the tap, and a fine-grained token owned by an organization member may sit unusable until an organization owner approves it under the organization's personal-access-token policy.\n4. **Store it as `HOMEBREW_TAP_TOKEN`** in the *destination* repository \u2014 the one holding the generated SDK and its release workflows, not the tap \u2014 under **Settings \u2192 Secrets and variables \u2192 Actions \u2192 New repository secret**. It is read by the release job in `release-please.yml`, and by `sdk-release.yml` if the manual re-publish workflow is used, so it has to be visible to both. When `releaseEnvironment` is set, an environment secret of the same name overrides the repository one.\n5. **Leave the push a way through.** Because the commit lands on the tap's default branch directly, a branch protection rule or ruleset there that requires a pull request, a review, or a status check blocks the release at its final step. Either leave the tap's default branch unprotected or add a bypass for the token's account.\n6. **Track the expiry.** A fine-grained token expires, and an expired one fails the release the moment it tries to reach the tap \u2014 on the clone, not the push, since that is where the credential is first used \u2014 after the version has already been published to every other registry, so the fix is a re-run rather than a clean retry. Renew it ahead of time, or choose a lifetime you will not be surprised by.\n\nOne requirement no token covers: the **destination** repository's release assets have to be fetchable anonymously. The Homebrew step re-downloads with a plain `curl` the executables the asset step uploaded moments earlier \u2014 that upload is authenticated, this download is not \u2014 and pins those same URLs into the formula. A private destination repository therefore fails the release on that download, and would publish a formula no `brew install` could fetch even if it did not."
9315
9316
  }
9316
9317
  }
9317
9318
  },
@@ -9320,7 +9321,7 @@ var scalar_sdk_config_schema_default = {
9320
9321
  properties: {
9321
9322
  cargo: {
9322
9323
  $ref: "#/$defs/publishRegistryConfig",
9323
- description: "crates.io publishing configuration for Rust crates. `true` publishes with the defaults; an object tunes them.\n\nReleases use [crates.io trusted publishing](https://crates.io/docs/trusted-publishing) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, crate-scoped token, so no `CARGO_REGISTRY_TOKEN` secret is stored. Register the publisher on the crate's **Settings \u2192 Trusted Publishing** tab (`https://crates.io/crates/<crate>/settings`), naming the destination repository's owner and name, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\ncrates.io has no pending-publisher flow, so the crate must already exist and be owned by you before a publisher can be registered: publish the first version with `authMethod` set to `access-token` and a [crates.io API token](https://crates.io/settings/tokens) stored as the `CARGO_REGISTRY_TOKEN` repository secret, then register the publisher and drop the override. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9324
+ description: "crates.io publishing configuration for Rust crates. `true` publishes with the defaults; an object tunes them.\n\nReleases use [crates.io trusted publishing](https://crates.io/docs/trusted-publishing) (OIDC) unless `authMethod` says otherwise: the publish job exchanges its GitHub Actions id-token for a short-lived, crate-scoped token, so no `CARGO_REGISTRY_TOKEN` secret is stored. Register the publisher on the crate's **Settings \u2192 Trusted Publishing** tab (`https://crates.io/crates/<crate>/settings`), naming the destination repository's owner and name, the workflow file the publish job runs from \u2014 `release-please.yml`, the workflow the automated release publishes from (register `sdk-release.yml` as a second publisher only if the manual re-publish workflow is used) \u2014 and the `releaseEnvironment` when one is set.\n\ncrates.io has no pending-publisher flow, so the crate must already exist and be owned by you before a publisher can be registered: publish the first version with `authMethod` set to `access-token` and a [crates.io API token](https://crates.io/settings/tokens) stored as the `CARGO_REGISTRY_TOKEN` repository secret, then register the publisher and drop the override. Either way the publishing account needs a verified email address on its [account settings](https://crates.io/settings/profile) \u2014 crates.io rejects a publish from an account without one, whichever mechanism authenticates it. Repository secrets live under **Settings \u2192 Secrets and variables \u2192 Actions** in the destination repository; an environment secret of the same name overrides one there when `releaseEnvironment` is set."
9324
9325
  }
9325
9326
  }
9326
9327
  },
@@ -9463,6 +9464,50 @@ var scalar_sdk_config_schema_default = {
9463
9464
  prereleaseType: { $ref: "#/$defs/prereleaseType" }
9464
9465
  }
9465
9466
  },
9467
+ cliCredentialStoreConfig: {
9468
+ type: "object",
9469
+ properties: {
9470
+ enabled: {
9471
+ type: "boolean",
9472
+ default: true,
9473
+ description: "Set `false` to emit no credential store at all: no `login`, no `logout`, no stored-credential read. Defaults to **true**, but only ever reaches a CLI whose SDK has an auth scheme \u2014 an API with no configured credential has nothing to sign in with, so the commands are skipped there without any config saying so. This is the off switch for an API owner who has auth but does not want a credential file on their users' machines."
9474
+ },
9475
+ backend: {
9476
+ type: "string",
9477
+ enum: ["auto", "keychain", "file"],
9478
+ default: "auto",
9479
+ description: "Where a credential is kept once `login` obtains it.\n\n`auto` (the default) uses the operating system's own credential store when one is reachable \u2014 the Secret Service on Linux, Credential Manager on Windows \u2014 and falls back to a `0600` file under the user's state directory when it is not. That fallback is what keeps the CLI usable on a headless box or in CI, where no keychain daemon is running.\n\nmacOS always uses the file. Its `security` tool accepts a password only as a command-line argument, and a process's command line is readable by other processes, so there is no way to drive it without exposing the credential \u2014 which is the same reason the widely used CLIs that ship no native helper binary keep theirs in a file too.\n\n`keychain` refuses the fallback: if the OS store cannot be reached the command fails rather than writing a credential to disk. Choose it when an organisation forbids secrets at rest in a file \u2014 but read it together with the paragraph above: macOS has no helper this can drive, so `keychain` makes `login` fail on every Mac rather than fall back, and a CLI with Mac users needs `auto`.\n\n`file` never consults the OS store. Choose it when a keychain prompt would break an automated environment.\n\nEven under `keychain`, a small index of *which base URLs are signed in* is written to the state directory. It holds no secret \u2014 only the OS store does \u2014 and it is what lets `logout --all` find every profile, since a keychain offers no portable way to enumerate them."
9480
+ },
9481
+ oauth: {
9482
+ $ref: "#/$defs/cliOauthClientConfig",
9483
+ description: "Identifies this CLI to an OAuth provider, for the browser-redirect flows. Required for `authorizationCode`: the OpenAPI flow object carries the authorization and token URLs but never a `client_id`, because that identifies the *application* rather than the API, so no document can supply it. Without this block those flows are unavailable and `login` falls back to the next usable flow, or to reading a token the user supplies."
9484
+ }
9485
+ }
9486
+ },
9487
+ cliOauthClientConfig: {
9488
+ type: "object",
9489
+ properties: {
9490
+ clientId: {
9491
+ type: "string",
9492
+ minLength: 1,
9493
+ description: "Public OAuth client id registered for this CLI. Not a secret \u2014 a CLI is a public client, which is why the browser flow uses PKCE rather than a client secret \u2014 so it is baked into the generated source. A confidential secret must never be configured here; it would ship inside a published npm package.\n\nDeliberately not a `clientSettings.opts` entry carrying a `defaultValue`: an auth client option refuses defaults outright (see `ClientAuthField.defaultLiteral`) precisely so credentials cannot reach generated source, and routing a public identifier through that door would weaken the rule for every real credential."
9494
+ },
9495
+ redirectPort: {
9496
+ type: "integer",
9497
+ minimum: 0,
9498
+ maximum: 65535,
9499
+ default: 0,
9500
+ description: "Port the loopback redirect listens on, which has to match a redirect URI registered with the provider (`http://127.0.0.1:<port>/callback`). Defaults to `0`, letting the OS pick a free port \u2014 correct only where the provider accepts any loopback port, which RFC 8252 recommends for native apps but not every provider implements. Pin it when yours registers one exact URI."
9501
+ },
9502
+ scopes: {
9503
+ type: "array",
9504
+ minItems: 1,
9505
+ items: { type: "string" },
9506
+ description: "Scopes to request, overriding the ones the OpenAPI flow declares. A document tends to list every scope the API defines, which is more than a CLI needs; requesting all of them makes the consent screen alarming and the resulting token broader than it should be."
9507
+ }
9508
+ },
9509
+ required: ["clientId"]
9510
+ },
9466
9511
  cliTargetConfig: {
9467
9512
  type: "object",
9468
9513
  properties: {
@@ -9504,12 +9549,17 @@ var scalar_sdk_config_schema_default = {
9504
9549
  },
9505
9550
  shellCompletions: {
9506
9551
  type: "boolean",
9552
+ default: true,
9507
9553
  description: "Whether the generated CLI ships shell completion scripts and the `completion` subcommand that prints them. Defaults to true."
9508
9554
  },
9509
9555
  publish: {
9510
9556
  $ref: "#/$defs/cliPublishConfig",
9511
9557
  description: "CLI publishing configuration."
9512
9558
  },
9559
+ credentialStore: {
9560
+ $ref: "#/$defs/cliCredentialStoreConfig",
9561
+ description: "Interactive sign-in for the generated CLI: a `login` command that acquires a credential the way the SDK's auth scheme demands \u2014 prompting for an API key, or running an OAuth flow \u2014 and a `logout` that clears it, so later commands need no flag or environment variable.\n\nEmitted only when the SDK has an auth scheme, and suppressed by `enabled: false`. Where the credential is kept is `backend`'s call: by default the operating system's own credential store \u2014 the Secret Service on Linux, Credential Manager on Windows \u2014 falling back to a `0600` file inside a `0700` directory in the user's state directory when none is reachable, which is also what macOS always gets. Either way it is keyed by the resolved base URL, so a credential issued against one environment is never sent to another, and an explicit flag or environment variable always wins over a stored one."
9562
+ },
9513
9563
  prereleaseType: { $ref: "#/$defs/prereleaseType" }
9514
9564
  }
9515
9565
  },
@@ -9655,6 +9705,10 @@ var scalar_sdk_config_schema_default = {
9655
9705
  requiredInTests: {
9656
9706
  const: true,
9657
9707
  description: "Requires this option to be supplied when generated SDK tests run."
9708
+ },
9709
+ overridable: {
9710
+ const: true,
9711
+ description: "Keeps this option's parameter on every method that declares it, so the client-level value becomes a default a caller can override per request. Without it, a parameter the option already sends is dropped from every method signature. Ignored for an option that authenticates a security scheme, and only `sendInHeader` options are affected today, since no other injection site drops a parameter."
9658
9712
  }
9659
9713
  }
9660
9714
  },
@@ -9847,6 +9901,7 @@ var scalar_sdk_config_schema_default = {
9847
9901
  properties: {
9848
9902
  agentSkill: {
9849
9903
  type: "boolean",
9904
+ default: true,
9850
9905
  description: "Emit SKILL.md Agent Skill files describing the generated SDK for AI coding agents. Defaults to true."
9851
9906
  },
9852
9907
  fileHeader: {
@@ -9871,6 +9926,7 @@ var scalar_sdk_config_schema_default = {
9871
9926
  },
9872
9927
  ordering: {
9873
9928
  type: "string",
9929
+ default: "config",
9874
9930
  enum: ["config", "openapi", "crud"],
9875
9931
  description: "How resources and methods are ordered in generated SDKs. 'config' (default) follows the declaration order of `resources` in this config. 'openapi' follows the order operations appear in the OpenAPI document. 'crud' orders methods create \u2192 retrieve \u2192 update \u2192 list \u2192 delete \u2192 custom (resources fall back to config order)."
9876
9932
  },
@@ -9889,6 +9945,7 @@ var scalar_sdk_config_schema_default = {
9889
9945
  properties: {
9890
9946
  codeSamples: {
9891
9947
  enum: ["x-codeSamples", "x-code-samples", "x-scalar-examples", "x-custom-examples"],
9948
+ default: "x-codeSamples",
9892
9949
  description: "OpenAPI operation extension key generated code samples are written to. Defaults to `x-codeSamples`. An operation that already carries samples under another recognized key keeps that spelling."
9893
9950
  },
9894
9951
  codeSampleLanguages: {
@@ -9898,6 +9955,11 @@ var scalar_sdk_config_schema_default = {
9898
9955
  },
9899
9956
  description: "Enabled code sample languages keyed by language id."
9900
9957
  },
9958
+ tags: {
9959
+ enum: ["document", "resources"],
9960
+ default: "document",
9961
+ description: "Where the augmented OpenAPI document's `tags` come from. `document` (the default) keeps the tags the source document declares, untouched. `resources` replaces them with one tag per SDK resource \u2014 named after the resource accessor path (`billing.invoices`), labelled with `x-displayName`, and nested through OpenAPI 3.2's `tags[].parent` \u2014 and retags each operation onto the resource that owns its method, so a reference renderer shows sub-resources collapsed under their parents instead of one flat list. Only operations the resource tree places are retagged. An ignored endpoint, a webhook and a method placed on the root client by a `$client` entry keep their original tags because none has a resource to derive one from; an operation whose every tag the document marked `x-internal` or `x-scalar-ignore` has one and keeps its tags anyway, since a derived tag carries no hide marker. The tag objects those reference are preserved, along with any tag that only exists to be their `parent`; a retained tag keeps its own `parent` only where that still names another retained tag. `x-tagGroups` is removed wherever the rewrite replaces the tags (a run that derives no tag leaves it alone): it groups a vocabulary this option replaced, and a renderer falls back to that block whenever no tag declares a `parent`, returning only the tags its groups name. A description is written only where it says something the section above does not, since a resource with no tag prose of its own carries its nearest described ancestor's. `parent` is an OpenAPI 3.2 field, so a document this rewrites declares `openapi: 3.2.0` rather than carrying a tag its own version does not define. Safe to relabel rather than convert, since every input is upgraded to 3.1 at load and 3.2 is backward compatible with it. A run that derives no tag leaves the version alone."
9962
+ },
9901
9963
  security: {
9902
9964
  type: "array",
9903
9965
  items: {
@@ -10161,6 +10223,9 @@ var scalar_sdk_config_schema_default = {
10161
10223
  clientCredentials: {
10162
10224
  $ref: "#/$defs/clientCredentialsObject"
10163
10225
  },
10226
+ deviceAuthorization: {
10227
+ $ref: "#/$defs/deviceAuthorizationObject"
10228
+ },
10164
10229
  authorizationCode: {
10165
10230
  $ref: "#/$defs/authorizationCodeObject"
10166
10231
  }
@@ -10208,6 +10273,23 @@ var scalar_sdk_config_schema_default = {
10208
10273
  }
10209
10274
  }
10210
10275
  },
10276
+ deviceAuthorizationObject: {
10277
+ type: "object",
10278
+ properties: {
10279
+ deviceAuthorizationUrl: {
10280
+ type: "string"
10281
+ },
10282
+ tokenUrl: {
10283
+ type: "string"
10284
+ },
10285
+ refreshUrl: {
10286
+ type: "string"
10287
+ },
10288
+ scopes: {
10289
+ $ref: "#/$defs/mapOfStringsObject"
10290
+ }
10291
+ }
10292
+ },
10211
10293
  authorizationCodeObject: {
10212
10294
  type: "object",
10213
10295
  properties: {
@@ -10298,7 +10380,7 @@ var scalar_sdk_config_schema_default = {
10298
10380
  }
10299
10381
  };
10300
10382
 
10301
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-languages.js
10383
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-languages.js
10302
10384
  var TARGET_LANGUAGES = [
10303
10385
  "typescript",
10304
10386
  "python",
@@ -10318,7 +10400,7 @@ var WEBSOCKET_RUNTIME_TARGETS = ["typescript", "python", "rust", "cli"];
10318
10400
  var GRPC_RUNTIME_TARGETS = ["typescript"];
10319
10401
  var targetLanguageSet = new Set(TARGET_LANGUAGES);
10320
10402
 
10321
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-fields.js
10403
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-fields.js
10322
10404
  var resolveSchemaRef = (node) => {
10323
10405
  if (typeof node !== "object" || node === null)
10324
10406
  return void 0;
@@ -10350,7 +10432,7 @@ var targetsDeclaringField = (field) => {
10350
10432
  var PACKAGE_NAME_TARGETS = targetsDeclaringField("packageName");
10351
10433
  var PRERELEASE_TYPE_TARGETS = targetsDeclaringField("prereleaseType");
10352
10434
 
10353
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/publish-registries.js
10435
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/publish-registries.js
10354
10436
  var targetPublishRegistryNodes = (target) => {
10355
10437
  const publish = resolveSchemaRef(targetSchemaFields(target)["publish"]);
10356
10438
  return publish?.["properties"];
@@ -10399,7 +10481,7 @@ var targetRegistryOptions = new Map(Object.entries(derivePublishRegistryOptions(
10399
10481
  new Map(Object.entries(registries))
10400
10482
  ]));
10401
10483
 
10402
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-stability.js
10484
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-stability.js
10403
10485
  var STABILITY_VALUES = ["stable", "experimental", "stub"];
10404
10486
  var isStability = (value) => typeof value === "string" && STABILITY_VALUES.includes(value);
10405
10487
  var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => {
@@ -10407,7 +10489,7 @@ var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((la
10407
10489
  return [language, isStability(declared) ? declared : "experimental"];
10408
10490
  })));
10409
10491
 
10410
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-catalog.js
10492
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-catalog.js
10411
10493
  var PACKAGE_NAME_FIELDS = ["composerPackageName", "gemName", "packageName"];
10412
10494
  var targetTitle = (language) => {
10413
10495
  const value = targetSchemaNode(language)?.["title"];
@@ -10431,10 +10513,10 @@ var describeTarget = (language) => {
10431
10513
  };
10432
10514
  var TARGETS = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => [language, describeTarget(language)])));
10433
10515
 
10434
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/coerce-config.js
10516
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/coerce-config.js
10435
10517
  var import_yaml = __toESM(require_dist2(), 1);
10436
10518
 
10437
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.2/node_modules/@scalar/sdk-helpers/dist/initialisms.js
10519
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.3/node_modules/@scalar/sdk-helpers/dist/initialisms.js
10438
10520
  var DEFAULT_INITIALISMS = [
10439
10521
  "acl",
10440
10522
  "ach",
@@ -10519,7 +10601,7 @@ var defaultInitialismCasing = (() => {
10519
10601
  return map;
10520
10602
  })();
10521
10603
 
10522
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.2/node_modules/@scalar/sdk-helpers/dist/split-into-words.js
10604
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.3/node_modules/@scalar/sdk-helpers/dist/split-into-words.js
10523
10605
  var wordCache = /* @__PURE__ */ new Map();
10524
10606
  var DIGIT_UPPERCASE_SEAM = /([0-9])([A-Z]+)/g;
10525
10607
  var ANY_DIGIT_SEAM = /([0-9])([A-Z])/g;
@@ -10555,7 +10637,7 @@ var splitIntoWords = (input) => {
10555
10637
  return words;
10556
10638
  };
10557
10639
 
10558
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.2/node_modules/@scalar/sdk-helpers/dist/casing.js
10640
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.3/node_modules/@scalar/sdk-helpers/dist/casing.js
10559
10641
  var ensureLeadingLetter = (value) => {
10560
10642
  if (value.length === 0)
10561
10643
  return "_";
@@ -10566,65 +10648,31 @@ var pascalCase = (input) => {
10566
10648
  return ensureLeadingLetter(result);
10567
10649
  };
10568
10650
 
10569
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.2/node_modules/@scalar/sdk-helpers/dist/proto-names.js
10651
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.7.3/node_modules/@scalar/sdk-helpers/dist/proto-names.js
10570
10652
  var PROTO_IDENTIFIER_PATTERN = "[A-Za-z_][A-Za-z0-9_]*";
10571
10653
  var PROTO_QUALIFIED_NAME_PATTERN = String.raw`${PROTO_IDENTIFIER_PATTERN}(?:\.${PROTO_IDENTIFIER_PATTERN})*`;
10572
10654
  var PROTO_IDENTIFIER = new RegExp(`^${PROTO_IDENTIFIER_PATTERN}$`, "u");
10573
10655
  var PROTO_QUALIFIED_NAME = new RegExp(`^${PROTO_QUALIFIED_NAME_PATTERN}$`, "u");
10574
10656
 
10575
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/generate-default-config.js
10576
- import { isAsyncApiDocument } from "@scalar/workspace-store/schemas";
10577
-
10578
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/helpers/resolve-ref.js
10657
+ // ../../node_modules/.pnpm/@scalar+openapi-loader@0.6.11_typescript@7.0.2/node_modules/@scalar/openapi-loader/dist/assert-supported-openapi.js
10579
10658
  import { getResolvedRef, mergeSiblingReferences } from "@scalar/workspace-store/helpers/get-resolved-ref";
10580
10659
 
10581
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/operation-names.js
10582
- var HTTP_VERB_TO_METHOD_WORD = {
10583
- post: "create",
10584
- put: "update",
10585
- patch: "update",
10586
- delete: "delete"
10587
- };
10588
- var OPERATION_VERB_REWRITES = {
10589
- add: "create",
10590
- place: "create",
10591
- remove: "delete"
10592
- };
10593
- var PATH_ACTION_WORDS = /* @__PURE__ */ new Set(["create", "delete", "find", "login", "logout", "search", "update", "upload"]);
10594
- var METHOD_VERB_WORDS = /* @__PURE__ */ new Set([
10595
- // Everything the path-action heuristic already reads as a verb, plus every word the rewrites and
10596
- // the HTTP-verb table mint — all of which today's tables spell alike, and spread rather than
10597
- // restated so a word added to either is covered by the set that has to recognize it.
10598
- ...PATH_ACTION_WORDS,
10599
- ...Object.values(OPERATION_VERB_REWRITES),
10600
- ...Object.values(HTTP_VERB_TO_METHOD_WORD).filter((word) => word !== void 0),
10601
- // The two readings `defaultVerb` gives a `get`.
10602
- "list",
10603
- "retrieve",
10604
- // The HTTP verbs a generated operation ID spells as the action itself (`patch_v1_by_id`). `head`,
10605
- // `options` and `trace` are deliberately left out: an ID leading with one of those is far likelier
10606
- // to be naming a noun than the request method. `get` is absent because it can never reach here —
10607
- // {@link normalizeMethodWords} has already swapped a leading `get` for `list`/`retrieve`.
10608
- "post",
10609
- "put",
10610
- "patch",
10611
- // Two actions no HTTP verb names. `upload` is already above and its counterpart travels with it
10612
- // through every file API there is; `read` is CRUD's own getter, which the generators that write
10613
- // `..._get` IDs use for exactly the operation their `delete`/`patch` siblings shorten.
10614
- "download",
10615
- "read"
10616
- ]);
10660
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/generate-default-config.js
10661
+ import { isAsyncApiDocument } from "@scalar/workspace-store/schemas";
10617
10662
 
10618
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/publish-auth-methods.js
10619
- var PUBLISH_AUTH_METHODS = new Set(scalar_sdk_config_schema_default.$defs.publishAuthMethod.enum);
10663
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/helpers/resolve-ref.js
10664
+ import { getResolvedRef as getResolvedRef2, mergeSiblingReferences as mergeSiblingReferences2 } from "@scalar/workspace-store/helpers/get-resolved-ref";
10620
10665
 
10621
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.validator.js
10622
- var schema145 = { "type": "object", "properties": { "agentSkill": { "type": "boolean" }, "fileHeader": { "type": "string" }, "license": { "type": "string" }, "unwrapResponseFields": { "type": "array", "items": { "type": "string" } }, "positionalParams": { "type": "string", "enum": ["all", "none", "last"] }, "ordering": { "type": "string", "enum": ["config", "openapi", "crud"] }, "requireWebsocketDependencies": { "type": "boolean" }, "unwrapMultipropertyResponseFields": { "type": "boolean" } } };
10666
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.validator.js
10667
+ var validateClientSettings = validate179;
10668
+ var validateGlobalSettings = validate183;
10669
+ var validatePaginationConfig = validate184;
10670
+ var schema147 = { "type": "object", "properties": { "agentSkill": { "type": "boolean", "default": true }, "fileHeader": { "type": "string" }, "license": { "type": "string" }, "unwrapResponseFields": { "type": "array", "items": { "type": "string" } }, "positionalParams": { "type": "string", "enum": ["all", "none", "last"] }, "ordering": { "type": "string", "default": "config", "enum": ["config", "openapi", "crud"] }, "requireWebsocketDependencies": { "type": "boolean" }, "unwrapMultipropertyResponseFields": { "type": "boolean" } } };
10623
10671
  var schema43 = { "oneOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" }, "typescript": { "type": "string" }, "python": { "type": "string" }, "go": { "type": "string" }, "rust": { "type": "string" }, "java": { "type": "string" }, "kotlin": { "type": "string" }, "swift": { "type": "string" }, "ruby": { "type": "string" }, "php": { "type": "string" }, "csharp": { "type": "string" }, "cpp": { "type": "string" }, "dart": { "type": "string" } }, "additionalProperties": false, "minProperties": 1 }] };
10624
10672
  var schema35 = { "enum": ["http", "alias", "websocket", "webhookUnwrap", "helper"] };
10625
10673
  var schema36 = { "enum": ["delete", "get", "head", "options", "patch", "post", "put", "trace"] };
10626
- var schema46 = { "type": "object", "properties": { "channel": { "type": "string" }, "operations": { "type": "array", "items": { "type": "string" } }, "perspective": { "enum": ["provider", "client"] } }, "required": ["channel"] };
10627
- var schema47 = { "type": "object", "properties": { "eventTypes": { "type": "object", "additionalProperties": { "type": "string" } }, "webhookKeyOpt": { "anyOf": [{ "type": "string" }, { "const": false }] }, "signatureAlgorithm": { "enum": ["hmac-sha1", "hmac-sha256", "hmac-sha512", "ed25519", "rsa-sha256"] }, "signatureHeader": { "type": "string" }, "timestampHeader": { "type": "string" }, "toleranceSeconds": { "type": "number" }, "discriminator": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" } }, "required": ["eventTypes"] };
10674
+ var schema46 = { "type": "object", "properties": { "channel": { "type": "string" }, "operations": { "type": "array", "items": { "type": "string" } }, "perspective": { "enum": ["provider", "client"], "default": "provider" } }, "required": ["channel"] };
10675
+ var schema47 = { "type": "object", "properties": { "eventTypes": { "type": "object", "additionalProperties": { "type": "string" } }, "webhookKeyOpt": { "anyOf": [{ "type": "string" }, { "const": false }] }, "signatureAlgorithm": { "enum": ["hmac-sha1", "hmac-sha256", "hmac-sha512", "ed25519", "rsa-sha256"], "default": "hmac-sha256" }, "signatureHeader": { "type": "string", "default": "webhook-signature" }, "timestampHeader": { "type": "string" }, "toleranceSeconds": { "type": "number" }, "discriminator": { "type": "string" }, "description": { "type": "string" }, "summary": { "type": "string" } }, "required": ["eventTypes"] };
10628
10676
  var schema48 = { "type": "object", "properties": { "type": { "enum": ["http"] }, "summary": { "type": "string" }, "description": { "type": "string" } }, "required": ["type"] };
10629
10677
  var pattern4 = new RegExp("^((delete|get|head|options|patch|post|put|trace) .+|grpc [A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*)$", "u");
10630
10678
  var schema39 = { "enum": ["sse", "jsonl"] };
@@ -15325,7 +15373,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
15325
15373
  validate43.evaluated = { "dynamicProps": true, "dynamicItems": false };
15326
15374
  var schema60 = { "type": "object", "properties": { "destinations": { "$ref": "#/$defs/destinationsConfig" }, "promotion": { "$ref": "#/$defs/promotion" }, "generatorVersion": { "type": "string" }, "skip": { "type": "boolean" }, "readmeTitle": { "type": "string" }, "packageName": { "type": "string" }, "packageManager": { "type": "string" }, "publish": { "$ref": "#/$defs/npmPublishConfig" }, "prereleaseType": { "$ref": "#/$defs/prereleaseType" }, "options": { "$ref": "#/$defs/typeScriptTargetOptions" }, "compatibility": { "enum": ["speakeasy"] } } };
15327
15375
  var schema63 = { "type": "string", "enum": ["automatic", "manual"], "default": "automatic" };
15328
- var schema68 = { "type": "object", "properties": { "propertyCasing": { "enum": ["wire", "sdk"], "default": "wire" } } };
15376
+ var schema68 = { "type": "object", "properties": { "propertyCasing": { "enum": ["wire", "sdk"], "default": "wire" }, "dateTimeType": { "enum": ["string", "Date"], "default": "string" } } };
15329
15377
  function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15330
15378
  let vErrors = null;
15331
15379
  let errors = 0;
@@ -16045,33 +16093,45 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
16045
16093
  errors++;
16046
16094
  }
16047
16095
  }
16096
+ if (data9.dateTimeType !== void 0) {
16097
+ let data11 = data9.dateTimeType;
16098
+ if (!(data11 === "string" || data11 === "Date")) {
16099
+ const err10 = { instancePath: instancePath + "/options/dateTimeType", schemaPath: "#/$defs/typeScriptTargetOptions/properties/dateTimeType/enum", keyword: "enum", params: { allowedValues: schema68.properties.dateTimeType.enum }, message: "must be equal to one of the allowed values" };
16100
+ if (vErrors === null) {
16101
+ vErrors = [err10];
16102
+ } else {
16103
+ vErrors.push(err10);
16104
+ }
16105
+ errors++;
16106
+ }
16107
+ }
16048
16108
  } else {
16049
- const err10 = { instancePath: instancePath + "/options", schemaPath: "#/$defs/typeScriptTargetOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16109
+ const err11 = { instancePath: instancePath + "/options", schemaPath: "#/$defs/typeScriptTargetOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16050
16110
  if (vErrors === null) {
16051
- vErrors = [err10];
16111
+ vErrors = [err11];
16052
16112
  } else {
16053
- vErrors.push(err10);
16113
+ vErrors.push(err11);
16054
16114
  }
16055
16115
  errors++;
16056
16116
  }
16057
16117
  }
16058
16118
  if (data.compatibility !== void 0) {
16059
16119
  if (!(data.compatibility === "speakeasy")) {
16060
- const err11 = { instancePath: instancePath + "/compatibility", schemaPath: "#/properties/compatibility/enum", keyword: "enum", params: { allowedValues: schema60.properties.compatibility.enum }, message: "must be equal to one of the allowed values" };
16120
+ const err12 = { instancePath: instancePath + "/compatibility", schemaPath: "#/properties/compatibility/enum", keyword: "enum", params: { allowedValues: schema60.properties.compatibility.enum }, message: "must be equal to one of the allowed values" };
16061
16121
  if (vErrors === null) {
16062
- vErrors = [err11];
16122
+ vErrors = [err12];
16063
16123
  } else {
16064
- vErrors.push(err11);
16124
+ vErrors.push(err12);
16065
16125
  }
16066
16126
  errors++;
16067
16127
  }
16068
16128
  }
16069
16129
  } else {
16070
- const err12 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16130
+ const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16071
16131
  if (vErrors === null) {
16072
- vErrors = [err12];
16132
+ vErrors = [err13];
16073
16133
  } else {
16074
- vErrors.push(err12);
16134
+ vErrors.push(err13);
16075
16135
  }
16076
16136
  errors++;
16077
16137
  }
@@ -16185,35 +16245,8 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16185
16245
  }
16186
16246
  }
16187
16247
  }
16188
- if (data.sonatypePlatform !== void 0) {
16189
- let data2 = data.sonatypePlatform;
16190
- const _errs11 = errors;
16191
- let valid3 = false;
16192
- const _errs12 = errors;
16193
- if ("portal" !== data2) {
16194
- const err4 = { instancePath: instancePath + "/sonatypePlatform", schemaPath: "#/anyOf/1/properties/sonatypePlatform/anyOf/0/const", keyword: "const", params: { allowedValue: "portal" }, message: "must be equal to constant" };
16195
- if (vErrors === null) {
16196
- vErrors = [err4];
16197
- } else {
16198
- vErrors.push(err4);
16199
- }
16200
- errors++;
16201
- }
16202
- var _valid1 = _errs12 === errors;
16203
- valid3 = valid3 || _valid1;
16204
- const _errs13 = errors;
16205
- if ("ossrh" !== data2) {
16206
- const err5 = { instancePath: instancePath + "/sonatypePlatform", schemaPath: "#/anyOf/1/properties/sonatypePlatform/anyOf/1/const", keyword: "const", params: { allowedValue: "ossrh" }, message: "must be equal to constant" };
16207
- if (vErrors === null) {
16208
- vErrors = [err5];
16209
- } else {
16210
- vErrors.push(err5);
16211
- }
16212
- errors++;
16213
- }
16214
- var _valid1 = _errs13 === errors;
16215
- valid3 = valid3 || _valid1;
16216
- const _errs14 = errors;
16248
+ if (data.homepage !== void 0) {
16249
+ let data2 = data.homepage;
16217
16250
  if (typeof data2 !== "string") {
16218
16251
  let dataType3 = typeof data2;
16219
16252
  let coerced3 = void 0;
@@ -16223,11 +16256,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16223
16256
  } else if (data2 === null) {
16224
16257
  coerced3 = "";
16225
16258
  } else {
16226
- const err6 = { instancePath: instancePath + "/sonatypePlatform", schemaPath: "#/anyOf/1/properties/sonatypePlatform/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
16259
+ const err4 = { instancePath: instancePath + "/homepage", schemaPath: "#/anyOf/1/properties/homepage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
16227
16260
  if (vErrors === null) {
16228
- vErrors = [err6];
16261
+ vErrors = [err4];
16229
16262
  } else {
16230
- vErrors.push(err6);
16263
+ vErrors.push(err4);
16231
16264
  }
16232
16265
  errors++;
16233
16266
  }
@@ -16235,33 +16268,13 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16235
16268
  if (coerced3 !== void 0) {
16236
16269
  data2 = coerced3;
16237
16270
  if (data !== void 0) {
16238
- data["sonatypePlatform"] = coerced3;
16239
- }
16240
- }
16241
- }
16242
- var _valid1 = _errs14 === errors;
16243
- valid3 = valid3 || _valid1;
16244
- if (!valid3) {
16245
- const err7 = { instancePath: instancePath + "/sonatypePlatform", schemaPath: "#/anyOf/1/properties/sonatypePlatform/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
16246
- if (vErrors === null) {
16247
- vErrors = [err7];
16248
- } else {
16249
- vErrors.push(err7);
16250
- }
16251
- errors++;
16252
- } else {
16253
- errors = _errs11;
16254
- if (vErrors !== null) {
16255
- if (_errs11) {
16256
- vErrors.length = _errs11;
16257
- } else {
16258
- vErrors = null;
16271
+ data["homepage"] = coerced3;
16259
16272
  }
16260
16273
  }
16261
16274
  }
16262
16275
  }
16263
- if (data.homepage !== void 0) {
16264
- let data3 = data.homepage;
16276
+ if (data.description !== void 0) {
16277
+ let data3 = data.description;
16265
16278
  if (typeof data3 !== "string") {
16266
16279
  let dataType4 = typeof data3;
16267
16280
  let coerced4 = void 0;
@@ -16271,11 +16284,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16271
16284
  } else if (data3 === null) {
16272
16285
  coerced4 = "";
16273
16286
  } else {
16274
- const err8 = { instancePath: instancePath + "/homepage", schemaPath: "#/anyOf/1/properties/homepage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
16287
+ const err5 = { instancePath: instancePath + "/description", schemaPath: "#/anyOf/1/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
16275
16288
  if (vErrors === null) {
16276
- vErrors = [err8];
16289
+ vErrors = [err5];
16277
16290
  } else {
16278
- vErrors.push(err8);
16291
+ vErrors.push(err5);
16279
16292
  }
16280
16293
  errors++;
16281
16294
  }
@@ -16283,45 +16296,17 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16283
16296
  if (coerced4 !== void 0) {
16284
16297
  data3 = coerced4;
16285
16298
  if (data !== void 0) {
16286
- data["homepage"] = coerced4;
16287
- }
16288
- }
16289
- }
16290
- }
16291
- if (data.description !== void 0) {
16292
- let data4 = data.description;
16293
- if (typeof data4 !== "string") {
16294
- let dataType5 = typeof data4;
16295
- let coerced5 = void 0;
16296
- if (!(coerced5 !== void 0)) {
16297
- if (dataType5 == "number" || dataType5 == "boolean") {
16298
- coerced5 = "" + data4;
16299
- } else if (data4 === null) {
16300
- coerced5 = "";
16301
- } else {
16302
- const err9 = { instancePath: instancePath + "/description", schemaPath: "#/anyOf/1/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
16303
- if (vErrors === null) {
16304
- vErrors = [err9];
16305
- } else {
16306
- vErrors.push(err9);
16307
- }
16308
- errors++;
16309
- }
16310
- }
16311
- if (coerced5 !== void 0) {
16312
- data4 = coerced5;
16313
- if (data !== void 0) {
16314
- data["description"] = coerced5;
16299
+ data["description"] = coerced4;
16315
16300
  }
16316
16301
  }
16317
16302
  }
16318
16303
  }
16319
16304
  } else {
16320
- const err10 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16305
+ const err6 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16321
16306
  if (vErrors === null) {
16322
- vErrors = [err10];
16307
+ vErrors = [err6];
16323
16308
  } else {
16324
- vErrors.push(err10);
16309
+ vErrors.push(err6);
16325
16310
  }
16326
16311
  errors++;
16327
16312
  }
@@ -16331,16 +16316,15 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16331
16316
  var props0 = {};
16332
16317
  props0.authMethod = true;
16333
16318
  props0.releaseEnvironment = true;
16334
- props0.sonatypePlatform = true;
16335
16319
  props0.homepage = true;
16336
16320
  props0.description = true;
16337
16321
  }
16338
16322
  if (!valid0) {
16339
- const err11 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
16323
+ const err7 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
16340
16324
  if (vErrors === null) {
16341
- vErrors = [err11];
16325
+ vErrors = [err7];
16342
16326
  } else {
16343
- vErrors.push(err11);
16327
+ vErrors.push(err7);
16344
16328
  }
16345
16329
  errors++;
16346
16330
  } else {
@@ -17219,7 +17203,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
17219
17203
  return errors === 0;
17220
17204
  }
17221
17205
  validate63.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "goModulePathOverride": true, "pointerServices": true, "publish": true, "prereleaseType": true, "options": true }, "dynamicProps": false, "dynamicItems": false };
17222
- var schema84 = { "type": "object", "properties": { "crate_name": { "type": "string" }, "package_repository": { "type": "string" }, "client_name": { "type": "string" }, "environment_enum_name": { "type": "string" }, "date_time_type": { "enum": ["offset", "utc", "string"], "default": "offset" }, "http_client": { "enum": ["reqwest"], "default": "reqwest" }, "reqwest_tls": { "enum": ["rustls", "native-tls"], "default": "rustls" }, "max_retries": { "type": "integer", "minimum": 0 }, "extra_dependencies": { "type": "object" }, "extra_dev_dependencies": { "type": "object" } } };
17206
+ var schema84 = { "type": "object", "properties": { "crate_name": { "type": "string" }, "package_repository": { "type": "string" }, "client_name": { "type": "string" }, "environment_enum_name": { "type": "string", "default": "Environment" }, "date_time_type": { "enum": ["offset", "utc", "string"], "default": "offset" }, "http_client": { "enum": ["reqwest"], "default": "reqwest" }, "reqwest_tls": { "enum": ["rustls", "native-tls"], "default": "rustls" }, "max_retries": { "type": "integer", "minimum": 0 }, "extra_dependencies": { "type": "object" }, "extra_dev_dependencies": { "type": "object" } } };
17223
17207
  function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17224
17208
  let vErrors = null;
17225
17209
  let errors = 0;
@@ -20223,11 +20207,27 @@ function validate120(data, { instancePath = "", parentData, parentDataProperty,
20223
20207
  return errors === 0;
20224
20208
  }
20225
20209
  validate120.evaluated = { "props": { "npm": true, "binaries": true, "homebrew": true }, "dynamicProps": false, "dynamicItems": false };
20226
- var pattern20 = new RegExp("^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$", "u");
20227
- function validate118(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20210
+ var schema122 = { "type": "object", "properties": { "enabled": { "type": "boolean", "default": true }, "backend": { "type": "string", "enum": ["auto", "keychain", "file"], "default": "auto" }, "oauth": { "$ref": "#/$defs/cliOauthClientConfig" } } };
20211
+ var func4 = (function ucs2length(str) {
20212
+ const len = str.length;
20213
+ let length = 0;
20214
+ let pos = 0;
20215
+ let value;
20216
+ while (pos < len) {
20217
+ length++;
20218
+ value = str.charCodeAt(pos++);
20219
+ if (value >= 55296 && value <= 56319 && pos < len) {
20220
+ value = str.charCodeAt(pos);
20221
+ if ((value & 64512) === 56320)
20222
+ pos++;
20223
+ }
20224
+ }
20225
+ return length;
20226
+ });
20227
+ function validate126(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20228
20228
  let vErrors = null;
20229
20229
  let errors = 0;
20230
- const evaluated0 = validate118.evaluated;
20230
+ const evaluated0 = validate126.evaluated;
20231
20231
  if (evaluated0.dynamicProps) {
20232
20232
  evaluated0.props = void 0;
20233
20233
  }
@@ -20235,22 +20235,269 @@ function validate118(data, { instancePath = "", parentData, parentDataProperty,
20235
20235
  evaluated0.items = void 0;
20236
20236
  }
20237
20237
  if (data && typeof data == "object" && !Array.isArray(data)) {
20238
- if (data.destinations !== void 0) {
20239
- if (!validate47(data.destinations, { instancePath: instancePath + "/destinations", parentData: data, parentDataProperty: "destinations", rootData, dynamicAnchors })) {
20240
- vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);
20241
- errors = vErrors.length;
20242
- }
20243
- }
20244
- if (data.promotion !== void 0) {
20245
- let data1 = data.promotion;
20246
- if (typeof data1 !== "string") {
20247
- let dataType0 = typeof data1;
20238
+ if (data.enabled !== void 0) {
20239
+ let data0 = data.enabled;
20240
+ if (typeof data0 !== "boolean") {
20248
20241
  let coerced0 = void 0;
20249
20242
  if (!(coerced0 !== void 0)) {
20250
- if (dataType0 == "number" || dataType0 == "boolean") {
20251
- coerced0 = "" + data1;
20252
- } else if (data1 === null) {
20253
- coerced0 = "";
20243
+ if (data0 === "false" || data0 === 0 || data0 === null) {
20244
+ coerced0 = false;
20245
+ } else if (data0 === "true" || data0 === 1) {
20246
+ coerced0 = true;
20247
+ } else {
20248
+ const err0 = { instancePath: instancePath + "/enabled", schemaPath: "#/properties/enabled/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
20249
+ if (vErrors === null) {
20250
+ vErrors = [err0];
20251
+ } else {
20252
+ vErrors.push(err0);
20253
+ }
20254
+ errors++;
20255
+ }
20256
+ }
20257
+ if (coerced0 !== void 0) {
20258
+ data0 = coerced0;
20259
+ if (data !== void 0) {
20260
+ data["enabled"] = coerced0;
20261
+ }
20262
+ }
20263
+ }
20264
+ }
20265
+ if (data.backend !== void 0) {
20266
+ let data1 = data.backend;
20267
+ if (typeof data1 !== "string") {
20268
+ let dataType1 = typeof data1;
20269
+ let coerced1 = void 0;
20270
+ if (!(coerced1 !== void 0)) {
20271
+ if (dataType1 == "number" || dataType1 == "boolean") {
20272
+ coerced1 = "" + data1;
20273
+ } else if (data1 === null) {
20274
+ coerced1 = "";
20275
+ } else {
20276
+ const err1 = { instancePath: instancePath + "/backend", schemaPath: "#/properties/backend/type", keyword: "type", params: { type: "string" }, message: "must be string" };
20277
+ if (vErrors === null) {
20278
+ vErrors = [err1];
20279
+ } else {
20280
+ vErrors.push(err1);
20281
+ }
20282
+ errors++;
20283
+ }
20284
+ }
20285
+ if (coerced1 !== void 0) {
20286
+ data1 = coerced1;
20287
+ if (data !== void 0) {
20288
+ data["backend"] = coerced1;
20289
+ }
20290
+ }
20291
+ }
20292
+ if (!(data1 === "auto" || data1 === "keychain" || data1 === "file")) {
20293
+ const err2 = { instancePath: instancePath + "/backend", schemaPath: "#/properties/backend/enum", keyword: "enum", params: { allowedValues: schema122.properties.backend.enum }, message: "must be equal to one of the allowed values" };
20294
+ if (vErrors === null) {
20295
+ vErrors = [err2];
20296
+ } else {
20297
+ vErrors.push(err2);
20298
+ }
20299
+ errors++;
20300
+ }
20301
+ }
20302
+ if (data.oauth !== void 0) {
20303
+ let data2 = data.oauth;
20304
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
20305
+ if (data2.clientId === void 0) {
20306
+ const err3 = { instancePath: instancePath + "/oauth", schemaPath: "#/$defs/cliOauthClientConfig/required", keyword: "required", params: { missingProperty: "clientId" }, message: "must have required property 'clientId'" };
20307
+ if (vErrors === null) {
20308
+ vErrors = [err3];
20309
+ } else {
20310
+ vErrors.push(err3);
20311
+ }
20312
+ errors++;
20313
+ }
20314
+ if (data2.clientId !== void 0) {
20315
+ let data3 = data2.clientId;
20316
+ if (typeof data3 !== "string") {
20317
+ let dataType2 = typeof data3;
20318
+ let coerced2 = void 0;
20319
+ if (!(coerced2 !== void 0)) {
20320
+ if (dataType2 == "number" || dataType2 == "boolean") {
20321
+ coerced2 = "" + data3;
20322
+ } else if (data3 === null) {
20323
+ coerced2 = "";
20324
+ } else {
20325
+ const err4 = { instancePath: instancePath + "/oauth/clientId", schemaPath: "#/$defs/cliOauthClientConfig/properties/clientId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
20326
+ if (vErrors === null) {
20327
+ vErrors = [err4];
20328
+ } else {
20329
+ vErrors.push(err4);
20330
+ }
20331
+ errors++;
20332
+ }
20333
+ }
20334
+ if (coerced2 !== void 0) {
20335
+ data3 = coerced2;
20336
+ if (data2 !== void 0) {
20337
+ data2["clientId"] = coerced2;
20338
+ }
20339
+ }
20340
+ }
20341
+ if (typeof data3 === "string") {
20342
+ if (func4(data3) < 1) {
20343
+ const err5 = { instancePath: instancePath + "/oauth/clientId", schemaPath: "#/$defs/cliOauthClientConfig/properties/clientId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
20344
+ if (vErrors === null) {
20345
+ vErrors = [err5];
20346
+ } else {
20347
+ vErrors.push(err5);
20348
+ }
20349
+ errors++;
20350
+ }
20351
+ }
20352
+ }
20353
+ if (data2.redirectPort !== void 0) {
20354
+ let data4 = data2.redirectPort;
20355
+ if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
20356
+ let dataType3 = typeof data4;
20357
+ let coerced3 = void 0;
20358
+ if (!(coerced3 !== void 0)) {
20359
+ if (dataType3 === "boolean" || data4 === null || dataType3 === "string" && data4 && data4 == +data4 && !(data4 % 1)) {
20360
+ coerced3 = +data4;
20361
+ } else {
20362
+ const err6 = { instancePath: instancePath + "/oauth/redirectPort", schemaPath: "#/$defs/cliOauthClientConfig/properties/redirectPort/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
20363
+ if (vErrors === null) {
20364
+ vErrors = [err6];
20365
+ } else {
20366
+ vErrors.push(err6);
20367
+ }
20368
+ errors++;
20369
+ }
20370
+ }
20371
+ if (coerced3 !== void 0) {
20372
+ data4 = coerced3;
20373
+ if (data2 !== void 0) {
20374
+ data2["redirectPort"] = coerced3;
20375
+ }
20376
+ }
20377
+ }
20378
+ if (typeof data4 == "number" && isFinite(data4)) {
20379
+ if (data4 > 65535 || isNaN(data4)) {
20380
+ const err7 = { instancePath: instancePath + "/oauth/redirectPort", schemaPath: "#/$defs/cliOauthClientConfig/properties/redirectPort/maximum", keyword: "maximum", params: { comparison: "<=", limit: 65535 }, message: "must be <= 65535" };
20381
+ if (vErrors === null) {
20382
+ vErrors = [err7];
20383
+ } else {
20384
+ vErrors.push(err7);
20385
+ }
20386
+ errors++;
20387
+ }
20388
+ if (data4 < 0 || isNaN(data4)) {
20389
+ const err8 = { instancePath: instancePath + "/oauth/redirectPort", schemaPath: "#/$defs/cliOauthClientConfig/properties/redirectPort/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
20390
+ if (vErrors === null) {
20391
+ vErrors = [err8];
20392
+ } else {
20393
+ vErrors.push(err8);
20394
+ }
20395
+ errors++;
20396
+ }
20397
+ }
20398
+ }
20399
+ if (data2.scopes !== void 0) {
20400
+ let data5 = data2.scopes;
20401
+ if (Array.isArray(data5)) {
20402
+ if (data5.length < 1) {
20403
+ const err9 = { instancePath: instancePath + "/oauth/scopes", schemaPath: "#/$defs/cliOauthClientConfig/properties/scopes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
20404
+ if (vErrors === null) {
20405
+ vErrors = [err9];
20406
+ } else {
20407
+ vErrors.push(err9);
20408
+ }
20409
+ errors++;
20410
+ }
20411
+ const len0 = data5.length;
20412
+ for (let i0 = 0; i0 < len0; i0++) {
20413
+ let data6 = data5[i0];
20414
+ if (typeof data6 !== "string") {
20415
+ let dataType4 = typeof data6;
20416
+ let coerced4 = void 0;
20417
+ if (!(coerced4 !== void 0)) {
20418
+ if (dataType4 == "number" || dataType4 == "boolean") {
20419
+ coerced4 = "" + data6;
20420
+ } else if (data6 === null) {
20421
+ coerced4 = "";
20422
+ } else {
20423
+ const err10 = { instancePath: instancePath + "/oauth/scopes/" + i0, schemaPath: "#/$defs/cliOauthClientConfig/properties/scopes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
20424
+ if (vErrors === null) {
20425
+ vErrors = [err10];
20426
+ } else {
20427
+ vErrors.push(err10);
20428
+ }
20429
+ errors++;
20430
+ }
20431
+ }
20432
+ if (coerced4 !== void 0) {
20433
+ data6 = coerced4;
20434
+ if (data5 !== void 0) {
20435
+ data5[i0] = coerced4;
20436
+ }
20437
+ }
20438
+ }
20439
+ }
20440
+ } else {
20441
+ const err11 = { instancePath: instancePath + "/oauth/scopes", schemaPath: "#/$defs/cliOauthClientConfig/properties/scopes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
20442
+ if (vErrors === null) {
20443
+ vErrors = [err11];
20444
+ } else {
20445
+ vErrors.push(err11);
20446
+ }
20447
+ errors++;
20448
+ }
20449
+ }
20450
+ } else {
20451
+ const err12 = { instancePath: instancePath + "/oauth", schemaPath: "#/$defs/cliOauthClientConfig/type", keyword: "type", params: { type: "object" }, message: "must be object" };
20452
+ if (vErrors === null) {
20453
+ vErrors = [err12];
20454
+ } else {
20455
+ vErrors.push(err12);
20456
+ }
20457
+ errors++;
20458
+ }
20459
+ }
20460
+ } else {
20461
+ const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
20462
+ if (vErrors === null) {
20463
+ vErrors = [err13];
20464
+ } else {
20465
+ vErrors.push(err13);
20466
+ }
20467
+ errors++;
20468
+ }
20469
+ validate126.errors = vErrors;
20470
+ return errors === 0;
20471
+ }
20472
+ validate126.evaluated = { "props": { "enabled": true, "backend": true, "oauth": true }, "dynamicProps": false, "dynamicItems": false };
20473
+ var pattern20 = new RegExp("^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$", "u");
20474
+ function validate118(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20475
+ let vErrors = null;
20476
+ let errors = 0;
20477
+ const evaluated0 = validate118.evaluated;
20478
+ if (evaluated0.dynamicProps) {
20479
+ evaluated0.props = void 0;
20480
+ }
20481
+ if (evaluated0.dynamicItems) {
20482
+ evaluated0.items = void 0;
20483
+ }
20484
+ if (data && typeof data == "object" && !Array.isArray(data)) {
20485
+ if (data.destinations !== void 0) {
20486
+ if (!validate47(data.destinations, { instancePath: instancePath + "/destinations", parentData: data, parentDataProperty: "destinations", rootData, dynamicAnchors })) {
20487
+ vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);
20488
+ errors = vErrors.length;
20489
+ }
20490
+ }
20491
+ if (data.promotion !== void 0) {
20492
+ let data1 = data.promotion;
20493
+ if (typeof data1 !== "string") {
20494
+ let dataType0 = typeof data1;
20495
+ let coerced0 = void 0;
20496
+ if (!(coerced0 !== void 0)) {
20497
+ if (dataType0 == "number" || dataType0 == "boolean") {
20498
+ coerced0 = "" + data1;
20499
+ } else if (data1 === null) {
20500
+ coerced0 = "";
20254
20501
  } else {
20255
20502
  const err0 = { instancePath: instancePath + "/promotion", schemaPath: "#/$defs/promotion/type", keyword: "type", params: { type: "string" }, message: "must be string" };
20256
20503
  if (vErrors === null) {
@@ -20517,15 +20764,21 @@ function validate118(data, { instancePath = "", parentData, parentDataProperty,
20517
20764
  errors = vErrors.length;
20518
20765
  }
20519
20766
  }
20767
+ if (data.credentialStore !== void 0) {
20768
+ if (!validate126(data.credentialStore, { instancePath: instancePath + "/credentialStore", parentData: data, parentDataProperty: "credentialStore", rootData, dynamicAnchors })) {
20769
+ vErrors = vErrors === null ? validate126.errors : vErrors.concat(validate126.errors);
20770
+ errors = vErrors.length;
20771
+ }
20772
+ }
20520
20773
  if (data.prereleaseType !== void 0) {
20521
- let data11 = data.prereleaseType;
20522
- if (typeof data11 !== "string") {
20523
- let dataType9 = typeof data11;
20774
+ let data12 = data.prereleaseType;
20775
+ if (typeof data12 !== "string") {
20776
+ let dataType9 = typeof data12;
20524
20777
  let coerced9 = void 0;
20525
20778
  if (!(coerced9 !== void 0)) {
20526
20779
  if (dataType9 == "number" || dataType9 == "boolean") {
20527
- coerced9 = "" + data11;
20528
- } else if (data11 === null) {
20780
+ coerced9 = "" + data12;
20781
+ } else if (data12 === null) {
20529
20782
  coerced9 = "";
20530
20783
  } else {
20531
20784
  const err11 = { instancePath: instancePath + "/prereleaseType", schemaPath: "#/$defs/prereleaseType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
@@ -20538,14 +20791,14 @@ function validate118(data, { instancePath = "", parentData, parentDataProperty,
20538
20791
  }
20539
20792
  }
20540
20793
  if (coerced9 !== void 0) {
20541
- data11 = coerced9;
20794
+ data12 = coerced9;
20542
20795
  if (data !== void 0) {
20543
20796
  data["prereleaseType"] = coerced9;
20544
20797
  }
20545
20798
  }
20546
20799
  }
20547
- if (typeof data11 === "string") {
20548
- if (!pattern8.test(data11)) {
20800
+ if (typeof data12 === "string") {
20801
+ if (!pattern8.test(data12)) {
20549
20802
  const err12 = { instancePath: instancePath + "/prereleaseType", schemaPath: "#/$defs/prereleaseType/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z][0-9A-Za-z-]*$" }, message: 'must match pattern "^[A-Za-z][0-9A-Za-z-]*$"' };
20550
20803
  if (vErrors === null) {
20551
20804
  vErrors = [err12];
@@ -20568,7 +20821,7 @@ function validate118(data, { instancePath = "", parentData, parentDataProperty,
20568
20821
  validate118.errors = vErrors;
20569
20822
  return errors === 0;
20570
20823
  }
20571
- validate118.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "binaryName": true, "defaultFormat": true, "defaultErrorFormat": true, "shellCompletions": true, "publish": true, "prereleaseType": true }, "dynamicProps": false, "dynamicItems": false };
20824
+ validate118.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "binaryName": true, "defaultFormat": true, "defaultErrorFormat": true, "shellCompletions": true, "publish": true, "credentialStore": true, "prereleaseType": true }, "dynamicProps": false, "dynamicItems": false };
20572
20825
  function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20573
20826
  let vErrors = null;
20574
20827
  let errors = 0;
@@ -20671,12 +20924,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
20671
20924
  return errors === 0;
20672
20925
  }
20673
20926
  validate45.evaluated = { "props": { "typescript": true, "python": true, "go": true, "rust": true, "java": true, "kotlin": true, "swift": true, "ruby": true, "php": true, "csharp": true, "cpp": true, "dart": true, "cli": true }, "dynamicProps": false, "dynamicItems": false };
20674
- var schema123 = { "type": "object", "properties": { "opts": { "type": "object", "additionalProperties": { "$ref": "#/$defs/clientOpt" } }, "baseUrlAliases": { "type": "array", "items": { "type": "string" } }, "defaultHeaders": { "type": "object", "additionalProperties": { "type": "string" } }, "defaultClientName": { "type": "string" }, "defaultClientExampleName": { "type": "string" }, "defaultEnvPrefix": { "type": "string" }, "idempotencyHeader": { "type": "string" }, "emptyResponseAccept": { "enum": ["wildcard", "inherit"] }, "defaultTimeout": { "anyOf": [{ "type": "number" }, { "type": "string" }] }, "defaultRetries": { "$ref": "#/$defs/retrySettings" }, "responseHeaders": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": ["opts"] };
20675
- var schema125 = { "enum": ["value", "username", "password", "clientId", "clientSecret"] };
20676
- function validate129(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20927
+ var schema125 = { "type": "object", "properties": { "opts": { "type": "object", "additionalProperties": { "$ref": "#/$defs/clientOpt" } }, "baseUrlAliases": { "type": "array", "items": { "type": "string" } }, "defaultHeaders": { "type": "object", "additionalProperties": { "type": "string" } }, "defaultClientName": { "type": "string" }, "defaultClientExampleName": { "type": "string" }, "defaultEnvPrefix": { "type": "string" }, "idempotencyHeader": { "type": "string" }, "emptyResponseAccept": { "enum": ["wildcard", "inherit"] }, "defaultTimeout": { "anyOf": [{ "type": "number" }, { "type": "string" }] }, "defaultRetries": { "$ref": "#/$defs/retrySettings" }, "responseHeaders": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": ["opts"] };
20928
+ var schema127 = { "enum": ["value", "username", "password", "clientId", "clientSecret"] };
20929
+ function validate131(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20677
20930
  let vErrors = null;
20678
20931
  let errors = 0;
20679
- const evaluated0 = validate129.evaluated;
20932
+ const evaluated0 = validate131.evaluated;
20680
20933
  if (evaluated0.dynamicProps) {
20681
20934
  evaluated0.props = void 0;
20682
20935
  }
@@ -20810,7 +21063,7 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
20810
21063
  if (data.role !== void 0) {
20811
21064
  let data5 = data.role;
20812
21065
  if (!(data5 === "value" || data5 === "username" || data5 === "password" || data5 === "clientId" || data5 === "clientSecret")) {
20813
- const err5 = { instancePath: instancePath + "/role", schemaPath: "#/$defs/clientOptRole/enum", keyword: "enum", params: { allowedValues: schema125.enum }, message: "must be equal to one of the allowed values" };
21066
+ const err5 = { instancePath: instancePath + "/role", schemaPath: "#/$defs/clientOptRole/enum", keyword: "enum", params: { allowedValues: schema127.enum }, message: "must be equal to one of the allowed values" };
20814
21067
  if (vErrors === null) {
20815
21068
  vErrors = [err5];
20816
21069
  } else {
@@ -20970,23 +21223,34 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
20970
21223
  errors++;
20971
21224
  }
20972
21225
  }
21226
+ if (data.overridable !== void 0) {
21227
+ if (true !== data.overridable) {
21228
+ const err12 = { instancePath: instancePath + "/overridable", schemaPath: "#/properties/overridable/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" };
21229
+ if (vErrors === null) {
21230
+ vErrors = [err12];
21231
+ } else {
21232
+ vErrors.push(err12);
21233
+ }
21234
+ errors++;
21235
+ }
21236
+ }
20973
21237
  } else {
20974
- const err12 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
21238
+ const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
20975
21239
  if (vErrors === null) {
20976
- vErrors = [err12];
21240
+ vErrors = [err13];
20977
21241
  } else {
20978
- vErrors.push(err12);
21242
+ vErrors.push(err13);
20979
21243
  }
20980
21244
  errors++;
20981
21245
  }
20982
- validate129.errors = vErrors;
21246
+ validate131.errors = vErrors;
20983
21247
  return errors === 0;
20984
21248
  }
20985
- validate129.evaluated = { "props": { "type": true, "description": true, "example": true, "defaultValue": true, "nullable": true, "readEnv": true, "securityScheme": true, "role": true, "serverVariable": true, "sendInHeader": true, "sendAsQueryParam": true, "sendAsBodyParam": true, "sendAsPathParam": true, "requiredInTests": true }, "dynamicProps": false, "dynamicItems": false };
20986
- function validate128(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21249
+ validate131.evaluated = { "props": { "type": true, "description": true, "example": true, "defaultValue": true, "nullable": true, "readEnv": true, "securityScheme": true, "role": true, "serverVariable": true, "sendInHeader": true, "sendAsQueryParam": true, "sendAsBodyParam": true, "sendAsPathParam": true, "requiredInTests": true, "overridable": true }, "dynamicProps": false, "dynamicItems": false };
21250
+ function validate130(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20987
21251
  let vErrors = null;
20988
21252
  let errors = 0;
20989
- const evaluated0 = validate128.evaluated;
21253
+ const evaluated0 = validate130.evaluated;
20990
21254
  if (evaluated0.dynamicProps) {
20991
21255
  evaluated0.props = void 0;
20992
21256
  }
@@ -21007,8 +21271,8 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
21007
21271
  let data0 = data.opts;
21008
21272
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
21009
21273
  for (const key0 in data0) {
21010
- if (!validate129(data0[key0], { instancePath: instancePath + "/opts/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors })) {
21011
- vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);
21274
+ if (!validate131(data0[key0], { instancePath: instancePath + "/opts/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors })) {
21275
+ vErrors = vErrors === null ? validate131.errors : vErrors.concat(validate131.errors);
21012
21276
  errors = vErrors.length;
21013
21277
  }
21014
21278
  }
@@ -21220,7 +21484,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
21220
21484
  if (data.emptyResponseAccept !== void 0) {
21221
21485
  let data10 = data.emptyResponseAccept;
21222
21486
  if (!(data10 === "wildcard" || data10 === "inherit")) {
21223
- const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues: schema123.properties.emptyResponseAccept.enum }, message: "must be equal to one of the allowed values" };
21487
+ const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues: schema125.properties.emptyResponseAccept.enum }, message: "must be equal to one of the allowed values" };
21224
21488
  if (vErrors === null) {
21225
21489
  vErrors = [err10];
21226
21490
  } else {
@@ -21447,18 +21711,18 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
21447
21711
  }
21448
21712
  errors++;
21449
21713
  }
21450
- validate128.errors = vErrors;
21714
+ validate130.errors = vErrors;
21451
21715
  return errors === 0;
21452
21716
  }
21453
- validate128.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
21454
- var schema128 = { "enum": ["cursor", "cursorId", "cursorUrl", "fakePage", "offset", "pageNumber"] };
21455
- var schema129 = { "enum": ["query", "body"] };
21456
- var schema131 = { "enum": ["cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "limit", "pageSize"] };
21457
- var schema132 = { "enum": ["query", "body", "header"] };
21458
- function validate133(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21717
+ validate130.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
21718
+ var schema130 = { "enum": ["cursor", "cursorId", "cursorUrl", "fakePage", "offset", "pageNumber"] };
21719
+ var schema131 = { "enum": ["query", "body"] };
21720
+ var schema133 = { "enum": ["cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "limit", "pageSize"] };
21721
+ var schema134 = { "enum": ["query", "body", "header"] };
21722
+ function validate135(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21459
21723
  let vErrors = null;
21460
21724
  let errors = 0;
21461
- const evaluated0 = validate133.evaluated;
21725
+ const evaluated0 = validate135.evaluated;
21462
21726
  if (evaluated0.dynamicProps) {
21463
21727
  evaluated0.props = void 0;
21464
21728
  }
@@ -21478,7 +21742,7 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
21478
21742
  if (data.type !== void 0) {
21479
21743
  let data0 = data.type;
21480
21744
  if (!(data0 === "cursor" || data0 === "cursorId" || data0 === "cursorUrl" || data0 === "offset" || data0 === "pageNumber" || data0 === "limit" || data0 === "pageSize")) {
21481
- const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationRequestFieldRole/enum", keyword: "enum", params: { allowedValues: schema131.enum }, message: "must be equal to one of the allowed values" };
21745
+ const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationRequestFieldRole/enum", keyword: "enum", params: { allowedValues: schema133.enum }, message: "must be equal to one of the allowed values" };
21482
21746
  if (vErrors === null) {
21483
21747
  vErrors = [err1];
21484
21748
  } else {
@@ -21518,7 +21782,7 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
21518
21782
  if (data.location !== void 0) {
21519
21783
  let data2 = data.location;
21520
21784
  if (!(data2 === "query" || data2 === "body" || data2 === "header")) {
21521
- const err3 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationRequestLocation/enum", keyword: "enum", params: { allowedValues: schema132.enum }, message: "must be equal to one of the allowed values" };
21785
+ const err3 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationRequestLocation/enum", keyword: "enum", params: { allowedValues: schema134.enum }, message: "must be equal to one of the allowed values" };
21522
21786
  if (vErrors === null) {
21523
21787
  vErrors = [err3];
21524
21788
  } else {
@@ -21633,16 +21897,16 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
21633
21897
  }
21634
21898
  errors++;
21635
21899
  }
21636
- validate133.errors = vErrors;
21900
+ validate135.errors = vErrors;
21637
21901
  return errors === 0;
21638
21902
  }
21639
- validate133.evaluated = { "props": { "type": true, "param": true, "location": true, "path": true, "property": true, "value": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
21640
- var schema135 = { "enum": ["items", "cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "hasMore", "total", "totalPages", "currentPage", "pageSize"] };
21641
- var schema136 = { "enum": ["body", "header", "linkHeader", "bodyLink"] };
21642
- function validate135(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21903
+ validate135.evaluated = { "props": { "type": true, "param": true, "location": true, "path": true, "property": true, "value": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
21904
+ var schema137 = { "enum": ["items", "cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "hasMore", "total", "totalPages", "currentPage", "pageSize"] };
21905
+ var schema138 = { "enum": ["body", "header", "linkHeader", "bodyLink"] };
21906
+ function validate137(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21643
21907
  let vErrors = null;
21644
21908
  let errors = 0;
21645
- const evaluated0 = validate135.evaluated;
21909
+ const evaluated0 = validate137.evaluated;
21646
21910
  if (evaluated0.dynamicProps) {
21647
21911
  evaluated0.props = void 0;
21648
21912
  }
@@ -21662,7 +21926,7 @@ function validate135(data, { instancePath = "", parentData, parentDataProperty,
21662
21926
  if (data.type !== void 0) {
21663
21927
  let data0 = data.type;
21664
21928
  if (!(data0 === "items" || data0 === "cursor" || data0 === "cursorId" || data0 === "cursorUrl" || data0 === "offset" || data0 === "pageNumber" || data0 === "hasMore" || data0 === "total" || data0 === "totalPages" || data0 === "currentPage" || data0 === "pageSize")) {
21665
- const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationResponseFieldRole/enum", keyword: "enum", params: { allowedValues: schema135.enum }, message: "must be equal to one of the allowed values" };
21929
+ const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationResponseFieldRole/enum", keyword: "enum", params: { allowedValues: schema137.enum }, message: "must be equal to one of the allowed values" };
21666
21930
  if (vErrors === null) {
21667
21931
  vErrors = [err1];
21668
21932
  } else {
@@ -21674,7 +21938,7 @@ function validate135(data, { instancePath = "", parentData, parentDataProperty,
21674
21938
  if (data.location !== void 0) {
21675
21939
  let data1 = data.location;
21676
21940
  if (!(data1 === "body" || data1 === "header" || data1 === "linkHeader" || data1 === "bodyLink")) {
21677
- const err2 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationResponseLocation/enum", keyword: "enum", params: { allowedValues: schema136.enum }, message: "must be equal to one of the allowed values" };
21941
+ const err2 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationResponseLocation/enum", keyword: "enum", params: { allowedValues: schema138.enum }, message: "must be equal to one of the allowed values" };
21678
21942
  if (vErrors === null) {
21679
21943
  vErrors = [err2];
21680
21944
  } else {
@@ -21929,14 +22193,14 @@ function validate135(data, { instancePath = "", parentData, parentDataProperty,
21929
22193
  }
21930
22194
  errors++;
21931
22195
  }
21932
- validate135.errors = vErrors;
22196
+ validate137.errors = vErrors;
21933
22197
  return errors === 0;
21934
22198
  }
21935
- validate135.evaluated = { "props": { "type": true, "location": true, "path": true, "headerName": true, "rel": true, "property": true, "itemCursor": true, "cursorPath": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
21936
- function validate132(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22199
+ validate137.evaluated = { "props": { "type": true, "location": true, "path": true, "headerName": true, "rel": true, "property": true, "itemCursor": true, "cursorPath": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
22200
+ function validate134(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21937
22201
  let vErrors = null;
21938
22202
  let errors = 0;
21939
- const evaluated0 = validate132.evaluated;
22203
+ const evaluated0 = validate134.evaluated;
21940
22204
  if (evaluated0.dynamicProps) {
21941
22205
  evaluated0.props = void 0;
21942
22206
  }
@@ -22039,7 +22303,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
22039
22303
  if (data.type !== void 0) {
22040
22304
  let data2 = data.type;
22041
22305
  if (!(data2 === "cursor" || data2 === "cursorId" || data2 === "cursorUrl" || data2 === "fakePage" || data2 === "offset" || data2 === "pageNumber")) {
22042
- const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues: schema128.enum }, message: "must be equal to one of the allowed values" };
22306
+ const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues: schema130.enum }, message: "must be equal to one of the allowed values" };
22043
22307
  if (vErrors === null) {
22044
22308
  vErrors = [err6];
22045
22309
  } else {
@@ -22051,7 +22315,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
22051
22315
  if (data.paramLocation !== void 0) {
22052
22316
  let data3 = data.paramLocation;
22053
22317
  if (!(data3 === "query" || data3 === "body")) {
22054
- const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues: schema129.enum }, message: "must be equal to one of the allowed values" };
22318
+ const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues: schema131.enum }, message: "must be equal to one of the allowed values" };
22055
22319
  if (vErrors === null) {
22056
22320
  vErrors = [err7];
22057
22321
  } else {
@@ -22091,8 +22355,8 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
22091
22355
  let data5 = data.request;
22092
22356
  if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
22093
22357
  for (const key0 in data5) {
22094
- if (!validate133(data5[key0], { instancePath: instancePath + "/request/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key0, rootData, dynamicAnchors })) {
22095
- vErrors = vErrors === null ? validate133.errors : vErrors.concat(validate133.errors);
22358
+ if (!validate135(data5[key0], { instancePath: instancePath + "/request/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key0, rootData, dynamicAnchors })) {
22359
+ vErrors = vErrors === null ? validate135.errors : vErrors.concat(validate135.errors);
22096
22360
  errors = vErrors.length;
22097
22361
  }
22098
22362
  }
@@ -22110,8 +22374,8 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
22110
22374
  let data7 = data.response;
22111
22375
  if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
22112
22376
  for (const key1 in data7) {
22113
- if (!validate135(data7[key1], { instancePath: instancePath + "/response/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key1, rootData, dynamicAnchors })) {
22114
- vErrors = vErrors === null ? validate135.errors : vErrors.concat(validate135.errors);
22377
+ if (!validate137(data7[key1], { instancePath: instancePath + "/response/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key1, rootData, dynamicAnchors })) {
22378
+ vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);
22115
22379
  errors = vErrors.length;
22116
22380
  }
22117
22381
  }
@@ -22134,16 +22398,16 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
22134
22398
  }
22135
22399
  errors++;
22136
22400
  }
22137
- validate132.errors = vErrors;
22401
+ validate134.errors = vErrors;
22138
22402
  return errors === 0;
22139
22403
  }
22140
- validate132.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
22141
- var schema141 = { "enum": ["brackets", "dots"] };
22142
- var schema142 = { "enum": ["comma", "repeat", "indices", "brackets"] };
22143
- function validate138(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22404
+ validate134.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
22405
+ var schema143 = { "enum": ["brackets", "dots"] };
22406
+ var schema144 = { "enum": ["comma", "repeat", "indices", "brackets"] };
22407
+ function validate140(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22144
22408
  let vErrors = null;
22145
22409
  let errors = 0;
22146
- const evaluated0 = validate138.evaluated;
22410
+ const evaluated0 = validate140.evaluated;
22147
22411
  if (evaluated0.dynamicProps) {
22148
22412
  evaluated0.props = void 0;
22149
22413
  }
@@ -22154,7 +22418,7 @@ function validate138(data, { instancePath = "", parentData, parentDataProperty,
22154
22418
  if (data.nestedFormat !== void 0) {
22155
22419
  let data0 = data.nestedFormat;
22156
22420
  if (!(data0 === "brackets" || data0 === "dots")) {
22157
- const err0 = { instancePath: instancePath + "/nestedFormat", schemaPath: "#/$defs/queryNestedFormat/enum", keyword: "enum", params: { allowedValues: schema141.enum }, message: "must be equal to one of the allowed values" };
22421
+ const err0 = { instancePath: instancePath + "/nestedFormat", schemaPath: "#/$defs/queryNestedFormat/enum", keyword: "enum", params: { allowedValues: schema143.enum }, message: "must be equal to one of the allowed values" };
22158
22422
  if (vErrors === null) {
22159
22423
  vErrors = [err0];
22160
22424
  } else {
@@ -22166,7 +22430,7 @@ function validate138(data, { instancePath = "", parentData, parentDataProperty,
22166
22430
  if (data.arrayFormat !== void 0) {
22167
22431
  let data1 = data.arrayFormat;
22168
22432
  if (!(data1 === "comma" || data1 === "repeat" || data1 === "indices" || data1 === "brackets")) {
22169
- const err1 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema142.enum }, message: "must be equal to one of the allowed values" };
22433
+ const err1 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema144.enum }, message: "must be equal to one of the allowed values" };
22170
22434
  if (vErrors === null) {
22171
22435
  vErrors = [err1];
22172
22436
  } else {
@@ -22184,14 +22448,14 @@ function validate138(data, { instancePath = "", parentData, parentDataProperty,
22184
22448
  }
22185
22449
  errors++;
22186
22450
  }
22187
- validate138.errors = vErrors;
22451
+ validate140.errors = vErrors;
22188
22452
  return errors === 0;
22189
22453
  }
22190
- validate138.evaluated = { "props": { "nestedFormat": true, "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
22191
- function validate140(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22454
+ validate140.evaluated = { "props": { "nestedFormat": true, "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
22455
+ function validate142(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22192
22456
  let vErrors = null;
22193
22457
  let errors = 0;
22194
- const evaluated0 = validate140.evaluated;
22458
+ const evaluated0 = validate142.evaluated;
22195
22459
  if (evaluated0.dynamicProps) {
22196
22460
  evaluated0.props = void 0;
22197
22461
  }
@@ -22202,7 +22466,7 @@ function validate140(data, { instancePath = "", parentData, parentDataProperty,
22202
22466
  if (data.arrayFormat !== void 0) {
22203
22467
  let data0 = data.arrayFormat;
22204
22468
  if (!(data0 === "comma" || data0 === "repeat" || data0 === "indices" || data0 === "brackets")) {
22205
- const err0 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema142.enum }, message: "must be equal to one of the allowed values" };
22469
+ const err0 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema144.enum }, message: "must be equal to one of the allowed values" };
22206
22470
  if (vErrors === null) {
22207
22471
  vErrors = [err0];
22208
22472
  } else {
@@ -22220,18 +22484,18 @@ function validate140(data, { instancePath = "", parentData, parentDataProperty,
22220
22484
  }
22221
22485
  errors++;
22222
22486
  }
22223
- validate140.errors = vErrors;
22487
+ validate142.errors = vErrors;
22224
22488
  return errors === 0;
22225
22489
  }
22226
- validate140.evaluated = { "props": { "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
22227
- var schema146 = { "type": "object", "properties": { "codeSamples": { "enum": ["x-codeSamples", "x-code-samples", "x-scalar-examples", "x-custom-examples"] }, "codeSampleLanguages": { "type": "object", "additionalProperties": { "type": "boolean" } }, "security": { "type": "array", "items": { "$ref": "#/$defs/securityRequirementObject" } }, "securitySchemes": { "type": "object", "additionalProperties": { "$ref": "#/$defs/securitySchemeObject" } }, "operationSecurity": { "type": "boolean" }, "transformations": { "type": "array", "items": { "$ref": "#/$defs/openAPITransformation" } } }, "required": ["codeSampleLanguages", "securitySchemes"] };
22228
- var schema160 = { "type": "object", "properties": { "command": { "enum": ["copySchemaObject", "mergeObject", "removePaths", "removeProperties", "renameProperty", "renameSchema", "renameValue", "replaceValue", "updatePatternExamples"] }, "args": { "type": "object", "additionalProperties": true }, "reason": { "type": "string" } }, "required": ["command", "args"], "additionalProperties": false };
22229
- var schema149 = { "enum": ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"] };
22230
- var schema150 = { "enum": ["query", "header", "cookie"] };
22231
- function validate145(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22490
+ validate142.evaluated = { "props": { "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
22491
+ var schema148 = { "type": "object", "properties": { "codeSamples": { "enum": ["x-codeSamples", "x-code-samples", "x-scalar-examples", "x-custom-examples"], "default": "x-codeSamples" }, "codeSampleLanguages": { "type": "object", "additionalProperties": { "type": "boolean" } }, "tags": { "enum": ["document", "resources"], "default": "document" }, "security": { "type": "array", "items": { "$ref": "#/$defs/securityRequirementObject" } }, "securitySchemes": { "type": "object", "additionalProperties": { "$ref": "#/$defs/securitySchemeObject" } }, "operationSecurity": { "type": "boolean" }, "transformations": { "type": "array", "items": { "$ref": "#/$defs/openAPITransformation" } } }, "required": ["codeSampleLanguages", "securitySchemes"] };
22492
+ var schema164 = { "type": "object", "properties": { "command": { "enum": ["copySchemaObject", "mergeObject", "removePaths", "removeProperties", "renameProperty", "renameSchema", "renameValue", "replaceValue", "updatePatternExamples"] }, "args": { "type": "object", "additionalProperties": true }, "reason": { "type": "string" } }, "required": ["command", "args"], "additionalProperties": false };
22493
+ var schema151 = { "enum": ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"] };
22494
+ var schema152 = { "enum": ["query", "header", "cookie"] };
22495
+ function validate147(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22232
22496
  let vErrors = null;
22233
22497
  let errors = 0;
22234
- const evaluated0 = validate145.evaluated;
22498
+ const evaluated0 = validate147.evaluated;
22235
22499
  if (evaluated0.dynamicProps) {
22236
22500
  evaluated0.props = void 0;
22237
22501
  }
@@ -22345,14 +22609,14 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
22345
22609
  }
22346
22610
  errors++;
22347
22611
  }
22348
- validate145.errors = vErrors;
22612
+ validate147.errors = vErrors;
22349
22613
  return errors === 0;
22350
22614
  }
22351
- validate145.evaluated = { "props": { "authorizationUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22352
- function validate147(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22615
+ validate147.evaluated = { "props": { "authorizationUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22616
+ function validate149(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22353
22617
  let vErrors = null;
22354
22618
  let errors = 0;
22355
- const evaluated0 = validate147.evaluated;
22619
+ const evaluated0 = validate149.evaluated;
22356
22620
  if (evaluated0.dynamicProps) {
22357
22621
  evaluated0.props = void 0;
22358
22622
  }
@@ -22466,14 +22730,14 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
22466
22730
  }
22467
22731
  errors++;
22468
22732
  }
22469
- validate147.errors = vErrors;
22733
+ validate149.errors = vErrors;
22470
22734
  return errors === 0;
22471
22735
  }
22472
- validate147.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22473
- function validate149(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22736
+ validate149.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22737
+ function validate151(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22474
22738
  let vErrors = null;
22475
22739
  let errors = 0;
22476
- const evaluated0 = validate149.evaluated;
22740
+ const evaluated0 = validate151.evaluated;
22477
22741
  if (evaluated0.dynamicProps) {
22478
22742
  evaluated0.props = void 0;
22479
22743
  }
@@ -22587,14 +22851,163 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
22587
22851
  }
22588
22852
  errors++;
22589
22853
  }
22590
- validate149.errors = vErrors;
22854
+ validate151.errors = vErrors;
22591
22855
  return errors === 0;
22592
22856
  }
22593
- validate149.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22594
- function validate151(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22857
+ validate151.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22858
+ function validate153(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22595
22859
  let vErrors = null;
22596
22860
  let errors = 0;
22597
- const evaluated0 = validate151.evaluated;
22861
+ const evaluated0 = validate153.evaluated;
22862
+ if (evaluated0.dynamicProps) {
22863
+ evaluated0.props = void 0;
22864
+ }
22865
+ if (evaluated0.dynamicItems) {
22866
+ evaluated0.items = void 0;
22867
+ }
22868
+ if (data && typeof data == "object" && !Array.isArray(data)) {
22869
+ if (data.deviceAuthorizationUrl !== void 0) {
22870
+ let data0 = data.deviceAuthorizationUrl;
22871
+ if (typeof data0 !== "string") {
22872
+ let dataType0 = typeof data0;
22873
+ let coerced0 = void 0;
22874
+ if (!(coerced0 !== void 0)) {
22875
+ if (dataType0 == "number" || dataType0 == "boolean") {
22876
+ coerced0 = "" + data0;
22877
+ } else if (data0 === null) {
22878
+ coerced0 = "";
22879
+ } else {
22880
+ const err0 = { instancePath: instancePath + "/deviceAuthorizationUrl", schemaPath: "#/properties/deviceAuthorizationUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
22881
+ if (vErrors === null) {
22882
+ vErrors = [err0];
22883
+ } else {
22884
+ vErrors.push(err0);
22885
+ }
22886
+ errors++;
22887
+ }
22888
+ }
22889
+ if (coerced0 !== void 0) {
22890
+ data0 = coerced0;
22891
+ if (data !== void 0) {
22892
+ data["deviceAuthorizationUrl"] = coerced0;
22893
+ }
22894
+ }
22895
+ }
22896
+ }
22897
+ if (data.tokenUrl !== void 0) {
22898
+ let data1 = data.tokenUrl;
22899
+ if (typeof data1 !== "string") {
22900
+ let dataType1 = typeof data1;
22901
+ let coerced1 = void 0;
22902
+ if (!(coerced1 !== void 0)) {
22903
+ if (dataType1 == "number" || dataType1 == "boolean") {
22904
+ coerced1 = "" + data1;
22905
+ } else if (data1 === null) {
22906
+ coerced1 = "";
22907
+ } else {
22908
+ const err1 = { instancePath: instancePath + "/tokenUrl", schemaPath: "#/properties/tokenUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
22909
+ if (vErrors === null) {
22910
+ vErrors = [err1];
22911
+ } else {
22912
+ vErrors.push(err1);
22913
+ }
22914
+ errors++;
22915
+ }
22916
+ }
22917
+ if (coerced1 !== void 0) {
22918
+ data1 = coerced1;
22919
+ if (data !== void 0) {
22920
+ data["tokenUrl"] = coerced1;
22921
+ }
22922
+ }
22923
+ }
22924
+ }
22925
+ if (data.refreshUrl !== void 0) {
22926
+ let data2 = data.refreshUrl;
22927
+ if (typeof data2 !== "string") {
22928
+ let dataType2 = typeof data2;
22929
+ let coerced2 = void 0;
22930
+ if (!(coerced2 !== void 0)) {
22931
+ if (dataType2 == "number" || dataType2 == "boolean") {
22932
+ coerced2 = "" + data2;
22933
+ } else if (data2 === null) {
22934
+ coerced2 = "";
22935
+ } else {
22936
+ const err2 = { instancePath: instancePath + "/refreshUrl", schemaPath: "#/properties/refreshUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
22937
+ if (vErrors === null) {
22938
+ vErrors = [err2];
22939
+ } else {
22940
+ vErrors.push(err2);
22941
+ }
22942
+ errors++;
22943
+ }
22944
+ }
22945
+ if (coerced2 !== void 0) {
22946
+ data2 = coerced2;
22947
+ if (data !== void 0) {
22948
+ data["refreshUrl"] = coerced2;
22949
+ }
22950
+ }
22951
+ }
22952
+ }
22953
+ if (data.scopes !== void 0) {
22954
+ let data3 = data.scopes;
22955
+ if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
22956
+ for (const key0 in data3) {
22957
+ let data4 = data3[key0];
22958
+ if (typeof data4 !== "string") {
22959
+ let dataType3 = typeof data4;
22960
+ let coerced3 = void 0;
22961
+ if (!(coerced3 !== void 0)) {
22962
+ if (dataType3 == "number" || dataType3 == "boolean") {
22963
+ coerced3 = "" + data4;
22964
+ } else if (data4 === null) {
22965
+ coerced3 = "";
22966
+ } else {
22967
+ const err3 = { instancePath: instancePath + "/scopes/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapOfStringsObject/additionalProperties/type", keyword: "type", params: { type: "string" }, message: "must be string" };
22968
+ if (vErrors === null) {
22969
+ vErrors = [err3];
22970
+ } else {
22971
+ vErrors.push(err3);
22972
+ }
22973
+ errors++;
22974
+ }
22975
+ }
22976
+ if (coerced3 !== void 0) {
22977
+ data4 = coerced3;
22978
+ if (data3 !== void 0) {
22979
+ data3[key0] = coerced3;
22980
+ }
22981
+ }
22982
+ }
22983
+ }
22984
+ } else {
22985
+ const err4 = { instancePath: instancePath + "/scopes", schemaPath: "#/$defs/mapOfStringsObject/type", keyword: "type", params: { type: "object" }, message: "must be object" };
22986
+ if (vErrors === null) {
22987
+ vErrors = [err4];
22988
+ } else {
22989
+ vErrors.push(err4);
22990
+ }
22991
+ errors++;
22992
+ }
22993
+ }
22994
+ } else {
22995
+ const err5 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
22996
+ if (vErrors === null) {
22997
+ vErrors = [err5];
22998
+ } else {
22999
+ vErrors.push(err5);
23000
+ }
23001
+ errors++;
23002
+ }
23003
+ validate153.errors = vErrors;
23004
+ return errors === 0;
23005
+ }
23006
+ validate153.evaluated = { "props": { "deviceAuthorizationUrl": true, "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
23007
+ function validate155(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23008
+ let vErrors = null;
23009
+ let errors = 0;
23010
+ const evaluated0 = validate155.evaluated;
22598
23011
  if (evaluated0.dynamicProps) {
22599
23012
  evaluated0.props = void 0;
22600
23013
  }
@@ -22736,14 +23149,14 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
22736
23149
  }
22737
23150
  errors++;
22738
23151
  }
22739
- validate151.errors = vErrors;
23152
+ validate155.errors = vErrors;
22740
23153
  return errors === 0;
22741
23154
  }
22742
- validate151.evaluated = { "props": { "authorizationUrl": true, "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
22743
- function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23155
+ validate155.evaluated = { "props": { "authorizationUrl": true, "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
23156
+ function validate146(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22744
23157
  let vErrors = null;
22745
23158
  let errors = 0;
22746
- const evaluated0 = validate144.evaluated;
23159
+ const evaluated0 = validate146.evaluated;
22747
23160
  if (evaluated0.dynamicProps) {
22748
23161
  evaluated0.props = void 0;
22749
23162
  }
@@ -22752,26 +23165,32 @@ function validate144(data, { instancePath = "", parentData, parentDataProperty,
22752
23165
  }
22753
23166
  if (data && typeof data == "object" && !Array.isArray(data)) {
22754
23167
  if (data.implicit !== void 0) {
22755
- if (!validate145(data.implicit, { instancePath: instancePath + "/implicit", parentData: data, parentDataProperty: "implicit", rootData, dynamicAnchors })) {
22756
- vErrors = vErrors === null ? validate145.errors : vErrors.concat(validate145.errors);
23168
+ if (!validate147(data.implicit, { instancePath: instancePath + "/implicit", parentData: data, parentDataProperty: "implicit", rootData, dynamicAnchors })) {
23169
+ vErrors = vErrors === null ? validate147.errors : vErrors.concat(validate147.errors);
22757
23170
  errors = vErrors.length;
22758
23171
  }
22759
23172
  }
22760
23173
  if (data.password !== void 0) {
22761
- if (!validate147(data.password, { instancePath: instancePath + "/password", parentData: data, parentDataProperty: "password", rootData, dynamicAnchors })) {
22762
- vErrors = vErrors === null ? validate147.errors : vErrors.concat(validate147.errors);
23174
+ if (!validate149(data.password, { instancePath: instancePath + "/password", parentData: data, parentDataProperty: "password", rootData, dynamicAnchors })) {
23175
+ vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
22763
23176
  errors = vErrors.length;
22764
23177
  }
22765
23178
  }
22766
23179
  if (data.clientCredentials !== void 0) {
22767
- if (!validate149(data.clientCredentials, { instancePath: instancePath + "/clientCredentials", parentData: data, parentDataProperty: "clientCredentials", rootData, dynamicAnchors })) {
22768
- vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
23180
+ if (!validate151(data.clientCredentials, { instancePath: instancePath + "/clientCredentials", parentData: data, parentDataProperty: "clientCredentials", rootData, dynamicAnchors })) {
23181
+ vErrors = vErrors === null ? validate151.errors : vErrors.concat(validate151.errors);
23182
+ errors = vErrors.length;
23183
+ }
23184
+ }
23185
+ if (data.deviceAuthorization !== void 0) {
23186
+ if (!validate153(data.deviceAuthorization, { instancePath: instancePath + "/deviceAuthorization", parentData: data, parentDataProperty: "deviceAuthorization", rootData, dynamicAnchors })) {
23187
+ vErrors = vErrors === null ? validate153.errors : vErrors.concat(validate153.errors);
22769
23188
  errors = vErrors.length;
22770
23189
  }
22771
23190
  }
22772
23191
  if (data.authorizationCode !== void 0) {
22773
- if (!validate151(data.authorizationCode, { instancePath: instancePath + "/authorizationCode", parentData: data, parentDataProperty: "authorizationCode", rootData, dynamicAnchors })) {
22774
- vErrors = vErrors === null ? validate151.errors : vErrors.concat(validate151.errors);
23192
+ if (!validate155(data.authorizationCode, { instancePath: instancePath + "/authorizationCode", parentData: data, parentDataProperty: "authorizationCode", rootData, dynamicAnchors })) {
23193
+ vErrors = vErrors === null ? validate155.errors : vErrors.concat(validate155.errors);
22775
23194
  errors = vErrors.length;
22776
23195
  }
22777
23196
  }
@@ -22784,14 +23203,14 @@ function validate144(data, { instancePath = "", parentData, parentDataProperty,
22784
23203
  }
22785
23204
  errors++;
22786
23205
  }
22787
- validate144.errors = vErrors;
23206
+ validate146.errors = vErrors;
22788
23207
  return errors === 0;
22789
23208
  }
22790
- validate144.evaluated = { "props": { "implicit": true, "password": true, "clientCredentials": true, "authorizationCode": true }, "dynamicProps": false, "dynamicItems": false };
22791
- function validate143(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23209
+ validate146.evaluated = { "props": { "implicit": true, "password": true, "clientCredentials": true, "deviceAuthorization": true, "authorizationCode": true }, "dynamicProps": false, "dynamicItems": false };
23210
+ function validate145(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22792
23211
  let vErrors = null;
22793
23212
  let errors = 0;
22794
- const evaluated0 = validate143.evaluated;
23213
+ const evaluated0 = validate145.evaluated;
22795
23214
  if (evaluated0.dynamicProps) {
22796
23215
  evaluated0.props = void 0;
22797
23216
  }
@@ -22802,7 +23221,7 @@ function validate143(data, { instancePath = "", parentData, parentDataProperty,
22802
23221
  if (data.type !== void 0) {
22803
23222
  let data0 = data.type;
22804
23223
  if (!(data0 === "apiKey" || data0 === "http" || data0 === "mutualTLS" || data0 === "oauth2" || data0 === "openIdConnect")) {
22805
- const err0 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/securitySchemeType/enum", keyword: "enum", params: { allowedValues: schema149.enum }, message: "must be equal to one of the allowed values" };
23224
+ const err0 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/securitySchemeType/enum", keyword: "enum", params: { allowedValues: schema151.enum }, message: "must be equal to one of the allowed values" };
22806
23225
  if (vErrors === null) {
22807
23226
  vErrors = [err0];
22808
23227
  } else {
@@ -22870,7 +23289,7 @@ function validate143(data, { instancePath = "", parentData, parentDataProperty,
22870
23289
  if (data.in !== void 0) {
22871
23290
  let data3 = data.in;
22872
23291
  if (!(data3 === "query" || data3 === "header" || data3 === "cookie")) {
22873
- const err3 = { instancePath: instancePath + "/in", schemaPath: "#/$defs/apiKeyLocation/enum", keyword: "enum", params: { allowedValues: schema150.enum }, message: "must be equal to one of the allowed values" };
23292
+ const err3 = { instancePath: instancePath + "/in", schemaPath: "#/$defs/apiKeyLocation/enum", keyword: "enum", params: { allowedValues: schema152.enum }, message: "must be equal to one of the allowed values" };
22874
23293
  if (vErrors === null) {
22875
23294
  vErrors = [err3];
22876
23295
  } else {
@@ -22936,8 +23355,8 @@ function validate143(data, { instancePath = "", parentData, parentDataProperty,
22936
23355
  }
22937
23356
  }
22938
23357
  if (data.flows !== void 0) {
22939
- if (!validate144(data.flows, { instancePath: instancePath + "/flows", parentData: data, parentDataProperty: "flows", rootData, dynamicAnchors })) {
22940
- vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
23358
+ if (!validate146(data.flows, { instancePath: instancePath + "/flows", parentData: data, parentDataProperty: "flows", rootData, dynamicAnchors })) {
23359
+ vErrors = vErrors === null ? validate146.errors : vErrors.concat(validate146.errors);
22941
23360
  errors = vErrors.length;
22942
23361
  }
22943
23362
  }
@@ -22978,14 +23397,14 @@ function validate143(data, { instancePath = "", parentData, parentDataProperty,
22978
23397
  }
22979
23398
  errors++;
22980
23399
  }
22981
- validate143.errors = vErrors;
23400
+ validate145.errors = vErrors;
22982
23401
  return errors === 0;
22983
23402
  }
22984
- validate143.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
22985
- function validate142(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23403
+ validate145.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
23404
+ function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22986
23405
  let vErrors = null;
22987
23406
  let errors = 0;
22988
- const evaluated0 = validate142.evaluated;
23407
+ const evaluated0 = validate144.evaluated;
22989
23408
  if (evaluated0.dynamicProps) {
22990
23409
  evaluated0.props = void 0;
22991
23410
  }
@@ -23014,7 +23433,7 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
23014
23433
  if (data.codeSamples !== void 0) {
23015
23434
  let data0 = data.codeSamples;
23016
23435
  if (!(data0 === "x-codeSamples" || data0 === "x-code-samples" || data0 === "x-scalar-examples" || data0 === "x-custom-examples")) {
23017
- const err2 = { instancePath: instancePath + "/codeSamples", schemaPath: "#/properties/codeSamples/enum", keyword: "enum", params: { allowedValues: schema146.properties.codeSamples.enum }, message: "must be equal to one of the allowed values" };
23436
+ const err2 = { instancePath: instancePath + "/codeSamples", schemaPath: "#/properties/codeSamples/enum", keyword: "enum", params: { allowedValues: schema148.properties.codeSamples.enum }, message: "must be equal to one of the allowed values" };
23018
23437
  if (vErrors === null) {
23019
23438
  vErrors = [err2];
23020
23439
  } else {
@@ -23063,115 +23482,127 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
23063
23482
  errors++;
23064
23483
  }
23065
23484
  }
23485
+ if (data.tags !== void 0) {
23486
+ let data3 = data.tags;
23487
+ if (!(data3 === "document" || data3 === "resources")) {
23488
+ const err5 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/enum", keyword: "enum", params: { allowedValues: schema148.properties.tags.enum }, message: "must be equal to one of the allowed values" };
23489
+ if (vErrors === null) {
23490
+ vErrors = [err5];
23491
+ } else {
23492
+ vErrors.push(err5);
23493
+ }
23494
+ errors++;
23495
+ }
23496
+ }
23066
23497
  if (data.security !== void 0) {
23067
- let data3 = data.security;
23068
- if (Array.isArray(data3)) {
23069
- const len0 = data3.length;
23498
+ let data4 = data.security;
23499
+ if (Array.isArray(data4)) {
23500
+ const len0 = data4.length;
23070
23501
  for (let i0 = 0; i0 < len0; i0++) {
23071
- let data4 = data3[i0];
23072
- if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
23073
- for (const key1 in data4) {
23074
- let data5 = data4[key1];
23075
- if (Array.isArray(data5)) {
23076
- const len1 = data5.length;
23502
+ let data5 = data4[i0];
23503
+ if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
23504
+ for (const key1 in data5) {
23505
+ let data6 = data5[key1];
23506
+ if (Array.isArray(data6)) {
23507
+ const len1 = data6.length;
23077
23508
  for (let i1 = 0; i1 < len1; i1++) {
23078
- let data6 = data5[i1];
23079
- if (typeof data6 !== "string") {
23080
- let dataType1 = typeof data6;
23509
+ let data7 = data6[i1];
23510
+ if (typeof data7 !== "string") {
23511
+ let dataType1 = typeof data7;
23081
23512
  let coerced1 = void 0;
23082
23513
  if (!(coerced1 !== void 0)) {
23083
23514
  if (dataType1 == "number" || dataType1 == "boolean") {
23084
- coerced1 = "" + data6;
23085
- } else if (data6 === null) {
23515
+ coerced1 = "" + data7;
23516
+ } else if (data7 === null) {
23086
23517
  coerced1 = "";
23087
23518
  } else {
23088
- const err5 = { instancePath: instancePath + "/security/" + i0 + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i1, schemaPath: "#/$defs/securityRequirementObject/additionalProperties/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
23519
+ const err6 = { instancePath: instancePath + "/security/" + i0 + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i1, schemaPath: "#/$defs/securityRequirementObject/additionalProperties/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
23089
23520
  if (vErrors === null) {
23090
- vErrors = [err5];
23521
+ vErrors = [err6];
23091
23522
  } else {
23092
- vErrors.push(err5);
23523
+ vErrors.push(err6);
23093
23524
  }
23094
23525
  errors++;
23095
23526
  }
23096
23527
  }
23097
23528
  if (coerced1 !== void 0) {
23098
- data6 = coerced1;
23099
- if (data5 !== void 0) {
23100
- data5[i1] = coerced1;
23529
+ data7 = coerced1;
23530
+ if (data6 !== void 0) {
23531
+ data6[i1] = coerced1;
23101
23532
  }
23102
23533
  }
23103
23534
  }
23104
23535
  }
23105
23536
  } else {
23106
- const err6 = { instancePath: instancePath + "/security/" + i0 + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/securityRequirementObject/additionalProperties/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23537
+ const err7 = { instancePath: instancePath + "/security/" + i0 + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/securityRequirementObject/additionalProperties/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23107
23538
  if (vErrors === null) {
23108
- vErrors = [err6];
23539
+ vErrors = [err7];
23109
23540
  } else {
23110
- vErrors.push(err6);
23541
+ vErrors.push(err7);
23111
23542
  }
23112
23543
  errors++;
23113
23544
  }
23114
23545
  }
23115
23546
  } else {
23116
- const err7 = { instancePath: instancePath + "/security/" + i0, schemaPath: "#/$defs/securityRequirementObject/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23547
+ const err8 = { instancePath: instancePath + "/security/" + i0, schemaPath: "#/$defs/securityRequirementObject/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23117
23548
  if (vErrors === null) {
23118
- vErrors = [err7];
23549
+ vErrors = [err8];
23119
23550
  } else {
23120
- vErrors.push(err7);
23551
+ vErrors.push(err8);
23121
23552
  }
23122
23553
  errors++;
23123
23554
  }
23124
23555
  }
23125
23556
  } else {
23126
- const err8 = { instancePath: instancePath + "/security", schemaPath: "#/properties/security/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23557
+ const err9 = { instancePath: instancePath + "/security", schemaPath: "#/properties/security/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23127
23558
  if (vErrors === null) {
23128
- vErrors = [err8];
23559
+ vErrors = [err9];
23129
23560
  } else {
23130
- vErrors.push(err8);
23561
+ vErrors.push(err9);
23131
23562
  }
23132
23563
  errors++;
23133
23564
  }
23134
23565
  }
23135
23566
  if (data.securitySchemes !== void 0) {
23136
- let data7 = data.securitySchemes;
23137
- if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
23138
- for (const key2 in data7) {
23139
- if (!validate143(data7[key2], { instancePath: instancePath + "/securitySchemes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key2, rootData, dynamicAnchors })) {
23140
- vErrors = vErrors === null ? validate143.errors : vErrors.concat(validate143.errors);
23567
+ let data8 = data.securitySchemes;
23568
+ if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
23569
+ for (const key2 in data8) {
23570
+ if (!validate145(data8[key2], { instancePath: instancePath + "/securitySchemes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data8, parentDataProperty: key2, rootData, dynamicAnchors })) {
23571
+ vErrors = vErrors === null ? validate145.errors : vErrors.concat(validate145.errors);
23141
23572
  errors = vErrors.length;
23142
23573
  }
23143
23574
  }
23144
23575
  } else {
23145
- const err9 = { instancePath: instancePath + "/securitySchemes", schemaPath: "#/properties/securitySchemes/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23576
+ const err10 = { instancePath: instancePath + "/securitySchemes", schemaPath: "#/properties/securitySchemes/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23146
23577
  if (vErrors === null) {
23147
- vErrors = [err9];
23578
+ vErrors = [err10];
23148
23579
  } else {
23149
- vErrors.push(err9);
23580
+ vErrors.push(err10);
23150
23581
  }
23151
23582
  errors++;
23152
23583
  }
23153
23584
  }
23154
23585
  if (data.operationSecurity !== void 0) {
23155
- let data9 = data.operationSecurity;
23156
- if (typeof data9 !== "boolean") {
23586
+ let data10 = data.operationSecurity;
23587
+ if (typeof data10 !== "boolean") {
23157
23588
  let coerced2 = void 0;
23158
23589
  if (!(coerced2 !== void 0)) {
23159
- if (data9 === "false" || data9 === 0 || data9 === null) {
23590
+ if (data10 === "false" || data10 === 0 || data10 === null) {
23160
23591
  coerced2 = false;
23161
- } else if (data9 === "true" || data9 === 1) {
23592
+ } else if (data10 === "true" || data10 === 1) {
23162
23593
  coerced2 = true;
23163
23594
  } else {
23164
- const err10 = { instancePath: instancePath + "/operationSecurity", schemaPath: "#/properties/operationSecurity/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
23595
+ const err11 = { instancePath: instancePath + "/operationSecurity", schemaPath: "#/properties/operationSecurity/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
23165
23596
  if (vErrors === null) {
23166
- vErrors = [err10];
23597
+ vErrors = [err11];
23167
23598
  } else {
23168
- vErrors.push(err10);
23599
+ vErrors.push(err11);
23169
23600
  }
23170
23601
  errors++;
23171
23602
  }
23172
23603
  }
23173
23604
  if (coerced2 !== void 0) {
23174
- data9 = coerced2;
23605
+ data10 = coerced2;
23175
23606
  if (data !== void 0) {
23176
23607
  data["operationSecurity"] = coerced2;
23177
23608
  }
@@ -23179,151 +23610,135 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
23179
23610
  }
23180
23611
  }
23181
23612
  if (data.transformations !== void 0) {
23182
- let data10 = data.transformations;
23183
- if (Array.isArray(data10)) {
23184
- const len2 = data10.length;
23613
+ let data11 = data.transformations;
23614
+ if (Array.isArray(data11)) {
23615
+ const len2 = data11.length;
23185
23616
  for (let i2 = 0; i2 < len2; i2++) {
23186
- let data11 = data10[i2];
23187
- if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
23188
- if (data11.command === void 0) {
23189
- const err11 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/required", keyword: "required", params: { missingProperty: "command" }, message: "must have required property 'command'" };
23617
+ let data12 = data11[i2];
23618
+ if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
23619
+ if (data12.command === void 0) {
23620
+ const err12 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/required", keyword: "required", params: { missingProperty: "command" }, message: "must have required property 'command'" };
23190
23621
  if (vErrors === null) {
23191
- vErrors = [err11];
23622
+ vErrors = [err12];
23192
23623
  } else {
23193
- vErrors.push(err11);
23624
+ vErrors.push(err12);
23194
23625
  }
23195
23626
  errors++;
23196
23627
  }
23197
- if (data11.args === void 0) {
23198
- const err12 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/required", keyword: "required", params: { missingProperty: "args" }, message: "must have required property 'args'" };
23628
+ if (data12.args === void 0) {
23629
+ const err13 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/required", keyword: "required", params: { missingProperty: "args" }, message: "must have required property 'args'" };
23199
23630
  if (vErrors === null) {
23200
- vErrors = [err12];
23631
+ vErrors = [err13];
23201
23632
  } else {
23202
- vErrors.push(err12);
23633
+ vErrors.push(err13);
23203
23634
  }
23204
23635
  errors++;
23205
23636
  }
23206
- for (const key3 in data11) {
23637
+ for (const key3 in data12) {
23207
23638
  if (!(key3 === "command" || key3 === "args" || key3 === "reason")) {
23208
- const err13 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
23639
+ const err14 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
23209
23640
  if (vErrors === null) {
23210
- vErrors = [err13];
23641
+ vErrors = [err14];
23211
23642
  } else {
23212
- vErrors.push(err13);
23643
+ vErrors.push(err14);
23213
23644
  }
23214
23645
  errors++;
23215
23646
  }
23216
23647
  }
23217
- if (data11.command !== void 0) {
23218
- let data12 = data11.command;
23219
- if (!(data12 === "copySchemaObject" || data12 === "mergeObject" || data12 === "removePaths" || data12 === "removeProperties" || data12 === "renameProperty" || data12 === "renameSchema" || data12 === "renameValue" || data12 === "replaceValue" || data12 === "updatePatternExamples")) {
23220
- const err14 = { instancePath: instancePath + "/transformations/" + i2 + "/command", schemaPath: "#/$defs/openAPITransformation/properties/command/enum", keyword: "enum", params: { allowedValues: schema160.properties.command.enum }, message: "must be equal to one of the allowed values" };
23648
+ if (data12.command !== void 0) {
23649
+ let data13 = data12.command;
23650
+ if (!(data13 === "copySchemaObject" || data13 === "mergeObject" || data13 === "removePaths" || data13 === "removeProperties" || data13 === "renameProperty" || data13 === "renameSchema" || data13 === "renameValue" || data13 === "replaceValue" || data13 === "updatePatternExamples")) {
23651
+ const err15 = { instancePath: instancePath + "/transformations/" + i2 + "/command", schemaPath: "#/$defs/openAPITransformation/properties/command/enum", keyword: "enum", params: { allowedValues: schema164.properties.command.enum }, message: "must be equal to one of the allowed values" };
23221
23652
  if (vErrors === null) {
23222
- vErrors = [err14];
23653
+ vErrors = [err15];
23223
23654
  } else {
23224
- vErrors.push(err14);
23655
+ vErrors.push(err15);
23225
23656
  }
23226
23657
  errors++;
23227
23658
  }
23228
23659
  }
23229
- if (data11.args !== void 0) {
23230
- let data13 = data11.args;
23231
- if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
23660
+ if (data12.args !== void 0) {
23661
+ let data14 = data12.args;
23662
+ if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
23232
23663
  } else {
23233
- const err15 = { instancePath: instancePath + "/transformations/" + i2 + "/args", schemaPath: "#/$defs/openAPITransformation/properties/args/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23664
+ const err16 = { instancePath: instancePath + "/transformations/" + i2 + "/args", schemaPath: "#/$defs/openAPITransformation/properties/args/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23234
23665
  if (vErrors === null) {
23235
- vErrors = [err15];
23666
+ vErrors = [err16];
23236
23667
  } else {
23237
- vErrors.push(err15);
23668
+ vErrors.push(err16);
23238
23669
  }
23239
23670
  errors++;
23240
23671
  }
23241
23672
  }
23242
- if (data11.reason !== void 0) {
23243
- let data14 = data11.reason;
23244
- if (typeof data14 !== "string") {
23245
- let dataType3 = typeof data14;
23673
+ if (data12.reason !== void 0) {
23674
+ let data15 = data12.reason;
23675
+ if (typeof data15 !== "string") {
23676
+ let dataType3 = typeof data15;
23246
23677
  let coerced3 = void 0;
23247
23678
  if (!(coerced3 !== void 0)) {
23248
23679
  if (dataType3 == "number" || dataType3 == "boolean") {
23249
- coerced3 = "" + data14;
23250
- } else if (data14 === null) {
23680
+ coerced3 = "" + data15;
23681
+ } else if (data15 === null) {
23251
23682
  coerced3 = "";
23252
23683
  } else {
23253
- const err16 = { instancePath: instancePath + "/transformations/" + i2 + "/reason", schemaPath: "#/$defs/openAPITransformation/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
23684
+ const err17 = { instancePath: instancePath + "/transformations/" + i2 + "/reason", schemaPath: "#/$defs/openAPITransformation/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
23254
23685
  if (vErrors === null) {
23255
- vErrors = [err16];
23686
+ vErrors = [err17];
23256
23687
  } else {
23257
- vErrors.push(err16);
23688
+ vErrors.push(err17);
23258
23689
  }
23259
23690
  errors++;
23260
23691
  }
23261
23692
  }
23262
23693
  if (coerced3 !== void 0) {
23263
- data14 = coerced3;
23264
- if (data11 !== void 0) {
23265
- data11["reason"] = coerced3;
23694
+ data15 = coerced3;
23695
+ if (data12 !== void 0) {
23696
+ data12["reason"] = coerced3;
23266
23697
  }
23267
23698
  }
23268
23699
  }
23269
23700
  }
23270
23701
  } else {
23271
- const err17 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23702
+ const err18 = { instancePath: instancePath + "/transformations/" + i2, schemaPath: "#/$defs/openAPITransformation/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23272
23703
  if (vErrors === null) {
23273
- vErrors = [err17];
23704
+ vErrors = [err18];
23274
23705
  } else {
23275
- vErrors.push(err17);
23706
+ vErrors.push(err18);
23276
23707
  }
23277
23708
  errors++;
23278
23709
  }
23279
23710
  }
23280
23711
  } else {
23281
- const err18 = { instancePath: instancePath + "/transformations", schemaPath: "#/properties/transformations/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23712
+ const err19 = { instancePath: instancePath + "/transformations", schemaPath: "#/properties/transformations/type", keyword: "type", params: { type: "array" }, message: "must be array" };
23282
23713
  if (vErrors === null) {
23283
- vErrors = [err18];
23714
+ vErrors = [err19];
23284
23715
  } else {
23285
- vErrors.push(err18);
23716
+ vErrors.push(err19);
23286
23717
  }
23287
23718
  errors++;
23288
23719
  }
23289
23720
  }
23290
23721
  } else {
23291
- const err19 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23722
+ const err20 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
23292
23723
  if (vErrors === null) {
23293
- vErrors = [err19];
23724
+ vErrors = [err20];
23294
23725
  } else {
23295
- vErrors.push(err19);
23726
+ vErrors.push(err20);
23296
23727
  }
23297
23728
  errors++;
23298
23729
  }
23299
- validate142.errors = vErrors;
23730
+ validate144.errors = vErrors;
23300
23731
  return errors === 0;
23301
23732
  }
23302
- validate142.evaluated = { "props": { "codeSamples": true, "codeSampleLanguages": true, "security": true, "securitySchemes": true, "operationSecurity": true, "transformations": true }, "dynamicProps": false, "dynamicItems": false };
23303
- var schema162 = { "enum": ["connect", "transcode"] };
23733
+ validate144.evaluated = { "props": { "codeSamples": true, "codeSampleLanguages": true, "tags": true, "security": true, "securitySchemes": true, "operationSecurity": true, "transformations": true }, "dynamicProps": false, "dynamicItems": false };
23734
+ var schema166 = { "enum": ["connect", "transcode"] };
23304
23735
  var pattern23 = new RegExp("^[^-\\s\\u0000-\\u001f\\u007f-\\u009f][^\\u0000-\\u001f\\u007f-\\u009f]*$", "u");
23305
23736
  var pattern24 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$", "u");
23306
23737
  var pattern25 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*$", "u");
23307
- var func4 = (function ucs2length(str) {
23308
- const len = str.length;
23309
- let length = 0;
23310
- let pos = 0;
23311
- let value;
23312
- while (pos < len) {
23313
- length++;
23314
- value = str.charCodeAt(pos++);
23315
- if (value >= 55296 && value <= 56319 && pos < len) {
23316
- value = str.charCodeAt(pos);
23317
- if ((value & 64512) === 56320)
23318
- pos++;
23319
- }
23320
- }
23321
- return length;
23322
- });
23323
- function validate157(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23738
+ function validate161(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23324
23739
  let vErrors = null;
23325
23740
  let errors = 0;
23326
- const evaluated0 = validate157.evaluated;
23741
+ const evaluated0 = validate161.evaluated;
23327
23742
  if (evaluated0.dynamicProps) {
23328
23743
  evaluated0.props = void 0;
23329
23744
  }
@@ -23441,14 +23856,14 @@ function validate157(data, { instancePath = "", parentData, parentDataProperty,
23441
23856
  }
23442
23857
  errors++;
23443
23858
  }
23444
- validate157.errors = vErrors;
23859
+ validate161.errors = vErrors;
23445
23860
  return errors === 0;
23446
23861
  }
23447
- validate157.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
23448
- function validate156(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23862
+ validate161.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
23863
+ function validate160(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23449
23864
  let vErrors = null;
23450
23865
  let errors = 0;
23451
- const evaluated0 = validate156.evaluated;
23866
+ const evaluated0 = validate160.evaluated;
23452
23867
  if (evaluated0.dynamicProps) {
23453
23868
  evaluated0.props = void 0;
23454
23869
  }
@@ -23509,7 +23924,7 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
23509
23924
  if (data.protocol !== void 0) {
23510
23925
  let data1 = data.protocol;
23511
23926
  if (!(data1 === "connect" || data1 === "transcode")) {
23512
- const err3 = { instancePath: instancePath + "/protocol", schemaPath: "#/$defs/grpcProtocol/enum", keyword: "enum", params: { allowedValues: schema162.enum }, message: "must be equal to one of the allowed values" };
23927
+ const err3 = { instancePath: instancePath + "/protocol", schemaPath: "#/$defs/grpcProtocol/enum", keyword: "enum", params: { allowedValues: schema166.enum }, message: "must be equal to one of the allowed values" };
23513
23928
  if (vErrors === null) {
23514
23929
  vErrors = [err3];
23515
23930
  } else {
@@ -23546,8 +23961,8 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
23546
23961
  }
23547
23962
  }
23548
23963
  for (const key2 in data2) {
23549
- if (!validate157(data2[key2], { instancePath: instancePath + "/services/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key2, rootData, dynamicAnchors })) {
23550
- vErrors = vErrors === null ? validate157.errors : vErrors.concat(validate157.errors);
23964
+ if (!validate161(data2[key2], { instancePath: instancePath + "/services/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key2, rootData, dynamicAnchors })) {
23965
+ vErrors = vErrors === null ? validate161.errors : vErrors.concat(validate161.errors);
23551
23966
  errors = vErrors.length;
23552
23967
  }
23553
23968
  }
@@ -23623,16 +24038,16 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
23623
24038
  }
23624
24039
  errors++;
23625
24040
  }
23626
- validate156.errors = vErrors;
24041
+ validate160.errors = vErrors;
23627
24042
  return errors === 0;
23628
24043
  }
23629
- validate156.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
23630
- var schema166 = { "type": "object", "properties": { "kind": { "$ref": "#/$defs/streamingEventHandlerKind" }, "handle": { "type": "string" }, "eventType": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }, { "const": null }] }, "errorProperty": { "type": "string" }, "dataStartsWith": { "type": "string" } }, "required": ["kind", "handle"] };
23631
- var schema167 = { "enum": ["event", "fallthrough", "data"] };
23632
- function validate163(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24044
+ validate160.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
24045
+ var schema170 = { "type": "object", "properties": { "kind": { "$ref": "#/$defs/streamingEventHandlerKind" }, "handle": { "type": "string" }, "eventType": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }, { "const": null }] }, "errorProperty": { "type": "string" }, "dataStartsWith": { "type": "string" } }, "required": ["kind", "handle"] };
24046
+ var schema171 = { "enum": ["event", "fallthrough", "data"] };
24047
+ function validate167(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23633
24048
  let vErrors = null;
23634
24049
  let errors = 0;
23635
- const evaluated0 = validate163.evaluated;
24050
+ const evaluated0 = validate167.evaluated;
23636
24051
  if (evaluated0.dynamicProps) {
23637
24052
  evaluated0.props = void 0;
23638
24053
  }
@@ -23661,7 +24076,7 @@ function validate163(data, { instancePath = "", parentData, parentDataProperty,
23661
24076
  if (data.kind !== void 0) {
23662
24077
  let data0 = data.kind;
23663
24078
  if (!(data0 === "event" || data0 === "fallthrough" || data0 === "data")) {
23664
- const err2 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/streamingEventHandlerKind/enum", keyword: "enum", params: { allowedValues: schema167.enum }, message: "must be equal to one of the allowed values" };
24079
+ const err2 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/streamingEventHandlerKind/enum", keyword: "enum", params: { allowedValues: schema171.enum }, message: "must be equal to one of the allowed values" };
23665
24080
  if (vErrors === null) {
23666
24081
  vErrors = [err2];
23667
24082
  } else {
@@ -23774,7 +24189,7 @@ function validate163(data, { instancePath = "", parentData, parentDataProperty,
23774
24189
  valid2 = valid2 || _valid0;
23775
24190
  const _errs13 = errors;
23776
24191
  if (null !== data2) {
23777
- const err7 = { instancePath: instancePath + "/eventType", schemaPath: "#/properties/eventType/anyOf/2/const", keyword: "const", params: { allowedValue: schema166.properties.eventType.anyOf[2].const }, message: "must be equal to constant" };
24192
+ const err7 = { instancePath: instancePath + "/eventType", schemaPath: "#/properties/eventType/anyOf/2/const", keyword: "const", params: { allowedValue: schema170.properties.eventType.anyOf[2].const }, message: "must be equal to constant" };
23778
24193
  if (vErrors === null) {
23779
24194
  vErrors = [err7];
23780
24195
  } else {
@@ -23868,14 +24283,14 @@ function validate163(data, { instancePath = "", parentData, parentDataProperty,
23868
24283
  }
23869
24284
  errors++;
23870
24285
  }
23871
- validate163.errors = vErrors;
24286
+ validate167.errors = vErrors;
23872
24287
  return errors === 0;
23873
24288
  }
23874
- validate163.evaluated = { "props": { "kind": true, "handle": true, "eventType": true, "errorProperty": true, "dataStartsWith": true }, "dynamicProps": false, "dynamicItems": false };
23875
- function validate162(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24289
+ validate167.evaluated = { "props": { "kind": true, "handle": true, "eventType": true, "errorProperty": true, "dataStartsWith": true }, "dynamicProps": false, "dynamicItems": false };
24290
+ function validate166(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23876
24291
  let vErrors = null;
23877
24292
  let errors = 0;
23878
- const evaluated0 = validate162.evaluated;
24293
+ const evaluated0 = validate166.evaluated;
23879
24294
  if (evaluated0.dynamicProps) {
23880
24295
  evaluated0.props = void 0;
23881
24296
  }
@@ -23897,8 +24312,8 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
23897
24312
  if (Array.isArray(data0)) {
23898
24313
  const len0 = data0.length;
23899
24314
  for (let i0 = 0; i0 < len0; i0++) {
23900
- if (!validate163(data0[i0], { instancePath: instancePath + "/onEvent/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors })) {
23901
- vErrors = vErrors === null ? validate163.errors : vErrors.concat(validate163.errors);
24315
+ if (!validate167(data0[i0], { instancePath: instancePath + "/onEvent/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors })) {
24316
+ vErrors = vErrors === null ? validate167.errors : vErrors.concat(validate167.errors);
23902
24317
  errors = vErrors.length;
23903
24318
  }
23904
24319
  }
@@ -23921,14 +24336,14 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
23921
24336
  }
23922
24337
  errors++;
23923
24338
  }
23924
- validate162.errors = vErrors;
24339
+ validate166.errors = vErrors;
23925
24340
  return errors === 0;
23926
24341
  }
23927
- validate162.evaluated = { "props": { "onEvent": true }, "dynamicProps": false, "dynamicItems": false };
23928
- function validate166(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24342
+ validate166.evaluated = { "props": { "onEvent": true }, "dynamicProps": false, "dynamicItems": false };
24343
+ function validate170(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23929
24344
  let vErrors = null;
23930
24345
  let errors = 0;
23931
- const evaluated0 = validate166.evaluated;
24346
+ const evaluated0 = validate170.evaluated;
23932
24347
  if (evaluated0.dynamicProps) {
23933
24348
  evaluated0.props = void 0;
23934
24349
  }
@@ -24110,15 +24525,15 @@ function validate166(data, { instancePath = "", parentData, parentDataProperty,
24110
24525
  }
24111
24526
  errors++;
24112
24527
  }
24113
- validate166.errors = vErrors;
24528
+ validate170.errors = vErrors;
24114
24529
  return errors === 0;
24115
24530
  }
24116
- validate166.evaluated = { "props": { "type": true, "openapiUri": true, "deduplicate": true, "skipProperties": true, "skip": true }, "dynamicProps": false, "dynamicItems": false };
24117
- var schema169 = { "type": "object", "properties": { "failOn": { "enum": ["off", "info", "warn", "error"] }, "maxWarnings": { "type": "number", "minimum": 0 }, "maxErrors": { "type": "number", "minimum": 0 }, "rules": { "type": "object", "additionalProperties": { "enum": ["error", "warn", "info", "off"] } }, "ignored": { "type": "object", "additionalProperties": { "$ref": "#/$defs/diagnosticIgnoreConfig" } } }, "additionalProperties": false };
24118
- function validate171(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24531
+ validate170.evaluated = { "props": { "type": true, "openapiUri": true, "deduplicate": true, "skipProperties": true, "skip": true }, "dynamicProps": false, "dynamicItems": false };
24532
+ var schema173 = { "type": "object", "properties": { "failOn": { "enum": ["off", "info", "warn", "error"], "default": "error" }, "maxWarnings": { "type": "number", "minimum": 0 }, "maxErrors": { "type": "number", "minimum": 0 }, "rules": { "type": "object", "additionalProperties": { "enum": ["error", "warn", "info", "off"] } }, "ignored": { "type": "object", "additionalProperties": { "$ref": "#/$defs/diagnosticIgnoreConfig" } } }, "additionalProperties": false };
24533
+ function validate175(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24119
24534
  let vErrors = null;
24120
24535
  let errors = 0;
24121
- const evaluated0 = validate171.evaluated;
24536
+ const evaluated0 = validate175.evaluated;
24122
24537
  if (evaluated0.dynamicProps) {
24123
24538
  evaluated0.props = void 0;
24124
24539
  }
@@ -24343,15 +24758,15 @@ function validate171(data, { instancePath = "", parentData, parentDataProperty,
24343
24758
  }
24344
24759
  }
24345
24760
  }
24346
- validate171.errors = vErrors;
24761
+ validate175.errors = vErrors;
24347
24762
  evaluated0.props = props0;
24348
24763
  return errors === 0;
24349
24764
  }
24350
- validate171.evaluated = { "dynamicProps": true, "dynamicItems": false };
24351
- function validate170(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24765
+ validate175.evaluated = { "dynamicProps": true, "dynamicItems": false };
24766
+ function validate174(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24352
24767
  let vErrors = null;
24353
24768
  let errors = 0;
24354
- const evaluated0 = validate170.evaluated;
24769
+ const evaluated0 = validate174.evaluated;
24355
24770
  if (evaluated0.dynamicProps) {
24356
24771
  evaluated0.props = void 0;
24357
24772
  }
@@ -24419,8 +24834,8 @@ function validate170(data, { instancePath = "", parentData, parentDataProperty,
24419
24834
  if (Array.isArray(data)) {
24420
24835
  const len0 = data.length;
24421
24836
  for (let i0 = 0; i0 < len0; i0++) {
24422
- if (!validate171(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors })) {
24423
- vErrors = vErrors === null ? validate171.errors : vErrors.concat(validate171.errors);
24837
+ if (!validate175(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors })) {
24838
+ vErrors = vErrors === null ? validate175.errors : vErrors.concat(validate175.errors);
24424
24839
  errors = vErrors.length;
24425
24840
  }
24426
24841
  }
@@ -24456,15 +24871,15 @@ function validate170(data, { instancePath = "", parentData, parentDataProperty,
24456
24871
  }
24457
24872
  }
24458
24873
  }
24459
- validate170.errors = vErrors;
24874
+ validate174.errors = vErrors;
24460
24875
  evaluated0.items = items0;
24461
24876
  return errors === 0;
24462
24877
  }
24463
- validate170.evaluated = { "dynamicProps": false, "dynamicItems": true };
24464
- function validate169(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24878
+ validate174.evaluated = { "dynamicProps": false, "dynamicItems": true };
24879
+ function validate173(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24465
24880
  let vErrors = null;
24466
24881
  let errors = 0;
24467
- const evaluated0 = validate169.evaluated;
24882
+ const evaluated0 = validate173.evaluated;
24468
24883
  if (evaluated0.dynamicProps) {
24469
24884
  evaluated0.props = void 0;
24470
24885
  }
@@ -24486,7 +24901,7 @@ function validate169(data, { instancePath = "", parentData, parentDataProperty,
24486
24901
  if (data.failOn !== void 0) {
24487
24902
  let data0 = data.failOn;
24488
24903
  if (!(data0 === "off" || data0 === "info" || data0 === "warn" || data0 === "error")) {
24489
- const err1 = { instancePath: instancePath + "/failOn", schemaPath: "#/properties/failOn/enum", keyword: "enum", params: { allowedValues: schema169.properties.failOn.enum }, message: "must be equal to one of the allowed values" };
24904
+ const err1 = { instancePath: instancePath + "/failOn", schemaPath: "#/properties/failOn/enum", keyword: "enum", params: { allowedValues: schema173.properties.failOn.enum }, message: "must be equal to one of the allowed values" };
24490
24905
  if (vErrors === null) {
24491
24906
  vErrors = [err1];
24492
24907
  } else {
@@ -24575,7 +24990,7 @@ function validate169(data, { instancePath = "", parentData, parentDataProperty,
24575
24990
  for (const key1 in data3) {
24576
24991
  let data4 = data3[key1];
24577
24992
  if (!(data4 === "error" || data4 === "warn" || data4 === "info" || data4 === "off")) {
24578
- const err6 = { instancePath: instancePath + "/rules/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/rules/additionalProperties/enum", keyword: "enum", params: { allowedValues: schema169.properties.rules.additionalProperties.enum }, message: "must be equal to one of the allowed values" };
24993
+ const err6 = { instancePath: instancePath + "/rules/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/rules/additionalProperties/enum", keyword: "enum", params: { allowedValues: schema173.properties.rules.additionalProperties.enum }, message: "must be equal to one of the allowed values" };
24579
24994
  if (vErrors === null) {
24580
24995
  vErrors = [err6];
24581
24996
  } else {
@@ -24598,8 +25013,8 @@ function validate169(data, { instancePath = "", parentData, parentDataProperty,
24598
25013
  let data5 = data.ignored;
24599
25014
  if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
24600
25015
  for (const key2 in data5) {
24601
- if (!validate170(data5[key2], { instancePath: instancePath + "/ignored/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key2, rootData, dynamicAnchors })) {
24602
- vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);
25016
+ if (!validate174(data5[key2], { instancePath: instancePath + "/ignored/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key2, rootData, dynamicAnchors })) {
25017
+ vErrors = vErrors === null ? validate174.errors : vErrors.concat(validate174.errors);
24603
25018
  errors = vErrors.length;
24604
25019
  }
24605
25020
  }
@@ -24622,10 +25037,10 @@ function validate169(data, { instancePath = "", parentData, parentDataProperty,
24622
25037
  }
24623
25038
  errors++;
24624
25039
  }
24625
- validate169.errors = vErrors;
25040
+ validate173.errors = vErrors;
24626
25041
  return errors === 0;
24627
25042
  }
24628
- validate169.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25043
+ validate173.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
24629
25044
  function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24630
25045
  ;
24631
25046
  let vErrors = null;
@@ -24990,8 +25405,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
24990
25405
  }
24991
25406
  }
24992
25407
  if (data.clientSettings !== void 0) {
24993
- if (!validate128(data.clientSettings, { instancePath: instancePath + "/clientSettings", parentData: data, parentDataProperty: "clientSettings", rootData, dynamicAnchors })) {
24994
- vErrors = vErrors === null ? validate128.errors : vErrors.concat(validate128.errors);
25408
+ if (!validate130(data.clientSettings, { instancePath: instancePath + "/clientSettings", parentData: data, parentDataProperty: "clientSettings", rootData, dynamicAnchors })) {
25409
+ vErrors = vErrors === null ? validate130.errors : vErrors.concat(validate130.errors);
24995
25410
  errors = vErrors.length;
24996
25411
  }
24997
25412
  }
@@ -25000,8 +25415,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25000
25415
  if (Array.isArray(data17)) {
25001
25416
  const len1 = data17.length;
25002
25417
  for (let i1 = 0; i1 < len1; i1++) {
25003
- if (!validate132(data17[i1], { instancePath: instancePath + "/pagination/" + i1, parentData: data17, parentDataProperty: i1, rootData, dynamicAnchors })) {
25004
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
25418
+ if (!validate134(data17[i1], { instancePath: instancePath + "/pagination/" + i1, parentData: data17, parentDataProperty: i1, rootData, dynamicAnchors })) {
25419
+ vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);
25005
25420
  errors = vErrors.length;
25006
25421
  }
25007
25422
  }
@@ -25016,14 +25431,14 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25016
25431
  }
25017
25432
  }
25018
25433
  if (data.querySettings !== void 0) {
25019
- if (!validate138(data.querySettings, { instancePath: instancePath + "/querySettings", parentData: data, parentDataProperty: "querySettings", rootData, dynamicAnchors })) {
25020
- vErrors = vErrors === null ? validate138.errors : vErrors.concat(validate138.errors);
25434
+ if (!validate140(data.querySettings, { instancePath: instancePath + "/querySettings", parentData: data, parentDataProperty: "querySettings", rootData, dynamicAnchors })) {
25435
+ vErrors = vErrors === null ? validate140.errors : vErrors.concat(validate140.errors);
25021
25436
  errors = vErrors.length;
25022
25437
  }
25023
25438
  }
25024
25439
  if (data.multipartSettings !== void 0) {
25025
- if (!validate140(data.multipartSettings, { instancePath: instancePath + "/multipartSettings", parentData: data, parentDataProperty: "multipartSettings", rootData, dynamicAnchors })) {
25026
- vErrors = vErrors === null ? validate140.errors : vErrors.concat(validate140.errors);
25440
+ if (!validate142(data.multipartSettings, { instancePath: instancePath + "/multipartSettings", parentData: data, parentDataProperty: "multipartSettings", rootData, dynamicAnchors })) {
25441
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
25027
25442
  errors = vErrors.length;
25028
25443
  }
25029
25444
  }
@@ -25183,7 +25598,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25183
25598
  }
25184
25599
  }
25185
25600
  if (!(data27 === "all" || data27 === "none" || data27 === "last")) {
25186
- const err26 = { instancePath: instancePath + "/settings/positionalParams", schemaPath: "#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues: schema145.properties.positionalParams.enum }, message: "must be equal to one of the allowed values" };
25601
+ const err26 = { instancePath: instancePath + "/settings/positionalParams", schemaPath: "#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues: schema147.properties.positionalParams.enum }, message: "must be equal to one of the allowed values" };
25187
25602
  if (vErrors === null) {
25188
25603
  vErrors = [err26];
25189
25604
  } else {
@@ -25220,7 +25635,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25220
25635
  }
25221
25636
  }
25222
25637
  if (!(data28 === "config" || data28 === "openapi" || data28 === "crud")) {
25223
- const err28 = { instancePath: instancePath + "/settings/ordering", schemaPath: "#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues: schema145.properties.ordering.enum }, message: "must be equal to one of the allowed values" };
25638
+ const err28 = { instancePath: instancePath + "/settings/ordering", schemaPath: "#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues: schema147.properties.ordering.enum }, message: "must be equal to one of the allowed values" };
25224
25639
  if (vErrors === null) {
25225
25640
  vErrors = [err28];
25226
25641
  } else {
@@ -25294,14 +25709,14 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25294
25709
  }
25295
25710
  }
25296
25711
  if (data.openapi !== void 0) {
25297
- if (!validate142(data.openapi, { instancePath: instancePath + "/openapi", parentData: data, parentDataProperty: "openapi", rootData, dynamicAnchors })) {
25298
- vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
25712
+ if (!validate144(data.openapi, { instancePath: instancePath + "/openapi", parentData: data, parentDataProperty: "openapi", rootData, dynamicAnchors })) {
25713
+ vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
25299
25714
  errors = vErrors.length;
25300
25715
  }
25301
25716
  }
25302
25717
  if (data.grpc !== void 0) {
25303
- if (!validate156(data.grpc, { instancePath: instancePath + "/grpc", parentData: data, parentDataProperty: "grpc", rootData, dynamicAnchors })) {
25304
- vErrors = vErrors === null ? validate156.errors : vErrors.concat(validate156.errors);
25718
+ if (!validate160(data.grpc, { instancePath: instancePath + "/grpc", parentData: data, parentDataProperty: "grpc", rootData, dynamicAnchors })) {
25719
+ vErrors = vErrors === null ? validate160.errors : vErrors.concat(validate160.errors);
25305
25720
  errors = vErrors.length;
25306
25721
  }
25307
25722
  }
@@ -25400,8 +25815,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25400
25815
  }
25401
25816
  }
25402
25817
  if (data.streaming !== void 0) {
25403
- if (!validate162(data.streaming, { instancePath: instancePath + "/streaming", parentData: data, parentDataProperty: "streaming", rootData, dynamicAnchors })) {
25404
- vErrors = vErrors === null ? validate162.errors : vErrors.concat(validate162.errors);
25818
+ if (!validate166(data.streaming, { instancePath: instancePath + "/streaming", parentData: data, parentDataProperty: "streaming", rootData, dynamicAnchors })) {
25819
+ vErrors = vErrors === null ? validate166.errors : vErrors.concat(validate166.errors);
25405
25820
  errors = vErrors.length;
25406
25821
  }
25407
25822
  }
@@ -25409,8 +25824,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25409
25824
  let data38 = data.models;
25410
25825
  if (data38 && typeof data38 == "object" && !Array.isArray(data38)) {
25411
25826
  for (const key4 in data38) {
25412
- if (!validate166(data38[key4], { instancePath: instancePath + "/models/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data38, parentDataProperty: key4, rootData, dynamicAnchors })) {
25413
- vErrors = vErrors === null ? validate166.errors : vErrors.concat(validate166.errors);
25827
+ if (!validate170(data38[key4], { instancePath: instancePath + "/models/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data38, parentDataProperty: key4, rootData, dynamicAnchors })) {
25828
+ vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);
25414
25829
  errors = vErrors.length;
25415
25830
  }
25416
25831
  }
@@ -25425,8 +25840,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25425
25840
  }
25426
25841
  }
25427
25842
  if (data.diagnostics !== void 0) {
25428
- if (!validate169(data.diagnostics, { instancePath: instancePath + "/diagnostics", parentData: data, parentDataProperty: "diagnostics", rootData, dynamicAnchors })) {
25429
- vErrors = vErrors === null ? validate169.errors : vErrors.concat(validate169.errors);
25843
+ if (!validate173(data.diagnostics, { instancePath: instancePath + "/diagnostics", parentData: data, parentDataProperty: "diagnostics", rootData, dynamicAnchors })) {
25844
+ vErrors = vErrors === null ? validate173.errors : vErrors.concat(validate173.errors);
25430
25845
  errors = vErrors.length;
25431
25846
  }
25432
25847
  }
@@ -25443,8 +25858,1085 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
25443
25858
  return errors === 0;
25444
25859
  }
25445
25860
  validate20.evaluated = { "props": { "organization": true, "generatorVersion": true, "resources": true, "readme": true, "customCasings": true, "targets": true, "environments": true, "environmentOrder": true, "clientSettings": true, "pagination": true, "querySettings": true, "multipartSettings": true, "settings": true, "openapi": true, "grpc": true, "errors": true, "ignoredEndpoints": true, "streaming": true, "models": true, "diagnostics": true }, "dynamicProps": false, "dynamicItems": false };
25861
+ function validate180(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25862
+ let vErrors = null;
25863
+ let errors = 0;
25864
+ const evaluated0 = validate180.evaluated;
25865
+ if (evaluated0.dynamicProps) {
25866
+ evaluated0.props = void 0;
25867
+ }
25868
+ if (evaluated0.dynamicItems) {
25869
+ evaluated0.items = void 0;
25870
+ }
25871
+ if (data && typeof data == "object" && !Array.isArray(data)) {
25872
+ if (data.opts === void 0) {
25873
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "opts" }, message: "must have required property 'opts'" };
25874
+ if (vErrors === null) {
25875
+ vErrors = [err0];
25876
+ } else {
25877
+ vErrors.push(err0);
25878
+ }
25879
+ errors++;
25880
+ }
25881
+ if (data.opts !== void 0) {
25882
+ let data0 = data.opts;
25883
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
25884
+ for (const key0 in data0) {
25885
+ if (!validate131(data0[key0], { instancePath: instancePath + "/opts/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors })) {
25886
+ vErrors = vErrors === null ? validate131.errors : vErrors.concat(validate131.errors);
25887
+ errors = vErrors.length;
25888
+ }
25889
+ }
25890
+ } else {
25891
+ const err1 = { instancePath: instancePath + "/opts", schemaPath: "#/properties/opts/type", keyword: "type", params: { type: "object" }, message: "must be object" };
25892
+ if (vErrors === null) {
25893
+ vErrors = [err1];
25894
+ } else {
25895
+ vErrors.push(err1);
25896
+ }
25897
+ errors++;
25898
+ }
25899
+ }
25900
+ if (data.baseUrlAliases !== void 0) {
25901
+ let data2 = data.baseUrlAliases;
25902
+ if (Array.isArray(data2)) {
25903
+ const len0 = data2.length;
25904
+ for (let i0 = 0; i0 < len0; i0++) {
25905
+ let data3 = data2[i0];
25906
+ if (typeof data3 !== "string") {
25907
+ let dataType0 = typeof data3;
25908
+ let coerced0 = void 0;
25909
+ if (!(coerced0 !== void 0)) {
25910
+ if (dataType0 == "number" || dataType0 == "boolean") {
25911
+ coerced0 = "" + data3;
25912
+ } else if (data3 === null) {
25913
+ coerced0 = "";
25914
+ } else {
25915
+ const err2 = { instancePath: instancePath + "/baseUrlAliases/" + i0, schemaPath: "#/properties/baseUrlAliases/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
25916
+ if (vErrors === null) {
25917
+ vErrors = [err2];
25918
+ } else {
25919
+ vErrors.push(err2);
25920
+ }
25921
+ errors++;
25922
+ }
25923
+ }
25924
+ if (coerced0 !== void 0) {
25925
+ data3 = coerced0;
25926
+ if (data2 !== void 0) {
25927
+ data2[i0] = coerced0;
25928
+ }
25929
+ }
25930
+ }
25931
+ }
25932
+ } else {
25933
+ const err3 = { instancePath: instancePath + "/baseUrlAliases", schemaPath: "#/properties/baseUrlAliases/type", keyword: "type", params: { type: "array" }, message: "must be array" };
25934
+ if (vErrors === null) {
25935
+ vErrors = [err3];
25936
+ } else {
25937
+ vErrors.push(err3);
25938
+ }
25939
+ errors++;
25940
+ }
25941
+ }
25942
+ if (data.defaultHeaders !== void 0) {
25943
+ let data4 = data.defaultHeaders;
25944
+ if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
25945
+ for (const key1 in data4) {
25946
+ let data5 = data4[key1];
25947
+ if (typeof data5 !== "string") {
25948
+ let dataType1 = typeof data5;
25949
+ let coerced1 = void 0;
25950
+ if (!(coerced1 !== void 0)) {
25951
+ if (dataType1 == "number" || dataType1 == "boolean") {
25952
+ coerced1 = "" + data5;
25953
+ } else if (data5 === null) {
25954
+ coerced1 = "";
25955
+ } else {
25956
+ const err4 = { instancePath: instancePath + "/defaultHeaders/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/defaultHeaders/additionalProperties/type", keyword: "type", params: { type: "string" }, message: "must be string" };
25957
+ if (vErrors === null) {
25958
+ vErrors = [err4];
25959
+ } else {
25960
+ vErrors.push(err4);
25961
+ }
25962
+ errors++;
25963
+ }
25964
+ }
25965
+ if (coerced1 !== void 0) {
25966
+ data5 = coerced1;
25967
+ if (data4 !== void 0) {
25968
+ data4[key1] = coerced1;
25969
+ }
25970
+ }
25971
+ }
25972
+ }
25973
+ } else {
25974
+ const err5 = { instancePath: instancePath + "/defaultHeaders", schemaPath: "#/properties/defaultHeaders/type", keyword: "type", params: { type: "object" }, message: "must be object" };
25975
+ if (vErrors === null) {
25976
+ vErrors = [err5];
25977
+ } else {
25978
+ vErrors.push(err5);
25979
+ }
25980
+ errors++;
25981
+ }
25982
+ }
25983
+ if (data.defaultClientName !== void 0) {
25984
+ let data6 = data.defaultClientName;
25985
+ if (typeof data6 !== "string") {
25986
+ let dataType2 = typeof data6;
25987
+ let coerced2 = void 0;
25988
+ if (!(coerced2 !== void 0)) {
25989
+ if (dataType2 == "number" || dataType2 == "boolean") {
25990
+ coerced2 = "" + data6;
25991
+ } else if (data6 === null) {
25992
+ coerced2 = "";
25993
+ } else {
25994
+ const err6 = { instancePath: instancePath + "/defaultClientName", schemaPath: "#/properties/defaultClientName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
25995
+ if (vErrors === null) {
25996
+ vErrors = [err6];
25997
+ } else {
25998
+ vErrors.push(err6);
25999
+ }
26000
+ errors++;
26001
+ }
26002
+ }
26003
+ if (coerced2 !== void 0) {
26004
+ data6 = coerced2;
26005
+ if (data !== void 0) {
26006
+ data["defaultClientName"] = coerced2;
26007
+ }
26008
+ }
26009
+ }
26010
+ }
26011
+ if (data.defaultClientExampleName !== void 0) {
26012
+ let data7 = data.defaultClientExampleName;
26013
+ if (typeof data7 !== "string") {
26014
+ let dataType3 = typeof data7;
26015
+ let coerced3 = void 0;
26016
+ if (!(coerced3 !== void 0)) {
26017
+ if (dataType3 == "number" || dataType3 == "boolean") {
26018
+ coerced3 = "" + data7;
26019
+ } else if (data7 === null) {
26020
+ coerced3 = "";
26021
+ } else {
26022
+ const err7 = { instancePath: instancePath + "/defaultClientExampleName", schemaPath: "#/properties/defaultClientExampleName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26023
+ if (vErrors === null) {
26024
+ vErrors = [err7];
26025
+ } else {
26026
+ vErrors.push(err7);
26027
+ }
26028
+ errors++;
26029
+ }
26030
+ }
26031
+ if (coerced3 !== void 0) {
26032
+ data7 = coerced3;
26033
+ if (data !== void 0) {
26034
+ data["defaultClientExampleName"] = coerced3;
26035
+ }
26036
+ }
26037
+ }
26038
+ }
26039
+ if (data.defaultEnvPrefix !== void 0) {
26040
+ let data8 = data.defaultEnvPrefix;
26041
+ if (typeof data8 !== "string") {
26042
+ let dataType4 = typeof data8;
26043
+ let coerced4 = void 0;
26044
+ if (!(coerced4 !== void 0)) {
26045
+ if (dataType4 == "number" || dataType4 == "boolean") {
26046
+ coerced4 = "" + data8;
26047
+ } else if (data8 === null) {
26048
+ coerced4 = "";
26049
+ } else {
26050
+ const err8 = { instancePath: instancePath + "/defaultEnvPrefix", schemaPath: "#/properties/defaultEnvPrefix/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26051
+ if (vErrors === null) {
26052
+ vErrors = [err8];
26053
+ } else {
26054
+ vErrors.push(err8);
26055
+ }
26056
+ errors++;
26057
+ }
26058
+ }
26059
+ if (coerced4 !== void 0) {
26060
+ data8 = coerced4;
26061
+ if (data !== void 0) {
26062
+ data["defaultEnvPrefix"] = coerced4;
26063
+ }
26064
+ }
26065
+ }
26066
+ }
26067
+ if (data.idempotencyHeader !== void 0) {
26068
+ let data9 = data.idempotencyHeader;
26069
+ if (typeof data9 !== "string") {
26070
+ let dataType5 = typeof data9;
26071
+ let coerced5 = void 0;
26072
+ if (!(coerced5 !== void 0)) {
26073
+ if (dataType5 == "number" || dataType5 == "boolean") {
26074
+ coerced5 = "" + data9;
26075
+ } else if (data9 === null) {
26076
+ coerced5 = "";
26077
+ } else {
26078
+ const err9 = { instancePath: instancePath + "/idempotencyHeader", schemaPath: "#/properties/idempotencyHeader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26079
+ if (vErrors === null) {
26080
+ vErrors = [err9];
26081
+ } else {
26082
+ vErrors.push(err9);
26083
+ }
26084
+ errors++;
26085
+ }
26086
+ }
26087
+ if (coerced5 !== void 0) {
26088
+ data9 = coerced5;
26089
+ if (data !== void 0) {
26090
+ data["idempotencyHeader"] = coerced5;
26091
+ }
26092
+ }
26093
+ }
26094
+ }
26095
+ if (data.emptyResponseAccept !== void 0) {
26096
+ let data10 = data.emptyResponseAccept;
26097
+ if (!(data10 === "wildcard" || data10 === "inherit")) {
26098
+ const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues: schema125.properties.emptyResponseAccept.enum }, message: "must be equal to one of the allowed values" };
26099
+ if (vErrors === null) {
26100
+ vErrors = [err10];
26101
+ } else {
26102
+ vErrors.push(err10);
26103
+ }
26104
+ errors++;
26105
+ }
26106
+ }
26107
+ if (data.defaultTimeout !== void 0) {
26108
+ let data11 = data.defaultTimeout;
26109
+ const _errs24 = errors;
26110
+ let valid5 = false;
26111
+ const _errs25 = errors;
26112
+ if (!(typeof data11 == "number" && isFinite(data11))) {
26113
+ let dataType6 = typeof data11;
26114
+ let coerced6 = void 0;
26115
+ if (!(coerced6 !== void 0)) {
26116
+ if (dataType6 == "boolean" || data11 === null || dataType6 == "string" && data11 && data11 == +data11) {
26117
+ coerced6 = +data11;
26118
+ } else {
26119
+ const err11 = { instancePath: instancePath + "/defaultTimeout", schemaPath: "#/properties/defaultTimeout/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
26120
+ if (vErrors === null) {
26121
+ vErrors = [err11];
26122
+ } else {
26123
+ vErrors.push(err11);
26124
+ }
26125
+ errors++;
26126
+ }
26127
+ }
26128
+ if (coerced6 !== void 0) {
26129
+ data11 = coerced6;
26130
+ if (data !== void 0) {
26131
+ data["defaultTimeout"] = coerced6;
26132
+ }
26133
+ }
26134
+ }
26135
+ var _valid0 = _errs25 === errors;
26136
+ valid5 = valid5 || _valid0;
26137
+ const _errs27 = errors;
26138
+ if (typeof data11 !== "string") {
26139
+ let dataType7 = typeof data11;
26140
+ let coerced7 = void 0;
26141
+ if (!(coerced7 !== void 0)) {
26142
+ if (dataType7 == "number" || dataType7 == "boolean") {
26143
+ coerced7 = "" + data11;
26144
+ } else if (data11 === null) {
26145
+ coerced7 = "";
26146
+ } else {
26147
+ const err12 = { instancePath: instancePath + "/defaultTimeout", schemaPath: "#/properties/defaultTimeout/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26148
+ if (vErrors === null) {
26149
+ vErrors = [err12];
26150
+ } else {
26151
+ vErrors.push(err12);
26152
+ }
26153
+ errors++;
26154
+ }
26155
+ }
26156
+ if (coerced7 !== void 0) {
26157
+ data11 = coerced7;
26158
+ if (data !== void 0) {
26159
+ data["defaultTimeout"] = coerced7;
26160
+ }
26161
+ }
26162
+ }
26163
+ var _valid0 = _errs27 === errors;
26164
+ valid5 = valid5 || _valid0;
26165
+ if (!valid5) {
26166
+ const err13 = { instancePath: instancePath + "/defaultTimeout", schemaPath: "#/properties/defaultTimeout/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
26167
+ if (vErrors === null) {
26168
+ vErrors = [err13];
26169
+ } else {
26170
+ vErrors.push(err13);
26171
+ }
26172
+ errors++;
26173
+ } else {
26174
+ errors = _errs24;
26175
+ if (vErrors !== null) {
26176
+ if (_errs24) {
26177
+ vErrors.length = _errs24;
26178
+ } else {
26179
+ vErrors = null;
26180
+ }
26181
+ }
26182
+ }
26183
+ }
26184
+ if (data.defaultRetries !== void 0) {
26185
+ let data12 = data.defaultRetries;
26186
+ if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
26187
+ if (data12.maxRetries !== void 0) {
26188
+ let data13 = data12.maxRetries;
26189
+ if (!(typeof data13 == "number" && isFinite(data13))) {
26190
+ let dataType8 = typeof data13;
26191
+ let coerced8 = void 0;
26192
+ if (!(coerced8 !== void 0)) {
26193
+ if (dataType8 == "boolean" || data13 === null || dataType8 == "string" && data13 && data13 == +data13) {
26194
+ coerced8 = +data13;
26195
+ } else {
26196
+ const err14 = { instancePath: instancePath + "/defaultRetries/maxRetries", schemaPath: "#/$defs/retrySettings/properties/maxRetries/type", keyword: "type", params: { type: "number" }, message: "must be number" };
26197
+ if (vErrors === null) {
26198
+ vErrors = [err14];
26199
+ } else {
26200
+ vErrors.push(err14);
26201
+ }
26202
+ errors++;
26203
+ }
26204
+ }
26205
+ if (coerced8 !== void 0) {
26206
+ data13 = coerced8;
26207
+ if (data12 !== void 0) {
26208
+ data12["maxRetries"] = coerced8;
26209
+ }
26210
+ }
26211
+ }
26212
+ }
26213
+ if (data12.initialDelaySeconds !== void 0) {
26214
+ let data14 = data12.initialDelaySeconds;
26215
+ if (!(typeof data14 == "number" && isFinite(data14))) {
26216
+ let dataType9 = typeof data14;
26217
+ let coerced9 = void 0;
26218
+ if (!(coerced9 !== void 0)) {
26219
+ if (dataType9 == "boolean" || data14 === null || dataType9 == "string" && data14 && data14 == +data14) {
26220
+ coerced9 = +data14;
26221
+ } else {
26222
+ const err15 = { instancePath: instancePath + "/defaultRetries/initialDelaySeconds", schemaPath: "#/$defs/retrySettings/properties/initialDelaySeconds/type", keyword: "type", params: { type: "number" }, message: "must be number" };
26223
+ if (vErrors === null) {
26224
+ vErrors = [err15];
26225
+ } else {
26226
+ vErrors.push(err15);
26227
+ }
26228
+ errors++;
26229
+ }
26230
+ }
26231
+ if (coerced9 !== void 0) {
26232
+ data14 = coerced9;
26233
+ if (data12 !== void 0) {
26234
+ data12["initialDelaySeconds"] = coerced9;
26235
+ }
26236
+ }
26237
+ }
26238
+ }
26239
+ if (data12.maxDelaySeconds !== void 0) {
26240
+ let data15 = data12.maxDelaySeconds;
26241
+ if (!(typeof data15 == "number" && isFinite(data15))) {
26242
+ let dataType10 = typeof data15;
26243
+ let coerced10 = void 0;
26244
+ if (!(coerced10 !== void 0)) {
26245
+ if (dataType10 == "boolean" || data15 === null || dataType10 == "string" && data15 && data15 == +data15) {
26246
+ coerced10 = +data15;
26247
+ } else {
26248
+ const err16 = { instancePath: instancePath + "/defaultRetries/maxDelaySeconds", schemaPath: "#/$defs/retrySettings/properties/maxDelaySeconds/type", keyword: "type", params: { type: "number" }, message: "must be number" };
26249
+ if (vErrors === null) {
26250
+ vErrors = [err16];
26251
+ } else {
26252
+ vErrors.push(err16);
26253
+ }
26254
+ errors++;
26255
+ }
26256
+ }
26257
+ if (coerced10 !== void 0) {
26258
+ data15 = coerced10;
26259
+ if (data12 !== void 0) {
26260
+ data12["maxDelaySeconds"] = coerced10;
26261
+ }
26262
+ }
26263
+ }
26264
+ }
26265
+ } else {
26266
+ const err17 = { instancePath: instancePath + "/defaultRetries", schemaPath: "#/$defs/retrySettings/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26267
+ if (vErrors === null) {
26268
+ vErrors = [err17];
26269
+ } else {
26270
+ vErrors.push(err17);
26271
+ }
26272
+ errors++;
26273
+ }
26274
+ }
26275
+ if (data.responseHeaders !== void 0) {
26276
+ let data16 = data.responseHeaders;
26277
+ if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
26278
+ for (const key2 in data16) {
26279
+ let data17 = data16[key2];
26280
+ if (typeof data17 !== "string") {
26281
+ let dataType11 = typeof data17;
26282
+ let coerced11 = void 0;
26283
+ if (!(coerced11 !== void 0)) {
26284
+ if (dataType11 == "number" || dataType11 == "boolean") {
26285
+ coerced11 = "" + data17;
26286
+ } else if (data17 === null) {
26287
+ coerced11 = "";
26288
+ } else {
26289
+ const err18 = { instancePath: instancePath + "/responseHeaders/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/responseHeaders/additionalProperties/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26290
+ if (vErrors === null) {
26291
+ vErrors = [err18];
26292
+ } else {
26293
+ vErrors.push(err18);
26294
+ }
26295
+ errors++;
26296
+ }
26297
+ }
26298
+ if (coerced11 !== void 0) {
26299
+ data17 = coerced11;
26300
+ if (data16 !== void 0) {
26301
+ data16[key2] = coerced11;
26302
+ }
26303
+ }
26304
+ }
26305
+ }
26306
+ } else {
26307
+ const err19 = { instancePath: instancePath + "/responseHeaders", schemaPath: "#/properties/responseHeaders/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26308
+ if (vErrors === null) {
26309
+ vErrors = [err19];
26310
+ } else {
26311
+ vErrors.push(err19);
26312
+ }
26313
+ errors++;
26314
+ }
26315
+ }
26316
+ } else {
26317
+ const err20 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26318
+ if (vErrors === null) {
26319
+ vErrors = [err20];
26320
+ } else {
26321
+ vErrors.push(err20);
26322
+ }
26323
+ errors++;
26324
+ }
26325
+ validate180.errors = vErrors;
26326
+ return errors === 0;
26327
+ }
26328
+ validate180.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
26329
+ function validate179(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26330
+ ;
26331
+ let vErrors = null;
26332
+ let errors = 0;
26333
+ const evaluated0 = validate179.evaluated;
26334
+ if (evaluated0.dynamicProps) {
26335
+ evaluated0.props = void 0;
26336
+ }
26337
+ if (evaluated0.dynamicItems) {
26338
+ evaluated0.items = void 0;
26339
+ }
26340
+ if (!validate180(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
26341
+ vErrors = vErrors === null ? validate180.errors : vErrors.concat(validate180.errors);
26342
+ errors = vErrors.length;
26343
+ }
26344
+ validate179.errors = vErrors;
26345
+ return errors === 0;
26346
+ }
26347
+ validate179.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
26348
+ function validate183(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26349
+ ;
26350
+ let vErrors = null;
26351
+ let errors = 0;
26352
+ const evaluated0 = validate183.evaluated;
26353
+ if (evaluated0.dynamicProps) {
26354
+ evaluated0.props = void 0;
26355
+ }
26356
+ if (evaluated0.dynamicItems) {
26357
+ evaluated0.items = void 0;
26358
+ }
26359
+ if (data && typeof data == "object" && !Array.isArray(data)) {
26360
+ if (data.agentSkill !== void 0) {
26361
+ let data0 = data.agentSkill;
26362
+ if (typeof data0 !== "boolean") {
26363
+ let coerced0 = void 0;
26364
+ if (!(coerced0 !== void 0)) {
26365
+ if (data0 === "false" || data0 === 0 || data0 === null) {
26366
+ coerced0 = false;
26367
+ } else if (data0 === "true" || data0 === 1) {
26368
+ coerced0 = true;
26369
+ } else {
26370
+ const err0 = { instancePath: instancePath + "/agentSkill", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/agentSkill/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
26371
+ if (vErrors === null) {
26372
+ vErrors = [err0];
26373
+ } else {
26374
+ vErrors.push(err0);
26375
+ }
26376
+ errors++;
26377
+ }
26378
+ }
26379
+ if (coerced0 !== void 0) {
26380
+ data0 = coerced0;
26381
+ if (data !== void 0) {
26382
+ data["agentSkill"] = coerced0;
26383
+ }
26384
+ }
26385
+ }
26386
+ }
26387
+ if (data.fileHeader !== void 0) {
26388
+ let data1 = data.fileHeader;
26389
+ if (typeof data1 !== "string") {
26390
+ let dataType1 = typeof data1;
26391
+ let coerced1 = void 0;
26392
+ if (!(coerced1 !== void 0)) {
26393
+ if (dataType1 == "number" || dataType1 == "boolean") {
26394
+ coerced1 = "" + data1;
26395
+ } else if (data1 === null) {
26396
+ coerced1 = "";
26397
+ } else {
26398
+ const err1 = { instancePath: instancePath + "/fileHeader", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/fileHeader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26399
+ if (vErrors === null) {
26400
+ vErrors = [err1];
26401
+ } else {
26402
+ vErrors.push(err1);
26403
+ }
26404
+ errors++;
26405
+ }
26406
+ }
26407
+ if (coerced1 !== void 0) {
26408
+ data1 = coerced1;
26409
+ if (data !== void 0) {
26410
+ data["fileHeader"] = coerced1;
26411
+ }
26412
+ }
26413
+ }
26414
+ }
26415
+ if (data.license !== void 0) {
26416
+ let data2 = data.license;
26417
+ if (typeof data2 !== "string") {
26418
+ let dataType2 = typeof data2;
26419
+ let coerced2 = void 0;
26420
+ if (!(coerced2 !== void 0)) {
26421
+ if (dataType2 == "number" || dataType2 == "boolean") {
26422
+ coerced2 = "" + data2;
26423
+ } else if (data2 === null) {
26424
+ coerced2 = "";
26425
+ } else {
26426
+ const err2 = { instancePath: instancePath + "/license", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/license/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26427
+ if (vErrors === null) {
26428
+ vErrors = [err2];
26429
+ } else {
26430
+ vErrors.push(err2);
26431
+ }
26432
+ errors++;
26433
+ }
26434
+ }
26435
+ if (coerced2 !== void 0) {
26436
+ data2 = coerced2;
26437
+ if (data !== void 0) {
26438
+ data["license"] = coerced2;
26439
+ }
26440
+ }
26441
+ }
26442
+ }
26443
+ if (data.unwrapResponseFields !== void 0) {
26444
+ let data3 = data.unwrapResponseFields;
26445
+ if (Array.isArray(data3)) {
26446
+ const len0 = data3.length;
26447
+ for (let i0 = 0; i0 < len0; i0++) {
26448
+ let data4 = data3[i0];
26449
+ if (typeof data4 !== "string") {
26450
+ let dataType3 = typeof data4;
26451
+ let coerced3 = void 0;
26452
+ if (!(coerced3 !== void 0)) {
26453
+ if (dataType3 == "number" || dataType3 == "boolean") {
26454
+ coerced3 = "" + data4;
26455
+ } else if (data4 === null) {
26456
+ coerced3 = "";
26457
+ } else {
26458
+ const err3 = { instancePath: instancePath + "/unwrapResponseFields/" + i0, schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/unwrapResponseFields/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26459
+ if (vErrors === null) {
26460
+ vErrors = [err3];
26461
+ } else {
26462
+ vErrors.push(err3);
26463
+ }
26464
+ errors++;
26465
+ }
26466
+ }
26467
+ if (coerced3 !== void 0) {
26468
+ data4 = coerced3;
26469
+ if (data3 !== void 0) {
26470
+ data3[i0] = coerced3;
26471
+ }
26472
+ }
26473
+ }
26474
+ }
26475
+ } else {
26476
+ const err4 = { instancePath: instancePath + "/unwrapResponseFields", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/unwrapResponseFields/type", keyword: "type", params: { type: "array" }, message: "must be array" };
26477
+ if (vErrors === null) {
26478
+ vErrors = [err4];
26479
+ } else {
26480
+ vErrors.push(err4);
26481
+ }
26482
+ errors++;
26483
+ }
26484
+ }
26485
+ if (data.positionalParams !== void 0) {
26486
+ let data5 = data.positionalParams;
26487
+ if (typeof data5 !== "string") {
26488
+ let dataType4 = typeof data5;
26489
+ let coerced4 = void 0;
26490
+ if (!(coerced4 !== void 0)) {
26491
+ if (dataType4 == "number" || dataType4 == "boolean") {
26492
+ coerced4 = "" + data5;
26493
+ } else if (data5 === null) {
26494
+ coerced4 = "";
26495
+ } else {
26496
+ const err5 = { instancePath: instancePath + "/positionalParams", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/positionalParams/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26497
+ if (vErrors === null) {
26498
+ vErrors = [err5];
26499
+ } else {
26500
+ vErrors.push(err5);
26501
+ }
26502
+ errors++;
26503
+ }
26504
+ }
26505
+ if (coerced4 !== void 0) {
26506
+ data5 = coerced4;
26507
+ if (data !== void 0) {
26508
+ data["positionalParams"] = coerced4;
26509
+ }
26510
+ }
26511
+ }
26512
+ if (!(data5 === "all" || data5 === "none" || data5 === "last")) {
26513
+ const err6 = { instancePath: instancePath + "/positionalParams", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues: schema147.properties.positionalParams.enum }, message: "must be equal to one of the allowed values" };
26514
+ if (vErrors === null) {
26515
+ vErrors = [err6];
26516
+ } else {
26517
+ vErrors.push(err6);
26518
+ }
26519
+ errors++;
26520
+ }
26521
+ }
26522
+ if (data.ordering !== void 0) {
26523
+ let data6 = data.ordering;
26524
+ if (typeof data6 !== "string") {
26525
+ let dataType5 = typeof data6;
26526
+ let coerced5 = void 0;
26527
+ if (!(coerced5 !== void 0)) {
26528
+ if (dataType5 == "number" || dataType5 == "boolean") {
26529
+ coerced5 = "" + data6;
26530
+ } else if (data6 === null) {
26531
+ coerced5 = "";
26532
+ } else {
26533
+ const err7 = { instancePath: instancePath + "/ordering", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/ordering/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26534
+ if (vErrors === null) {
26535
+ vErrors = [err7];
26536
+ } else {
26537
+ vErrors.push(err7);
26538
+ }
26539
+ errors++;
26540
+ }
26541
+ }
26542
+ if (coerced5 !== void 0) {
26543
+ data6 = coerced5;
26544
+ if (data !== void 0) {
26545
+ data["ordering"] = coerced5;
26546
+ }
26547
+ }
26548
+ }
26549
+ if (!(data6 === "config" || data6 === "openapi" || data6 === "crud")) {
26550
+ const err8 = { instancePath: instancePath + "/ordering", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues: schema147.properties.ordering.enum }, message: "must be equal to one of the allowed values" };
26551
+ if (vErrors === null) {
26552
+ vErrors = [err8];
26553
+ } else {
26554
+ vErrors.push(err8);
26555
+ }
26556
+ errors++;
26557
+ }
26558
+ }
26559
+ if (data.requireWebsocketDependencies !== void 0) {
26560
+ let data7 = data.requireWebsocketDependencies;
26561
+ if (typeof data7 !== "boolean") {
26562
+ let coerced6 = void 0;
26563
+ if (!(coerced6 !== void 0)) {
26564
+ if (data7 === "false" || data7 === 0 || data7 === null) {
26565
+ coerced6 = false;
26566
+ } else if (data7 === "true" || data7 === 1) {
26567
+ coerced6 = true;
26568
+ } else {
26569
+ const err9 = { instancePath: instancePath + "/requireWebsocketDependencies", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/requireWebsocketDependencies/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
26570
+ if (vErrors === null) {
26571
+ vErrors = [err9];
26572
+ } else {
26573
+ vErrors.push(err9);
26574
+ }
26575
+ errors++;
26576
+ }
26577
+ }
26578
+ if (coerced6 !== void 0) {
26579
+ data7 = coerced6;
26580
+ if (data !== void 0) {
26581
+ data["requireWebsocketDependencies"] = coerced6;
26582
+ }
26583
+ }
26584
+ }
26585
+ }
26586
+ if (data.unwrapMultipropertyResponseFields !== void 0) {
26587
+ let data8 = data.unwrapMultipropertyResponseFields;
26588
+ if (typeof data8 !== "boolean") {
26589
+ let coerced7 = void 0;
26590
+ if (!(coerced7 !== void 0)) {
26591
+ if (data8 === "false" || data8 === 0 || data8 === null) {
26592
+ coerced7 = false;
26593
+ } else if (data8 === "true" || data8 === 1) {
26594
+ coerced7 = true;
26595
+ } else {
26596
+ const err10 = { instancePath: instancePath + "/unwrapMultipropertyResponseFields", schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/properties/unwrapMultipropertyResponseFields/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
26597
+ if (vErrors === null) {
26598
+ vErrors = [err10];
26599
+ } else {
26600
+ vErrors.push(err10);
26601
+ }
26602
+ errors++;
26603
+ }
26604
+ }
26605
+ if (coerced7 !== void 0) {
26606
+ data8 = coerced7;
26607
+ if (data !== void 0) {
26608
+ data["unwrapMultipropertyResponseFields"] = coerced7;
26609
+ }
26610
+ }
26611
+ }
26612
+ }
26613
+ } else {
26614
+ const err11 = { instancePath, schemaPath: "https://scalar.com/schemas/sdk-generator.config.schema.json#/$defs/globalSettings/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26615
+ if (vErrors === null) {
26616
+ vErrors = [err11];
26617
+ } else {
26618
+ vErrors.push(err11);
26619
+ }
26620
+ errors++;
26621
+ }
26622
+ validate183.errors = vErrors;
26623
+ return errors === 0;
26624
+ }
26625
+ validate183.evaluated = { "props": { "agentSkill": true, "fileHeader": true, "license": true, "unwrapResponseFields": true, "positionalParams": true, "ordering": true, "requireWebsocketDependencies": true, "unwrapMultipropertyResponseFields": true }, "dynamicProps": false, "dynamicItems": false };
26626
+ function validate185(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26627
+ let vErrors = null;
26628
+ let errors = 0;
26629
+ const evaluated0 = validate185.evaluated;
26630
+ if (evaluated0.dynamicProps) {
26631
+ evaluated0.props = void 0;
26632
+ }
26633
+ if (evaluated0.dynamicItems) {
26634
+ evaluated0.items = void 0;
26635
+ }
26636
+ if (data && typeof data == "object" && !Array.isArray(data)) {
26637
+ if (data.name === void 0) {
26638
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
26639
+ if (vErrors === null) {
26640
+ vErrors = [err0];
26641
+ } else {
26642
+ vErrors.push(err0);
26643
+ }
26644
+ errors++;
26645
+ }
26646
+ if (data.type === void 0) {
26647
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
26648
+ if (vErrors === null) {
26649
+ vErrors = [err1];
26650
+ } else {
26651
+ vErrors.push(err1);
26652
+ }
26653
+ errors++;
26654
+ }
26655
+ if (data.request === void 0) {
26656
+ const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "request" }, message: "must have required property 'request'" };
26657
+ if (vErrors === null) {
26658
+ vErrors = [err2];
26659
+ } else {
26660
+ vErrors.push(err2);
26661
+ }
26662
+ errors++;
26663
+ }
26664
+ if (data.response === void 0) {
26665
+ const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "response" }, message: "must have required property 'response'" };
26666
+ if (vErrors === null) {
26667
+ vErrors = [err3];
26668
+ } else {
26669
+ vErrors.push(err3);
26670
+ }
26671
+ errors++;
26672
+ }
26673
+ if (data.name !== void 0) {
26674
+ let data0 = data.name;
26675
+ if (typeof data0 !== "string") {
26676
+ let dataType0 = typeof data0;
26677
+ let coerced0 = void 0;
26678
+ if (!(coerced0 !== void 0)) {
26679
+ if (dataType0 == "number" || dataType0 == "boolean") {
26680
+ coerced0 = "" + data0;
26681
+ } else if (data0 === null) {
26682
+ coerced0 = "";
26683
+ } else {
26684
+ const err4 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26685
+ if (vErrors === null) {
26686
+ vErrors = [err4];
26687
+ } else {
26688
+ vErrors.push(err4);
26689
+ }
26690
+ errors++;
26691
+ }
26692
+ }
26693
+ if (coerced0 !== void 0) {
26694
+ data0 = coerced0;
26695
+ if (data !== void 0) {
26696
+ data["name"] = coerced0;
26697
+ }
26698
+ }
26699
+ }
26700
+ }
26701
+ if (data.description !== void 0) {
26702
+ let data1 = data.description;
26703
+ if (typeof data1 !== "string") {
26704
+ let dataType1 = typeof data1;
26705
+ let coerced1 = void 0;
26706
+ if (!(coerced1 !== void 0)) {
26707
+ if (dataType1 == "number" || dataType1 == "boolean") {
26708
+ coerced1 = "" + data1;
26709
+ } else if (data1 === null) {
26710
+ coerced1 = "";
26711
+ } else {
26712
+ const err5 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
26713
+ if (vErrors === null) {
26714
+ vErrors = [err5];
26715
+ } else {
26716
+ vErrors.push(err5);
26717
+ }
26718
+ errors++;
26719
+ }
26720
+ }
26721
+ if (coerced1 !== void 0) {
26722
+ data1 = coerced1;
26723
+ if (data !== void 0) {
26724
+ data["description"] = coerced1;
26725
+ }
26726
+ }
26727
+ }
26728
+ }
26729
+ if (data.type !== void 0) {
26730
+ let data2 = data.type;
26731
+ if (!(data2 === "cursor" || data2 === "cursorId" || data2 === "cursorUrl" || data2 === "fakePage" || data2 === "offset" || data2 === "pageNumber")) {
26732
+ const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues: schema130.enum }, message: "must be equal to one of the allowed values" };
26733
+ if (vErrors === null) {
26734
+ vErrors = [err6];
26735
+ } else {
26736
+ vErrors.push(err6);
26737
+ }
26738
+ errors++;
26739
+ }
26740
+ }
26741
+ if (data.paramLocation !== void 0) {
26742
+ let data3 = data.paramLocation;
26743
+ if (!(data3 === "query" || data3 === "body")) {
26744
+ const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues: schema131.enum }, message: "must be equal to one of the allowed values" };
26745
+ if (vErrors === null) {
26746
+ vErrors = [err7];
26747
+ } else {
26748
+ vErrors.push(err7);
26749
+ }
26750
+ errors++;
26751
+ }
26752
+ }
26753
+ if (data.continueOnEmptyItems !== void 0) {
26754
+ let data4 = data.continueOnEmptyItems;
26755
+ if (typeof data4 !== "boolean") {
26756
+ let coerced2 = void 0;
26757
+ if (!(coerced2 !== void 0)) {
26758
+ if (data4 === "false" || data4 === 0 || data4 === null) {
26759
+ coerced2 = false;
26760
+ } else if (data4 === "true" || data4 === 1) {
26761
+ coerced2 = true;
26762
+ } else {
26763
+ const err8 = { instancePath: instancePath + "/continueOnEmptyItems", schemaPath: "#/properties/continueOnEmptyItems/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
26764
+ if (vErrors === null) {
26765
+ vErrors = [err8];
26766
+ } else {
26767
+ vErrors.push(err8);
26768
+ }
26769
+ errors++;
26770
+ }
26771
+ }
26772
+ if (coerced2 !== void 0) {
26773
+ data4 = coerced2;
26774
+ if (data !== void 0) {
26775
+ data["continueOnEmptyItems"] = coerced2;
26776
+ }
26777
+ }
26778
+ }
26779
+ }
26780
+ if (data.request !== void 0) {
26781
+ let data5 = data.request;
26782
+ if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
26783
+ for (const key0 in data5) {
26784
+ if (!validate135(data5[key0], { instancePath: instancePath + "/request/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key0, rootData, dynamicAnchors })) {
26785
+ vErrors = vErrors === null ? validate135.errors : vErrors.concat(validate135.errors);
26786
+ errors = vErrors.length;
26787
+ }
26788
+ }
26789
+ } else {
26790
+ const err9 = { instancePath: instancePath + "/request", schemaPath: "#/properties/request/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26791
+ if (vErrors === null) {
26792
+ vErrors = [err9];
26793
+ } else {
26794
+ vErrors.push(err9);
26795
+ }
26796
+ errors++;
26797
+ }
26798
+ }
26799
+ if (data.response !== void 0) {
26800
+ let data7 = data.response;
26801
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
26802
+ for (const key1 in data7) {
26803
+ if (!validate137(data7[key1], { instancePath: instancePath + "/response/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key1, rootData, dynamicAnchors })) {
26804
+ vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);
26805
+ errors = vErrors.length;
26806
+ }
26807
+ }
26808
+ } else {
26809
+ const err10 = { instancePath: instancePath + "/response", schemaPath: "#/properties/response/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26810
+ if (vErrors === null) {
26811
+ vErrors = [err10];
26812
+ } else {
26813
+ vErrors.push(err10);
26814
+ }
26815
+ errors++;
26816
+ }
26817
+ }
26818
+ } else {
26819
+ const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
26820
+ if (vErrors === null) {
26821
+ vErrors = [err11];
26822
+ } else {
26823
+ vErrors.push(err11);
26824
+ }
26825
+ errors++;
26826
+ }
26827
+ validate185.errors = vErrors;
26828
+ return errors === 0;
26829
+ }
26830
+ validate185.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
26831
+ function validate184(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26832
+ ;
26833
+ let vErrors = null;
26834
+ let errors = 0;
26835
+ const evaluated0 = validate184.evaluated;
26836
+ if (evaluated0.dynamicProps) {
26837
+ evaluated0.props = void 0;
26838
+ }
26839
+ if (evaluated0.dynamicItems) {
26840
+ evaluated0.items = void 0;
26841
+ }
26842
+ if (!validate185(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
26843
+ vErrors = vErrors === null ? validate185.errors : vErrors.concat(validate185.errors);
26844
+ errors = vErrors.length;
26845
+ }
26846
+ validate184.errors = vErrors;
26847
+ return errors === 0;
26848
+ }
26849
+ validate184.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
26850
+
26851
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/extension-values.js
26852
+ var extensionReader = (validate) => (candidate) => {
26853
+ const copy = plainCopy(candidate, 0, { budget: MAX_EXTENSION_NODES });
26854
+ return copy !== void 0 && validate(copy) ? copy : void 0;
26855
+ };
26856
+ var MAX_EXTENSION_DEPTH = 12;
26857
+ var MAX_EXTENSION_NODES = 2e3;
26858
+ var plainCopy = (value, depth, state) => {
26859
+ if (state.budget <= 0 || depth > MAX_EXTENSION_DEPTH)
26860
+ return void 0;
26861
+ state.budget -= 1;
26862
+ if (value === null || typeof value === "string" || typeof value === "boolean")
26863
+ return value;
26864
+ if (typeof value === "number")
26865
+ return Number.isFinite(value) ? value : void 0;
26866
+ if (Array.isArray(value)) {
26867
+ const items = [];
26868
+ for (const item of value) {
26869
+ const copied = plainCopy(item, depth + 1, state);
26870
+ if (copied === void 0)
26871
+ return void 0;
26872
+ items.push(copied);
26873
+ }
26874
+ return items;
26875
+ }
26876
+ if (typeof value !== "object")
26877
+ return void 0;
26878
+ const out = /* @__PURE__ */ Object.create(null);
26879
+ for (const [key, item] of Object.entries(value)) {
26880
+ if (item === void 0)
26881
+ continue;
26882
+ const copied = plainCopy(item, depth + 1, state);
26883
+ if (copied === void 0)
26884
+ return void 0;
26885
+ out[key] = copied;
26886
+ }
26887
+ return out;
26888
+ };
26889
+
26890
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/client-settings.js
26891
+ var readClientSettings = extensionReader(validateClientSettings);
26892
+
26893
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/pagination.js
26894
+ var readValidScheme = extensionReader(validatePaginationConfig);
26895
+
26896
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/operation-names.js
26897
+ var HTTP_VERB_TO_METHOD_WORD = {
26898
+ post: "create",
26899
+ put: "update",
26900
+ patch: "update",
26901
+ delete: "delete"
26902
+ };
26903
+ var OPERATION_VERB_REWRITES = {
26904
+ add: "create",
26905
+ place: "create",
26906
+ remove: "delete"
26907
+ };
26908
+ var PATH_ACTION_WORDS = /* @__PURE__ */ new Set(["create", "delete", "find", "login", "logout", "search", "update", "upload"]);
26909
+ var METHOD_VERB_WORDS = /* @__PURE__ */ new Set([
26910
+ // Everything the path-action heuristic already reads as a verb, plus every word the rewrites and
26911
+ // the HTTP-verb table mint — all of which today's tables spell alike, and spread rather than
26912
+ // restated so a word added to either is covered by the set that has to recognize it.
26913
+ ...PATH_ACTION_WORDS,
26914
+ ...Object.values(OPERATION_VERB_REWRITES),
26915
+ ...Object.values(HTTP_VERB_TO_METHOD_WORD).filter((word) => word !== void 0),
26916
+ // The two readings `defaultVerb` gives a `get`.
26917
+ "list",
26918
+ "retrieve",
26919
+ // The HTTP verbs a generated operation ID spells as the action itself (`patch_v1_by_id`). `head`,
26920
+ // `options` and `trace` are deliberately left out: an ID leading with one of those is far likelier
26921
+ // to be naming a noun than the request method. `get` is absent because it can never reach here —
26922
+ // {@link normalizeMethodWords} has already swapped a leading `get` for `list`/`retrieve`.
26923
+ "post",
26924
+ "put",
26925
+ "patch",
26926
+ // Two actions no HTTP verb names. `upload` is already above and its counterpart travels with it
26927
+ // through every file API there is; `read` is CRUD's own getter, which the generators that write
26928
+ // `..._get` IDs use for exactly the operation their `delete`/`patch` siblings shorten.
26929
+ "download",
26930
+ "read"
26931
+ ]);
26932
+
26933
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/settings.js
26934
+ var readGlobalSettings = extensionReader(validateGlobalSettings);
26935
+
26936
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/publish-auth-methods.js
26937
+ var PUBLISH_AUTH_METHODS = new Set(scalar_sdk_config_schema_default.$defs.publishAuthMethod.enum);
25446
26938
 
25447
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dart-package-identifier.js
26939
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dart-package-identifier.js
25448
26940
  var dartPackageIdentifier = (name, fallback = "sdk") => {
25449
26941
  const clean = (input) => input.replace(/([a-z0-9])([A-Z])/gu, "$1_$2").toLowerCase().replace(/[^a-z0-9_]+/gu, "_").replace(/^_+|_+$/gu, "");
25450
26942
  const reducedFallback = clean(fallback);
@@ -25453,14 +26945,14 @@ var dartPackageIdentifier = (name, fallback = "sdk") => {
25453
26945
  return /^[a-z_]/u.test(pkg) ? pkg : `${safeFallback}_${pkg}`;
25454
26946
  };
25455
26947
 
25456
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dotnet-package-identifier.js
26948
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dotnet-package-identifier.js
25457
26949
  var dotnetPackageIdentifier = (name, fallback = "Sdk") => {
25458
26950
  const parts = name.replace(/([a-z0-9])([A-Z])/gu, "$1 $2").split(/[^a-zA-Z0-9]+/u).filter(Boolean);
25459
26951
  const pascal = parts.map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`).join("");
25460
26952
  return pascal.length === 0 || /^\d/u.test(pascal) ? fallback : pascal;
25461
26953
  };
25462
26954
 
25463
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.43.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/swift-package-identifier.js
26955
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.46.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/swift-package-identifier.js
25464
26956
  var swiftPackageIdentifier = (name, fallback = "Sdk") => {
25465
26957
  const pascal = pascalCase(name);
25466
26958
  return /^[A-Za-z]/u.test(pascal) ? pascal : pascalCase(fallback);