@scalar/openapi-types 0.3.3 → 0.3.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 533469b: refactor: decouple request code block from the state (not in use yet)
8
+
3
9
  ## 0.3.3
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  export { XAdditionalPropertiesNameSchema } from './x-additional-properties-name.js';
2
- export { XCodeSamplesSchema, XCodeSampleSchema } from './x-code-samples.js';
2
+ export { XCodeSamplesSchema, XCodeSampleSchema, type XCodeSample } from './x-code-samples.js';
3
3
  export { XEnumDescriptionsSchema } from './x-enum-descriptions.js';
4
4
  export { XInternalSchema } from './x-internal.js';
5
5
  export { XScalarIconSchema } from './x-scalar-icon.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/schemas/extensions/index.ts"],
4
- "sourcesContent": ["export { XAdditionalPropertiesNameSchema } from './x-additional-properties-name'\nexport { XCodeSamplesSchema, XCodeSampleSchema } from './x-code-samples'\nexport { XEnumDescriptionsSchema } from './x-enum-descriptions'\nexport { XInternalSchema } from './x-internal'\nexport { XScalarIconSchema } from './x-scalar-icon'\nexport { XScalarIgnoreSchema } from './x-scalar-ignore'\nexport { XScalarRedirectUriSchema } from './x-scalar-redirect-uri'\nexport { XScalarSdkInstallationSchema } from './x-scalar-sdk-installation'\nexport { XScalarSecurityQuery } from './x-scalar-security-query'\nexport { XScalarStabilitySchema, XScalarStabilityValues } from './x-scalar-stability'\nexport { XTagGroupsSchema, XTagGroupSchema } from './x-tag-groups'\nexport { XusePkceSchema, XUsePkceValues } from './x-use-pkce'\nexport { XPostResponseSchema, PostResponseSchema } from './x-post-response'\n"],
5
- "mappings": "AAAA,SAAS,uCAAuC;AAChD,SAAS,oBAAoB,yBAAyB;AACtD,SAAS,+BAA+B;AACxC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,gCAAgC;AACzC,SAAS,oCAAoC;AAC7C,SAAS,4BAA4B;AACrC,SAAS,wBAAwB,8BAA8B;AAC/D,SAAS,kBAAkB,uBAAuB;AAClD,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,qBAAqB,0BAA0B;",
4
+ "sourcesContent": ["export { XAdditionalPropertiesNameSchema } from './x-additional-properties-name'\nexport { XCodeSamplesSchema, XCodeSampleSchema, type XCodeSample } from './x-code-samples'\nexport { XEnumDescriptionsSchema } from './x-enum-descriptions'\nexport { XInternalSchema } from './x-internal'\nexport { XScalarIconSchema } from './x-scalar-icon'\nexport { XScalarIgnoreSchema } from './x-scalar-ignore'\nexport { XScalarRedirectUriSchema } from './x-scalar-redirect-uri'\nexport { XScalarSdkInstallationSchema } from './x-scalar-sdk-installation'\nexport { XScalarSecurityQuery } from './x-scalar-security-query'\nexport { XScalarStabilitySchema, XScalarStabilityValues } from './x-scalar-stability'\nexport { XTagGroupsSchema, XTagGroupSchema } from './x-tag-groups'\nexport { XusePkceSchema, XUsePkceValues } from './x-use-pkce'\nexport { XPostResponseSchema, PostResponseSchema } from './x-post-response'\n"],
5
+ "mappings": "AAAA,SAAS,uCAAuC;AAChD,SAAS,oBAAoB,yBAA2C;AACxE,SAAS,+BAA+B;AACxC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,gCAAgC;AACzC,SAAS,oCAAoC;AAC7C,SAAS,4BAA4B;AACrC,SAAS,wBAAwB,8BAA8B;AAC/D,SAAS,kBAAkB,uBAAuB;AAClD,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,qBAAqB,0BAA0B;",
6
6
  "names": []
7
7
  }
@@ -73,4 +73,5 @@ export declare const XCodeSamplesSchema: z.ZodObject<{
73
73
  'x-code-samples'?: unknown;
74
74
  'x-custom-examples'?: unknown;
75
75
  }>;
76
+ export type XCodeSample = z.infer<typeof XCodeSampleSchema>;
76
77
  //# sourceMappingURL=x-code-samples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../src/schemas/extensions/x-code-samples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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/x-code-samples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/schemas/extensions/x-code-samples.ts"],
4
- "sourcesContent": ["import { z } from 'zod'\n\nexport const XCodeSampleSchema = z.object({\n lang: z.string().optional().catch(undefined),\n label: z.string().optional().catch(undefined),\n source: z.string(),\n})\n\nexport const XCodeSamplesSchema = z.object({\n 'x-codeSamples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-code-samples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-custom-examples': XCodeSampleSchema.array().optional().catch(undefined),\n})\n"],
4
+ "sourcesContent": ["import { z } from 'zod'\n\nexport const XCodeSampleSchema = z.object({\n lang: z.string().optional().catch(undefined),\n label: z.string().optional().catch(undefined),\n source: z.string(),\n})\n\nexport const XCodeSamplesSchema = z.object({\n 'x-codeSamples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-code-samples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-custom-examples': XCodeSampleSchema.array().optional().catch(undefined),\n})\n\nexport type XCodeSample = z.infer<typeof XCodeSampleSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EAC3C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EAC5C,QAAQ,EAAE,OAAO;AACnB,CAAC;AAEM,MAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,iBAAiB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EACrE,kBAAkB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EACtE,qBAAqB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAC3E,CAAC;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "swagger",
17
17
  "typescript"
18
18
  ],
19
- "version": "0.3.3",
19
+ "version": "0.3.4",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },