@scalar/openapi-types 0.3.5 → 0.3.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scalar/openapi-types
2
2
 
3
+ ## 0.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 591562f: feat: add support for x-scalar-security-body extension
8
+
3
9
  ## 0.3.5
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * An OpenAPI extension to set any additional body parameters for the OAuth token request
4
+ *
5
+ * @example
6
+ * ```yaml
7
+ * x-scalar-security-body: {
8
+ * audience: 'https://api.example.com',
9
+ * resource: 'user-profile'
10
+ * }
11
+ * ```
12
+ */
13
+ export declare const XScalarSecurityBody: z.ZodObject<{
14
+ 'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ 'x-scalar-security-body'?: Record<string, string> | undefined;
17
+ }, {
18
+ 'x-scalar-security-body'?: Record<string, string> | undefined;
19
+ }>;
20
+ //# sourceMappingURL=x-scalar-security-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-security-body.d.ts","sourceRoot":"","sources":["../../../src/schemas/extensions/x-scalar-security-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ const XScalarSecurityBody = z.object({
3
+ "x-scalar-security-body": z.record(z.string(), z.string()).optional()
4
+ });
5
+ export {
6
+ XScalarSecurityBody
7
+ };
8
+ //# sourceMappingURL=x-scalar-security-body.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/schemas/extensions/x-scalar-security-body.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to set any additional body parameters for the OAuth token request\n *\n * @example\n * ```yaml\n * x-scalar-security-body: {\n * audience: 'https://api.example.com',\n * resource: 'user-profile'\n * }\n * ```\n */\nexport const XScalarSecurityBody = z.object({\n 'x-scalar-security-body': z.record(z.string(), z.string()).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,0BAA0B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AACtE,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * An OpenAPI extension to specify a custom token name for OAuth2 flows
4
+ *
5
+ * @example
6
+ * ```yaml
7
+ * x-tokenName: 'custom_access_token'
8
+ * ```
9
+ */
10
+ export declare const XTokenName: z.ZodObject<{
11
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ 'x-tokenName'?: string | undefined;
14
+ }, {
15
+ 'x-tokenName'?: string | undefined;
16
+ }>;
17
+ //# sourceMappingURL=x-tokenName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-tokenName.d.ts","sourceRoot":"","sources":["../../../src/schemas/extensions/x-tokenName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;EAErB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ const XTokenName = z.object({
3
+ "x-tokenName": z.string().optional()
4
+ });
5
+ export {
6
+ XTokenName
7
+ };
8
+ //# sourceMappingURL=x-tokenName.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/schemas/extensions/x-tokenName.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to specify a custom token name for OAuth2 flows\n *\n * @example\n * ```yaml\n * x-tokenName: 'custom_access_token'\n * ```\n */\nexport const XTokenName = z.object({\n 'x-tokenName': z.string().optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAUX,MAAM,aAAa,EAAE,OAAO;AAAA,EACjC,eAAe,EAAE,OAAO,EAAE,SAAS;AACrC,CAAC;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "swagger",
17
17
  "typescript"
18
18
  ],
19
- "version": "0.3.5",
19
+ "version": "0.3.6",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },