@scalar/workspace-store 0.28.0 → 0.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/client.d.ts +10 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +40 -1
  5. package/dist/client.js.map +2 -2
  6. package/dist/entities/auth/index.d.ts +75 -0
  7. package/dist/entities/auth/index.d.ts.map +1 -0
  8. package/dist/entities/auth/index.js +89 -0
  9. package/dist/entities/auth/index.js.map +7 -0
  10. package/dist/entities/auth/schema.d.ts +7318 -0
  11. package/dist/entities/auth/schema.d.ts.map +1 -0
  12. package/dist/entities/auth/schema.js +74 -0
  13. package/dist/entities/auth/schema.js.map +7 -0
  14. package/dist/entities/history/index.d.ts +93 -0
  15. package/dist/entities/history/index.d.ts.map +1 -0
  16. package/dist/entities/history/index.js +62 -0
  17. package/dist/entities/history/index.js.map +7 -0
  18. package/dist/entities/history/schema.d.ts +234 -0
  19. package/dist/entities/history/schema.d.ts.map +1 -0
  20. package/dist/{schemas/extensions/operation/x-scalar-history.js → entities/history/schema.js} +5 -6
  21. package/dist/{schemas/extensions/operation/x-scalar-history.js.map → entities/history/schema.js.map} +3 -3
  22. package/dist/events/definitions/auth.d.ts +14 -0
  23. package/dist/events/definitions/auth.d.ts.map +1 -1
  24. package/dist/mutators/auth.d.ts +10 -17
  25. package/dist/mutators/auth.d.ts.map +1 -1
  26. package/dist/mutators/auth.js +87 -57
  27. package/dist/mutators/auth.js.map +2 -2
  28. package/dist/mutators/index.d.ts +4 -12
  29. package/dist/mutators/index.d.ts.map +1 -1
  30. package/dist/mutators/index.js +1 -1
  31. package/dist/mutators/index.js.map +2 -2
  32. package/dist/mutators/operation.d.ts +2 -2
  33. package/dist/mutators/operation.d.ts.map +1 -1
  34. package/dist/mutators/operation.js +9 -16
  35. package/dist/mutators/operation.js.map +2 -2
  36. package/dist/persistence/index.d.ts +36 -7
  37. package/dist/persistence/index.d.ts.map +1 -1
  38. package/dist/persistence/index.js +90 -23
  39. package/dist/persistence/index.js.map +2 -2
  40. package/dist/persistence/indexdb.d.ts +7 -6
  41. package/dist/persistence/indexdb.d.ts.map +1 -1
  42. package/dist/persistence/indexdb.js +8 -4
  43. package/dist/persistence/indexdb.js.map +2 -2
  44. package/dist/plugins/client/persistence.d.ts.map +1 -1
  45. package/dist/plugins/client/persistence.js +12 -0
  46. package/dist/plugins/client/persistence.js.map +2 -2
  47. package/dist/schemas/extensions/security/index.d.ts +2 -0
  48. package/dist/schemas/extensions/security/index.d.ts.map +1 -0
  49. package/dist/schemas/extensions/security/index.js +1 -0
  50. package/dist/schemas/extensions/security/index.js.map +7 -0
  51. package/dist/schemas/inmemory-workspace.d.ts +2917 -114
  52. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  53. package/dist/schemas/inmemory-workspace.js +5 -1
  54. package/dist/schemas/inmemory-workspace.js.map +2 -2
  55. package/dist/schemas/reference-config/index.d.ts +0 -114
  56. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  57. package/dist/schemas/reference-config/settings.d.ts +0 -114
  58. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  59. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +5 -35
  60. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  61. package/dist/schemas/v3.1/strict/oauth-flow.js +1 -16
  62. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  63. package/dist/schemas/v3.1/strict/oauthflows.d.ts +0 -29
  64. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  65. package/dist/schemas/v3.1/strict/openapi-document.d.ts +37 -5536
  66. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  67. package/dist/schemas/v3.1/strict/openapi-document.js +2 -10
  68. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  69. package/dist/schemas/v3.1/strict/operation.d.ts +1 -70
  70. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  71. package/dist/schemas/v3.1/strict/operation.js +1 -7
  72. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  73. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +0 -1
  74. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  75. package/dist/schemas/v3.1/strict/ref-definitions.js +1 -3
  76. package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
  77. package/dist/schemas/v3.1/strict/security-scheme.d.ts +3 -11
  78. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  79. package/dist/schemas/v3.1/strict/security-scheme.js +0 -7
  80. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  81. package/dist/schemas/workspace.d.ts +0 -798
  82. package/dist/schemas/workspace.d.ts.map +1 -1
  83. package/dist/workspace-plugin.d.ts +8 -0
  84. package/dist/workspace-plugin.d.ts.map +1 -1
  85. package/package.json +22 -7
  86. package/dist/schemas/extensions/operation/x-scalar-history.d.ts +0 -217
  87. package/dist/schemas/extensions/operation/x-scalar-history.d.ts.map +0 -1
  88. package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts +0 -17
  89. package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts.map +0 -1
  90. package/dist/schemas/extensions/security/x-scalar-selected-security.js +0 -14
  91. package/dist/schemas/extensions/security/x-scalar-selected-security.js.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/operation.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { type XBadges, XBadgesSchema } from '@/schemas/extensions/operation/x-badge'\nimport { type XCodeSamples, XCodeSamplesSchema } from '@/schemas/extensions/operation/x-code-samples'\nimport {\n type XScalarDisableParameters,\n XScalarDisableParametersSchema,\n} from '@/schemas/extensions/operation/x-scalar-disable-parameters'\nimport { type XScalarHistory, XScalarHistorySchema } from '@/schemas/extensions/operation/x-scalar-history'\nimport { type XScalarStability, XScalarStabilitySchema } from '@/schemas/extensions/operation/x-scalar-stability'\nimport {\n type XScalarSelectedSecurity,\n XScalarSelectedSecuritySchemaDefinition,\n} from '@/schemas/extensions/security/x-scalar-selected-security'\n\nimport type { CallbackObject } from './callback'\nimport type { ExternalDocumentationObject } from './external-documentation'\nimport type { ParameterObject } from './parameter'\nimport {\n CallbackObjectRef,\n ExternalDocumentationObjectRef,\n ParameterObjectRef,\n RequestBodyObjectRef,\n ResponsesObjectRef,\n SecurityRequirementObjectRef,\n ServerObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { RequestBodyObject } from './request-body'\nimport type { ResponsesObject } from './responses'\nimport type { SecurityRequirementObject } from './security-requirement'\nimport type { ServerObject } from './server'\n\nexport const OperationObjectSchemaDefinition = compose(\n Type.Object({\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags: Type.Optional(Type.Array(Type.String())),\n /** A short summary of what the operation does. */\n summary: Type.Optional(Type.String()),\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this operation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId: Type.Optional(Type.String()),\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectRef, reference(ParameterObjectRef)]))),\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody: Type.Optional(Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectRef),\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectRef)),\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectRef)),\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),\n }),\n XScalarSelectedSecuritySchemaDefinition,\n XBadgesSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n XCodeSamplesSchema,\n XScalarStabilitySchema,\n XScalarDisableParametersSchema,\n XScalarHistorySchema,\n)\n\nexport type OperationObject = {\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags?: string[]\n /** A short summary of what the operation does. */\n summary?: string\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Additional external documentation for this operation. */\n externalDocs?: ExternalDocumentationObject\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId?: string\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters?: ReferenceType<ParameterObject>[]\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody?: ReferenceType<RequestBodyObject>\n /** The list of possible responses as they are returned from executing this operation. */\n responses?: ResponsesObject\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated?: boolean\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security?: SecurityRequirementObject[]\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers?: ServerObject[]\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks?: Record<string, ReferenceType<CallbackObject>>\n} & XBadges &\n XInternal &\n XScalarIgnore &\n XCodeSamples &\n XScalarStability &\n XScalarSelectedSecurity &\n XScalarDisableParameters &\n XScalarHistory\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAuB,qBAAqB;AAC5C,SAA4B,0BAA0B;AACtD;AA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{ Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { type XBadges, XBadgesSchema } from '@/schemas/extensions/operation/x-badge'\nimport { type XCodeSamples, XCodeSamplesSchema } from '@/schemas/extensions/operation/x-code-samples'\nimport {\n type XScalarDisableParameters,\n XScalarDisableParametersSchema,\n} from '@/schemas/extensions/operation/x-scalar-disable-parameters'\nimport { type XScalarStability, XScalarStabilitySchema } from '@/schemas/extensions/operation/x-scalar-stability'\n\nimport type { CallbackObject } from './callback'\nimport type { ExternalDocumentationObject } from './external-documentation'\nimport type { ParameterObject } from './parameter'\nimport {\n CallbackObjectRef,\n ExternalDocumentationObjectRef,\n ParameterObjectRef,\n RequestBodyObjectRef,\n ResponsesObjectRef,\n SecurityRequirementObjectRef,\n ServerObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { RequestBodyObject } from './request-body'\nimport type { ResponsesObject } from './responses'\nimport type { SecurityRequirementObject } from './security-requirement'\nimport type { ServerObject } from './server'\n\nexport const OperationObjectSchemaDefinition = compose(\n Type.Object({\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags: Type.Optional(Type.Array(Type.String())),\n /** A short summary of what the operation does. */\n summary: Type.Optional(Type.String()),\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this operation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId: Type.Optional(Type.String()),\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectRef, reference(ParameterObjectRef)]))),\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody: Type.Optional(Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectRef),\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectRef)),\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectRef)),\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),\n }),\n XBadgesSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n XCodeSamplesSchema,\n XScalarStabilitySchema,\n XScalarDisableParametersSchema,\n)\n\nexport type OperationObject = {\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags?: string[]\n /** A short summary of what the operation does. */\n summary?: string\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Additional external documentation for this operation. */\n externalDocs?: ExternalDocumentationObject\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId?: string\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters?: ReferenceType<ParameterObject>[]\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody?: ReferenceType<RequestBodyObject>\n /** The list of possible responses as they are returned from executing this operation. */\n responses?: ResponsesObject\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated?: boolean\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security?: SecurityRequirementObject[]\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers?: ServerObject[]\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks?: Record<string, ReferenceType<CallbackObject>>\n} & XBadges &\n XInternal &\n XScalarIgnore &\n XCodeSamples &\n XScalarStability &\n XScalarDisableParameters\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAuB,qBAAqB;AAC5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
  readonly TraversedTagObject: "TraversedTagObject";
41
41
  readonly TraversedEntryObject: "TraversedEntryObject";
42
42
  readonly TraversedDocumentObject: "TraversedDocumentObject";
43
- readonly XScalarSelectedSecurity: "XScalarSelectedSecurity";
44
43
  };
45
44
  export declare const ComponentsObjectRef: import("@scalar/typebox").TRef<"ComponentsObject">;
46
45
  export declare const SecurityRequirementObjectRef: import("@scalar/typebox").TRef<"SecurityRequirementObject">;
@@ -1 +1 @@
1
- {"version":3,"file":"ref-definitions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClB,CAAA;AAGV,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,4BAA4B,6DAAsD,CAAA;AAC/F,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,cAAc,+CAAwC,CAAA;AACnE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,8BAA8B,+DAAwD,CAAA;AACnG,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,kBAAkB,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O,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,oBAAoB,qDAA8C,CAAA;AAC/E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AACrF,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,sBAAsB,uDAAgD,CAAA;AACnF,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AAGrF,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AAErF,eAAO,MAAM,0BAA0B,2DAAoD,CAAA"}
@@ -35,9 +35,7 @@ const REF_DEFINITIONS = {
35
35
  TraversedWebhookObject: "TraversedWebhookObject",
36
36
  TraversedTagObject: "TraversedTagObject",
37
37
  TraversedEntryObject: "TraversedEntryObject",
38
- TraversedDocumentObject: "TraversedDocumentObject",
39
- // Extensions
40
- XScalarSelectedSecurity: "XScalarSelectedSecurity"
38
+ TraversedDocumentObject: "TraversedDocumentObject"
41
39
  };
42
40
  const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject);
43
41
  const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Reference definitions for OpenAPI 3.1 objects.\n * These can be used with Type.Ref to create references to these objects in other schemas.\n *\n * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.\n */\nexport const REF_DEFINITIONS = {\n ComponentsObject: 'ComponentsObject',\n SecurityRequirementObject: 'SecurityRequirementObject',\n TagObject: 'TagObject',\n CallbackObject: 'CallbackObject',\n PathsObject: 'PathsObject',\n PathItemObject: 'PathItemObject',\n OperationObject: 'OperationObject',\n SchemaObject: 'SchemaObject',\n EncodingObject: 'EncodingObject',\n HeaderObject: 'HeaderObject',\n MediaTypeObject: 'MediaTypeObject',\n ServerObject: 'ServerObject',\n ExternalDocumentationObject: 'ExternalDocumentationObject',\n InfoObject: 'InfoObject',\n ContactObject: 'ContactObject',\n LicenseObject: 'LicenseObject',\n ResponseObject: 'ResponseObject',\n ResponsesObject: 'ResponsesObject',\n ParameterObject: 'ParameterObject',\n ExampleObject: 'ExampleObject',\n RequestBodyObject: 'RequestBodyObject',\n SecuritySchemeObject: 'SecuritySchemeObject',\n SecuritySchemes: 'SecuritySchemes',\n LinkObject: 'LinkObject',\n XMLObject: 'XMLObject',\n DiscriminatorObject: 'DiscriminatorObject',\n OAuthFlowsObject: 'OAuthFlowsObject',\n ServerVariableObject: 'ServerVariableObject',\n\n // Navigation schemas\n TraversedDescriptionObject: 'TraversedDescriptionObject',\n TraversedOperationObject: 'TraversedOperationObject',\n TraversedSchemaObject: 'TraversedSchemaObject',\n TraversedWebhookObject: 'TraversedWebhookObject',\n TraversedTagObject: 'TraversedTagObject',\n TraversedEntryObject: 'TraversedEntryObject',\n TraversedDocumentObject: 'TraversedDocumentObject',\n\n // Extensions\n XScalarSelectedSecurity: 'XScalarSelectedSecurity',\n} as const\n\n// Type alias for schema definitions\nexport const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject)\nexport const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject)\nexport const TagObjectRef = Type.Ref(REF_DEFINITIONS.TagObject)\nexport const CallbackObjectRef = Type.Ref(REF_DEFINITIONS.CallbackObject)\nexport const PathItemObjectRef = Type.Ref(REF_DEFINITIONS.PathItemObject)\nexport const PathsObjectRef = Type.Ref(REF_DEFINITIONS.PathsObject)\nexport const OperationObjectRef = Type.Ref(REF_DEFINITIONS.OperationObject)\nexport const SchemaObjectRef = Type.Ref(REF_DEFINITIONS.SchemaObject)\nexport const EncodingObjectRef = Type.Ref(REF_DEFINITIONS.EncodingObject)\nexport const HeaderObjectRef = Type.Ref(REF_DEFINITIONS.HeaderObject)\nexport const MediaTypeObjectRef = Type.Ref(REF_DEFINITIONS.MediaTypeObject)\nexport const ServerObjectRef = Type.Ref(REF_DEFINITIONS.ServerObject)\nexport const ExternalDocumentationObjectRef = Type.Ref(REF_DEFINITIONS.ExternalDocumentationObject)\nexport const InfoObjectRef = Type.Ref(REF_DEFINITIONS.InfoObject)\nexport const ContactObjectRef = Type.Ref(REF_DEFINITIONS.ContactObject)\nexport const LicenseObjectRef = Type.Ref(REF_DEFINITIONS.LicenseObject)\nexport const ResponseObjectRef = Type.Ref(REF_DEFINITIONS.ResponseObject)\nexport const ResponsesObjectRef = Type.Ref(REF_DEFINITIONS.ResponsesObject)\nexport const ParameterObjectRef = Type.Ref(REF_DEFINITIONS.ParameterObject)\nexport const ExampleObjectRef = Type.Ref(REF_DEFINITIONS.ExampleObject)\nexport const RequestBodyObjectRef = Type.Ref(REF_DEFINITIONS.RequestBodyObject)\nexport const SecuritySchemeObjectRef = Type.Ref(REF_DEFINITIONS.SecuritySchemeObject)\nexport const LinkObjectRef = Type.Ref(REF_DEFINITIONS.LinkObject)\nexport const XMLObjectRef = Type.Ref(REF_DEFINITIONS.XMLObject)\nexport const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject)\nexport const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject)\nexport const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject)\n\n// Navigation schema references\nexport const TraversedEntryObjectRef = Type.Ref(REF_DEFINITIONS.TraversedEntryObject)\n// export const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\nexport const TraversedDocumentObjectRef =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BAAgB,cAAc;AACjE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,iCAAiC,KAAK,IAAI,gBAAgB,2BAA2B;AAC3F,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,uBAAuB,KAAK,IAAI,gBAAgB,iBAAiB;AACvE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAC7E,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,yBAAyB,KAAK,IAAI,gBAAgB,mBAAmB;AAC3E,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAG7E,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAE7E,MAAM,6BAA6B,KAAK,IAAI,gBAAgB,uBAAuB;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Reference definitions for OpenAPI 3.1 objects.\n * These can be used with Type.Ref to create references to these objects in other schemas.\n *\n * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.\n */\nexport const REF_DEFINITIONS = {\n ComponentsObject: 'ComponentsObject',\n SecurityRequirementObject: 'SecurityRequirementObject',\n TagObject: 'TagObject',\n CallbackObject: 'CallbackObject',\n PathsObject: 'PathsObject',\n PathItemObject: 'PathItemObject',\n OperationObject: 'OperationObject',\n SchemaObject: 'SchemaObject',\n EncodingObject: 'EncodingObject',\n HeaderObject: 'HeaderObject',\n MediaTypeObject: 'MediaTypeObject',\n ServerObject: 'ServerObject',\n ExternalDocumentationObject: 'ExternalDocumentationObject',\n InfoObject: 'InfoObject',\n ContactObject: 'ContactObject',\n LicenseObject: 'LicenseObject',\n ResponseObject: 'ResponseObject',\n ResponsesObject: 'ResponsesObject',\n ParameterObject: 'ParameterObject',\n ExampleObject: 'ExampleObject',\n RequestBodyObject: 'RequestBodyObject',\n SecuritySchemeObject: 'SecuritySchemeObject',\n SecuritySchemes: 'SecuritySchemes',\n LinkObject: 'LinkObject',\n XMLObject: 'XMLObject',\n DiscriminatorObject: 'DiscriminatorObject',\n OAuthFlowsObject: 'OAuthFlowsObject',\n ServerVariableObject: 'ServerVariableObject',\n\n // Navigation schemas\n TraversedDescriptionObject: 'TraversedDescriptionObject',\n TraversedOperationObject: 'TraversedOperationObject',\n TraversedSchemaObject: 'TraversedSchemaObject',\n TraversedWebhookObject: 'TraversedWebhookObject',\n TraversedTagObject: 'TraversedTagObject',\n TraversedEntryObject: 'TraversedEntryObject',\n TraversedDocumentObject: 'TraversedDocumentObject',\n} as const\n\n// Type alias for schema definitions\nexport const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject)\nexport const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject)\nexport const TagObjectRef = Type.Ref(REF_DEFINITIONS.TagObject)\nexport const CallbackObjectRef = Type.Ref(REF_DEFINITIONS.CallbackObject)\nexport const PathItemObjectRef = Type.Ref(REF_DEFINITIONS.PathItemObject)\nexport const PathsObjectRef = Type.Ref(REF_DEFINITIONS.PathsObject)\nexport const OperationObjectRef = Type.Ref(REF_DEFINITIONS.OperationObject)\nexport const SchemaObjectRef = Type.Ref(REF_DEFINITIONS.SchemaObject)\nexport const EncodingObjectRef = Type.Ref(REF_DEFINITIONS.EncodingObject)\nexport const HeaderObjectRef = Type.Ref(REF_DEFINITIONS.HeaderObject)\nexport const MediaTypeObjectRef = Type.Ref(REF_DEFINITIONS.MediaTypeObject)\nexport const ServerObjectRef = Type.Ref(REF_DEFINITIONS.ServerObject)\nexport const ExternalDocumentationObjectRef = Type.Ref(REF_DEFINITIONS.ExternalDocumentationObject)\nexport const InfoObjectRef = Type.Ref(REF_DEFINITIONS.InfoObject)\nexport const ContactObjectRef = Type.Ref(REF_DEFINITIONS.ContactObject)\nexport const LicenseObjectRef = Type.Ref(REF_DEFINITIONS.LicenseObject)\nexport const ResponseObjectRef = Type.Ref(REF_DEFINITIONS.ResponseObject)\nexport const ResponsesObjectRef = Type.Ref(REF_DEFINITIONS.ResponsesObject)\nexport const ParameterObjectRef = Type.Ref(REF_DEFINITIONS.ParameterObject)\nexport const ExampleObjectRef = Type.Ref(REF_DEFINITIONS.ExampleObject)\nexport const RequestBodyObjectRef = Type.Ref(REF_DEFINITIONS.RequestBodyObject)\nexport const SecuritySchemeObjectRef = Type.Ref(REF_DEFINITIONS.SecuritySchemeObject)\nexport const LinkObjectRef = Type.Ref(REF_DEFINITIONS.LinkObject)\nexport const XMLObjectRef = Type.Ref(REF_DEFINITIONS.XMLObject)\nexport const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject)\nexport const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject)\nexport const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject)\n\n// Navigation schema references\nexport const TraversedEntryObjectRef = Type.Ref(REF_DEFINITIONS.TraversedEntryObject)\n// export const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\nexport const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.TraversedDocumentObject)\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAQd,MAAM,kBAAkB;AA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BAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,iCAAiC,KAAK,IAAI,gBAAgB,2BAA2B;AAC3F,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,uBAAuB,KAAK,IAAI,gBAAgB,iBAAiB;AACvE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAC7E,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,yBAAyB,KAAK,IAAI,gBAAgB,mBAAmB;AAC3E,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAG7E,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAE7E,MAAM,6BAA6B,KAAK,IAAI,gBAAgB,uBAAuB;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,4 @@
1
1
  import { type XDefaultScopes } from '../../../schemas/extensions/security/x-default-scopes.js';
2
- import { type XScalarSecretHTTP, type XScalarSecretToken } from '../../../schemas/extensions/security/x-scalar-security-secrets.js';
3
2
  import type { OAuthFlowsObject } from '../../../schemas/v3.1/strict/oauthflows.js';
4
3
  type Description = {
5
4
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
@@ -12,7 +11,7 @@ export type ApiKeyObject = Description & {
12
11
  name: string;
13
12
  /** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
14
13
  in: 'query' | 'header' | 'cookie';
15
- } & XScalarSecretToken;
14
+ };
16
15
  export type HttpObject = Description & {
17
16
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
18
17
  type: 'http';
@@ -20,14 +19,14 @@ export type HttpObject = Description & {
20
19
  scheme: 'basic' | 'bearer';
21
20
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
22
21
  bearerFormat?: string;
23
- } & XScalarSecretHTTP & XScalarSecretToken;
22
+ };
24
23
  export type OAuth2Object = Description & {
25
24
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
26
25
  type: 'oauth2';
27
26
  /** REQUIRED. An object containing configuration information for the flow types supported. */
28
27
  flows: OAuthFlowsObject;
29
28
  } & XDefaultScopes;
30
- type OpenIdConnectObject = Description & {
29
+ export type OpenIdConnectObject = Description & {
31
30
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
32
31
  type: 'openIdConnect';
33
32
  /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
@@ -41,8 +40,6 @@ type OpenIdConnectObject = Description & {
41
40
  export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
42
41
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
43
42
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
44
- }>, import("@scalar/typebox").TObject<{
45
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
46
43
  }>, import("@scalar/typebox").TObject<{
47
44
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
48
45
  type: import("@scalar/typebox").TLiteral<"apiKey">;
@@ -53,11 +50,6 @@ export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typeb
53
50
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
54
51
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
55
52
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
56
- }>, import("@scalar/typebox").TObject<{
57
- 'x-scalar-secret-token': import("@scalar/typebox").TString;
58
- }>, import("@scalar/typebox").TObject<{
59
- 'x-scalar-secret-username': import("@scalar/typebox").TString;
60
- 'x-scalar-secret-password': import("@scalar/typebox").TString;
61
53
  }>, import("@scalar/typebox").TObject<{
62
54
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
63
55
  type: import("@scalar/typebox").TLiteral<"http">;
@@ -1 +1 @@
1
- {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAQxE,KAAK,WAAW,GAAG;IACjB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAeD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,8FAA8F;IAC9F,EAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAClC,GAAG,kBAAkB,CAAA;AAgBtB,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,4HAA4H;IAC5H,IAAI,EAAE,MAAM,CAAA;IACZ,gQAAgQ;IAChQ,MAAM,EAAE,O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E,IAAI,EAAE,MAAM,CAAA;IACZ,8FAA8F;IAC9F,EAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAClC,CAAA;AAcD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,4HAA4H;IAC5H,IAAI,EAAE,MAAM,CAAA;IACZ,gQAAgQ;IAChQ,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,uMAAuM;IACvM,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAaD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,cAAc,CAAA;AAYlB,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,4HAA4H;IAC5H,IAAI,EAAE,eAAe,CAAA;IACrB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;IA3F/C,qGAAqG;;;IAYnG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IAhBhG,qGAAqG;;;IAiCnG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IArCzM,qGAAqG;;;IAsDnG,4HAA4H;;IAE5H,6FAA6F;;;;;IAxD/F,qGAAqG;;;IAwEnG,4HAA4H;;IAE5H,+FAA+F;;MAiBc,CAAA;AAEjH,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,GAAG,mBAAmB,CAAA"}
@@ -1,10 +1,6 @@
1
1
  import { Type } from "@scalar/typebox";
2
2
  import { compose } from "../../../schemas/compose.js";
3
3
  import { XDefaultScopesSchema } from "../../../schemas/extensions/security/x-default-scopes.js";
4
- import {
5
- XScalarSecretHTTPSchema,
6
- XScalarSecretTokenSchema
7
- } from "../../../schemas/extensions/security/x-scalar-security-secrets.js";
8
4
  import { OAuthFlowsObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
9
5
  const DescriptionSchema = Type.Object({
10
6
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
@@ -12,7 +8,6 @@ const DescriptionSchema = Type.Object({
12
8
  });
13
9
  const ApiKeySchema = compose(
14
10
  DescriptionSchema,
15
- XScalarSecretTokenSchema,
16
11
  Type.Object({
17
12
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
18
13
  type: Type.Literal("apiKey"),
@@ -24,8 +19,6 @@ const ApiKeySchema = compose(
24
19
  );
25
20
  const HttpSchema = compose(
26
21
  DescriptionSchema,
27
- XScalarSecretTokenSchema,
28
- XScalarSecretHTTPSchema,
29
22
  Type.Object({
30
23
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
31
24
  type: Type.Literal("http"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/security-scheme.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XDefaultScopes, XDefaultScopesSchema } from '@/schemas/extensions/security/x-default-scopes'\nimport {\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport type { OAuthFlowsObject } from '@/schemas/v3.1/strict/oauthflows'\nimport { OAuthFlowsObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nconst DescriptionSchema = Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n\ntype Description = {\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n}\n\nconst ApiKeySchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.Union([Type.Literal('query'), Type.Literal('header'), Type.Literal('cookie')]),\n }),\n)\n\nexport type ApiKeyObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'apiKey'\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: string\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: 'query' | 'header' | 'cookie'\n} & XScalarSecretToken\n\nconst HttpSchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n XScalarSecretHTTPSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.Union([Type.Literal('basic'), Type.Literal('bearer')]),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport type HttpObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'http'\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: 'basic' | 'bearer'\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat?: string\n} & XScalarSecretHTTP &\n XScalarSecretToken\n\nconst OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectRef,\n }),\n XDefaultScopesSchema,\n)\n\nexport type OAuth2Object = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'oauth2'\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObject\n} & XDefaultScopes\n\nconst OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\ntype OpenIdConnectObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'openIdConnect'\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: string\n}\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeyS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AACH;AAcO,MAAM,uCAAuC,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XDefaultScopes, XDefaultScopesSchema } from '@/schemas/extensions/security/x-default-scopes'\nimport type { OAuthFlowsObject } from '@/schemas/v3.1/strict/oauthflows'\nimport { OAuthFlowsObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nconst DescriptionSchema = Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n\ntype Description = {\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n}\n\nconst ApiKeySchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.Union([Type.Literal('query'), Type.Literal('header'), Type.Literal('cookie')]),\n }),\n)\n\nexport type ApiKeyObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'apiKey'\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: string\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: 'query' | 'header' | 'cookie'\n}\n\nconst HttpSchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.Union([Type.Literal('basic'), Type.Literal('bearer')]),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport type HttpObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'http'\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: 'basic' | 'bearer'\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat?: string\n}\n\nconst OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectRef,\n }),\n XDefaultScopesSchema,\n)\n\nexport type OAuth2Object = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'oauth2'\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObject\n} & XDefaultScopes\n\nconst OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\nexport type OpenIdConnectObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'openIdConnect'\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: string\n}\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n\nexport type SecuritySchemeObject = ApiKeyObject | HttpObject | OAuth2Object | OpenIdConnectObject\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAA8B,4BAA4B;AAE1D,SAAS,2BAA2B;AAEpC,MAAM,oBAAoB,KAAK,OAAO;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;AAOD,MAAM,eAAe;AAAA,EACnB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA,EACxF,CAAC;AACH;AAWA,MAAM,aAAa;AAAA,EACjB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,MAAM;AAAA;AAAA,IAEzB,QAAQ,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA;AAAA,IAElE,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,E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