@scalar/workspace-store 0.20.0 → 0.21.0

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 (174) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +2 -2
  3. package/dist/client.d.ts +40 -4
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +58 -23
  6. package/dist/client.js.map +2 -2
  7. package/dist/events/bus.d.ts +13 -1
  8. package/dist/events/bus.d.ts.map +1 -1
  9. package/dist/events/bus.js +46 -10
  10. package/dist/events/bus.js.map +3 -3
  11. package/dist/events/definitions/cookie.d.ts +20 -0
  12. package/dist/events/definitions/cookie.d.ts.map +1 -0
  13. package/dist/events/definitions/cookie.js +1 -0
  14. package/dist/events/definitions/cookie.js.map +7 -0
  15. package/dist/events/definitions/document.d.ts +8 -2
  16. package/dist/events/definitions/document.d.ts.map +1 -1
  17. package/dist/events/definitions/index.d.ts +4 -1
  18. package/dist/events/definitions/index.d.ts.map +1 -1
  19. package/dist/events/definitions/operation.d.ts +0 -13
  20. package/dist/events/definitions/operation.d.ts.map +1 -1
  21. package/dist/events/definitions/server.d.ts +2 -2
  22. package/dist/events/definitions/server.d.ts.map +1 -1
  23. package/dist/events/definitions/tabs.d.ts +40 -0
  24. package/dist/events/definitions/tabs.d.ts.map +1 -0
  25. package/dist/events/definitions/tabs.js +1 -0
  26. package/dist/events/definitions/tabs.js.map +7 -0
  27. package/dist/events/definitions/ui.d.ts +39 -4
  28. package/dist/events/definitions/ui.d.ts.map +1 -1
  29. package/dist/events/definitions/workspace.d.ts +18 -0
  30. package/dist/events/definitions/workspace.d.ts.map +1 -0
  31. package/dist/events/definitions/workspace.js +1 -0
  32. package/dist/events/definitions/workspace.js.map +7 -0
  33. package/dist/helpers/generate-unique-value.d.ts +19 -6
  34. package/dist/helpers/generate-unique-value.d.ts.map +1 -1
  35. package/dist/helpers/generate-unique-value.js +12 -7
  36. package/dist/helpers/generate-unique-value.js.map +2 -2
  37. package/dist/helpers/unpack-proxy.d.ts +14 -1
  38. package/dist/helpers/unpack-proxy.d.ts.map +1 -1
  39. package/dist/helpers/unpack-proxy.js +51 -1
  40. package/dist/helpers/unpack-proxy.js.map +3 -3
  41. package/dist/mutators/auth.d.ts +1 -1
  42. package/dist/mutators/auth.d.ts.map +1 -1
  43. package/dist/mutators/auth.js +24 -21
  44. package/dist/mutators/auth.js.map +2 -2
  45. package/dist/mutators/cookie.d.ts +21 -13
  46. package/dist/mutators/cookie.d.ts.map +1 -1
  47. package/dist/mutators/cookie.js +34 -26
  48. package/dist/mutators/cookie.js.map +3 -3
  49. package/dist/mutators/document.d.ts +9 -2
  50. package/dist/mutators/document.d.ts.map +1 -1
  51. package/dist/mutators/document.js +18 -3
  52. package/dist/mutators/document.js.map +2 -2
  53. package/dist/mutators/index.d.ts +4 -14
  54. package/dist/mutators/index.d.ts.map +1 -1
  55. package/dist/mutators/index.js +15 -9
  56. package/dist/mutators/index.js.map +2 -2
  57. package/dist/mutators/operation.d.ts +23 -101
  58. package/dist/mutators/operation.d.ts.map +1 -1
  59. package/dist/mutators/operation.js +132 -96
  60. package/dist/mutators/operation.js.map +2 -2
  61. package/dist/mutators/server.d.ts +1 -1
  62. package/dist/mutators/server.d.ts.map +1 -1
  63. package/dist/mutators/server.js +6 -5
  64. package/dist/mutators/server.js.map +2 -2
  65. package/dist/mutators/workspace.d.ts +6 -0
  66. package/dist/mutators/workspace.d.ts.map +1 -0
  67. package/dist/mutators/workspace.js +24 -0
  68. package/dist/mutators/workspace.js.map +7 -0
  69. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  70. package/dist/navigation/get-navigation-options.js +4 -4
  71. package/dist/navigation/get-navigation-options.js.map +2 -2
  72. package/dist/navigation/helpers/traverse-document.d.ts +1 -0
  73. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  74. package/dist/navigation/helpers/traverse-document.js +16 -2
  75. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  76. package/dist/navigation/helpers/traverse-examples.js +2 -2
  77. package/dist/navigation/helpers/traverse-examples.js.map +2 -2
  78. package/dist/navigation/helpers/traverse-paths.d.ts +6 -3
  79. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  80. package/dist/navigation/helpers/traverse-paths.js +4 -9
  81. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  82. package/dist/navigation/helpers/traverse-tags.d.ts +0 -1
  83. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  84. package/dist/navigation/helpers/traverse-tags.js +57 -49
  85. package/dist/navigation/helpers/traverse-tags.js.map +3 -3
  86. package/dist/persistence/index.d.ts +6 -0
  87. package/dist/persistence/index.d.ts.map +1 -1
  88. package/dist/persistence/index.js +18 -0
  89. package/dist/persistence/index.js.map +2 -2
  90. package/dist/persistence/indexdb.d.ts +1 -0
  91. package/dist/persistence/indexdb.d.ts.map +1 -1
  92. package/dist/persistence/indexdb.js +6 -1
  93. package/dist/persistence/indexdb.js.map +2 -2
  94. package/dist/plugins/client/persistence.d.ts.map +1 -1
  95. package/dist/plugins/client/persistence.js +6 -0
  96. package/dist/plugins/client/persistence.js.map +2 -2
  97. package/dist/schemas/extensions/document/x-scalar-environments.d.ts +1 -0
  98. package/dist/schemas/extensions/document/x-scalar-environments.d.ts.map +1 -1
  99. package/dist/schemas/extensions/document/x-scalar-environments.js.map +2 -2
  100. package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts +13 -0
  101. package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts.map +1 -0
  102. package/dist/schemas/extensions/document/x-scalar-set-operation-security.js +8 -0
  103. package/dist/schemas/extensions/document/x-scalar-set-operation-security.js.map +7 -0
  104. package/dist/schemas/extensions/general/x-scalar-cookies.d.ts +36 -0
  105. package/dist/schemas/extensions/general/x-scalar-cookies.d.ts.map +1 -0
  106. package/dist/schemas/extensions/general/x-scalar-cookies.js +15 -0
  107. package/dist/schemas/extensions/general/x-scalar-cookies.js.map +7 -0
  108. package/dist/schemas/extensions/general/x-scalar-order.d.ts +12 -0
  109. package/dist/schemas/extensions/general/x-scalar-order.d.ts.map +1 -0
  110. package/dist/schemas/extensions/general/x-scalar-order.js +8 -0
  111. package/dist/schemas/extensions/general/x-scalar-order.js.map +7 -0
  112. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +10 -5
  113. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
  114. package/dist/schemas/extensions/tag/x-tag-groups.js +15 -10
  115. package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
  116. package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts +18 -0
  117. package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts.map +1 -0
  118. package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js +8 -0
  119. package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js.map +7 -0
  120. package/dist/schemas/extensions.d.ts +1 -1
  121. package/dist/schemas/extensions.js +1 -1
  122. package/dist/schemas/extensions.js.map +2 -2
  123. package/dist/schemas/inmemory-workspace.d.ts +41 -27
  124. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  125. package/dist/schemas/navigation.d.ts +4 -1
  126. package/dist/schemas/navigation.d.ts.map +1 -1
  127. package/dist/schemas/navigation.js +2 -1
  128. package/dist/schemas/navigation.js.map +2 -2
  129. package/dist/schemas/reference-config/index.d.ts +20 -13
  130. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  131. package/dist/schemas/reference-config/settings.d.ts +20 -13
  132. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  133. package/dist/schemas/reference-config/settings.js +2 -0
  134. package/dist/schemas/reference-config/settings.js.map +2 -2
  135. package/dist/schemas/v3.1/strict/openapi-document.d.ts +685 -448
  136. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  137. package/dist/schemas/v3.1/strict/openapi-document.js +10 -10
  138. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  139. package/dist/schemas/v3.1/strict/operation.d.ts +1 -5
  140. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  141. package/dist/schemas/v3.1/strict/operation.js +1 -5
  142. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  143. package/dist/schemas/v3.1/strict/tag.d.ts +4 -1
  144. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
  145. package/dist/schemas/v3.1/strict/tag.js +3 -1
  146. package/dist/schemas/v3.1/strict/tag.js.map +2 -2
  147. package/dist/schemas/v3.1/strict/type-guards.d.ts +6 -0
  148. package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
  149. package/dist/schemas/v3.1/strict/type-guards.js +4 -0
  150. package/dist/schemas/v3.1/strict/type-guards.js.map +2 -2
  151. package/dist/schemas/workspace-specification/config.d.ts +20 -13
  152. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  153. package/dist/schemas/workspace-specification/index.d.ts +21 -14
  154. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  155. package/dist/schemas/workspace.d.ts +170 -109
  156. package/dist/schemas/workspace.d.ts.map +1 -1
  157. package/dist/schemas/workspace.js +8 -6
  158. package/dist/schemas/workspace.js.map +2 -2
  159. package/dist/server.d.ts +1 -1
  160. package/dist/workspace-plugin.d.ts +3 -0
  161. package/dist/workspace-plugin.d.ts.map +1 -1
  162. package/package.json +8 -7
  163. package/dist/schemas/extensions/document/x-scalar-document-security.d.ts +0 -13
  164. package/dist/schemas/extensions/document/x-scalar-document-security.d.ts.map +0 -1
  165. package/dist/schemas/extensions/document/x-scalar-document-security.js +0 -8
  166. package/dist/schemas/extensions/document/x-scalar-document-security.js.map +0 -7
  167. package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts +0 -13
  168. package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts.map +0 -1
  169. package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js +0 -9
  170. package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js.map +0 -7
  171. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +0 -32
  172. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +0 -1
  173. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +0 -13
  174. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/schemas/navigation.ts"],
4
- "sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport type { InfoObject } from '@/schemas/v3.1/strict/info'\nimport type { OperationObject } from '@/schemas/v3.1/strict/operation'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SchemaObject } from '@/schemas/v3.1/strict/schema'\nimport type { TagObject } from '@/schemas/v3.1/strict/tag'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n /**\n * The unique identifier for the entry\n *\n * Must be unique across the entire navigation structure.\n */\n id: string\n /** The user readable title of the entry */\n title: string\n}\n\nexport const TraversedDocumentSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('document'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing an OpenAPI in the navigation structure.\n *\n * Used in the client to represent the root document and its operations or tags.\n */\nexport type TraversedDocument = BaseSchema & {\n type: 'document'\n /** Document name */\n name: string\n /** Child entries under the document */\n children?: TraversedEntry[]\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing a markdown description in the navigation structure.\n */\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing an operation example in the navigation structure.\n */\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * An entry representing an operation in the navigation structure.\n */\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing a model in the navigation structure.\n */\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\n/**\n * An entry representing a webhook in the navigation structure.\n */\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\n/**\n * An entry representing a tag in the navigation structure.\n *\n * Used to group operations or webhooks under a common heading.\n */\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedModelsSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('models'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * Top level models navigation entry.\n */\nexport type TraversedModels = BaseSchema & {\n type: 'models'\n name: string\n children?: TraversedEntry[]\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n TraversedDocumentSchemaDefinition,\n TraversedModelsSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n | TraversedDocument\n | TraversedModels\n\nexport type DocumentIdProps = {\n name: string\n info: InfoObject\n type: 'document'\n}\n\ntype DescriptionIdProps = {\n info: InfoObject\n type: 'text'\n slug?: string\n depth?: number\n value: string\n parentId: string\n}\n\nexport type ParentTag = {\n tag: TagObject\n id: string\n}\n\ntype TagProps = {\n parentId: string\n tag: TagObject\n type: 'tag'\n}\n\ntype OperationProps = {\n parentId: string\n operation: OperationObject\n path: string\n method: string\n type: 'operation'\n parentTag: ParentTag\n}\n\ntype WebhookProps = {\n parentId: string\n webhook?: OperationObject\n name: string\n method?: string\n type: 'webhook'\n parentTag?: ParentTag\n}\n\ntype ModelProps = {\n parentId: string\n schema?: SchemaObject\n name?: string\n type: 'model'\n parentTag?: ParentTag\n}\n\ntype ExampleProps = {\n parentId: string\n name: string\n type: 'example'\n}\n\nexport type IdGeneratorProps =\n | DocumentIdProps\n | DescriptionIdProps\n | TagProps\n | OperationProps\n | WebhookProps\n | ModelProps\n | ExampleProps\n\nexport type IdGenerator = (props: IdGeneratorProps) => string\n"],
5
- "mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AAGxB,SAAS,+BAA+B;AAIjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAaM,MAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,UAAU;AAAA,IAC7B,MAAM,KAAK,OAAO;AAAA,IAClB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAeO,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,SAAS;AAAA,IAC5B,MAAM,KAAK,OAAO;AAAA,EACpB,CAAC;AACH;AAUO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC9B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,MAAM,aAAa,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,C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AAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAUO,MAAM,iCAAiC,KAAK,MAAM;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
4
+ "sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport type { InfoObject } from '@/schemas/v3.1/strict/info'\nimport type { OperationObject } from '@/schemas/v3.1/strict/operation'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SchemaObject } from '@/schemas/v3.1/strict/schema'\nimport type { TagObject } from '@/schemas/v3.1/strict/tag'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n /**\n * The unique identifier for the entry\n *\n * Must be unique across the entire navigation structure.\n */\n id: string\n /** The user readable title of the entry */\n title: string\n}\n\nexport const TraversedDocumentSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('document'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n icon: Type.Optional(Type.String()),\n }),\n)\n\n/**\n * An entry representing an OpenAPI in the navigation structure.\n *\n * Used in the client to represent the root document and its operations or tags.\n */\nexport type TraversedDocument = BaseSchema & {\n type: 'document'\n /** Document name */\n name: string\n /** Child entries under the document */\n children?: TraversedEntry[]\n icon?: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing a markdown description in the navigation structure.\n */\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing an operation example in the navigation structure.\n */\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * An entry representing an operation in the navigation structure.\n */\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing a model in the navigation structure.\n */\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\n/**\n * An entry representing a webhook in the navigation structure.\n */\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\n/**\n * An entry representing a tag in the navigation structure.\n *\n * Used to group operations or webhooks under a common heading.\n */\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedModelsSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('models'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * Top level models navigation entry.\n */\nexport type TraversedModels = BaseSchema & {\n type: 'models'\n name: string\n children?: TraversedEntry[]\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n TraversedDocumentSchemaDefinition,\n TraversedModelsSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n | TraversedDocument\n | TraversedModels\n\nexport type DocumentIdProps = {\n name: string\n info: InfoObject\n type: 'document'\n}\n\ntype DescriptionIdProps = {\n info: InfoObject\n type: 'text'\n slug?: string\n depth?: number\n value: string\n parentId: string\n}\n\nexport type ParentTag = {\n tag: TagObject\n id: string\n}\n\ntype TagProps = {\n parentId: string\n tag: TagObject\n type: 'tag'\n}\n\ntype OperationProps = {\n parentId: string\n operation: OperationObject\n path: string\n method: string\n type: 'operation'\n parentTag?: ParentTag\n}\n\ntype WebhookProps = {\n parentId: string\n webhook?: OperationObject\n name: string\n method?: string\n type: 'webhook'\n parentTag?: ParentTag\n}\n\ntype ModelProps = {\n parentId: string\n schema?: SchemaObject\n name?: string\n type: 'model'\n parentTag?: ParentTag\n}\n\ntype ExampleProps = {\n parentId: string\n name: string\n type: 'example'\n}\n\nexport type IdGeneratorProps =\n | DocumentIdProps\n | DescriptionIdProps\n | TagProps\n | OperationProps\n | WebhookProps\n | ModelProps\n | ExampleProps\n\nexport type IdGenerator = (props: IdGeneratorProps) => string\n"],
5
+ "mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AAGxB,SAAS,+BAA+B;AAIjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAaM,MAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,UAAU;AAAA,IAC7B,MAAM,KAAK,OAAO;AAAA,IAClB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACnC,CAAC;AACH;AAgBO,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,SAAS;AAAA,IAC5B,MAAM,KAAK,OAAO;AAAA,EACpB,CAAC;AACH;AAUO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC9B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,MAAM,aAAa,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC;AAAA,IACrE,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,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M,iCAAiC,KAAK,MAAM;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -122,6 +122,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
122
122
  'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
123
123
  }>, import("@scalar/typebox").TObject<{
124
124
  'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
125
+ }>, import("@scalar/typebox").TObject<{
126
+ 'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
125
127
  }>]>;
126
128
  CallbackObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
127
129
  $ref: import("@scalar/typebox").TString;
@@ -313,9 +315,6 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
313
315
  }>>>;
314
316
  }>, import("@scalar/typebox").TObject<{
315
317
  'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"deprecated">, TLiteral<"experimental">, TLiteral<"stable">]>>;
316
- }>, import("@scalar/typebox").TObject<{
317
- 'x-scalar-path': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
318
- 'x-scalar-method': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
319
318
  }>]>;
320
319
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
321
320
  __scalar_: import("@scalar/typebox").TString;
@@ -1261,22 +1260,17 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1261
1260
  externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
1262
1261
  }>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1263
1262
  'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1264
- 'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1265
- 'x-scalar-client-config-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1266
- name: import("@scalar/typebox").TString;
1267
- value: import("@scalar/typebox").TString;
1268
- domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1269
- path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1270
- }>>>;
1271
1263
  'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1272
1264
  'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1273
1265
  'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1274
1266
  "x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
1275
1267
  }>, import("@scalar/typebox").TObject<{
1276
- 'x-tagGroups': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
1268
+ 'x-tagGroups': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1277
1269
  name: import("@scalar/typebox").TString;
1278
1270
  tags: TArray<import("@scalar/typebox").TString>;
1279
- }>>>;
1271
+ }>, import("@scalar/typebox").TObject<{
1272
+ 'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
1273
+ }>]>>>;
1280
1274
  }>, import("@scalar/typebox").TObject<{
1281
1275
  'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1282
1276
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1297,7 +1291,18 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1297
1291
  }>, import("@scalar/typebox").TObject<{
1298
1292
  'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1299
1293
  }>, import("@scalar/typebox").TObject<{
1300
- 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1294
+ 'x-scalar-set-operation-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1295
+ }>, import("@scalar/typebox").TObject<{
1296
+ 'x-scalar-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1297
+ }>, import("@scalar/typebox").TObject<{
1298
+ 'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
1299
+ }>, import("@scalar/typebox").TObject<{
1300
+ 'x-scalar-cookies': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
1301
+ name: import("@scalar/typebox").TString;
1302
+ value: import("@scalar/typebox").TString;
1303
+ domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1304
+ isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1305
+ }>>>;
1301
1306
  }>, import("@scalar/typebox").TObject<{
1302
1307
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
1303
1308
  }>]>]>;
@@ -1405,6 +1410,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1405
1410
  type: TLiteral<"document">;
1406
1411
  name: import("@scalar/typebox").TString;
1407
1412
  children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1413
+ icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1408
1414
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1409
1415
  id: import("@scalar/typebox").TString;
1410
1416
  title: import("@scalar/typebox").TString;
@@ -1420,6 +1426,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1420
1426
  type: TLiteral<"document">;
1421
1427
  name: import("@scalar/typebox").TString;
1422
1428
  children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1429
+ icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1423
1430
  }>]>;
1424
1431
  }, "ServerObject">>>;
1425
1432
  baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cAAc,CAAA;AACnF,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,QAAQ,CAAA;AAC3D,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAA;CACnD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
@@ -108,6 +108,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
108
108
  'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
109
109
  }>, import("@scalar/typebox").TObject<{
110
110
  'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
111
+ }>, import("@scalar/typebox").TObject<{
112
+ 'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
111
113
  }>]>;
112
114
  CallbackObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
113
115
  $ref: import("@scalar/typebox").TString;
@@ -299,9 +301,6 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
299
301
  }>>>;
300
302
  }>, import("@scalar/typebox").TObject<{
301
303
  'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
302
- }>, import("@scalar/typebox").TObject<{
303
- 'x-scalar-path': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
304
- 'x-scalar-method': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
305
304
  }>]>;
306
305
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
307
306
  __scalar_: import("@scalar/typebox").TString;
@@ -1247,22 +1246,17 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1247
1246
  externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
1248
1247
  }>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1249
1248
  'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1250
- 'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1251
- 'x-scalar-client-config-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1252
- name: import("@scalar/typebox").TString;
1253
- value: import("@scalar/typebox").TString;
1254
- domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1255
- path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1256
- }>>>;
1257
1249
  'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1258
1250
  'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1259
1251
  'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1260
1252
  "x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
1261
1253
  }>, import("@scalar/typebox").TObject<{
1262
- 'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
1254
+ 'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1263
1255
  name: import("@scalar/typebox").TString;
1264
1256
  tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
1265
- }>>>;
1257
+ }>, import("@scalar/typebox").TObject<{
1258
+ 'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
1259
+ }>]>>>;
1266
1260
  }>, import("@scalar/typebox").TObject<{
1267
1261
  'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1268
1262
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1283,7 +1277,18 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1283
1277
  }>, import("@scalar/typebox").TObject<{
1284
1278
  'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1285
1279
  }>, import("@scalar/typebox").TObject<{
1286
- 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1280
+ 'x-scalar-set-operation-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1281
+ }>, import("@scalar/typebox").TObject<{
1282
+ 'x-scalar-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1283
+ }>, import("@scalar/typebox").TObject<{
1284
+ 'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
1285
+ }>, import("@scalar/typebox").TObject<{
1286
+ 'x-scalar-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
1287
+ name: import("@scalar/typebox").TString;
1288
+ value: import("@scalar/typebox").TString;
1289
+ domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1290
+ isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1291
+ }>>>;
1287
1292
  }>, import("@scalar/typebox").TObject<{
1288
1293
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
1289
1294
  }>]>]>;
@@ -1391,6 +1396,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1391
1396
  type: import("@scalar/typebox").TLiteral<"document">;
1392
1397
  name: import("@scalar/typebox").TString;
1393
1398
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1399
+ icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1394
1400
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1395
1401
  id: import("@scalar/typebox").TString;
1396
1402
  title: import("@scalar/typebox").TString;
@@ -1406,6 +1412,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1406
1412
  type: import("@scalar/typebox").TLiteral<"document">;
1407
1413
  name: import("@scalar/typebox").TString;
1408
1414
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1415
+ icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1409
1416
  }>]>;
1410
1417
  }, "ServerObject">>>;
1411
1418
  baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
@@ -2,7 +2,9 @@ import { Type } from "@scalar/typebox";
2
2
  import { ServerObjectSchema } from "../../schemas/v3.1/strict/openapi-document.js";
3
3
  const SettingsSchema = Type.Partial(
4
4
  Type.Object({
5
+ /** Custom proxy configuration */
5
6
  proxyUrl: Type.String(),
7
+ /** Hotkey used to open the search menu */
6
8
  searchKey: Type.String(),
7
9
  /** Array of server configurations */
8
10
  servers: Type.Array(ServerObjectSchema),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/schemas/reference-config/settings.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { RequiredDeep } from 'type-fest'\n\nimport { ServerObjectSchema } from '@/schemas/v3.1/strict/openapi-document'\nimport type { ServerObject } from '@/schemas/v3.1/strict/server'\n\nexport const SettingsSchema = Type.Partial(\n Type.Object({\n proxyUrl: Type.String(),\n searchKey: Type.String(),\n /** Array of server configurations */\n servers: Type.Array(ServerObjectSchema),\n /** Base server URL for API requests */\n baseServerUrl: Type.String(),\n }),\n)\n\nexport type Settings = {\n proxyUrl?: string\n searchKey?: string\n servers?: ServerObject[]\n baseServerUrl?: string\n}\n\nexport const defaultSettings: RequiredDeep<Settings> = {\n proxyUrl: '',\n searchKey: 'k',\n servers: [],\n baseServerUrl: '',\n}\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,0BAA0B;AAG5B,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,WAAW,KAAK,OAAO;AAAA;AAAA,IAEvB,SAAS,KAAK,MAAM,kBAAkB;AAAA;AAAA,IAEtC,eAAe,KAAK,OAAO;AAAA,EAC7B,CAAC;AACH;AASO,MAAM,kBAA0C;AAAA,EACrD,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS,CAAC;AAAA,EACV,eAAe;AACjB;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { RequiredDeep } from 'type-fest'\n\nimport { ServerObjectSchema } from '@/schemas/v3.1/strict/openapi-document'\nimport type { ServerObject } from '@/schemas/v3.1/strict/server'\n\nexport const SettingsSchema = Type.Partial(\n Type.Object({\n /** Custom proxy configuration */\n proxyUrl: Type.String(),\n /** Hotkey used to open the search menu */\n searchKey: Type.String(),\n /** Array of server configurations */\n servers: Type.Array(ServerObjectSchema),\n /** Base server URL for API requests */\n baseServerUrl: Type.String(),\n }),\n)\n\nexport type Settings = {\n proxyUrl?: string\n searchKey?: string\n servers?: ServerObject[]\n baseServerUrl?: string\n}\n\nexport const defaultSettings: RequiredDeep<Settings> = {\n proxyUrl: '',\n searchKey: 'k',\n servers: [],\n baseServerUrl: '',\n}\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,0BAA0B;AAG5B,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA;AAAA,IAEtB,WAAW,KAAK,OAAO;AAAA;AAAA,IAEvB,SAAS,KAAK,MAAM,kBAAkB;AAAA;AAAA,IAEtC,eAAe,KAAK,OAAO;AAAA,EAC7B,CAAC;AACH;AASO,MAAM,kBAA0C;AAAA,EACrD,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS,CAAC;AAAA,EACV,eAAe;AACjB;",
6
6
  "names": []
7
7
  }