@scalar/openapi-types 0.1.9 → 0.2.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.
- package/CHANGELOG.md +10 -0
- package/README.md +76 -0
- package/dist/schemas/3.1/processed/base-path-item-object.d.ts +603 -0
- package/dist/schemas/3.1/processed/base-path-item-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/base-path-item-object.js +35 -0
- package/dist/schemas/3.1/processed/callback-object.d.ts +169 -0
- package/dist/schemas/3.1/processed/callback-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/callback-object.js +17 -0
- package/dist/schemas/3.1/processed/components-object.d.ts +14411 -0
- package/dist/schemas/3.1/processed/components-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/components-object.js +64 -0
- package/dist/schemas/3.1/processed/contact-object.d.ts +25 -0
- package/dist/schemas/3.1/processed/contact-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/contact-object.js +19 -0
- package/dist/schemas/3.1/processed/discriminator-object.d.ts +32 -0
- package/dist/schemas/3.1/processed/discriminator-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/discriminator-object.js +28 -0
- package/dist/schemas/3.1/processed/encoding-object.d.ts +191 -0
- package/dist/schemas/3.1/processed/encoding-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/encoding-object.js +30 -0
- package/dist/schemas/3.1/processed/example-object.d.ts +43 -0
- package/dist/schemas/3.1/processed/example-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/example-object.js +35 -0
- package/dist/schemas/3.1/processed/external-documentation-object.d.ts +21 -0
- package/dist/schemas/3.1/processed/external-documentation-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/external-documentation-object.js +17 -0
- package/dist/schemas/3.1/processed/header-object.d.ts +161 -0
- package/dist/schemas/3.1/processed/header-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/header-object.js +66 -0
- package/dist/schemas/3.1/processed/index.d.ts +31 -0
- package/dist/schemas/3.1/processed/index.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/index.js +30 -0
- package/dist/schemas/3.1/processed/info-object.d.ts +89 -0
- package/dist/schemas/3.1/processed/info-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/info-object.js +45 -0
- package/dist/schemas/3.1/processed/license-object.d.ts +27 -0
- package/dist/schemas/3.1/processed/license-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/license-object.js +21 -0
- package/dist/schemas/3.1/processed/link-object.d.ts +110 -0
- package/dist/schemas/3.1/processed/link-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/link-object.js +52 -0
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts +60 -0
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.js +34 -0
- package/dist/schemas/3.1/processed/media-type-object.d.ts +289 -0
- package/dist/schemas/3.1/processed/media-type-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/media-type-object.js +38 -0
- package/dist/schemas/3.1/processed/openapi-object.d.ts +31 -0
- package/dist/schemas/3.1/processed/openapi-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/openapi-object.js +78 -0
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts +2094 -0
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.js +72 -0
- package/dist/schemas/3.1/processed/operation-object.d.ts +16 -0
- package/dist/schemas/3.1/processed/operation-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/operation-object.js +22 -0
- package/dist/schemas/3.1/processed/parameter-object.d.ts +476 -0
- package/dist/schemas/3.1/processed/parameter-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/parameter-object.js +93 -0
- package/dist/schemas/3.1/processed/path-item-object-without-callbacks.d.ts +25 -0
- package/dist/schemas/3.1/processed/path-item-object-without-callbacks.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js +48 -0
- package/dist/schemas/3.1/processed/path-item-object.d.ts +7741 -0
- package/dist/schemas/3.1/processed/path-item-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/path-item-object.js +48 -0
- package/dist/schemas/3.1/processed/paths-object.d.ts +7718 -0
- package/dist/schemas/3.1/processed/paths-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/paths-object.js +23 -0
- package/dist/schemas/3.1/processed/request-body-object.d.ts +595 -0
- package/dist/schemas/3.1/processed/request-body-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/request-body-object.js +33 -0
- package/dist/schemas/3.1/processed/response-object.d.ts +633 -0
- package/dist/schemas/3.1/processed/response-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/response-object.js +36 -0
- package/dist/schemas/3.1/processed/responses-object.d.ts +626 -0
- package/dist/schemas/3.1/processed/responses-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/responses-object.js +31 -0
- package/dist/schemas/3.1/processed/runtime-expression.d.ts +15 -0
- package/dist/schemas/3.1/processed/runtime-expression.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/runtime-expression.js +98 -0
- package/dist/schemas/3.1/processed/schema-object.d.ts +8 -0
- package/dist/schemas/3.1/processed/schema-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/schema-object.js +91 -0
- package/dist/schemas/3.1/processed/security-requirement-object.d.ts +21 -0
- package/dist/schemas/3.1/processed/security-requirement-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/security-requirement-object.js +37 -0
- package/dist/schemas/3.1/processed/security-scheme-object.d.ts +823 -0
- package/dist/schemas/3.1/processed/security-scheme-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/security-scheme-object.js +170 -0
- package/dist/schemas/3.1/processed/server-object.d.ts +52 -0
- package/dist/schemas/3.1/processed/server-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/server-object.js +27 -0
- package/dist/schemas/3.1/processed/server-variable-object.d.ts +33 -0
- package/dist/schemas/3.1/processed/server-variable-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/server-variable-object.js +27 -0
- package/dist/schemas/3.1/processed/tag-object.d.ts +41 -0
- package/dist/schemas/3.1/processed/tag-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/tag-object.js +21 -0
- package/dist/schemas/3.1/processed/webhooks-object.d.ts +172 -0
- package/dist/schemas/3.1/processed/webhooks-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/webhooks-object.js +19 -0
- package/dist/schemas/3.1/processed/xml-object.d.ts +51 -0
- package/dist/schemas/3.1/processed/xml-object.d.ts.map +1 -0
- package/dist/schemas/3.1/processed/xml-object.js +40 -0
- package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts +1811 -0
- package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/base-path-item-object.js +23 -0
- package/dist/schemas/3.1/unprocessed/callback-object.d.ts +168 -0
- package/dist/schemas/3.1/unprocessed/callback-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/callback-object.js +15 -0
- package/dist/schemas/3.1/unprocessed/components-object.d.ts +28835 -0
- package/dist/schemas/3.1/unprocessed/components-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/components-object.js +66 -0
- package/dist/schemas/3.1/unprocessed/contact-object.d.ts +21 -0
- package/dist/schemas/3.1/unprocessed/contact-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/contact-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts +23 -0
- package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/discriminator-object.js +17 -0
- package/dist/schemas/3.1/unprocessed/encoding-object.d.ts +402 -0
- package/dist/schemas/3.1/unprocessed/encoding-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/encoding-object.js +26 -0
- package/dist/schemas/3.1/unprocessed/example-object.d.ts +28 -0
- package/dist/schemas/3.1/unprocessed/example-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/example-object.js +16 -0
- package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts +18 -0
- package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/external-documentation-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/header-object.d.ts +217 -0
- package/dist/schemas/3.1/unprocessed/header-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/header-object.js +42 -0
- package/dist/schemas/3.1/unprocessed/index.d.ts +32 -0
- package/dist/schemas/3.1/unprocessed/index.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/index.js +31 -0
- package/dist/schemas/3.1/unprocessed/info-object.d.ts +66 -0
- package/dist/schemas/3.1/unprocessed/info-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/info-object.js +13 -0
- package/dist/schemas/3.1/unprocessed/license-object.d.ts +21 -0
- package/dist/schemas/3.1/unprocessed/license-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/license-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/link-object.d.ts +86 -0
- package/dist/schemas/3.1/unprocessed/link-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/link-object.js +20 -0
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts +46 -0
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js +12 -0
- package/dist/schemas/3.1/unprocessed/media-type-object.d.ts +728 -0
- package/dist/schemas/3.1/unprocessed/media-type-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/media-type-object.js +40 -0
- package/dist/schemas/3.1/unprocessed/openapi-object.d.ts +31 -0
- package/dist/schemas/3.1/unprocessed/openapi-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/openapi-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts +3893 -0
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js +45 -0
- package/dist/schemas/3.1/unprocessed/operation-object.d.ts +17 -0
- package/dist/schemas/3.1/unprocessed/operation-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/operation-object.js +23 -0
- package/dist/schemas/3.1/unprocessed/parameter-object.d.ts +1186 -0
- package/dist/schemas/3.1/unprocessed/parameter-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/parameter-object.js +31 -0
- package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.d.ts +25 -0
- package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js +48 -0
- package/dist/schemas/3.1/unprocessed/path-item-object.d.ts +9743 -0
- package/dist/schemas/3.1/unprocessed/path-item-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/path-item-object.js +62 -0
- package/dist/schemas/3.1/unprocessed/paths-object.d.ts +7717 -0
- package/dist/schemas/3.1/unprocessed/paths-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/paths-object.js +14 -0
- package/dist/schemas/3.1/unprocessed/reference-object.d.ts +36 -0
- package/dist/schemas/3.1/unprocessed/reference-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/reference-object.js +30 -0
- package/dist/schemas/3.1/unprocessed/request-body-object.d.ts +580 -0
- package/dist/schemas/3.1/unprocessed/request-body-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/request-body-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/response-object.d.ts +1661 -0
- package/dist/schemas/3.1/unprocessed/response-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/response-object.js +34 -0
- package/dist/schemas/3.1/unprocessed/responses-object.d.ts +1669 -0
- package/dist/schemas/3.1/unprocessed/responses-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/responses-object.js +32 -0
- package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts +14 -0
- package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/runtime-expression.js +17 -0
- package/dist/schemas/3.1/unprocessed/schema-object.d.ts +8 -0
- package/dist/schemas/3.1/unprocessed/schema-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/schema-object.js +32 -0
- package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts +20 -0
- package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/security-requirement-object.js +23 -0
- package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts +590 -0
- package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/security-scheme-object.js +29 -0
- package/dist/schemas/3.1/unprocessed/server-object.d.ts +41 -0
- package/dist/schemas/3.1/unprocessed/server-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/server-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts +21 -0
- package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/server-variable-object.js +12 -0
- package/dist/schemas/3.1/unprocessed/tag-object.d.ts +37 -0
- package/dist/schemas/3.1/unprocessed/tag-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/tag-object.js +13 -0
- package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts +212 -0
- package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/webhooks-object.js +19 -0
- package/dist/schemas/3.1/unprocessed/xml-object.d.ts +31 -0
- package/dist/schemas/3.1/unprocessed/xml-object.d.ts.map +1 -0
- package/dist/schemas/3.1/unprocessed/xml-object.js +16 -0
- package/dist/schemas/extensions/index.d.ts +11 -0
- package/dist/schemas/extensions/index.d.ts.map +1 -0
- package/dist/schemas/extensions/index.js +10 -0
- package/dist/schemas/extensions/x-additional-properties-name.d.ts +16 -0
- package/dist/schemas/extensions/x-additional-properties-name.d.ts.map +1 -0
- package/dist/schemas/extensions/x-additional-properties-name.js +14 -0
- package/dist/schemas/extensions/x-code-samples.d.ts +76 -0
- package/dist/schemas/extensions/x-code-samples.d.ts.map +1 -0
- package/dist/schemas/extensions/x-code-samples.js +14 -0
- package/dist/schemas/extensions/x-display-name.d.ts +17 -0
- package/dist/schemas/extensions/x-display-name.d.ts.map +1 -0
- package/dist/schemas/extensions/x-enum-descriptions.d.ts +22 -0
- package/dist/schemas/extensions/x-enum-descriptions.d.ts.map +1 -0
- package/dist/schemas/extensions/x-enum-descriptions.js +20 -0
- package/dist/schemas/extensions/x-internal.d.ts +9 -0
- package/dist/schemas/extensions/x-internal.d.ts.map +1 -0
- package/dist/schemas/extensions/x-internal.js +7 -0
- package/dist/schemas/extensions/x-scalar-icon.d.ts +9 -0
- package/dist/schemas/extensions/x-scalar-icon.d.ts.map +1 -0
- package/dist/schemas/extensions/x-scalar-icon.js +7 -0
- package/dist/schemas/extensions/x-scalar-ignore.d.ts +9 -0
- package/dist/schemas/extensions/x-scalar-ignore.d.ts.map +1 -0
- package/dist/schemas/extensions/x-scalar-ignore.js +7 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts +9 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts.map +1 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.js +7 -0
- package/dist/schemas/extensions/x-scalar-stability.d.ts +23 -0
- package/dist/schemas/extensions/x-scalar-stability.d.ts.map +1 -0
- package/dist/schemas/extensions/x-scalar-stability.js +23 -0
- package/dist/schemas/extensions/x-tag-groups.d.ts +39 -0
- package/dist/schemas/extensions/x-tag-groups.d.ts.map +1 -0
- package/dist/schemas/extensions/x-tag-groups.js +20 -0
- package/dist/schemas/extensions/x-use-pkce.d.ts +14 -0
- package/dist/schemas/extensions/x-use-pkce.d.ts.map +1 -0
- package/dist/schemas/extensions/x-use-pkce.js +12 -0
- package/package.json +20 -2
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scheme-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/security-scheme-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AASvB,eAAO,MAAM,cAAc,wCAAyC,CAAA;AAEpE,eAAO,MAAM,YAAY;IARvB;;OAEG;;;IAOH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;;;;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,UAAU;IA1BrB;;OAEG;;;IAyBH;;;OAGG;;IAEH;;;;OAIG;;IAOH;;;OAGG;;;;;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,mBAAmB;IAlD9B;;OAEG;;;IAiDH;;;OAGG;;IAEH;;OAEG;;;;;;;;;;EAEH,CAAA;AAcF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;IAChC;;;OAGG;;IAEH;;;OAGG;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,kBAAkB;IAZ7B;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;;;;;;EAOH,CAAA;AAEF,eAAO,MAAM,kBAAkB;IAjB7B;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;;;;;;EAYH,CAAA;AAEF,eAAO,MAAM,2BAA2B;IAtBtC;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;;;;;;EAiBH,CAAA;AAEF,eAAO,MAAM,2BAA2B;IA3BtC;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;EAuBH,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;IAxHjC;;OAEG;;;IAuHH;;;OAGG;;IAEH;;OAEG;;;YAhDH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DH,CAAA;AAEF,eAAO,MAAM,eAAe;IAvJ1B;;OAEG;;;IAsJH;;;OAGG;;;;;;;;EAEH,CAAA;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;IA5KrC;;OAEG;;;IAOH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;;;;;;;;;;;;IAtBH;;OAEG;;;IAyBH;;;OAGG;;IAEH;;;;OAIG;;IAOH;;;OAGG;;;;;;;;;;;;;IA9CH;;OAEG;;;IAsJH;;;OAGG;;;;;;;;;IA3JH;;OAEG;;;IAuHH;;;OAGG;;IAEH;;OAEG;;;YAhDH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;YARH;;;eAGG;;YAEH;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAxFH;;OAEG;;;IAiDH;;;OAGG;;IAEH;;OAEG;;;;;;;;;;IAwHH,CAAA"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
const DescriptionSchema = z.object({
|
|
4
|
+
/**
|
|
5
|
+
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
6
|
+
*/
|
|
7
|
+
description: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
const ApiKeyInValues = ['query', 'header', 'cookie'];
|
|
10
|
+
const ApiKeySchema = DescriptionSchema.extend({
|
|
11
|
+
/**
|
|
12
|
+
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
13
|
+
* "openIdConnect".
|
|
14
|
+
*/
|
|
15
|
+
type: z.literal('apiKey'),
|
|
16
|
+
/**
|
|
17
|
+
* REQUIRED. The name of the header, query or cookie parameter to be used.
|
|
18
|
+
*
|
|
19
|
+
* TODO: Why do we use an empty string as the default?
|
|
20
|
+
*/
|
|
21
|
+
name: z.string().optional().default(''),
|
|
22
|
+
/**
|
|
23
|
+
* REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".
|
|
24
|
+
*/
|
|
25
|
+
in: z.enum(ApiKeyInValues).optional().default('header').catch('header'),
|
|
26
|
+
});
|
|
27
|
+
const HttpSchema = DescriptionSchema.extend({
|
|
28
|
+
/**
|
|
29
|
+
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
30
|
+
* "openIdConnect".
|
|
31
|
+
*/
|
|
32
|
+
type: z.literal('http'),
|
|
33
|
+
/**
|
|
34
|
+
* REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.
|
|
35
|
+
* The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive,
|
|
36
|
+
* as defined in RFC7235.
|
|
37
|
+
*/
|
|
38
|
+
scheme: z
|
|
39
|
+
.string()
|
|
40
|
+
.toLowerCase()
|
|
41
|
+
.pipe(z.enum(['basic', 'bearer']))
|
|
42
|
+
.optional()
|
|
43
|
+
.default('basic'),
|
|
44
|
+
/**
|
|
45
|
+
* A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an
|
|
46
|
+
* authorization server, so this information is primarily for documentation purposes.
|
|
47
|
+
*/
|
|
48
|
+
bearerFormat: z.union([z.literal('JWT'), z.literal('bearer'), z.string()]).optional(),
|
|
49
|
+
});
|
|
50
|
+
const OpenIdConnectSchema = DescriptionSchema.extend({
|
|
51
|
+
/**
|
|
52
|
+
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
53
|
+
* "openIdConnect".
|
|
54
|
+
*/
|
|
55
|
+
type: z.literal('openIdConnect'),
|
|
56
|
+
/**
|
|
57
|
+
* REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
|
|
58
|
+
*/
|
|
59
|
+
openIdConnectUrl: z.string().optional().default(''),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* REQUIRED. The authorization URL to be used for this flow. This MUST be in
|
|
63
|
+
* the form of a URL. The OAuth2 standard requires the use of TLS.
|
|
64
|
+
*/
|
|
65
|
+
const authorizationUrl = z.string().default('');
|
|
66
|
+
/**
|
|
67
|
+
* REQUIRED. The token URL to be used for this flow. This MUST be in the
|
|
68
|
+
* form of a URL. The OAuth2 standard requires the use of TLS.
|
|
69
|
+
*/
|
|
70
|
+
const tokenUrl = z.string().default('');
|
|
71
|
+
/**
|
|
72
|
+
* OAuth Flow Object
|
|
73
|
+
*
|
|
74
|
+
* Configuration details for a supported OAuth Flow
|
|
75
|
+
*/
|
|
76
|
+
const OAuthFlowObjectSchema = z.object({
|
|
77
|
+
/**
|
|
78
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
79
|
+
* the use of TLS.
|
|
80
|
+
*/
|
|
81
|
+
refreshUrl: z.string().optional(),
|
|
82
|
+
/**
|
|
83
|
+
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
84
|
+
* between the scope name and a short description for it. The map MAY be empty.
|
|
85
|
+
*/
|
|
86
|
+
scopes: z.record(z.string(), z.string().optional()).optional().default({}).catch({}),
|
|
87
|
+
});
|
|
88
|
+
const ImplicitFlowSchema = OAuthFlowObjectSchema.extend({
|
|
89
|
+
type: z.literal('implicit').optional(),
|
|
90
|
+
authorizationUrl,
|
|
91
|
+
});
|
|
92
|
+
const PasswordFlowSchema = OAuthFlowObjectSchema.extend({
|
|
93
|
+
type: z.literal('password').optional(),
|
|
94
|
+
tokenUrl,
|
|
95
|
+
});
|
|
96
|
+
const ClientCredentialsFlowSchema = OAuthFlowObjectSchema.extend({
|
|
97
|
+
type: z.literal('clientCredentials').optional(),
|
|
98
|
+
tokenUrl,
|
|
99
|
+
});
|
|
100
|
+
const AuthorizationCodeFlowSchema = OAuthFlowObjectSchema.extend({
|
|
101
|
+
type: z.literal('authorizationCode').optional(),
|
|
102
|
+
authorizationUrl,
|
|
103
|
+
tokenUrl,
|
|
104
|
+
});
|
|
105
|
+
/**
|
|
106
|
+
* OAuth Flows Object
|
|
107
|
+
*
|
|
108
|
+
* Allows configuration of the supported OAuth Flows.
|
|
109
|
+
*
|
|
110
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oauth-flows-object
|
|
111
|
+
*/
|
|
112
|
+
const OAuthFlowsObjectSchema = DescriptionSchema.extend({
|
|
113
|
+
/**
|
|
114
|
+
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
115
|
+
* "openIdConnect".
|
|
116
|
+
*/
|
|
117
|
+
type: z.literal('oauth2'),
|
|
118
|
+
/**
|
|
119
|
+
* REQUIRED. An object containing configuration information for the flow types supported.
|
|
120
|
+
*/
|
|
121
|
+
flows: z
|
|
122
|
+
.object({
|
|
123
|
+
/**
|
|
124
|
+
* Configuration for the OAuth Implicit flow
|
|
125
|
+
*/
|
|
126
|
+
implicit: ImplicitFlowSchema.optional(),
|
|
127
|
+
/**
|
|
128
|
+
* Configuration for the OAuth Resource Owner Password flow
|
|
129
|
+
*/
|
|
130
|
+
password: PasswordFlowSchema.optional(),
|
|
131
|
+
/**
|
|
132
|
+
* Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.
|
|
133
|
+
*/
|
|
134
|
+
clientCredentials: ClientCredentialsFlowSchema.optional(),
|
|
135
|
+
/**
|
|
136
|
+
* Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
|
|
137
|
+
*/
|
|
138
|
+
authorizationCode: AuthorizationCodeFlowSchema.optional(),
|
|
139
|
+
})
|
|
140
|
+
.partial(),
|
|
141
|
+
});
|
|
142
|
+
const MutualTlsSchema = DescriptionSchema.extend({
|
|
143
|
+
/**
|
|
144
|
+
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
145
|
+
* "openIdConnect".
|
|
146
|
+
*/
|
|
147
|
+
type: z.literal('mutualTLS'),
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* Security Scheme Object
|
|
151
|
+
*
|
|
152
|
+
* Defines a security scheme that can be used by the operations.
|
|
153
|
+
*
|
|
154
|
+
* Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query
|
|
155
|
+
* parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials
|
|
156
|
+
* and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit
|
|
157
|
+
* flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is
|
|
158
|
+
* Authorization Code Grant flow with PKCE.
|
|
159
|
+
*
|
|
160
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object
|
|
161
|
+
*/
|
|
162
|
+
const SecuritySchemeObjectSchema = z.union([
|
|
163
|
+
ApiKeySchema,
|
|
164
|
+
HttpSchema,
|
|
165
|
+
MutualTlsSchema,
|
|
166
|
+
OAuthFlowsObjectSchema,
|
|
167
|
+
OpenIdConnectSchema,
|
|
168
|
+
]);
|
|
169
|
+
|
|
170
|
+
export { ApiKeyInValues, ApiKeySchema, AuthorizationCodeFlowSchema, ClientCredentialsFlowSchema, HttpSchema, ImplicitFlowSchema, MutualTlsSchema, OAuthFlowObjectSchema, OAuthFlowsObjectSchema, OpenIdConnectSchema, PasswordFlowSchema, SecuritySchemeObjectSchema };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Server Object
|
|
4
|
+
*
|
|
5
|
+
* An object representing a Server.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object
|
|
8
|
+
*/
|
|
9
|
+
export declare const ServerObjectSchema: z.ZodObject<{
|
|
10
|
+
/**
|
|
11
|
+
* REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that
|
|
12
|
+
* the host location is relative to the location where the OpenAPI document is being served. Variable substitutions
|
|
13
|
+
* will be made when a variable is named in {brackets}.
|
|
14
|
+
*/
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
/**
|
|
17
|
+
* An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text
|
|
18
|
+
* representation.
|
|
19
|
+
*/
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
22
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
23
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
+
default: z.ZodOptional<z.ZodString>;
|
|
25
|
+
description: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
default?: string | undefined;
|
|
29
|
+
enum?: string[] | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
default?: string | undefined;
|
|
33
|
+
enum?: string[] | undefined;
|
|
34
|
+
}>>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
url: string;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
variables?: Record<string, {
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
default?: string | undefined;
|
|
41
|
+
enum?: string[] | undefined;
|
|
42
|
+
}> | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
url: string;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
variables?: Record<string, {
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
default?: string | undefined;
|
|
49
|
+
enum?: string[] | undefined;
|
|
50
|
+
}> | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
//# sourceMappingURL=server-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/server-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;;;OAIG;;IAEH;;;OAGG;;IAEH,oHAAoH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpH,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ServerVariableObjectSchema } from './server-variable-object.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Server Object
|
|
6
|
+
*
|
|
7
|
+
* An object representing a Server.
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object
|
|
10
|
+
*/
|
|
11
|
+
const ServerObjectSchema = z.object({
|
|
12
|
+
/**
|
|
13
|
+
* REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that
|
|
14
|
+
* the host location is relative to the location where the OpenAPI document is being served. Variable substitutions
|
|
15
|
+
* will be made when a variable is named in {brackets}.
|
|
16
|
+
*/
|
|
17
|
+
url: z.string(),
|
|
18
|
+
/**
|
|
19
|
+
* An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text
|
|
20
|
+
* representation.
|
|
21
|
+
*/
|
|
22
|
+
description: z.string().optional(),
|
|
23
|
+
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
24
|
+
variables: z.record(z.string(), ServerVariableObjectSchema).optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { ServerObjectSchema };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Server Variable Object
|
|
4
|
+
*
|
|
5
|
+
* An object representing a Server Variable for server URL template substitution.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object
|
|
8
|
+
*/
|
|
9
|
+
export declare const ServerVariableObjectSchema: z.ZodObject<{
|
|
10
|
+
/**
|
|
11
|
+
* An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.
|
|
12
|
+
*/
|
|
13
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
+
/**
|
|
15
|
+
* REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied.
|
|
16
|
+
* Note this behavior is different than the Schema Object's treatment of default values, because in those cases
|
|
17
|
+
* parameter values are optional. If the enum is defined, the value MUST exist in the enum's values.
|
|
18
|
+
*/
|
|
19
|
+
default: z.ZodOptional<z.ZodString>;
|
|
20
|
+
/**
|
|
21
|
+
* An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.
|
|
22
|
+
*/
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
default?: string | undefined;
|
|
27
|
+
enum?: string[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
default?: string | undefined;
|
|
31
|
+
enum?: string[] | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
//# sourceMappingURL=server-variable-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-variable-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/server-variable-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;IACrC;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;;;;;;;;;EAEH,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Server Variable Object
|
|
5
|
+
*
|
|
6
|
+
* An object representing a Server Variable for server URL template substitution.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object
|
|
9
|
+
*/
|
|
10
|
+
const ServerVariableObjectSchema = z.object({
|
|
11
|
+
/**
|
|
12
|
+
* An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.
|
|
13
|
+
*/
|
|
14
|
+
enum: z.array(z.string()).optional(),
|
|
15
|
+
/**
|
|
16
|
+
* REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied.
|
|
17
|
+
* Note this behavior is different than the Schema Object's treatment of default values, because in those cases
|
|
18
|
+
* parameter values are optional. If the enum is defined, the value MUST exist in the enum's values.
|
|
19
|
+
*/
|
|
20
|
+
default: z.string().optional(),
|
|
21
|
+
/**
|
|
22
|
+
* An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.
|
|
23
|
+
*/
|
|
24
|
+
description: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { ServerVariableObjectSchema };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Tag Object
|
|
4
|
+
*
|
|
5
|
+
* Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag
|
|
6
|
+
* defined in the Operation Object instances.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object
|
|
9
|
+
*/
|
|
10
|
+
export declare const TagObjectSchema: z.ZodObject<{
|
|
11
|
+
/** REQUIRED. The name of the tag. */
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
14
|
+
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
/** Additional external documentation for this tag. */
|
|
16
|
+
externalDocs: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
url: string;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
url: string;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
}>>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
name: string;
|
|
28
|
+
externalDocs?: {
|
|
29
|
+
url: string;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
name: string;
|
|
35
|
+
externalDocs?: {
|
|
36
|
+
url: string;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
description?: unknown;
|
|
40
|
+
}>;
|
|
41
|
+
//# sourceMappingURL=tag-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/tag-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;IAC1B,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;EAEtD,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ExternalDocumentationObjectSchema } from './external-documentation-object.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Tag Object
|
|
6
|
+
*
|
|
7
|
+
* Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag
|
|
8
|
+
* defined in the Operation Object instances.
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object
|
|
11
|
+
*/
|
|
12
|
+
const TagObjectSchema = z.object({
|
|
13
|
+
/** REQUIRED. The name of the tag. */
|
|
14
|
+
'name': z.string(),
|
|
15
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
16
|
+
'description': z.string().optional().catch(undefined),
|
|
17
|
+
/** Additional external documentation for this tag. */
|
|
18
|
+
'externalDocs': ExternalDocumentationObjectSchema.optional(),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { TagObjectSchema };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Webhooks Object
|
|
4
|
+
*
|
|
5
|
+
* The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.
|
|
6
|
+
* Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for
|
|
7
|
+
* example by an out of band registration.
|
|
8
|
+
*
|
|
9
|
+
* The key name is a unique string to refer to each webhook, while the
|
|
10
|
+
* (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the
|
|
11
|
+
* expected responses. An example is available.
|
|
12
|
+
*
|
|
13
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks
|
|
14
|
+
*/
|
|
15
|
+
export declare const WebhooksObjectSchema: z.ZodRecord<z.ZodString, z.ZodType<{
|
|
16
|
+
servers?: {
|
|
17
|
+
url: string;
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
variables?: Record<string, {
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
default?: string | undefined;
|
|
22
|
+
enum?: string[] | undefined;
|
|
23
|
+
}> | undefined;
|
|
24
|
+
}[] | undefined;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
summary?: string | undefined;
|
|
27
|
+
parameters?: {
|
|
28
|
+
name: string;
|
|
29
|
+
in: "path" | "query" | "header" | "cookie";
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
deprecated?: boolean | undefined;
|
|
32
|
+
content?: Record<string, {
|
|
33
|
+
example?: any;
|
|
34
|
+
examples?: Record<string, {
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
value?: any;
|
|
38
|
+
externalValue?: string | undefined;
|
|
39
|
+
}> | undefined;
|
|
40
|
+
schema?: Record<string, any> | undefined;
|
|
41
|
+
encoding?: Record<string, {
|
|
42
|
+
contentType: string;
|
|
43
|
+
headers?: Record<string, {
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
deprecated?: boolean | undefined;
|
|
46
|
+
content?: Record<string, {
|
|
47
|
+
example?: any;
|
|
48
|
+
examples?: Record<string, {
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
summary?: string | undefined;
|
|
51
|
+
value?: any;
|
|
52
|
+
externalValue?: string | undefined;
|
|
53
|
+
}> | undefined;
|
|
54
|
+
schema?: Record<string, any> | undefined;
|
|
55
|
+
}> | undefined;
|
|
56
|
+
required?: boolean | undefined;
|
|
57
|
+
example?: any;
|
|
58
|
+
examples?: Record<string, {
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
summary?: string | undefined;
|
|
61
|
+
value?: any;
|
|
62
|
+
externalValue?: string | undefined;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
schema?: Record<string, any> | undefined;
|
|
65
|
+
style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
66
|
+
explode?: boolean | undefined;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
}> | undefined;
|
|
69
|
+
}> | undefined;
|
|
70
|
+
required?: boolean | undefined;
|
|
71
|
+
example?: any;
|
|
72
|
+
examples?: Record<string, {
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
summary?: string | undefined;
|
|
75
|
+
value?: any;
|
|
76
|
+
externalValue?: string | undefined;
|
|
77
|
+
}> | undefined;
|
|
78
|
+
schema?: Record<string, any> | undefined;
|
|
79
|
+
style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
80
|
+
explode?: boolean | undefined;
|
|
81
|
+
allowEmptyValue?: boolean | undefined;
|
|
82
|
+
allowReserved?: boolean | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
get?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
86
|
+
put?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
87
|
+
post?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
88
|
+
delete?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
89
|
+
options?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
90
|
+
head?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
91
|
+
patch?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
92
|
+
trace?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
93
|
+
}, z.ZodTypeDef, {
|
|
94
|
+
servers?: {
|
|
95
|
+
url: string;
|
|
96
|
+
description?: string | undefined;
|
|
97
|
+
variables?: Record<string, {
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
default?: string | undefined;
|
|
100
|
+
enum?: string[] | undefined;
|
|
101
|
+
}> | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
description?: string | undefined;
|
|
104
|
+
summary?: string | undefined;
|
|
105
|
+
parameters?: {
|
|
106
|
+
name: string;
|
|
107
|
+
in: "path" | "query" | "header" | "cookie";
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
deprecated?: boolean | undefined;
|
|
110
|
+
content?: Record<string, {
|
|
111
|
+
example?: any;
|
|
112
|
+
examples?: Record<string, {
|
|
113
|
+
description?: string | undefined;
|
|
114
|
+
summary?: string | undefined;
|
|
115
|
+
value?: any;
|
|
116
|
+
externalValue?: string | undefined;
|
|
117
|
+
}> | undefined;
|
|
118
|
+
schema?: Record<string, any> | undefined;
|
|
119
|
+
encoding?: Record<string, {
|
|
120
|
+
contentType: string;
|
|
121
|
+
headers?: Record<string, {
|
|
122
|
+
description?: string | undefined;
|
|
123
|
+
deprecated?: boolean | undefined;
|
|
124
|
+
content?: Record<string, {
|
|
125
|
+
example?: any;
|
|
126
|
+
examples?: Record<string, {
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
summary?: string | undefined;
|
|
129
|
+
value?: any;
|
|
130
|
+
externalValue?: string | undefined;
|
|
131
|
+
}> | undefined;
|
|
132
|
+
schema?: Record<string, any> | undefined;
|
|
133
|
+
}> | undefined;
|
|
134
|
+
required?: boolean | undefined;
|
|
135
|
+
example?: any;
|
|
136
|
+
examples?: Record<string, {
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
summary?: string | undefined;
|
|
139
|
+
value?: any;
|
|
140
|
+
externalValue?: string | undefined;
|
|
141
|
+
}> | undefined;
|
|
142
|
+
schema?: Record<string, any> | undefined;
|
|
143
|
+
style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
144
|
+
explode?: boolean | undefined;
|
|
145
|
+
}> | undefined;
|
|
146
|
+
}> | undefined;
|
|
147
|
+
}> | undefined;
|
|
148
|
+
required?: boolean | undefined;
|
|
149
|
+
example?: any;
|
|
150
|
+
examples?: Record<string, {
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
summary?: string | undefined;
|
|
153
|
+
value?: any;
|
|
154
|
+
externalValue?: string | undefined;
|
|
155
|
+
}> | undefined;
|
|
156
|
+
schema?: Record<string, any> | undefined;
|
|
157
|
+
style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
158
|
+
explode?: boolean | undefined;
|
|
159
|
+
allowEmptyValue?: boolean | undefined;
|
|
160
|
+
allowReserved?: boolean | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
} & {
|
|
163
|
+
get?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
164
|
+
put?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
165
|
+
post?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
166
|
+
delete?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
167
|
+
options?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
168
|
+
head?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
169
|
+
patch?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
170
|
+
trace?: z.infer<typeof import("./operation-object-without-callbacks.js").OperationObjectSchemaWithoutCallbacks>;
|
|
171
|
+
}>>;
|
|
172
|
+
//# sourceMappingURL=webhooks-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/webhooks-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UATP,EAAG,KAAK;UAAsD,EAAG,KAAK;WAC/D,EAAG,KAAK;aAEW,EAAG,KAAK;cACb,EAAG,KAAK;WAAuD,EAC7G,KAAG;YAEK,EAAG,KAAK;YAAwD,EAAG,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAPpD,KAAK;YAAyD,KAAK;aAC5D,KAAK;eAEc,KAAK;gBACV,KAAK;aACtD,KAAG;cAEQ,KAAK;cAA2D,KAAK;GAEa,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Webhooks Object
|
|
6
|
+
*
|
|
7
|
+
* The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.
|
|
8
|
+
* Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for
|
|
9
|
+
* example by an out of band registration.
|
|
10
|
+
*
|
|
11
|
+
* The key name is a unique string to refer to each webhook, while the
|
|
12
|
+
* (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the
|
|
13
|
+
* expected responses. An example is available.
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks
|
|
16
|
+
*/
|
|
17
|
+
const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks);
|
|
18
|
+
|
|
19
|
+
export { WebhooksObjectSchema };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* XML Object
|
|
5
|
+
*
|
|
6
|
+
* A metadata object that allows for more fine-tuned XML model definitions.
|
|
7
|
+
*
|
|
8
|
+
* When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used
|
|
9
|
+
* to add that information. See examples for expected behavior.
|
|
10
|
+
*
|
|
11
|
+
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#xml-object
|
|
12
|
+
*/
|
|
13
|
+
export declare const XmlObjectSchema: z.ZodObject<{
|
|
14
|
+
/**
|
|
15
|
+
* Replaces the name of the element/attribute used for the described schema property.
|
|
16
|
+
*/
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
/**
|
|
19
|
+
* The URI of the namespace definition. Value MUST be in the form of a URL.
|
|
20
|
+
*/
|
|
21
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
22
|
+
/**
|
|
23
|
+
* The prefix to be used for the name.
|
|
24
|
+
*/
|
|
25
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
26
|
+
/**
|
|
27
|
+
* Declares whether the property definition translates to an attribute instead of an element.
|
|
28
|
+
* Default value is false.
|
|
29
|
+
*/
|
|
30
|
+
attribute: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
/**
|
|
32
|
+
* MAY be used only for an array definition.
|
|
33
|
+
* Signifies whether the array is wrapped (for example, <books><book/><book/></books>)
|
|
34
|
+
* or unwrapped (<book/><book/>). Default value is false.
|
|
35
|
+
*/
|
|
36
|
+
wrapped: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
namespace?: string | undefined;
|
|
40
|
+
prefix?: string | undefined;
|
|
41
|
+
attribute?: boolean | undefined;
|
|
42
|
+
wrapped?: boolean | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
namespace?: string | undefined;
|
|
46
|
+
prefix?: string | undefined;
|
|
47
|
+
attribute?: boolean | undefined;
|
|
48
|
+
wrapped?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export type XMLObject = z.infer<typeof XmlObjectSchema>;
|
|
51
|
+
//# sourceMappingURL=xml-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/xml-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;;;;;;;;;;;;;EAEH,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
|