@scalar/workspace-store 0.15.8 → 0.16.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 (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/schemas/extensions/operation/index.d.ts +2 -0
  3. package/dist/schemas/extensions/operation/index.d.ts.map +1 -0
  4. package/dist/schemas/extensions/operation/index.js +1 -0
  5. package/dist/schemas/extensions/operation/index.js.map +7 -0
  6. package/dist/schemas/extensions/operation/x-code-samples.d.ts +2 -0
  7. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  8. package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
  9. package/dist/schemas/extensions/security/x-default-scopes.d.ts +17 -0
  10. package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -0
  11. package/dist/schemas/extensions/security/x-default-scopes.js +8 -0
  12. package/dist/schemas/extensions/security/x-default-scopes.js.map +7 -0
  13. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +6 -1
  14. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -1
  15. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
  16. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +2 -2
  17. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +27 -3
  18. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
  19. package/dist/schemas/extensions/security/x-scalar-security-secrets.js +15 -3
  20. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
  21. package/dist/schemas/extensions/security/x-use-pkce.d.ts +1 -1
  22. package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
  23. package/dist/schemas/extensions/security/x-use-pkce.js +1 -3
  24. package/dist/schemas/extensions/security/x-use-pkce.js.map +2 -2
  25. package/dist/schemas/inmemory-workspace.d.ts +150 -32
  26. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  27. package/dist/schemas/reference-config/index.d.ts +75 -16
  28. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  29. package/dist/schemas/reference-config/settings.d.ts +75 -16
  30. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  31. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +135 -24
  32. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  33. package/dist/schemas/v3.1/strict/oauth-flow.js +37 -15
  34. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  35. package/dist/schemas/v3.1/strict/oauthflows.d.ts +67 -12
  36. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  37. package/dist/schemas/v3.1/strict/openapi-document.d.ts +2550 -544
  38. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  39. package/dist/schemas/v3.1/strict/openapi-document.js +1 -0
  40. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  41. package/dist/schemas/v3.1/strict/operation.d.ts +1 -0
  42. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  43. package/dist/schemas/v3.1/strict/operation.js +2 -1
  44. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  45. package/dist/schemas/v3.1/strict/security-scheme.d.ts +12 -8
  46. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  47. package/dist/schemas/v3.1/strict/security-scheme.js +3 -1
  48. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  49. package/dist/schemas/workspace-specification/config.d.ts +75 -16
  50. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  51. package/dist/schemas/workspace-specification/index.d.ts +75 -16
  52. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  53. package/dist/schemas/workspace.d.ts +525 -112
  54. package/dist/schemas/workspace.d.ts.map +1 -1
  55. package/package.json +8 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - db5b649: feat: auth selector block
8
+
9
+ ### Patch Changes
10
+
11
+ - b858566: chore: moved api client code sample to new store
12
+ - Updated dependencies [6462733]
13
+ - @scalar/json-magic@0.5.2
14
+
3
15
  ## 0.15.8
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,2 @@
1
+ export type { XCodeSample } from './x-code-samples.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,3 +1,4 @@
1
+ import { type Static } from '@scalar/typebox';
1
2
  export declare const XCodeSampleSchema: import("@scalar/typebox").TObject<{
2
3
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3
4
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -20,4 +21,5 @@ export declare const XCodeSamplesSchema: import("@scalar/typebox").TObject<{
20
21
  source: import("@scalar/typebox").TString;
21
22
  }>>>;
22
23
  }>;
24
+ export type XCodeSample = Static<typeof XCodeSampleSchema>;
23
25
  //# sourceMappingURL=x-code-samples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA"}
1
+ {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAEnD,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/extensions/operation/x-code-samples.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XCodeSampleSchema = Type.Object({\n lang: Type.Optional(Type.String()),\n label: Type.Optional(Type.String()),\n source: Type.String(),\n})\n\nexport const XCodeSamplesSchema = Type.Object({\n 'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),\n})\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACjC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,QAAQ,KAAK,OAAO;AACtB,CAAC;AAEM,MAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,iBAAiB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC5D,kBAAkB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC7D,qBAAqB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAClE,CAAC;",
4
+ "sourcesContent": ["import { type Static, Type } from '@scalar/typebox'\n\nexport const XCodeSampleSchema = Type.Object({\n lang: Type.Optional(Type.String()),\n label: Type.Optional(Type.String()),\n source: Type.String(),\n})\n\nexport const XCodeSamplesSchema = Type.Object({\n 'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),\n})\n\nexport type XCodeSample = Static<typeof XCodeSampleSchema>\n"],
5
+ "mappings": "AAAA,SAAsB,YAAY;AAE3B,MAAM,oBAAoB,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACjC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,QAAQ,KAAK,OAAO;AACtB,CAAC;AAEM,MAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,iBAAiB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC5D,kBAAkB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC7D,qBAAqB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAClE,CAAC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Default selected scopes for the oauth flow
3
+ *
4
+ * @example
5
+ * ```json
6
+ * {
7
+ * "x-default-scopes": [
8
+ * "profile",
9
+ * "email"
10
+ * ]
11
+ * }
12
+ * ```
13
+ */
14
+ export declare const XDefaultScopesSchema: import("@scalar/typebox").TObject<{
15
+ 'x-default-scopes': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
16
+ }>;
17
+ //# sourceMappingURL=x-default-scopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-default-scopes.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-default-scopes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;EAE/B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@scalar/typebox";
2
+ const XDefaultScopesSchema = Type.Object({
3
+ "x-default-scopes": Type.Optional(Type.Array(Type.String()))
4
+ });
5
+ export {
6
+ XDefaultScopesSchema
7
+ };
8
+ //# sourceMappingURL=x-default-scopes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/security/x-default-scopes.ts"],
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Default selected scopes for the oauth flow\n *\n * @example\n * ```json\n * {\n * \"x-default-scopes\": [\n * \"profile\",\n * \"email\"\n * ]\n * }\n * ```\n */\nexport const XDefaultScopesSchema = Type.Object({\n 'x-default-scopes': Type.Optional(Type.Array(Type.String())),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAed,MAAM,uBAAuB,KAAK,OAAO;AAAA,EAC9C,oBAAoB,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAC7D,CAAC;",
6
+ "names": []
7
+ }
@@ -1,4 +1,9 @@
1
+ /**
2
+ * The scalar redirect URI for the OAuth2 flow
3
+ *
4
+ * This should not be exported when exporting the document
5
+ */
1
6
  export declare const XScalarRedirectUriSchema: import("@scalar/typebox").TObject<{
2
- 'x-scalar-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7
+ 'x-scalar-redirect-uri': import("@scalar/typebox").TString;
3
8
  }>;
4
9
  //# sourceMappingURL=x-scalar-redirect-uri.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-scalar-redirect-uri.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-redirect-uri.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;EAEnC,CAAA"}
1
+ {"version":3,"file":"x-scalar-redirect-uri.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-redirect-uri.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;EAEnC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Type } from "@scalar/typebox";
2
2
  const XScalarRedirectUriSchema = Type.Object({
3
- "x-scalar-redirect-uri": Type.Optional(Type.String())
3
+ "x-scalar-redirect-uri": Type.String()
4
4
  });
5
5
  export {
6
6
  XScalarRedirectUriSchema
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/extensions/security/x-scalar-redirect-uri.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarRedirectUriSchema = Type.Object({\n 'x-scalar-redirect-uri': Type.Optional(Type.String()),\n})\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,SAAS,KAAK,OAAO,CAAC;AACtD,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * The scalar redirect URI for the OAuth2 flow\n *\n * This should not be exported when exporting the document\n */\nexport const XScalarRedirectUriSchema = Type.Object({\n 'x-scalar-redirect-uri': Type.String(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,OAAO;AACvC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -4,7 +4,7 @@
4
4
  * We should not export this when exporting the document
5
5
  */
6
6
  export declare const XScalarSecretTokenSchema: import("@scalar/typebox").TObject<{
7
- 'x-scalar-secret-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7
+ 'x-scalar-secret-token': import("@scalar/typebox").TString;
8
8
  }>;
9
9
  /**
10
10
  * Username and password for HTTP authentication
@@ -12,7 +12,31 @@ export declare const XScalarSecretTokenSchema: import("@scalar/typebox").TObject
12
12
  * We should not export this when exporting the document
13
13
  */
14
14
  export declare const XScalarSecretHTTPSchema: import("@scalar/typebox").TObject<{
15
- 'x-scalar-secret-username': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
16
- 'x-scalar-secret-password': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
15
+ 'x-scalar-secret-username': import("@scalar/typebox").TString;
16
+ 'x-scalar-secret-password': import("@scalar/typebox").TString;
17
+ }>;
18
+ /**
19
+ * Oauth client secret
20
+ *
21
+ * We should not export this when exporting the document
22
+ */
23
+ export declare const XScalarSecretClientSecretSchema: import("@scalar/typebox").TObject<{
24
+ 'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
25
+ }>;
26
+ /**
27
+ * Oauth client ID
28
+ *
29
+ * We should not export this when exporting the document
30
+ */
31
+ export declare const XScalarSecretClientIdSchema: import("@scalar/typebox").TObject<{
32
+ 'x-scalar-secret-client-id': import("@scalar/typebox").TString;
33
+ }>;
34
+ /**
35
+ * Oauth Redirect URI
36
+ *
37
+ * We should not export this when exporting the document
38
+ */
39
+ export declare const XScalarSecretRedirectUriSchema: import("@scalar/typebox").TObject<{
40
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
17
41
  }>;
18
42
  //# sourceMappingURL=x-scalar-security-secrets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-scalar-security-secrets.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;EAEnC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAGlC,CAAA"}
1
+ {"version":3,"file":"x-scalar-security-secrets.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;EAEnC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAGlC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;EAEzC,CAAA"}
@@ -1,13 +1,25 @@
1
1
  import { Type } from "@scalar/typebox";
2
2
  const XScalarSecretTokenSchema = Type.Object({
3
- "x-scalar-secret-token": Type.Optional(Type.String())
3
+ "x-scalar-secret-token": Type.String()
4
4
  });
5
5
  const XScalarSecretHTTPSchema = Type.Object({
6
- "x-scalar-secret-username": Type.Optional(Type.String()),
7
- "x-scalar-secret-password": Type.Optional(Type.String())
6
+ "x-scalar-secret-username": Type.String(),
7
+ "x-scalar-secret-password": Type.String()
8
+ });
9
+ const XScalarSecretClientSecretSchema = Type.Object({
10
+ "x-scalar-secret-client-secret": Type.String()
11
+ });
12
+ const XScalarSecretClientIdSchema = Type.Object({
13
+ "x-scalar-secret-client-id": Type.String()
14
+ });
15
+ const XScalarSecretRedirectUriSchema = Type.Object({
16
+ "x-scalar-secret-redirect-uri": Type.String()
8
17
  });
9
18
  export {
19
+ XScalarSecretClientIdSchema,
20
+ XScalarSecretClientSecretSchema,
10
21
  XScalarSecretHTTPSchema,
22
+ XScalarSecretRedirectUriSchema,
11
23
  XScalarSecretTokenSchema
12
24
  };
13
25
  //# sourceMappingURL=x-scalar-security-secrets.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * A scalar secret token\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretTokenSchema = Type.Object({\n 'x-scalar-secret-token': Type.Optional(Type.String()),\n})\n\n/**\n * Username and password for HTTP authentication\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretHTTPSchema = Type.Object({\n 'x-scalar-secret-username': Type.Optional(Type.String()),\n 'x-scalar-secret-password': Type.Optional(Type.String()),\n})\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,SAAS,KAAK,OAAO,CAAC;AACtD,CAAC;AAOM,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,4BAA4B,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACvD,4BAA4B,KAAK,SAAS,KAAK,OAAO,CAAC;AACzD,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * A scalar secret token\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretTokenSchema = Type.Object({\n 'x-scalar-secret-token': Type.String(),\n})\n\n/**\n * Username and password for HTTP authentication\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretHTTPSchema = Type.Object({\n 'x-scalar-secret-username': Type.String(),\n 'x-scalar-secret-password': Type.String(),\n})\n\n/**\n * Oauth client secret\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretClientSecretSchema = Type.Object({\n 'x-scalar-secret-client-secret': Type.String(),\n})\n\n/**\n * Oauth client ID\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretClientIdSchema = Type.Object({\n 'x-scalar-secret-client-id': Type.String(),\n})\n\n/**\n * Oauth Redirect URI\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretRedirectUriSchema = Type.Object({\n 'x-scalar-secret-redirect-uri': Type.String(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,OAAO;AACvC,CAAC;AAOM,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,4BAA4B,KAAK,OAAO;AAAA,EACxC,4BAA4B,KAAK,OAAO;AAC1C,CAAC;AAOM,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,iCAAiC,KAAK,OAAO;AAC/C,CAAC;AAOM,MAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,6BAA6B,KAAK,OAAO;AAC3C,CAAC;AAOM,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,gCAAgC,KAAK,OAAO;AAC9C,CAAC;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@ export declare const XusePkceSchema: import("@scalar/typebox").TObject<{
2
2
  /**
3
3
  * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.
4
4
  */
5
- 'x-usePkce': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>>;
5
+ 'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
6
6
  }>;
7
7
  //# sourceMappingURL=x-use-pkce.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-use-pkce.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-use-pkce.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;IACzB;;OAEG;;EAIH,CAAA"}
1
+ {"version":3,"file":"x-use-pkce.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-use-pkce.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;IACzB;;OAEG;;EAEH,CAAA"}
@@ -3,9 +3,7 @@ const XusePkceSchema = Type.Object({
3
3
  /**
4
4
  * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.
5
5
  */
6
- "x-usePkce": Type.Optional(
7
- Type.Union([Type.Literal("SHA-256"), Type.Literal("plain"), Type.Literal("no")], { default: "no" })
8
- )
6
+ "x-usePkce": Type.Union([Type.Literal("SHA-256"), Type.Literal("plain"), Type.Literal("no")], { default: "no" })
9
7
  });
10
8
  export {
11
9
  XusePkceSchema
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/extensions/security/x-use-pkce.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XusePkceSchema = Type.Object({\n /**\n * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.\n */\n 'x-usePkce': Type.Optional(\n Type.Union([Type.Literal('SHA-256'), Type.Literal('plain'), Type.Literal('no')], { default: 'no' }),\n ),\n})\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,iBAAiB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,aAAa,KAAK;AAAA,IAChB,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,EAAE,SAAS,KAAK,CAAC;AAAA,EACpG;AACF,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XusePkceSchema = Type.Object({\n /**\n * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.\n */\n 'x-usePkce': Type.Union([Type.Literal('SHA-256'), Type.Literal('plain'), Type.Literal('no')], { default: 'no' }),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,iBAAiB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,aAAa,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,EAAE,SAAS,KAAK,CAAC;AACjH,CAAC;",
6
6
  "names": []
7
7
  }