@scalar/workspace-store 0.21.0 → 0.22.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 (154) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/client.d.ts +14 -2
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +8 -6
  5. package/dist/client.js.map +2 -2
  6. package/dist/events/bus.d.ts +1 -1
  7. package/dist/events/bus.d.ts.map +1 -1
  8. package/dist/events/bus.js.map +1 -1
  9. package/dist/events/definitions/auth.d.ts +2 -1
  10. package/dist/events/definitions/auth.d.ts.map +1 -1
  11. package/dist/events/definitions/document.d.ts +11 -0
  12. package/dist/events/definitions/document.d.ts.map +1 -1
  13. package/dist/events/definitions/index.d.ts +3 -1
  14. package/dist/events/definitions/index.d.ts.map +1 -1
  15. package/dist/events/definitions/operation.d.ts +20 -1
  16. package/dist/events/definitions/operation.d.ts.map +1 -1
  17. package/dist/events/definitions/tabs.d.ts +16 -1
  18. package/dist/events/definitions/tabs.d.ts.map +1 -1
  19. package/dist/events/definitions/tag.d.ts +15 -0
  20. package/dist/events/definitions/tag.d.ts.map +1 -0
  21. package/dist/events/definitions/tag.js +1 -0
  22. package/dist/events/definitions/tag.js.map +7 -0
  23. package/dist/events/definitions/ui.d.ts +118 -61
  24. package/dist/events/definitions/ui.d.ts.map +1 -1
  25. package/dist/events/index.d.ts +1 -1
  26. package/dist/events/index.d.ts.map +1 -1
  27. package/dist/events/index.js.map +2 -2
  28. package/dist/mutators/auth.d.ts +6 -1
  29. package/dist/mutators/auth.d.ts.map +1 -1
  30. package/dist/mutators/document.d.ts +3 -0
  31. package/dist/mutators/document.d.ts.map +1 -1
  32. package/dist/mutators/document.js +24 -0
  33. package/dist/mutators/document.js.map +2 -2
  34. package/dist/mutators/index.d.ts +28 -8
  35. package/dist/mutators/index.d.ts.map +1 -1
  36. package/dist/mutators/index.js +24 -1
  37. package/dist/mutators/index.js.map +2 -2
  38. package/dist/mutators/operation.d.ts +27 -8
  39. package/dist/mutators/operation.d.ts.map +1 -1
  40. package/dist/mutators/operation.js +75 -7
  41. package/dist/mutators/operation.js.map +2 -2
  42. package/dist/mutators/request.d.ts +2 -1
  43. package/dist/mutators/request.d.ts.map +1 -1
  44. package/dist/mutators/request.js.map +1 -1
  45. package/dist/mutators/server.d.ts.map +1 -1
  46. package/dist/mutators/server.js +1 -1
  47. package/dist/mutators/server.js.map +2 -2
  48. package/dist/mutators/tabs.d.ts +44 -0
  49. package/dist/mutators/tabs.d.ts.map +1 -0
  50. package/dist/mutators/tabs.js +133 -0
  51. package/dist/mutators/tabs.js.map +7 -0
  52. package/dist/mutators/tag.d.ts +12 -0
  53. package/dist/mutators/tag.d.ts.map +1 -0
  54. package/dist/mutators/tag.js +19 -0
  55. package/dist/mutators/tag.js.map +7 -0
  56. package/dist/navigation/helpers/get-openapi-object.d.ts +35 -0
  57. package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -0
  58. package/dist/navigation/helpers/get-openapi-object.js +31 -0
  59. package/dist/navigation/helpers/get-openapi-object.js.map +7 -0
  60. package/dist/navigation/helpers/get-operation-entries.d.ts +24 -0
  61. package/dist/navigation/helpers/get-operation-entries.d.ts.map +1 -0
  62. package/dist/navigation/helpers/get-operation-entries.js +33 -0
  63. package/dist/navigation/helpers/get-operation-entries.js.map +7 -0
  64. package/dist/navigation/helpers/get-parent-entry.d.ts +15 -0
  65. package/dist/navigation/helpers/get-parent-entry.d.ts.map +1 -0
  66. package/dist/navigation/helpers/get-parent-entry.js +13 -0
  67. package/dist/navigation/helpers/get-parent-entry.js.map +7 -0
  68. package/dist/navigation/helpers/traverse-description.d.ts +0 -1
  69. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  70. package/dist/navigation/helpers/traverse-description.js +0 -1
  71. package/dist/navigation/helpers/traverse-description.js.map +2 -2
  72. package/dist/navigation/helpers/traverse-document.js +1 -1
  73. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  74. package/dist/navigation/helpers/traverse-paths.js +1 -1
  75. package/dist/navigation/helpers/traverse-paths.js.map +1 -1
  76. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  77. package/dist/navigation/helpers/traverse-tags.js +2 -2
  78. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  79. package/dist/navigation/helpers/utils.d.ts +2 -1
  80. package/dist/navigation/helpers/utils.d.ts.map +1 -1
  81. package/dist/navigation/helpers/utils.js.map +1 -1
  82. package/dist/navigation/index.d.ts +2 -1
  83. package/dist/navigation/index.d.ts.map +1 -1
  84. package/dist/navigation/index.js +5 -3
  85. package/dist/navigation/index.js.map +2 -2
  86. package/dist/schemas/extensions/operation/index.d.ts +4 -1
  87. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  88. package/dist/schemas/extensions/operation/index.js +22 -0
  89. package/dist/schemas/extensions/operation/index.js.map +3 -3
  90. package/dist/schemas/extensions/operation/x-code-samples.d.ts +0 -5
  91. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  92. package/dist/schemas/extensions/operation/x-code-samples.js +0 -1
  93. package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
  94. package/dist/schemas/extensions/operation/x-post-response.d.ts +0 -18
  95. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
  96. package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
  97. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +2 -13
  98. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
  99. package/dist/schemas/extensions/tag/x-tag-groups.js +0 -1
  100. package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
  101. package/dist/schemas/extensions/workspace/index.d.ts +4 -0
  102. package/dist/schemas/extensions/workspace/index.d.ts.map +1 -0
  103. package/dist/schemas/extensions/workspace/index.js +15 -0
  104. package/dist/schemas/extensions/workspace/index.js.map +7 -0
  105. package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts +36 -0
  106. package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts.map +1 -0
  107. package/dist/schemas/extensions/workspace/x-scalar-tabs.js +16 -0
  108. package/dist/schemas/extensions/workspace/x-scalar-tabs.js.map +7 -0
  109. package/dist/schemas/inmemory-workspace.d.ts +5 -6
  110. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  111. package/dist/schemas/navigation.d.ts +8 -0
  112. package/dist/schemas/navigation.d.ts.map +1 -1
  113. package/dist/schemas/navigation.js.map +1 -1
  114. package/dist/schemas/reference-config/index.d.ts +2 -3
  115. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  116. package/dist/schemas/reference-config/settings.d.ts +2 -3
  117. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  118. package/dist/schemas/v3.1/strict/header.d.ts +0 -45
  119. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  120. package/dist/schemas/v3.1/strict/header.js +1 -3
  121. package/dist/schemas/v3.1/strict/header.js.map +2 -2
  122. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +0 -99
  123. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  124. package/dist/schemas/v3.1/strict/oauth-flow.js +0 -7
  125. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  126. package/dist/schemas/v3.1/strict/openapi-document.d.ts +71 -104
  127. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  128. package/dist/schemas/v3.1/strict/openapi-document.js +0 -1
  129. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  130. package/dist/schemas/v3.1/strict/parameter.d.ts +1 -101
  131. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  132. package/dist/schemas/v3.1/strict/parameter.js +1 -4
  133. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  134. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +0 -1
  135. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  136. package/dist/schemas/v3.1/strict/ref-definitions.js +0 -2
  137. package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
  138. package/dist/schemas/v3.1/strict/schema.d.ts +28 -11
  139. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  140. package/dist/schemas/v3.1/strict/schema.js +2 -2
  141. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  142. package/dist/schemas/v3.1/strict/security-scheme.d.ts +1 -54
  143. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  144. package/dist/schemas/v3.1/strict/security-scheme.js +0 -5
  145. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  146. package/dist/schemas/workspace-specification/config.d.ts +2 -3
  147. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  148. package/dist/schemas/workspace-specification/index.d.ts +2 -3
  149. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  150. package/dist/schemas/workspace.d.ts +35 -22
  151. package/dist/schemas/workspace.d.ts.map +1 -1
  152. package/dist/schemas/workspace.js +11 -6
  153. package/dist/schemas/workspace.js.map +2 -2
  154. package/package.json +50 -36
@@ -234,6 +234,14 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
234
234
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
235
235
  }>]>]>;
236
236
  export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels;
237
+ /**
238
+ * Type helper for when we are storing the parent entry in the entry itself.
239
+ * The parent is recursively defined to also include its own parent, except for
240
+ * TraversedDocument which can be a terminal parent without requiring its own parent.
241
+ */
242
+ export type WithParent<Entry extends TraversedEntry> = Entry & {
243
+ parent: WithParent<TraversedEntry> | TraversedDocument;
244
+ };
237
245
  export type DocumentIdProps = {
238
246
  name: string;
239
247
  info: InfoObject;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":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ACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
@@ -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 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"],
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\n/**\n * Type helper for when we are storing the parent entry in the entry itself.\n * The parent is recursively defined to also include its own parent, except for\n * TraversedDocument which can be a terminal parent without requiring its own parent.\n */\nexport type WithParent<Entry extends TraversedEntry> = Entry & {\n parent: WithParent<TraversedEntry> | TraversedDocument\n}\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
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;AAA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;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC5C,CAAC;AACH;AAaO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,KAAK;AAAA,IACxB,MAAM,KAAK,OAAO;AAAA,IAClB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,IACxC,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,SAAS,KAAK,QAAQ;AAAA,IACtB,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACxC,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC;AAAA,EACjE,CAAC;AACH;AAiBO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,QAAQ;AAAA,IAC3B,MAAM,KAAK,OAAO;AAAA,IAClB,UAAU,KAAK,SAAS,KAAK,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;",
6
6
  "names": []
7
7
  }
@@ -491,9 +491,9 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
491
491
  format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
492
492
  multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
493
493
  maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
494
- exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
494
+ exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
495
495
  minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
496
- exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
496
+ exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
497
497
  }>, import("@scalar/typebox").TObject<{
498
498
  name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
499
499
  title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1262,7 +1262,6 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1262
1262
  'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1263
1263
  'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1264
1264
  'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1265
- 'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1266
1265
  "x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
1267
1266
  }>, import("@scalar/typebox").TObject<{
1268
1267
  'x-tagGroups': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -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,OAA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;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"}
@@ -477,9 +477,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
477
477
  format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
478
478
  multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
479
479
  maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
480
- exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
480
+ exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
481
481
  minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
482
- exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
482
+ exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
483
483
  }>, import("@scalar/typebox").TObject<{
484
484
  name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
485
485
  title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -1248,7 +1248,6 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1248
1248
  'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1249
1249
  'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1250
1250
  'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1251
- 'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1252
1251
  "x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
1253
1252
  }>, import("@scalar/typebox").TObject<{
1254
1253
  'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -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,14 +2,6 @@ import type { ExampleObject } from './example.js';
2
2
  import type { MediaTypeObject } from './media-type.js';
3
3
  import { type ReferenceType } from './reference.js';
4
4
  import type { SchemaObject } from './schema.js';
5
- export declare const HeaderObjectSchemaBase: import("@scalar/typebox").TObject<{
6
- /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
7
- description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8
- /** Determines whether this header is mandatory. The default value is false. */
9
- required: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
10
- /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
11
- deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
12
- }>;
13
5
  /** Common properties in both sides of the union */
14
6
  type HeaderBase = {
15
7
  /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
@@ -19,43 +11,6 @@ type HeaderBase = {
19
11
  /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
20
12
  deprecated?: boolean;
21
13
  };
22
- export declare const HeaderObjectWithSchemaSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
23
- /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
24
- description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
25
- /** Determines whether this header is mandatory. The default value is false. */
26
- required: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
27
- /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
28
- deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
29
- }>, import("@scalar/typebox").TObject<{
30
- /** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
31
- style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
32
- /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */
33
- explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
34
- /** The schema defining the type used for the header. */
35
- schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
36
- $ref: import("@scalar/typebox").TString;
37
- summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
38
- description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
39
- }>, import("@scalar/typebox").TObject<{
40
- $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
41
- $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
42
- }>]>, import("@scalar/typebox").TObject<{
43
- '$ref-value': import("@scalar/typebox").TRef<"SchemaObject">;
44
- }>]>]>>;
45
- /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
46
- example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
47
- /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
48
- examples: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ExampleObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
49
- $ref: import("@scalar/typebox").TString;
50
- summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
51
- description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
52
- }>, import("@scalar/typebox").TObject<{
53
- $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
54
- $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
55
- }>]>, import("@scalar/typebox").TObject<{
56
- '$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
57
- }>]>]>>>;
58
- }>]>;
59
14
  /** Header object that uses schema */
60
15
  type HeaderWithSchemaObject = HeaderBase & {
61
16
  /** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/header.ts"],"names":[],"mappings":"AAIA,OAAO,KA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A;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B;IAzDvC,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;IAiB7G,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;IA7BrI,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;;MA6D/G,CAAA;AAEF,sCAAsC;AACtC,KAAK,iBAAiB,GAAG,UAAU,GAAG;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAC1C,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG,iBAAiB,CAAA"}
@@ -35,8 +35,6 @@ const HeaderObjectSchemaDefinition = Type.Union([
35
35
  )
36
36
  ]);
37
37
  export {
38
- HeaderObjectSchemaBase,
39
- HeaderObjectSchemaDefinition,
40
- HeaderObjectWithSchemaSchema
38
+ HeaderObjectSchemaDefinition
41
39
  };
42
40
  //# sourceMappingURL=header.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/header.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nimport type { ExampleObject } from './example'\nimport type { MediaTypeObject } from './media-type'\nimport { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { SchemaObject } from './schema'\n\nexport const HeaderObjectSchemaBase = Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n})\n\n/** Common properties in both sides of the union */\ntype HeaderBase = {\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Determines whether this header is mandatory. The default value is false. */\n required?: boolean\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated?: boolean\n}\n\nexport const HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Optional(Type.Any()),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n }),\n)\n\n/** Header object that uses schema */\ntype HeaderWithSchemaObject = HeaderBase & {\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style?: string\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode?: boolean\n /** The schema defining the type used for the header. */\n schema?: ReferenceType<SchemaObject>\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example?: any\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples?: Record<string, ReferenceType<ExampleObject>>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport const HeaderObjectSchemaDefinition = Type.Union([\n HeaderObjectWithSchemaSchema,\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectRef)),\n }),\n ),\n])\n\n/** Header object that uses content */\ntype HeaderWithContent = HeaderBase & {\n content?: Record<string, MediaTypeObject>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport type HeaderObject = HeaderWithSchemaObject | HeaderWithContent\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AAIxB,SAAS,kBAAkB,oBAAoB,uBAAuB;AACtE,SAA6B,iBAAiB;AAGvC,MAAM,yBAAyB,KAAK,OAAO;AAAA;AAAA,EAEhD,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC1C,CAAC;AAYM,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,IAE/E,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA,EACjH,CAAC;AACH;AAyBO,MAAM,+BAA+B,KAAK,MAAM;AAAA,EACrD;AAAA,EACA;AAAA,IACE;AAAA,IACA,KAAK,OAAO;AAAA,MACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA,IACvE,CAAC;AAAA,EACH;AACF,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nimport type { ExampleObject } from './example'\nimport type { MediaTypeObject } from './media-type'\nimport { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { SchemaObject } from './schema'\n\nconst HeaderObjectSchemaBase = Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n})\n\n/** Common properties in both sides of the union */\ntype HeaderBase = {\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Determines whether this header is mandatory. The default value is false. */\n required?: boolean\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated?: boolean\n}\n\nconst HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Optional(Type.Any()),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n }),\n)\n\n/** Header object that uses schema */\ntype HeaderWithSchemaObject = HeaderBase & {\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style?: string\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode?: boolean\n /** The schema defining the type used for the header. */\n schema?: ReferenceType<SchemaObject>\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example?: any\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples?: Record<string, ReferenceType<ExampleObject>>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport const HeaderObjectSchemaDefinition = Type.Union([\n HeaderObjectWithSchemaSchema,\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectRef)),\n }),\n ),\n])\n\n/** Header object that uses content */\ntype HeaderWithContent = HeaderBase & {\n content?: Record<string, MediaTypeObject>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport type HeaderObject = HeaderWithSchemaObject | HeaderWithContent\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AAIxB,SAAS,kBAAkB,oBAAoB,uBAAuB;AACtE,SAA6B,iBAAiB;AAG9C,MAAM,yBAAyB,KAAK,OAAO;AAAA;AAAA,EAEzC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC1C,CAAC;AAYD,MAAM,+BAA+B;AAAA,EACnC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,IAE/E,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA,EACjH,CAAC;AACH;AAyBO,MAAM,+BAA+B,KAAK,MAAM;AAAA,EACrD;AAAA,EACA;AAAA,IACE;AAAA,IACA,KAAK,OAAO;AAAA,MACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA,IACvE,CAAC;AAAA,EACH;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -138,105 +138,6 @@ export type OAuthFlowAuthorizationCode = OAuthFlowCommon & {
138
138
  /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
139
139
  tokenUrl: string;
140
140
  } & XScalarSecretClientSecret & XScalarSecretRedirectUri & XusePkce;
141
- /** Union of all OAuth flow schemas */
142
- export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
143
- /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
144
- refreshUrl: import("@scalar/typebox").TString;
145
- /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
146
- scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
147
- }>, import("@scalar/typebox").TObject<{
148
- 'x-scalar-secret-client-id': import("@scalar/typebox").TString;
149
- }>, import("@scalar/typebox").TObject<{
150
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
151
- }>, import("@scalar/typebox").TObject<{
152
- 'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
153
- }>, import("@scalar/typebox").TObject<{
154
- 'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
155
- }>, import("@scalar/typebox").TObject<{
156
- 'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
157
- }>, import("@scalar/typebox").TObject<{
158
- 'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
159
- }>]>, import("@scalar/typebox").TObject<{
160
- /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
161
- authorizationUrl: import("@scalar/typebox").TString;
162
- }>, import("@scalar/typebox").TObject<{
163
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
164
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
165
- /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
166
- refreshUrl: import("@scalar/typebox").TString;
167
- /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
168
- scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
169
- }>, import("@scalar/typebox").TObject<{
170
- 'x-scalar-secret-client-id': import("@scalar/typebox").TString;
171
- }>, import("@scalar/typebox").TObject<{
172
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
173
- }>, import("@scalar/typebox").TObject<{
174
- 'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
175
- }>, import("@scalar/typebox").TObject<{
176
- 'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
177
- }>, import("@scalar/typebox").TObject<{
178
- 'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
179
- }>, import("@scalar/typebox").TObject<{
180
- 'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
181
- }>]>, import("@scalar/typebox").TObject<{
182
- /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
183
- tokenUrl: import("@scalar/typebox").TString;
184
- }>, import("@scalar/typebox").TObject<{
185
- 'x-scalar-secret-username': import("@scalar/typebox").TString;
186
- 'x-scalar-secret-password': import("@scalar/typebox").TString;
187
- }>, import("@scalar/typebox").TObject<{
188
- 'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
189
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
190
- /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
191
- refreshUrl: import("@scalar/typebox").TString;
192
- /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
193
- scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
194
- }>, import("@scalar/typebox").TObject<{
195
- 'x-scalar-secret-client-id': import("@scalar/typebox").TString;
196
- }>, import("@scalar/typebox").TObject<{
197
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
198
- }>, import("@scalar/typebox").TObject<{
199
- 'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
200
- }>, import("@scalar/typebox").TObject<{
201
- 'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
202
- }>, import("@scalar/typebox").TObject<{
203
- 'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
204
- }>, import("@scalar/typebox").TObject<{
205
- 'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
206
- }>]>, import("@scalar/typebox").TObject<{
207
- /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
208
- tokenUrl: import("@scalar/typebox").TString;
209
- }>, import("@scalar/typebox").TObject<{
210
- 'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
211
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
212
- /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
213
- refreshUrl: import("@scalar/typebox").TString;
214
- /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
215
- scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
216
- }>, import("@scalar/typebox").TObject<{
217
- 'x-scalar-secret-client-id': import("@scalar/typebox").TString;
218
- }>, import("@scalar/typebox").TObject<{
219
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
220
- }>, import("@scalar/typebox").TObject<{
221
- 'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
222
- }>, import("@scalar/typebox").TObject<{
223
- 'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
224
- }>, import("@scalar/typebox").TObject<{
225
- 'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
226
- }>, import("@scalar/typebox").TObject<{
227
- 'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
228
- }>]>, import("@scalar/typebox").TObject<{
229
- /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
230
- authorizationUrl: import("@scalar/typebox").TString;
231
- /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
232
- tokenUrl: import("@scalar/typebox").TString;
233
- }>, import("@scalar/typebox").TObject<{
234
- 'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
235
- }>, import("@scalar/typebox").TObject<{
236
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
237
- }>, import("@scalar/typebox").TObject<{
238
- 'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
239
- }>]>]>;
240
141
  export type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode;
241
142
  export {};
242
143
  //# sourceMappingURL=oauth-flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,6DAA6D,CAAA;AACpE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,uDAAuD,CAAA;AAC9D,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,wBAAwB,EAE7B,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,2CAA2C,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,0CAA0C,CAAA;AAkBxF,oDAAoD;AACpD,KAAK,eAAe,GAAG;IACrB,uIAAuI;IACvI,UAAU,EAAE,MAAM,CAAA;IAClB,wJAAwJ;IACxJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B,GAAG,q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GAAG,iBAAiB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,CAAA"}
@@ -69,17 +69,10 @@ const OAuthFlowAuthorizationCodeSchema = compose(
69
69
  XScalarSecretRedirectUriSchema,
70
70
  XusePkceSchema
71
71
  );
72
- const OAuthFlowObjectSchemaDefinition = Type.Union([
73
- OAuthFlowImplicitSchema,
74
- OAuthFlowPasswordSchema,
75
- OAuthFlowClientCredentialsSchema,
76
- OAuthFlowAuthorizationCodeSchema
77
- ]);
78
72
  export {
79
73
  OAuthFlowAuthorizationCodeSchema,
80
74
  OAuthFlowClientCredentialsSchema,
81
75
  OAuthFlowImplicitSchema,
82
- OAuthFlowObjectSchemaDefinition,
83
76
  OAuthFlowPasswordSchema
84
77
  };
85
78
  //# sourceMappingURL=oauth-flow.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarCredentialsLocation,\n XScalarCredentialsLocationSchema,\n} from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport {\n type XScalarSecurityBody,\n XScalarSecurityBodySchema,\n} from '@/schemas/extensions/security/x-scalar-security-body'\nimport {\n type XScalarSecurityQuery,\n XScalarSecurityQuerySchema,\n} from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n type XScalarSecretClientId,\n XScalarSecretClientIdSchema,\n type XScalarSecretClientSecret,\n XScalarSecretClientSecretSchema,\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretRedirectUri,\n XScalarSecretRedirectUriSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { type XTokenName, XTokenNameSchema } from '@/schemas/extensions/security/x-tokenName'\nimport { type XusePkce, XusePkceSchema } from '@/schemas/extensions/security/x-use-pkce'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = compose(\n Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.String(),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n }),\n XScalarSecretClientIdSchema,\n XScalarSecretTokenSchema,\n XScalarSecurityQuerySchema,\n XScalarSecurityBodySchema,\n XTokenNameSchema,\n XScalarCredentialsLocationSchema,\n)\n\n/** Common properties used across all OAuth flows */\ntype OAuthFlowCommon = {\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: string\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Record<string, string>\n} & XScalarSecretClientId &\n XScalarSecretToken &\n XScalarSecurityQuery &\n XScalarSecurityBody &\n XTokenName &\n XScalarCredentialsLocation\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n XScalarSecretRedirectUriSchema,\n)\n\n/** Configuration for the OAuth Implicit flow */\nexport type OAuthFlowImplicit = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n} & XScalarSecretRedirectUri\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretHTTPSchema,\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport type OAuthFlowPassword = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretHTTP &\n XScalarSecretClientSecret\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport type OAuthFlowClientCredentials = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretClientSecret\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n XScalarSecretRedirectUriSchema,\n XusePkceSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport type OAuthFlowAuthorizationCode = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretClientSecret &\n XScalarSecretRedirectUri &\n XusePkce\n\n/** Union of all OAuth flow schemas */\nexport const OAuthFlowObjectSchemaDefinition = Type.Union([\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n])\n\nexport type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AACP,SAA0B,wBAAwB;AAClD,SAAwB,sBAAsB;AAG9C,MAAM,wBAAwB;AAAA,EAC5B,KAAK,OAAO;AAAA;AAAA,IAEV,YAAY,KAAK,OAAO;AAAA;AAAA,IAExB,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAAA,EAClD,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAgBO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AASO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACF;AAaO,MAAM,kCAAkC,KAAK,MAAM;AAAA,EACxD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarCredentialsLocation,\n XScalarCredentialsLocationSchema,\n} from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport {\n type XScalarSecurityBody,\n XScalarSecurityBodySchema,\n} from '@/schemas/extensions/security/x-scalar-security-body'\nimport {\n type XScalarSecurityQuery,\n XScalarSecurityQuerySchema,\n} from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n type XScalarSecretClientId,\n XScalarSecretClientIdSchema,\n type XScalarSecretClientSecret,\n XScalarSecretClientSecretSchema,\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretRedirectUri,\n XScalarSecretRedirectUriSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { type XTokenName, XTokenNameSchema } from '@/schemas/extensions/security/x-tokenName'\nimport { type XusePkce, XusePkceSchema } from '@/schemas/extensions/security/x-use-pkce'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = compose(\n Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.String(),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n }),\n XScalarSecretClientIdSchema,\n XScalarSecretTokenSchema,\n XScalarSecurityQuerySchema,\n XScalarSecurityBodySchema,\n XTokenNameSchema,\n XScalarCredentialsLocationSchema,\n)\n\n/** Common properties used across all OAuth flows */\ntype OAuthFlowCommon = {\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: string\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Record<string, string>\n} & XScalarSecretClientId &\n XScalarSecretToken &\n XScalarSecurityQuery &\n XScalarSecurityBody &\n XTokenName &\n XScalarCredentialsLocation\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n XScalarSecretRedirectUriSchema,\n)\n\n/** Configuration for the OAuth Implicit flow */\nexport type OAuthFlowImplicit = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n} & XScalarSecretRedirectUri\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretHTTPSchema,\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport type OAuthFlowPassword = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretHTTP &\n XScalarSecretClientSecret\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport type OAuthFlowClientCredentials = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretClientSecret\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n XScalarSecretRedirectUriSchema,\n XusePkceSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport type OAuthFlowAuthorizationCode = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarSecretClientSecret &\n XScalarSecretRedirectUri &\n XusePkce\n\nexport type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AACP,SAA0B,wBAAwB;AAClD,SAAwB,sBAAsB;AAG9C,MAAM,wBAAwB;AAAA,EAC5B,KAAK,OAAO;AAAA;AAAA,IAEV,YAAY,KAAK,OAAO;AAAA;AAAA,IAExB,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAAA,EAClD,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAgBO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AASO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACF;",
6
6
  "names": []
7
7
  }