@scalar/cli 2.12.1 → 2.12.3

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 (87) hide show
  1. package/README.md +2 -0
  2. package/chunks/{action-JT6C472I.js → action-4ESHWOAM.js} +4 -4
  3. package/chunks/{action-7HXYZPOT.js → action-5BJL72JE.js} +4 -4
  4. package/chunks/{action-UTFRCKGE.js → action-6A4NM5WS.js} +4 -4
  5. package/chunks/{action-KWFAMQN5.js → action-6I2PWENU.js} +19 -19
  6. package/chunks/{action-D52JJ3NL.js → action-7CUPRYNA.js} +13 -13
  7. package/chunks/{action-6IHAGCNR.js → action-AYKKHH7A.js} +13 -13
  8. package/chunks/{action-AOKHLTZ6.js → action-B74PPGKB.js} +5 -5
  9. package/chunks/{action-NY2MGVBS.js → action-BDDXF4YV.js} +13 -13
  10. package/chunks/{action-T2I4TFLU.js → action-BYYKW4S6.js} +8 -8
  11. package/chunks/action-D7L757PX.js +422 -0
  12. package/chunks/{action-HJSRU322.js → action-ED4TSPRZ.js} +13 -13
  13. package/chunks/{action-IASJWF5P.js → action-EPGS3U3T.js} +14 -14
  14. package/chunks/{action-D3IVCY24.js → action-EWDQOX5B.js} +4 -4
  15. package/chunks/{action-TH3TYR2A.js → action-EWZLVN45.js} +21 -21
  16. package/chunks/{action-A2GXYB2K.js → action-FBOTIFVC.js} +10 -10
  17. package/chunks/{action-YL3CEKE7.js → action-FBQAU5LV.js} +13 -13
  18. package/chunks/{action-4G23NFVD.js → action-GJHOZ6Q5.js} +66 -46
  19. package/chunks/{action-GZKDPO3N.js → action-GMJJMZXY.js} +13 -13
  20. package/chunks/{action-XPJFCCAT.js → action-H4GW3KAI.js} +17 -17
  21. package/chunks/{action-6IZYBY5P.js → action-HAKFAXTQ.js} +4 -4
  22. package/chunks/{action-4B3MNNEG.js → action-I2IV4VLL.js} +18 -18
  23. package/chunks/{action-6UOTMYQ4.js → action-JXCU2JKC.js} +2 -2
  24. package/chunks/{action-KDT6H6ML.js → action-KIOYSVKX.js} +4 -4
  25. package/chunks/{action-IIQMZVRJ.js → action-LRR52RXL.js} +10 -8
  26. package/chunks/{action-INB2R2NQ.js → action-M5OUEDV2.js} +4 -4
  27. package/chunks/{action-AQ7BSPBE.js → action-O7ROX6NF.js} +89 -51
  28. package/chunks/{action-JHPUNA7Z.js → action-Q3DI54OW.js} +17 -17
  29. package/chunks/{action-6KP6KOYC.js → action-RPTLQBMK.js} +6 -6
  30. package/chunks/{action-RDXVIAS3.js → action-T4MM4OUS.js} +19 -19
  31. package/chunks/{action-S7SONQ5E.js → action-UHXBY3RD.js} +2 -2
  32. package/chunks/{action-ENZGEP4Y.js → action-VVKMUOKR.js} +8 -6
  33. package/chunks/{action-O757TFA2.js → action-YXRCGKCK.js} +4 -4
  34. package/chunks/{action-HA3CMV3P.js → action-ZBEOLJJR.js} +4 -4
  35. package/chunks/{action-5I763IT2.js → action-ZOYQBWGD.js} +16 -16
  36. package/chunks/{actions-LNIEIP7C.js → actions-EXQNVV4T.js} +13 -13
  37. package/chunks/{agent-F2A4UROF.js → agent-XAHNA4MB.js} +4 -4
  38. package/chunks/{asyncapi-HASQNFWS.js → asyncapi-FNOWXSKB.js} +51 -43
  39. package/chunks/{build.action-XKJ4ET3G.js → build.action-TIKRZPQ5.js} +17 -17
  40. package/chunks/{chunk-N645RGAB.js → chunk-2AK5O3NQ.js} +33 -33
  41. package/chunks/{chunk-LWIAFTKX.js → chunk-2GKXAGSH.js} +55 -10
  42. package/chunks/chunk-2I6V7AI3.js +68 -0
  43. package/chunks/{chunk-CFI5GBAK.js → chunk-4YQVGOHX.js} +1 -1
  44. package/chunks/{chunk-ZW62VYJW.js → chunk-62OOT7FY.js} +5 -5
  45. package/chunks/{chunk-KWLAZV7P.js → chunk-7S34K2P3.js} +1 -1
  46. package/chunks/{chunk-U764PQUA.js → chunk-AOZQPCWI.js} +2 -0
  47. package/chunks/{chunk-BHWUD65X.js → chunk-BDNCJLJP.js} +1 -1
  48. package/chunks/{chunk-WZJTV4ET.js → chunk-BOPEAS7H.js} +1 -1
  49. package/chunks/{chunk-D5YZ3FXG.js → chunk-CUHVXHIV.js} +1 -1
  50. package/chunks/{chunk-PU5UIHAF.js → chunk-EUFK4MVX.js} +2 -2
  51. package/chunks/{chunk-V3MYP5SQ.js → chunk-EXJUFF6G.js} +13 -2
  52. package/chunks/{chunk-7M44FQHX.js → chunk-F3TQHNSQ.js} +139 -95
  53. package/chunks/{chunk-NTRWXCXD.js → chunk-FI7UKPRF.js} +2 -2
  54. package/chunks/{chunk-LLZDQXYS.js → chunk-FYMDIB7J.js} +1 -1
  55. package/chunks/{chunk-SNOAL2C5.js → chunk-I7ZVWF57.js} +1 -1
  56. package/chunks/{chunk-DKZ3PS3X.js → chunk-IOW726L2.js} +1 -1
  57. package/chunks/{chunk-7TSQ7ZGU.js → chunk-IRA5BW2J.js} +7 -5
  58. package/chunks/{chunk-4BE7UCJO.js → chunk-JWNWOK2M.js} +2 -2
  59. package/chunks/{chunk-JLNHOA5Z.js → chunk-KPLWZIOV.js} +36 -4
  60. package/chunks/{chunk-EJSGWV2K.js → chunk-KWIY2QZY.js} +1 -1
  61. package/chunks/{chunk-GPQXLA43.js → chunk-LEECPQZN.js} +2 -2
  62. package/chunks/{chunk-YLZP3W37.js → chunk-MQ65WBVF.js} +22 -1
  63. package/chunks/{chunk-IZVRYC2N.js → chunk-OZQPMMTA.js} +3 -3
  64. package/chunks/{chunk-V6LUKXBV.js → chunk-RE5Z56QD.js} +2 -2
  65. package/chunks/{chunk-XLZEIIPW.js → chunk-TI4NDKQC.js} +40 -7
  66. package/chunks/{chunk-VUNOOPEG.js → chunk-TYNF7ROW.js} +1 -1
  67. package/chunks/{chunk-YMRRFDEQ.js → chunk-UN2AAVO5.js} +2 -2
  68. package/chunks/chunk-V7RTDFHK.js +56 -0
  69. package/chunks/{chunk-PERC34BV.js → chunk-WKW5W2ZP.js} +1 -1
  70. package/chunks/{chunk-RYWXF3LO.js → chunk-Y2OQOAY7.js} +1 -1
  71. package/chunks/{chunk-E57QCEAV.js → chunk-YTTDYTVB.js} +1 -1
  72. package/chunks/{create.action-XXOLILUS.js → create.action-K7GTWYST.js} +17 -17
  73. package/chunks/{delete.action-R5KGPLDG.js → delete.action-E4XRGKQW.js} +16 -16
  74. package/chunks/{delete.action-TQJOZRV7.js → delete.action-JKLXBYRD.js} +17 -17
  75. package/chunks/{get.action-IQMOL4WM.js → get.action-2AKMD4W3.js} +10 -10
  76. package/chunks/{get.action-46OBVOQQ.js → get.action-IY7WSJMX.js} +16 -16
  77. package/chunks/{list.action-RIS7Q4OU.js → list.action-44YVCWKN.js} +16 -16
  78. package/chunks/{list.action-GXTKKVHY.js → list.action-NRL2DDL5.js} +17 -17
  79. package/chunks/{publish.action-A4T4BT3F.js → publish.action-E76MHLCN.js} +21 -21
  80. package/chunks/{update.action-TK5L4PXB.js → update.action-FTTVWVAB.js} +16 -16
  81. package/chunks/{update.action-IZ5GULPY.js → update.action-LZCAHAWW.js} +17 -17
  82. package/index.js +223 -117
  83. package/package.json +1 -1
  84. package/skills/scalar-cli/SKILL.md +1 -1
  85. package/template.md +2 -0
  86. package/chunks/action-VK5HZHSC.js +0 -165
  87. package/chunks/chunk-JFIXNSPP.js +0 -26
@@ -1,10 +1,10 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  SdkLanguage
4
- } from "./chunk-RYWXF3LO.js";
4
+ } from "./chunk-Y2OQOAY7.js";
5
5
  import {
6
6
  contentShaSchema
7
- } from "./chunk-U764PQUA.js";
7
+ } from "./chunk-AOZQPCWI.js";
8
8
  import {
9
9
  compareVersionsDesc,
10
10
  docVersionSchema,
@@ -42,7 +42,7 @@ var sdkTrackedApiVersionSpec = (sdk) => sdk.apiVersion ?? (findOpenSdkDraft(sdkV
42
42
  // ../../packages/entities/dist/sdk/scalar-config.js
43
43
  import yaml from "yaml";
44
44
 
45
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.schema.json
45
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.schema.json
46
46
  var scalar_sdk_config_schema_default = {
47
47
  $schema: "https://json-schema.org/draft/2020-12/schema",
48
48
  $id: "https://registry.scalar.com/@scalar/schemas/sdk-config",
@@ -169,11 +169,11 @@ var scalar_sdk_config_schema_default = {
169
169
  },
170
170
  contact: {
171
171
  type: "string",
172
- description: "Email address for SDK feedback, questions, and support requests, surfaced in generated package metadata."
172
+ description: "Email address for SDK feedback, questions, and support requests, surfaced in generated package metadata. Also where the generated security policy sends API vulnerability reports when `securityContact` is unset."
173
173
  },
174
174
  securityContact: {
175
175
  type: "string",
176
- description: "Email address API vulnerability reports should go to, named in the generated security policy. Every target generates one, and each sends reports about the generated SDK code itself to Scalar instead, whether or not this is set."
176
+ description: "Email address API vulnerability reports should go to, named in the generated security policy. When unset, the policy names `contact` instead. Every target generates one, and each sends reports about the generated SDK code itself to Scalar instead, whether or not this is set."
177
177
  },
178
178
  logo: {
179
179
  type: "string",
@@ -369,7 +369,7 @@ var scalar_sdk_config_schema_default = {
369
369
  minProperties: 1
370
370
  }
371
371
  ],
372
- description: "Deprecation message surfaced in generated code: one string for every target, or a map naming a message per target. A target without its own message falls back to `default`, except on a method that forwards to a renamed one, where TypeScript, Python and Go instead name the replacement in their own casing; Java, Kotlin and PHP render `default` verbatim there, so a rename those SDKs should spell in their own casing needs its own key. With no `default` at all the declaration is still deprecated everywhere, and the targets it does not name carry the same bare marker a spec-level `deprecated: true` produces. Only TypeScript, Python, Go, PHP, Java and Kotlin use the message; the other targets accept a key but generate either no deprecation marker or one with fixed text. The CLI takes no key of its own: it is built on the generated TypeScript SDK, so it uses the `typescript` message."
372
+ description: "Deprecation message surfaced in generated code: one string for every target, or a map naming a message per target. A target without its own message falls back to `default`, except on a method that forwards to a renamed one, where TypeScript, Python and Go instead name the replacement in their own casing; Java, Kotlin, PHP and C# render `default` verbatim there, so a rename those SDKs should spell in their own casing needs its own key. With no `default` at all the declaration is still deprecated everywhere, and the targets it does not name carry the same bare marker a spec-level `deprecated: true` produces. TypeScript, Python, Go, PHP, Java, Kotlin, C#, Dart, Swift and C++ use the message; Rust and Ruby accept a key but generate either no deprecation marker or one with fixed text. The CLI takes no key of its own: it is built on the generated TypeScript SDK, so it uses the `typescript` message."
373
373
  },
374
374
  httpMethod: {
375
375
  enum: ["delete", "get", "head", "options", "patch", "post", "put", "trace"]
@@ -436,7 +436,7 @@ var scalar_sdk_config_schema_default = {
436
436
  type: "string",
437
437
  pattern: "^[A-Za-z_][A-Za-z0-9_]*$"
438
438
  },
439
- description: 'Per-target name of the streaming method a `paramDiscriminator` adds beside the buffered one, keyed by target language and spelled as that target spells it (`{"ruby": "stream_raw"}`). A target without an entry uses its own default, such as `create_streaming` in Ruby. Only the Ruby target reads it today.'
439
+ description: 'Per-target name of the streaming method a `paramDiscriminator` adds beside the buffered one, keyed by target language and spelled as that target spells it (`{"ruby": "stream_raw"}`). A target without an entry uses its own default, such as `create_streaming` in Ruby and C++ or `createStream` in PHP. Only the Ruby, C++ and PHP targets read it today.'
440
440
  },
441
441
  skip: {
442
442
  $ref: "#/$defs/targetLanguageArray",
@@ -909,7 +909,7 @@ var scalar_sdk_config_schema_default = {
909
909
  additionalProperties: {
910
910
  $ref: "#/$defs/readmeExample"
911
911
  },
912
- description: "Example requests the README renders, keyed by the section each illustrates: `default` (the usage quickstart), `errors`, `pagination`, `retries`, `timeouts`, `nested_params`, `http_agent`, and `headline`. A key for a section the README does not have is accepted and ignored."
912
+ description: "Example requests the README renders, keyed by the section each illustrates: `default` (the usage quickstart), `errors`, `pagination`, `retries`, `timeouts`, `nested_params`, `http_agent`, `streaming`, and `headline`. `streaming` names the call the Streaming section shows; only the C# target reads it so far, and every other target keeps sampling the first streaming operation. A key for a section the README does not have is accepted and ignored."
913
913
  }
914
914
  }
915
915
  },
@@ -2158,7 +2158,7 @@ var scalar_sdk_config_schema_default = {
2158
2158
  async: {
2159
2159
  type: "boolean",
2160
2160
  default: true,
2161
- description: "Generates an asynchronous client beside the synchronous one, whose methods return a `std::future` or take a completion callback. Set `false` to leave it out, which shortens build times for a very large API. The asynchronous client is not generated yet; today `false` only leaves out the executor runtime header it will use. Defaults to `true`."
2161
+ description: "Generates an asynchronous client beside the synchronous one (`client.async()`), whose methods return a `std::future` or take a completion callback and run on the client's executor. Set `false` to leave it out, with its executor runtime, its client options and its example, which shortens build times for a very large API. Defaults to `true`."
2162
2162
  },
2163
2163
  preserveUnknownFields: {
2164
2164
  type: "boolean",
@@ -3175,12 +3175,12 @@ var scalar_sdk_config_schema_default = {
3175
3175
  }
3176
3176
  };
3177
3177
 
3178
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/reserved-publish-keys.js
3178
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/reserved-publish-keys.js
3179
3179
  var RESERVED_PUBLISH_KEYS = ["signing"];
3180
3180
  var reserved = new Set(RESERVED_PUBLISH_KEYS);
3181
3181
  var isReservedPublishKey = (key) => reserved.has(key);
3182
3182
 
3183
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-languages.js
3183
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-languages.js
3184
3184
  var TARGET_LANGUAGES = [
3185
3185
  "typescript",
3186
3186
  "python",
@@ -3200,7 +3200,7 @@ var WEBSOCKET_RUNTIME_TARGETS = ["typescript", "python", "rust", "cli"];
3200
3200
  var GRPC_RUNTIME_TARGETS = ["typescript"];
3201
3201
  var targetLanguageSet = new Set(TARGET_LANGUAGES);
3202
3202
 
3203
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-fields.js
3203
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-fields.js
3204
3204
  var resolveSchemaRef = (node) => {
3205
3205
  if (typeof node !== "object" || node === null)
3206
3206
  return void 0;
@@ -3232,7 +3232,7 @@ var targetsDeclaringField = (field) => {
3232
3232
  var PACKAGE_NAME_TARGETS = targetsDeclaringField("packageName");
3233
3233
  var PRERELEASE_TYPE_TARGETS = targetsDeclaringField("prereleaseType");
3234
3234
 
3235
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/publish-registries.js
3235
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/publish-registries.js
3236
3236
  var targetPublishRegistryNodes = (target) => {
3237
3237
  const publish = resolveSchemaRef(targetSchemaFields(target)["publish"]);
3238
3238
  return publish?.["properties"];
@@ -3278,7 +3278,7 @@ var targetRegistryOptions = new Map(Object.entries(derivePublishRegistryOptions(
3278
3278
  new Map(Object.entries(registries))
3279
3279
  ]));
3280
3280
 
3281
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-stability.js
3281
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-stability.js
3282
3282
  var STABILITY_VALUES = ["stable", "experimental", "stub"];
3283
3283
  var isStability = (value) => typeof value === "string" && STABILITY_VALUES.includes(value);
3284
3284
  var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => {
@@ -3286,7 +3286,7 @@ var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((la
3286
3286
  return [language, isStability(declared) ? declared : "experimental"];
3287
3287
  })));
3288
3288
 
3289
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-catalog.js
3289
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-catalog.js
3290
3290
  var PACKAGE_NAME_FIELDS = ["composerPackageName", "gemName", "packageName"];
3291
3291
  var targetTitle = (language) => {
3292
3292
  const value = targetSchemaNode(language)?.["title"];
@@ -3310,10 +3310,10 @@ var describeTarget = (language) => {
3310
3310
  };
3311
3311
  var TARGETS = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => [language, describeTarget(language)])));
3312
3312
 
3313
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/coerce-config.js
3313
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/coerce-config.js
3314
3314
  import { parse as parseYaml } from "yaml";
3315
3315
 
3316
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.8.0/node_modules/@scalar/sdk-helpers/dist/initialisms.js
3316
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.9.0/node_modules/@scalar/sdk-helpers/dist/initialisms.js
3317
3317
  var DEFAULT_INITIALISMS = [
3318
3318
  "acl",
3319
3319
  "ach",
@@ -3414,7 +3414,7 @@ var defaultInitialismCasing = (() => {
3414
3414
  return map;
3415
3415
  })();
3416
3416
 
3417
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.8.0/node_modules/@scalar/sdk-helpers/dist/split-into-words.js
3417
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.9.0/node_modules/@scalar/sdk-helpers/dist/split-into-words.js
3418
3418
  var wordCache = /* @__PURE__ */ new Map();
3419
3419
  var DIGIT_UPPERCASE_SEAM = /([0-9])([A-Z]+)/g;
3420
3420
  var ANY_DIGIT_SEAM = /([0-9])([A-Z])/g;
@@ -3453,7 +3453,7 @@ var splitIntoWords = (input) => {
3453
3453
  return words;
3454
3454
  };
3455
3455
 
3456
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.8.0/node_modules/@scalar/sdk-helpers/dist/casing.js
3456
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.9.0/node_modules/@scalar/sdk-helpers/dist/casing.js
3457
3457
  var ensureLeadingLetter = (value) => {
3458
3458
  if (value.length === 0)
3459
3459
  return "_";
@@ -3464,22 +3464,22 @@ var pascalCase = (input) => {
3464
3464
  return ensureLeadingLetter(result);
3465
3465
  };
3466
3466
 
3467
- // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.8.0/node_modules/@scalar/sdk-helpers/dist/proto-names.js
3467
+ // ../../node_modules/.pnpm/@scalar+sdk-helpers@0.9.0/node_modules/@scalar/sdk-helpers/dist/proto-names.js
3468
3468
  var PROTO_IDENTIFIER_PATTERN = "[A-Za-z_][A-Za-z0-9_]*";
3469
3469
  var PROTO_QUALIFIED_NAME_PATTERN = String.raw`${PROTO_IDENTIFIER_PATTERN}(?:\.${PROTO_IDENTIFIER_PATTERN})*`;
3470
3470
  var PROTO_IDENTIFIER = new RegExp(`^${PROTO_IDENTIFIER_PATTERN}$`, "u");
3471
3471
  var PROTO_QUALIFIED_NAME = new RegExp(`^${PROTO_QUALIFIED_NAME_PATTERN}$`, "u");
3472
3472
 
3473
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/helpers/resolve-ref.js
3473
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/helpers/resolve-ref.js
3474
3474
  import { getResolvedRef, mergeSiblingReferences } from "@scalar/workspace-store/helpers/get-resolved-ref";
3475
3475
 
3476
- // ../../node_modules/.pnpm/@scalar+openapi-loader@0.7.1_typescript@7.0.2/node_modules/@scalar/openapi-loader/dist/assert-supported-openapi.js
3476
+ // ../../node_modules/.pnpm/@scalar+openapi-loader@0.7.2_typescript@7.0.2/node_modules/@scalar/openapi-loader/dist/assert-supported-openapi.js
3477
3477
  import { getResolvedRef as getResolvedRef2, mergeSiblingReferences as mergeSiblingReferences2 } from "@scalar/workspace-store/helpers/get-resolved-ref";
3478
3478
 
3479
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/generate-default-config.js
3479
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/generate-default-config.js
3480
3480
  import { isAsyncApiDocument } from "@scalar/workspace-store/schemas";
3481
3481
 
3482
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.validator.js
3482
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.validator.js
3483
3483
  var validateClientSettings = validate197;
3484
3484
  var validateGlobalSettings = validate201;
3485
3485
  var validatePaginationConfig = validate202;
@@ -21708,7 +21708,7 @@ function validate202(data, { instancePath = "", parentData, parentDataProperty,
21708
21708
  }
21709
21709
  validate202.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
21710
21710
 
21711
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/extension-values.js
21711
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/extension-values.js
21712
21712
  var extensionReader = (validate) => (candidate) => {
21713
21713
  const copy = plainCopy(candidate, 0, { budget: MAX_EXTENSION_NODES });
21714
21714
  return copy !== void 0 && validate(copy) ? copy : void 0;
@@ -21747,13 +21747,13 @@ var plainCopy = (value, depth, state) => {
21747
21747
  return out;
21748
21748
  };
21749
21749
 
21750
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/client-settings.js
21750
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/client-settings.js
21751
21751
  var readClientSettings = extensionReader(validateClientSettings);
21752
21752
 
21753
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/pagination.js
21753
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/pagination.js
21754
21754
  var readValidScheme = extensionReader(validatePaginationConfig);
21755
21755
 
21756
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/operation-names.js
21756
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/operation-names.js
21757
21757
  var HTTP_VERB_TO_METHOD_WORD = {
21758
21758
  post: "create",
21759
21759
  put: "update",
@@ -21790,13 +21790,13 @@ var METHOD_VERB_WORDS = /* @__PURE__ */ new Set([
21790
21790
  "read"
21791
21791
  ]);
21792
21792
 
21793
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/settings.js
21793
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/settings.js
21794
21794
  var readGlobalSettings = extensionReader(validateGlobalSettings);
21795
21795
 
21796
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/publish-auth-methods.js
21796
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/publish-auth-methods.js
21797
21797
  var PUBLISH_AUTH_METHODS = new Set(scalar_sdk_config_schema_default.$defs.publishAuthMethod.enum);
21798
21798
 
21799
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dart-package-identifier.js
21799
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dart-package-identifier.js
21800
21800
  var dartPackageIdentifier = (name, fallback = "sdk") => {
21801
21801
  const clean = (input) => input.replace(/([a-z0-9])([A-Z])/gu, "$1_$2").toLowerCase().replace(/[^a-z0-9_]+/gu, "_").replace(/^_+|_+$/gu, "");
21802
21802
  const reducedFallback = clean(fallback);
@@ -21805,14 +21805,14 @@ var dartPackageIdentifier = (name, fallback = "sdk") => {
21805
21805
  return /^[a-z_]/u.test(pkg) ? pkg : `${safeFallback}_${pkg}`;
21806
21806
  };
21807
21807
 
21808
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dotnet-package-identifier.js
21808
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dotnet-package-identifier.js
21809
21809
  var dotnetPackageIdentifier = (name, fallback = "Sdk") => {
21810
21810
  const parts = name.replace(/([a-z0-9])([A-Z])/gu, "$1 $2").split(/[^a-zA-Z0-9]+/u).filter(Boolean);
21811
21811
  const pascal = parts.map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`).join("");
21812
21812
  return pascal.length === 0 || /^\d/u.test(pascal) ? fallback : pascal;
21813
21813
  };
21814
21814
 
21815
- // ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/swift-package-identifier.js
21815
+ // ../../node_modules/.pnpm/@scalar+sdk-config@0.58.1_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/swift-package-identifier.js
21816
21816
  var swiftPackageIdentifier = (name, fallback = "Sdk") => {
21817
21817
  const pascal = pascalCase(name);
21818
21818
  return /^[A-Za-z]/u.test(pascal) ? pascal : pascalCase(fallback);
@@ -14,16 +14,16 @@ import {
14
14
  webhookSubscriptionSchema,
15
15
  workspaceSchema,
16
16
  workspaceVersionSchema
17
- } from "./chunk-JLNHOA5Z.js";
17
+ } from "./chunk-KPLWZIOV.js";
18
18
  import {
19
19
  userSchema
20
- } from "./chunk-E57QCEAV.js";
20
+ } from "./chunk-YTTDYTVB.js";
21
21
  import {
22
22
  sdkSchema
23
- } from "./chunk-RYWXF3LO.js";
23
+ } from "./chunk-Y2OQOAY7.js";
24
24
  import {
25
25
  mcpEnvironmentSchema
26
- } from "./chunk-V3MYP5SQ.js";
26
+ } from "./chunk-EXJUFF6G.js";
27
27
  import {
28
28
  RENEWAL_MARGIN_MS,
29
29
  SESSION_EXPIRED,
@@ -33,19 +33,20 @@ import {
33
33
  needsRenewal,
34
34
  refreshToken,
35
35
  renewAuth
36
- } from "./chunk-NTRWXCXD.js";
36
+ } from "./chunk-FI7UKPRF.js";
37
37
  import {
38
38
  config
39
- } from "./chunk-LLZDQXYS.js";
39
+ } from "./chunk-FYMDIB7J.js";
40
40
  import {
41
41
  UnifiedDocsMigrationStatus,
42
42
  pendingInviteSchema,
43
43
  teamBillingSummary,
44
+ teamEmailSenderSchema,
44
45
  teamImageSchema,
45
46
  teamNameSchema,
46
47
  teamSdkPricing,
47
48
  userRefSchema
48
- } from "./chunk-7M44FQHX.js";
49
+ } from "./chunk-F3TQHNSQ.js";
49
50
  import {
50
51
  docsProjectSchema,
51
52
  githubInstallSchema,
@@ -56,7 +57,7 @@ import {
56
57
  managedDocSchema,
57
58
  managedDocVersionSchema,
58
59
  ruleSchema
59
- } from "./chunk-VUNOOPEG.js";
60
+ } from "./chunk-TYNF7ROW.js";
60
61
  import {
61
62
  createdMcpServerSchema,
62
63
  docInstanceSchema,
@@ -66,7 +67,7 @@ import {
66
67
  registryGitBindingSchema,
67
68
  registryPublishRecordSchema,
68
69
  secretMetadataSchema
69
- } from "./chunk-U764PQUA.js";
70
+ } from "./chunk-AOZQPCWI.js";
70
71
  import {
71
72
  teamEnvironmentSchema
72
73
  } from "./chunk-Q26DFKTY.js";
@@ -1414,6 +1415,39 @@ function sdksApiFactory(requestService) {
1414
1415
  };
1415
1416
  }
1416
1417
 
1418
+ // ../../packages/service-api/dist/apis/team-email-sender.js
1419
+ var senderSchema = teamEmailSenderSchema.nullable();
1420
+ function teamEmailSenderApiFactory(requestService) {
1421
+ return {
1422
+ /** Set the name, reply-to and local part. The domain is left as it is */
1423
+ update: (data) => requestService.request({
1424
+ url: "core/team/email-sender",
1425
+ method: "put",
1426
+ data,
1427
+ schema: senderSchema
1428
+ }),
1429
+ /** Claim a domain and get the DNS records that verify it */
1430
+ claimDomain: (domain) => requestService.request({
1431
+ url: "core/team/email-sender/domain",
1432
+ method: "post",
1433
+ data: { domain },
1434
+ schema: senderSchema
1435
+ }),
1436
+ /** Ask for the domain's DNS records to be verified, at most once a minute */
1437
+ checkDomain: () => requestService.request({
1438
+ url: "core/team/email-sender/domain/check",
1439
+ method: "post",
1440
+ schema: senderSchema
1441
+ }),
1442
+ /** Remove the domain; mail keeps the name and goes out from a Scalar address */
1443
+ removeDomain: () => requestService.request({
1444
+ url: "core/team/email-sender/domain",
1445
+ method: "delete",
1446
+ schema: senderSchema
1447
+ })
1448
+ };
1449
+ }
1450
+
1417
1451
  // ../../packages/service-api/dist/apis/team-secrets.js
1418
1452
  function teamSecretsApiFactory(requestService) {
1419
1453
  return {
@@ -1854,6 +1888,13 @@ function requestServiceFactory(baseUrl, getAuthToken, logger = console) {
1854
1888
 
1855
1889
  // ../../packages/service-api/dist/apis/auth.js
1856
1890
  function authApiFactory(requestService) {
1891
+ async function getPersonalTokenExpiry() {
1892
+ return await requestService.request({
1893
+ url: "core/login/personal-token/expiry",
1894
+ method: "get",
1895
+ schema: external_exports.object({ expiresIn: external_exports.number() })
1896
+ });
1897
+ }
1857
1898
  async function generatePersonalToken({ name, description }) {
1858
1899
  return await requestService.request({
1859
1900
  url: "core/login/personal-token/generate",
@@ -1864,7 +1905,9 @@ function authApiFactory(requestService) {
1864
1905
  },
1865
1906
  schema: external_exports.object({
1866
1907
  uid: external_exports.string(),
1867
- personalToken: external_exports.string()
1908
+ personalToken: external_exports.string(),
1909
+ /** Core deployments without expiry metadata still return usable keys. */
1910
+ expiresAt: external_exports.number().int().optional()
1868
1911
  })
1869
1912
  });
1870
1913
  }
@@ -1930,6 +1973,7 @@ function authApiFactory(requestService) {
1930
1973
  return {
1931
1974
  // Personal tokens
1932
1975
  generatePersonalToken,
1976
+ getPersonalTokenExpiry,
1933
1977
  getAccessTokenByPersonalToken,
1934
1978
  revokePersonalToken,
1935
1979
  deletePersonalToken,
@@ -3248,6 +3292,7 @@ var apiServiceFactory = (baseUrl, getAuthToken, getNewTokens) => {
3248
3292
  auth: authApiFactory(requestService),
3249
3293
  team: teamApiFactory(requestService, getNewTokens),
3250
3294
  teamSecrets: teamSecretsApiFactory(requestService),
3295
+ teamEmailSender: teamEmailSenderApiFactory(requestService),
3251
3296
  feedback: feedbackApiFactory(requestService),
3252
3297
  image: imageApiFactory(requestService),
3253
3298
  payment: paymentApiFactory(requestService),
@@ -0,0 +1,68 @@
1
+ import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+
3
+ // src/domains/document/helpers/server-session.ts
4
+ var createServerSession = () => {
5
+ const controller = new AbortController();
6
+ const sockets = /* @__PURE__ */ new Set();
7
+ let server;
8
+ let watcher;
9
+ let closing;
10
+ const onConnection = (socket) => {
11
+ sockets.add(socket);
12
+ socket.once("close", () => sockets.delete(socket));
13
+ };
14
+ const closeServer = async () => {
15
+ const current = server;
16
+ server = void 0;
17
+ if (!current) return;
18
+ current.off("close", onClose);
19
+ current.off("connection", onConnection);
20
+ await new Promise((resolve) => {
21
+ current.close(() => resolve());
22
+ for (const socket of sockets) socket.destroy();
23
+ sockets.clear();
24
+ });
25
+ };
26
+ const close = () => {
27
+ if (closing) return closing;
28
+ controller.abort();
29
+ process.off("SIGINT", onInterrupt);
30
+ process.off("SIGTERM", onTerminate);
31
+ closing = Promise.all([watcher?.unsubscribe(), closeServer()]).then(
32
+ () => void 0
33
+ );
34
+ return closing;
35
+ };
36
+ const onClose = () => {
37
+ void close();
38
+ };
39
+ const onInterrupt = () => {
40
+ process.exitCode = 130;
41
+ void close();
42
+ };
43
+ const onTerminate = () => {
44
+ process.exitCode = 143;
45
+ void close();
46
+ };
47
+ process.once("SIGINT", onInterrupt);
48
+ process.once("SIGTERM", onTerminate);
49
+ return {
50
+ signal: controller.signal,
51
+ close,
52
+ closeServer,
53
+ setServer: async (next) => {
54
+ server = next;
55
+ next.on("connection", onConnection);
56
+ next.once("close", onClose);
57
+ if (controller.signal.aborted) await closeServer();
58
+ },
59
+ setWatcher: async (next) => {
60
+ watcher = next;
61
+ if (controller.signal.aborted) await next?.unsubscribe();
62
+ }
63
+ };
64
+ };
65
+
66
+ export {
67
+ createServerSession
68
+ };
@@ -2,7 +2,7 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
2
2
  import {
3
3
  findConfig,
4
4
  parseConfig
5
- } from "./chunk-YLZP3W37.js";
5
+ } from "./chunk-MQ65WBVF.js";
6
6
  import {
7
7
  ConfigVersion
8
8
  } from "./chunk-VRZSDUZK.js";
@@ -1,10 +1,11 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  RegistryAsset
4
- } from "./chunk-VUNOOPEG.js";
4
+ } from "./chunk-TYNF7ROW.js";
5
5
  import {
6
+ MCP_DOWNLOAD_PATH_PREFIX,
6
7
  contentShaSchema
7
- } from "./chunk-U764PQUA.js";
8
+ } from "./chunk-AOZQPCWI.js";
8
9
  import {
9
10
  docVersionSchema,
10
11
  external_exports,
@@ -221,6 +222,8 @@ var VERSION_WORDS = [
221
222
  ];
222
223
  var VERSION_LABEL = `(?:(?:(?:[a-z][a-z0-9]*-)*(?:[vV]?[0-9]+(?:[.][0-9]+){0,4}(?:-[0-9A-Za-z.-]+)?|[0-9a-f]{7,40})|${VERSION_WORDS.join("|")})(?:[+]${MCP_BUILD_PATTERN})?|latest)`;
223
224
  var ORIGIN_VERSION_LABEL = `[^/@+]+(?:[+]${MCP_BUILD_PATTERN})?`;
225
+ var TOKEN_SEGMENT = "[A-Za-z0-9_-]+";
226
+ var DOWNLOAD_PATTERN = `^${MCP_DOWNLOAD_PATH_PREFIX}/${TOKEN_SEGMENT}[.]${TOKEN_SEGMENT}(?:[.]${TOKEN_SEGMENT})?$`;
224
227
  var READ = ["GET", "HEAD"];
225
228
  var DASHBOARD_POST = [
226
229
  "POST",
@@ -273,8 +276,6 @@ var PROBE_PATTERN = [
273
276
  "^/oast[.]me(?:/|$)",
274
277
  "[{][{]"
275
278
  ].join("|");
276
- var literal = (value) => `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
277
- var anyHeaderContains = (name, needle) => `any(http.request.headers[${literal(name)}][*] contains ${literal(needle)})`;
278
279
  var PREFLIGHT = [
279
280
  `any(http.request.headers["origin"][*] ne "")`,
280
281
  `any(http.request.headers["access-control-request-method"][*] ne "")`
@@ -295,7 +296,6 @@ var UNSUPPORTED_MEDIA_TYPE_BODY = JSON.stringify({
295
296
  },
296
297
  id: null
297
298
  });
298
- var MCP_ON_OTHER_HOSTS = `ends_with(http.request.uri.path, "/mcp") or ${anyHeaderContains("accept", "text/event-stream")}`;
299
299
 
300
300
  // ../../packages/urls/dist/mcp/address.js
301
301
  var BUILD_SEGMENT = new RegExp(`^${MCP_BUILD_PATTERN}$`);
@@ -2,7 +2,7 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
2
2
  import {
3
3
  getPublishPreviewUrl,
4
4
  getPublishUrl
5
- } from "./chunk-ZW62VYJW.js";
5
+ } from "./chunk-62OOT7FY.js";
6
6
 
7
7
  // src/domains/project/publish/url.ts
8
8
  function getPublishDeploymentUrl(publish) {
@@ -173,6 +173,7 @@ var mcpServerChannelSchema = external_exports.discriminatedUnion("kind", [
173
173
  external_exports.object({ kind: external_exports.literal("api"), documentUid: external_exports.string() }),
174
174
  external_exports.object({ kind: external_exports.literal("docs"), projectUid: external_exports.string() })
175
175
  ]);
176
+ var MCP_DOWNLOAD_PATH_PREFIX = "/_scalar/download";
176
177
  var mcpServerSchema = external_exports.object({
177
178
  id: external_exports.string().meta({ examples: ["42"] }),
178
179
  teamUid: external_exports.string(),
@@ -1022,6 +1023,7 @@ export {
1022
1023
  mcpDocsProjectTrackModes,
1023
1024
  mcpChannelModes,
1024
1025
  mcpServerChannelSchema,
1026
+ MCP_DOWNLOAD_PATH_PREFIX,
1025
1027
  mcpServerSchema,
1026
1028
  mcpServerVersionSchema,
1027
1029
  mcpServerDocsPageToolSchema,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  userSchema
4
- } from "./chunk-E57QCEAV.js";
4
+ } from "./chunk-YTTDYTVB.js";
5
5
 
6
6
  // src/domains/team/helpers.ts
7
7
  var getUserTeams = async (client, email) => {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  registryUrl
4
- } from "./chunk-GPQXLA43.js";
4
+ } from "./chunk-LEECPQZN.js";
5
5
 
6
6
  // src/domains/registry/helpers/fetch.ts
7
7
  async function fetchFromRegistry(path, accessToken) {
@@ -10,7 +10,7 @@ var DownloadIsolateCommand = () => {
10
10
  const cmd = new Command("download-isolate");
11
11
  cmd.description("Download the docs preview server");
12
12
  cmd.action(async () => {
13
- const { downloadIsolate } = await import("./action-INB2R2NQ.js");
13
+ const { downloadIsolate } = await import("./action-M5OUEDV2.js");
14
14
  await downloadIsolate();
15
15
  });
16
16
  return cmd;
@@ -5,10 +5,10 @@ import {
5
5
  import {
6
6
  ISOLATE_DIR,
7
7
  ISOLATE_EXTRACTION_DIR
8
- } from "./chunk-D5YZ3FXG.js";
8
+ } from "./chunk-CUHVXHIV.js";
9
9
  import {
10
10
  config
11
- } from "./chunk-LLZDQXYS.js";
11
+ } from "./chunk-FYMDIB7J.js";
12
12
  import {
13
13
  output
14
14
  } from "./chunk-T5HJUAWB.js";
@@ -4,7 +4,7 @@ import {
4
4
  mcpChannelModes,
5
5
  mcpEnvironmentPolicies,
6
6
  mcpServerChannelSchema
7
- } from "./chunk-U764PQUA.js";
7
+ } from "./chunk-AOZQPCWI.js";
8
8
  import {
9
9
  environmentSlugSchema
10
10
  } from "./chunk-Q26DFKTY.js";
@@ -180,6 +180,15 @@ var mcpChannelConfigSchema = external_exports.looseObject({
180
180
  }).optional(),
181
181
  "x-scalar-expose": external_exports.unknown().optional()
182
182
  }).refine((config) => mcpChannelConfigBytes(config) <= MCP_CHANNEL_CONFIG_MAX_BYTES, { message: MCP_CHANNEL_CONFIG_TOO_LARGE });
183
+ var mcpCustomizationSchema = external_exports.object({
184
+ /** Uid of one of the team's themes or of a Scalar theme preset. */
185
+ theme: external_exports.string().min(1).max(100).nullish(),
186
+ /**
187
+ * The header logo, as the image upload returns it. A URL and never
188
+ * markup: the page also renders on the MCP host every team shares.
189
+ */
190
+ logo: external_exports.url({ protocol: /^https?$/ }).max(2048).nullish()
191
+ }).meta({ id: "mcp-customization" });
183
192
  var mcpEnvironmentSchema = external_exports.object({
184
193
  /** Per API channel, keyed by the agent document uid: the channel's Config in this environment. */
185
194
  channels: external_exports.record(external_exports.string(), mcpChannelConfigSchema).optional(),
@@ -195,7 +204,9 @@ var mcpEnvironmentSchema = external_exports.object({
195
204
  piiRedaction: external_exports.boolean().optional(),
196
205
  credentialRedaction: external_exports.boolean().optional(),
197
206
  /** Whether the environment's build pointer advances on its own. */
198
- policy: external_exports.enum(mcpEnvironmentPolicies).optional()
207
+ policy: external_exports.enum(mcpEnvironmentPolicies).optional(),
208
+ /** The page a browser gets at the environment's address. */
209
+ customization: mcpCustomizationSchema.optional()
199
210
  });
200
211
  var mcpServerRecordSchema = baseRegistrySchema.extend({
201
212
  /** Own uid, branded so it cannot be confused with another entity's uid */