@tsed/openspec 7.0.0-beta.3 → 7.0.0-beta.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.
Files changed (75) hide show
  1. package/lib/cjs/common/OpenSpecVersions.js.map +1 -1
  2. package/lib/cjs/index.js +39 -2
  3. package/lib/cjs/index.js.map +1 -1
  4. package/lib/cjs/openspec2/OS2Header.js +3 -0
  5. package/lib/cjs/openspec2/OS2Header.js.map +1 -0
  6. package/lib/cjs/openspec2/OS2Operation.js +3 -0
  7. package/lib/cjs/openspec2/OS2Operation.js.map +1 -0
  8. package/lib/cjs/openspec2/OS2Parameter.js +3 -0
  9. package/lib/cjs/openspec2/OS2Parameter.js.map +1 -0
  10. package/lib/cjs/openspec2/OS2Paths.js +3 -0
  11. package/lib/cjs/openspec2/OS2Paths.js.map +1 -0
  12. package/lib/cjs/openspec2/OS2Response.js +3 -0
  13. package/lib/cjs/openspec2/OS2Response.js.map +1 -0
  14. package/lib/cjs/openspec2/OS2Schema.js +3 -0
  15. package/lib/cjs/openspec2/OS2Schema.js.map +1 -0
  16. package/lib/cjs/openspec2/OS2Security.js +3 -0
  17. package/lib/cjs/openspec2/OS2Security.js.map +1 -0
  18. package/lib/cjs/openspec2/OpenSpec2.js +3 -0
  19. package/lib/cjs/openspec2/OpenSpec2.js.map +1 -0
  20. package/lib/cjs/openspec3/OS3Header.js.map +1 -1
  21. package/lib/cjs/openspec3/OS3Parameter.js.map +1 -1
  22. package/lib/cjs/openspec3/OS3Paths.js.map +1 -1
  23. package/lib/cjs/openspec3/OS3Schema.js.map +1 -1
  24. package/lib/cjs/package.json +3 -0
  25. package/lib/esm/common/OpenSpecVersions.js.map +1 -1
  26. package/lib/esm/index.js +39 -2
  27. package/lib/esm/index.js.map +1 -1
  28. package/lib/esm/openspec2/OS2Header.js +2 -0
  29. package/lib/esm/openspec2/OS2Header.js.map +1 -0
  30. package/lib/esm/openspec2/OS2Operation.js +2 -0
  31. package/lib/esm/openspec2/OS2Operation.js.map +1 -0
  32. package/lib/esm/openspec2/OS2Parameter.js +2 -0
  33. package/lib/esm/openspec2/OS2Parameter.js.map +1 -0
  34. package/lib/esm/openspec2/OS2Paths.js +2 -0
  35. package/lib/esm/openspec2/OS2Paths.js.map +1 -0
  36. package/lib/esm/openspec2/OS2Response.js +2 -0
  37. package/lib/esm/openspec2/OS2Response.js.map +1 -0
  38. package/lib/esm/openspec2/OS2Schema.js +2 -0
  39. package/lib/esm/openspec2/OS2Schema.js.map +1 -0
  40. package/lib/esm/openspec2/OS2Security.js +2 -0
  41. package/lib/esm/openspec2/OS2Security.js.map +1 -0
  42. package/lib/esm/openspec2/OpenSpec2.js +2 -0
  43. package/lib/esm/openspec2/OpenSpec2.js.map +1 -0
  44. package/lib/esm/openspec3/OS3Header.js.map +1 -1
  45. package/lib/esm/openspec3/OS3Parameter.js.map +1 -1
  46. package/lib/esm/openspec3/OS3Paths.js.map +1 -1
  47. package/lib/esm/openspec3/OS3Schema.js.map +1 -1
  48. package/lib/esm/package.json +3 -0
  49. package/lib/types/common/OpenSpecVersions.d.ts +2 -1
  50. package/lib/types/index.d.ts +39 -2
  51. package/lib/types/openspec2/OS2Header.d.ts +7 -0
  52. package/lib/types/openspec2/OS2Operation.d.ts +64 -0
  53. package/lib/types/openspec2/OS2Parameter.d.ts +50 -0
  54. package/lib/types/openspec2/OS2Paths.d.ts +7 -0
  55. package/lib/types/openspec2/OS2Response.d.ts +21 -0
  56. package/lib/types/openspec2/OS2Schema.d.ts +36 -0
  57. package/lib/types/openspec2/OS2Security.d.ts +49 -0
  58. package/lib/types/openspec2/OpenSpec2.d.ts +72 -0
  59. package/lib/types/openspec3/OS3Header.d.ts +2 -1
  60. package/lib/types/openspec3/OS3Parameter.d.ts +2 -1
  61. package/lib/types/openspec3/OS3Paths.d.ts +2 -1
  62. package/lib/types/openspec3/OS3Schema.d.ts +3 -1
  63. package/package.json +7 -5
  64. package/readme.md +3 -2
  65. package/tsconfig.compile.esm.json +1 -12
  66. package/lib/cjs/common/index.js +0 -15
  67. package/lib/cjs/common/index.js.map +0 -1
  68. package/lib/cjs/openspec3/index.js +0 -21
  69. package/lib/cjs/openspec3/index.js.map +0 -1
  70. package/lib/esm/common/index.js +0 -12
  71. package/lib/esm/common/index.js.map +0 -1
  72. package/lib/esm/openspec3/index.js +0 -18
  73. package/lib/esm/openspec3/index.js.map +0 -1
  74. package/lib/types/common/index.d.ts +0 -11
  75. package/lib/types/openspec3/index.d.ts +0 -17
@@ -1 +1 @@
1
- {"version":3,"file":"OpenSpecVersions.js","sourceRoot":"","sources":["../../../src/common/OpenSpecVersions.ts"],"names":[],"mappings":"","sourcesContent":["export type OS3Versions = \"3.0.1\" | \"3.0.2\" | \"3.0.3\";\nexport type OpenSpecVersions = OS3Versions;\n"]}
1
+ {"version":3,"file":"OpenSpecVersions.js","sourceRoot":"","sources":["../../../src/common/OpenSpecVersions.ts"],"names":[],"mappings":"","sourcesContent":["export type OS2Versions = \"2.0\";\nexport type OS3Versions = \"3.0.1\" | \"3.0.2\" | \"3.0.3\";\nexport type OpenSpecVersions = OS2Versions | OS3Versions;\n"]}
package/lib/cjs/index.js CHANGED
@@ -1,6 +1,43 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./common"), exports);
5
- (0, tslib_1.__exportStar)(require("./openspec3"), exports);
7
+ tslib_1.__exportStar(require("./common/OpenSpecExternalDocs"), exports);
8
+ tslib_1.__exportStar(require("./common/OpenSpecHash"), exports);
9
+ tslib_1.__exportStar(require("./common/OpenSpecInfo"), exports);
10
+ tslib_1.__exportStar(require("./common/OpenSpecJsonSchema"), exports);
11
+ tslib_1.__exportStar(require("./common/OpenSpecPath"), exports);
12
+ tslib_1.__exportStar(require("./common/OpenSpecRef"), exports);
13
+ tslib_1.__exportStar(require("./common/OpenSpecSecurity"), exports);
14
+ tslib_1.__exportStar(require("./common/OpenSpecTag"), exports);
15
+ tslib_1.__exportStar(require("./common/OpenSpecTypes"), exports);
16
+ tslib_1.__exportStar(require("./common/OpenSpecVersions"), exports);
17
+ tslib_1.__exportStar(require("./common/OpenSpecXML"), exports);
18
+ tslib_1.__exportStar(require("./openspec2/OS2Header"), exports);
19
+ tslib_1.__exportStar(require("./openspec2/OS2Operation"), exports);
20
+ tslib_1.__exportStar(require("./openspec2/OS2Parameter"), exports);
21
+ tslib_1.__exportStar(require("./openspec2/OS2Paths"), exports);
22
+ tslib_1.__exportStar(require("./openspec2/OS2Response"), exports);
23
+ tslib_1.__exportStar(require("./openspec2/OS2Schema"), exports);
24
+ tslib_1.__exportStar(require("./openspec2/OS2Security"), exports);
25
+ tslib_1.__exportStar(require("./openspec2/OpenSpec2"), exports);
26
+ tslib_1.__exportStar(require("./openspec3/OS3Callbacks"), exports);
27
+ tslib_1.__exportStar(require("./openspec3/OS3Components"), exports);
28
+ tslib_1.__exportStar(require("./openspec3/OS3Encoding"), exports);
29
+ tslib_1.__exportStar(require("./openspec3/OS3Example"), exports);
30
+ tslib_1.__exportStar(require("./openspec3/OS3Flows"), exports);
31
+ tslib_1.__exportStar(require("./openspec3/OS3Header"), exports);
32
+ tslib_1.__exportStar(require("./openspec3/OS3Link"), exports);
33
+ tslib_1.__exportStar(require("./openspec3/OS3MediaType"), exports);
34
+ tslib_1.__exportStar(require("./openspec3/OS3Operation"), exports);
35
+ tslib_1.__exportStar(require("./openspec3/OS3Parameter"), exports);
36
+ tslib_1.__exportStar(require("./openspec3/OS3Paths"), exports);
37
+ tslib_1.__exportStar(require("./openspec3/OS3RequestBody"), exports);
38
+ tslib_1.__exportStar(require("./openspec3/OS3Response"), exports);
39
+ tslib_1.__exportStar(require("./openspec3/OS3Schema"), exports);
40
+ tslib_1.__exportStar(require("./openspec3/OS3Security"), exports);
41
+ tslib_1.__exportStar(require("./openspec3/OS3Server"), exports);
42
+ tslib_1.__exportStar(require("./openspec3/OpenSpec3"), exports);
6
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,2DAA4B","sourcesContent":["export * from \"./common\";\nexport * from \"./openspec3\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wEAA8C;AAC9C,gEAAsC;AACtC,gEAAsC;AACtC,sEAA4C;AAC5C,gEAAsC;AACtC,+DAAqC;AACrC,oEAA0C;AAC1C,+DAAqC;AACrC,iEAAuC;AACvC,oEAA0C;AAC1C,+DAAqC;AACrC,gEAAsC;AACtC,mEAAyC;AACzC,mEAAyC;AACzC,+DAAqC;AACrC,kEAAwC;AACxC,gEAAsC;AACtC,kEAAwC;AACxC,gEAAsC;AACtC,mEAAyC;AACzC,oEAA0C;AAC1C,kEAAwC;AACxC,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,8DAAoC;AACpC,mEAAyC;AACzC,mEAAyC;AACzC,mEAAyC;AACzC,+DAAqC;AACrC,qEAA2C;AAC3C,kEAAwC;AACxC,gEAAsC;AACtC,kEAAwC;AACxC,gEAAsC;AACtC,gEAAsC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./common/OpenSpecExternalDocs\";\nexport * from \"./common/OpenSpecHash\";\nexport * from \"./common/OpenSpecInfo\";\nexport * from \"./common/OpenSpecJsonSchema\";\nexport * from \"./common/OpenSpecPath\";\nexport * from \"./common/OpenSpecRef\";\nexport * from \"./common/OpenSpecSecurity\";\nexport * from \"./common/OpenSpecTag\";\nexport * from \"./common/OpenSpecTypes\";\nexport * from \"./common/OpenSpecVersions\";\nexport * from \"./common/OpenSpecXML\";\nexport * from \"./openspec2/OS2Header\";\nexport * from \"./openspec2/OS2Operation\";\nexport * from \"./openspec2/OS2Parameter\";\nexport * from \"./openspec2/OS2Paths\";\nexport * from \"./openspec2/OS2Response\";\nexport * from \"./openspec2/OS2Schema\";\nexport * from \"./openspec2/OS2Security\";\nexport * from \"./openspec2/OpenSpec2\";\nexport * from \"./openspec3/OS3Callbacks\";\nexport * from \"./openspec3/OS3Components\";\nexport * from \"./openspec3/OS3Encoding\";\nexport * from \"./openspec3/OS3Example\";\nexport * from \"./openspec3/OS3Flows\";\nexport * from \"./openspec3/OS3Header\";\nexport * from \"./openspec3/OS3Link\";\nexport * from \"./openspec3/OS3MediaType\";\nexport * from \"./openspec3/OS3Operation\";\nexport * from \"./openspec3/OS3Parameter\";\nexport * from \"./openspec3/OS3Paths\";\nexport * from \"./openspec3/OS3RequestBody\";\nexport * from \"./openspec3/OS3Response\";\nexport * from \"./openspec3/OS3Schema\";\nexport * from \"./openspec3/OS3Security\";\nexport * from \"./openspec3/OS3Server\";\nexport * from \"./openspec3/OpenSpec3\";\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Header.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OS2BaseSchema} from \"./OS2Schema\";\n\nexport interface OS2Header extends OS2BaseSchema {\n /**\n * The type of the object. The value MUST be one of `string`, `number`, `integer`, `boolean`, or `array`.\n */\n type: \"string\" | \"number\" | \"integer\" | \"boolean\" | \"array\";\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Operation.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Operation.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecSecurity} from \"../common/OpenSpecSecurity\";\nimport {OS2Parameter} from \"./OS2Parameter\";\nimport {OS2Response} from \"./OS2Response\";\n\nexport interface OS2Operation {\n /**\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 */\n tags?: string[];\n /**\n * A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.\n */\n summary?: string;\n /**\n * A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.\n */\n description?: string;\n /**\n * Additional external documentation for this operation.\n */\n externalDocs?: OpenSpecExternalDocs;\n /**\n * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.\n */\n operationId?: string;\n /**\n * A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n consumes?: string[];\n /**\n * A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n produces?: string[];\n /**\n * A list of parameters that are applicable for this operation.\n * If a parameter is already defined at the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemParameters),\n * the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters.\n * A unique parameter is defined by a combination of a [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterName) and (location)[https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterIn].\n * The list can use the [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject) to link to parameters that are defined at the [Swagger Object's parameters](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerParameters).\n * There can be one \"body\" parameter at most.\n */\n parameters?: (OS2Parameter | OpenSpecRef)[];\n /**\n * The list of possible responses as they are returned from executing this operation.\n */\n responses: OpenSpecHash<OS2Response | OpenSpecRef>;\n /**\n * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.\n */\n schemes?: string[];\n /**\n * Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.\n */\n deprecated?: boolean;\n /**\n * A declaration of which security schemes are applied for this operation.\n * The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements).\n * This definition overrides any declared top-level [security](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerSecurity).\n * To remove a top-level security declaration, an empty array can be used.\n */\n security?: OpenSpecSecurity;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Parameter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Parameter.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecTypes} from \"../common/OpenSpecTypes\";\nimport {OS2BaseSchema, OS2Schema} from \"./OS2Schema\";\n\nexport type OS2BaseParameter = {\n name: string;\n in: \"body\" | \"query\" | \"path\" | \"header\" | \"formData\";\n required?: boolean;\n description?: string;\n};\n\nexport type OS2BodyParameter = OS2BaseParameter & {\n in: \"body\";\n schema?: OS2Schema;\n};\n\nexport type OS2GenericFormat = {\n type?: OpenSpecTypes;\n format?: string;\n};\n\nexport type OS2IntegerFormat = {\n type: \"integer\";\n format?: \"int32\" | \"int64\";\n};\n\nexport type OS2NumberFormat = {\n type: \"number\";\n format?: \"float\" | \"double\";\n};\n\nexport type OS2StringFormat = {\n type: \"string\";\n format?: \"\" | \"byte\" | \"binary\" | \"date\" | \"date-time\" | \"password\";\n};\n\nexport type OS2SchemaFormatConstraints = OS2GenericFormat | OS2IntegerFormat | OS2NumberFormat | OS2StringFormat;\nexport type OS2BaseFormatContrainedParameter = OS2BaseParameter & OS2SchemaFormatConstraints;\nexport type ParameterCollectionFormat = \"csv\" | \"ssv\" | \"tsv\" | \"pipes\" | \"multi\";\nexport type OS2QueryParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"query\";\n allowEmptyValue?: boolean;\n collectionFormat?: ParameterCollectionFormat;\n };\n\nexport type OS2PathParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"path\";\n required: true;\n };\n\nexport type OS2HeaderParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"header\";\n };\n\nexport type OS2FormDataParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"formData\";\n type: OpenSpecTypes;\n allowEmptyValue?: boolean;\n collectionFormat?: ParameterCollectionFormat;\n };\n\nexport type OS2Parameter = OS2BodyParameter | OS2FormDataParameter | OS2QueryParameter | OS2PathParameter | OS2HeaderParameter;\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Paths.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath} from \"../common/OpenSpecPath\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS2Operation} from \"./OS2Operation\";\nimport {OS2Parameter} from \"./OS2Parameter\";\n\nexport interface OS2Paths extends OpenSpecPath<OS2Operation> {\n parameters?: (OS2Parameter | OpenSpecRef)[];\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Response.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Response.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OS2Header} from \"./OS2Header\";\nimport {OS2Schema} from \"./OS2Schema\";\n\nexport interface OS2Response {\n /**\n * A short description of the response. GFM syntax can be used for rich text representation.\n */\n description: string;\n /**\n * A definition of the response structure. It can be a primitive, an array or an object. If this field does not exist, it means no content is returned as part of the response. As an extension to the Schema Object, its root type value may also be \"file\". This SHOULD be accompanied by a relevant produces mime-type.\n */\n schema?: OS2Schema;\n /**\n * A list of headers that are sent with the response.\n */\n headers?: OpenSpecHash<OS2Header>;\n /**\n * An example of the response message.\n */\n examples?: OpenSpecHash<{}>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Schema.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecXML} from \"../common/OpenSpecXML\";\n\nexport interface OS2XML {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\n\nexport interface OS2BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS2Schema | OpenSpecRef;\n}\n\nexport interface OS2Schema extends OpenSpecJsonSchema<OS2Schema> {\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OS2Security.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Security.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Security.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\n\nexport interface OS2SecurityBase {\n /**\n * The type of the security scheme\n */\n type: \"basic\" | \"apiKey\" | \"oauth2\";\n /**\n *\n */\n description?: string;\n}\n\nexport interface OS2SecurityBasic extends OS2SecurityBase {\n type: \"basic\";\n}\n\nexport interface OS2SecurityApiKey extends OS2SecurityBase {\n type: \"apiKey\";\n name: string;\n in: \"query\" | \"header\";\n}\n\nexport interface OS2SecurityOAuth extends OS2SecurityBase {\n type: \"oauth2\";\n flow: \"accessCode\" | \"application\" | \"implicit\" | \"password\";\n /**\n * The available scopes for the OAuth2 security scheme.\n */\n scopes: OpenSpecHash<string>;\n}\n\nexport interface OS2FlowImplicit extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"implicit\";\n authorizationUrl: string;\n}\n\nexport interface OS2FlowPassword extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"password\";\n tokenUrl: string;\n}\n\nexport interface OS2FlowApplication extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"application\";\n tokenUrl: string;\n}\n\nexport interface OS2FlowAccessCode extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"accessCode\";\n tokenUrl: string;\n authorizationUrl: string;\n}\n\nexport type OS2Security = OS2SecurityBasic | OS2FlowAccessCode | OS2FlowApplication | OS2FlowImplicit | OS2FlowPassword | OS2SecurityApiKey;\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OpenSpec2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSpec2.js","sourceRoot":"","sources":["../../../src/openspec2/OpenSpec2.ts"],"names":[],"mappings":"","sourcesContent":["import {OS2Response} from \"./OS2Response\";\nimport {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecInfo} from \"../common/OpenSpecInfo\";\nimport {OpenSpecSecurity} from \"../common/OpenSpecSecurity\";\nimport {OpenSpecTag} from \"../common/OpenSpecTag\";\nimport {OS2BodyParameter, OS2QueryParameter} from \"./OS2Parameter\";\nimport {OS2Paths} from \"./OS2Paths\";\nimport {OS2Schema} from \"./OS2Schema\";\nimport {OS2Security} from \"./OS2Security\";\n\nexport interface OpenSpec2 {\n /**\n * Specifies the Swagger Specification version being used. It can be used by the Swagger UI and other clients to interpret the API listing. The value MUST be \"2.0\".\n */\n swagger: string;\n /**\n * Provides metadata about the API. The metadata can be used by the clients if needed.\n */\n info?: OpenSpecInfo;\n /**\n * The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).\n */\n host?: string;\n /**\n * The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).\n */\n basePath?: string;\n /**\n * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.\n */\n schemes?: (\"http\" | \"https\" | \"ws\" | \"wss\")[];\n /**\n * A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n consumes?: string[];\n /**\n * A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n produces?: string[];\n /**\n * The available paths and operations for the API.\n */\n paths?: OpenSpecHash<OS2Paths>;\n /**\n * An object to hold data types produced and consumed by operations.\n */\n definitions?: OpenSpecHash<OS2Schema>;\n /**\n * An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.\n */\n parameters?: OpenSpecHash<OS2BodyParameter | OS2QueryParameter>;\n /**\n * An object to hold responses that can be used across operations. This property does not define global responses for all operations.\n */\n responses?: OpenSpecHash<OS2Response>;\n /**\n * A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.\n */\n security?: OpenSpecSecurity;\n /**\n * Security scheme definitions that can be used across the specification.\n */\n securityDefinitions?: OpenSpecHash<OS2Security>;\n /**\n * A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.\n */\n tags?: OpenSpecTag[];\n /**\n * Additional external documentation.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Header.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs, OpenSpecRef} from \"../common\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport interface OS3Header<Schema = OS3Schema> {\n /**\n * A description of the header. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * The schema defining the type used for the header.\n */\n schema?: Schema | OpenSpecRef;\n /**\n * Additional external documentation for this tag.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
1
+ {"version":3,"file":"OS3Header.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport interface OS3Header<Schema = OS3Schema> {\n /**\n * A description of the header. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * The schema defining the type used for the header.\n */\n schema?: Schema | OpenSpecRef;\n /**\n * Additional external documentation for this tag.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Parameter.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash, OpenSpecRef} from \"../common\";\nimport {OS3Example} from \"./OS3Example\";\nimport {OS3MediaType} from \"./OS3MediaType\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport type OS3StyleParameter = \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n\nexport interface OS3Parameter<Schema = OS3Schema> {\n /**\n *The name of the parameter. Parameter names are case sensitive.\n *\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"path\"`, the `name` field MUST correspond to the associated [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsPath) segment from the path field in the [Paths Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsObject). See [Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathTemplating) for further information.\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"header\"` and the `name` field is `\"Accept\"`, `\"Content-Type\"` or `\"Authorization\"`, the parameter definition SHALL be ignored.\n * - For all other cases, the `name` corresponds to the parameter name used by the [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) property.\n */\n name: string;\n /**\n * The location of the parameter. Possible values are `\"query\"`, `\"header\"`, `\"path\"` or `\"cookie\"`.\n */\n in: \"path\" | \"query\" | \"header\" | \"cookie\";\n /**\n * Determines whether this parameter is mandatory. If the [parameter location](Determines whether this parameter is mandatory.\n * If the parameter location is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is false.) is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is `false`.\n */\n required: boolean;\n /**\n * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.\n */\n deprecated?: boolean;\n /**\n * Sets the ability to pass empty-valued parameters.\n * This is valid only for query parameters and allows sending a parameter with an empty value.\n * Default value is `false`.\n * If style is used, and if behavior is `n/a` (cannot be serialized), the value of `allowEmptyValue` SHALL be ignored.\n */\n allowEmptyValue?: boolean;\n /**\n * The schema defining the type used for the parameter.\n */\n schema?: OS3Schema | OpenSpecRef;\n /**\n * Describes how the parameter value will be serialized depending on the type of the parameter value.\n * Default values (based on value of in): for `query` - `form`; for `path` - `simple`; for `header` - `simple`; for `cookie` - `form`.\n * See [style values](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#style-values).\n */\n style?: OS3StyleParameter;\n /**\n * When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.\n * For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.\n */\n explode?: boolean;\n /**\n * Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.\n * This property only applies to parameters with an `in` value of `query`. The default value is `false`.\n */\n allowReserved?: boolean;\n /**\n * Example of the media type.\n * The `example` SHOULD match the specified schema and encoding properties if present.\n * The `example` field is mutually exclusive of the `examples` field.\n * Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL override the example provided by the schema.\n * To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.\n */\n example?: any;\n /**\n * Examples of the media type.\n * Each example SHOULD contain a value in the correct format as specified in the parameter encoding.\n * The `examples` field is mutually exclusive of the `example` field.\n * Furthermore, if referencing a `schema` which contains an example, the examples value SHALL override the example provided by the schema.\n */\n examples?: OpenSpecHash<OS3Example | OpenSpecRef>;\n /***\n * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.\n */\n content?: OpenSpecHash<OS3MediaType>;\n}\n"]}
1
+ {"version":3,"file":"OS3Parameter.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Example} from \"./OS3Example\";\nimport {OS3MediaType} from \"./OS3MediaType\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport type OS3StyleParameter = \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n\nexport interface OS3Parameter<Schema = OS3Schema> {\n /**\n *The name of the parameter. Parameter names are case sensitive.\n *\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"path\"`, the `name` field MUST correspond to the associated [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsPath) segment from the path field in the [Paths Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsObject). See [Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathTemplating) for further information.\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"header\"` and the `name` field is `\"Accept\"`, `\"Content-Type\"` or `\"Authorization\"`, the parameter definition SHALL be ignored.\n * - For all other cases, the `name` corresponds to the parameter name used by the [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) property.\n */\n name: string;\n /**\n * The location of the parameter. Possible values are `\"query\"`, `\"header\"`, `\"path\"` or `\"cookie\"`.\n */\n in: \"path\" | \"query\" | \"header\" | \"cookie\";\n /**\n * Determines whether this parameter is mandatory. If the [parameter location](Determines whether this parameter is mandatory.\n * If the parameter location is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is false.) is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is `false`.\n */\n required: boolean;\n /**\n * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.\n */\n deprecated?: boolean;\n /**\n * Sets the ability to pass empty-valued parameters.\n * This is valid only for query parameters and allows sending a parameter with an empty value.\n * Default value is `false`.\n * If style is used, and if behavior is `n/a` (cannot be serialized), the value of `allowEmptyValue` SHALL be ignored.\n */\n allowEmptyValue?: boolean;\n /**\n * The schema defining the type used for the parameter.\n */\n schema?: OS3Schema | OpenSpecRef;\n /**\n * Describes how the parameter value will be serialized depending on the type of the parameter value.\n * Default values (based on value of in): for `query` - `form`; for `path` - `simple`; for `header` - `simple`; for `cookie` - `form`.\n * See [style values](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#style-values).\n */\n style?: OS3StyleParameter;\n /**\n * When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.\n * For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.\n */\n explode?: boolean;\n /**\n * Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.\n * This property only applies to parameters with an `in` value of `query`. The default value is `false`.\n */\n allowReserved?: boolean;\n /**\n * Example of the media type.\n * The `example` SHOULD match the specified schema and encoding properties if present.\n * The `example` field is mutually exclusive of the `examples` field.\n * Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL override the example provided by the schema.\n * To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.\n */\n example?: any;\n /**\n * Examples of the media type.\n * Each example SHOULD contain a value in the correct format as specified in the parameter encoding.\n * The `examples` field is mutually exclusive of the `example` field.\n * Furthermore, if referencing a `schema` which contains an example, the examples value SHALL override the example provided by the schema.\n */\n examples?: OpenSpecHash<OS3Example | OpenSpecRef>;\n /***\n * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.\n */\n content?: OpenSpecHash<OS3MediaType>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Paths.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath, OpenSpecRef} from \"../common\";\nimport {OS3Operation} from \"./OS3Operation\";\nimport {OS3Parameter} from \"./OS3Parameter\";\nimport {OS3Schema} from \"./OS3Schema\";\nimport {OS3Server} from \"./OS3Server\";\n\nexport interface OS3Paths<Schema = OS3Schema> extends OpenSpecPath<OS3Operation<Schema>> {\n /**\n * An optional, string summary, intended to apply to all operations in this path.\n */\n summary?: string;\n /**\n * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * A definition of a TRACE operation on this path.\n */\n trace?: OS3Operation<Schema>;\n /**\n * An alternative server array to service all operations in this path.\n */\n servers?: OS3Server[];\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. 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 at the OpenAPI Object's components/parameters.\n */\n parameters?: (OS3Parameter<Schema> | OpenSpecRef)[];\n}\n"]}
1
+ {"version":3,"file":"OS3Paths.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath} from \"../common/OpenSpecPath\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Operation} from \"./OS3Operation\";\nimport {OS3Parameter} from \"./OS3Parameter\";\nimport {OS3Schema} from \"./OS3Schema\";\nimport {OS3Server} from \"./OS3Server\";\n\nexport interface OS3Paths<Schema = OS3Schema> extends OpenSpecPath<OS3Operation<Schema>> {\n /**\n * An optional, string summary, intended to apply to all operations in this path.\n */\n summary?: string;\n /**\n * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * A definition of a TRACE operation on this path.\n */\n trace?: OS3Operation<Schema>;\n /**\n * An alternative server array to service all operations in this path.\n */\n servers?: OS3Server[];\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. 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 at the OpenAPI Object's components/parameters.\n */\n parameters?: (OS3Parameter<Schema> | OpenSpecRef)[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Schema.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs, OpenSpecRef, OpenSpecXML} from \"../common\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\n\nexport interface OS3BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS3Schema | OpenSpecRef;\n}\n\nexport interface OS3Schema extends OpenSpecJsonSchema<OS3Schema> {\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n oneOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n anyOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n not?: OS3Schema | OpenSpecRef;\n /**\n * Allows sending a null value for the defined schema. Default value is false.\n */\n nullable?: boolean;\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"write only\". Therefore, it MAY be sent as part of a request but SHOULD NOT be sent as part of the response. If the property is marked as writeOnly being true and is in the required list, the required will take effect on the request only. A property MUST NOT be marked as both readOnly and writeOnly being true. Default value is false.\n */\n writeOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
1
+ {"version":3,"file":"OS3Schema.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecXML} from \"../common/OpenSpecXML\";\n\nexport interface OS3BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS3Schema | OpenSpecRef;\n}\n\nexport interface OS3Schema extends OpenSpecJsonSchema<OS3Schema> {\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n oneOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n anyOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n not?: OS3Schema | OpenSpecRef;\n /**\n * Allows sending a null value for the defined schema. Default value is false.\n */\n nullable?: boolean;\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"write only\". Therefore, it MAY be sent as part of a request but SHOULD NOT be sent as part of the response. If the property is marked as writeOnly being true and is in the required list, the required will take effect on the request only. A property MUST NOT be marked as both readOnly and writeOnly being true. Default value is false.\n */\n writeOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"OpenSpecVersions.js","sourceRoot":"","sources":["../../../src/common/OpenSpecVersions.ts"],"names":[],"mappings":"","sourcesContent":["export type OS3Versions = \"3.0.1\" | \"3.0.2\" | \"3.0.3\";\nexport type OpenSpecVersions = OS3Versions;\n"]}
1
+ {"version":3,"file":"OpenSpecVersions.js","sourceRoot":"","sources":["../../../src/common/OpenSpecVersions.ts"],"names":[],"mappings":"","sourcesContent":["export type OS2Versions = \"2.0\";\nexport type OS3Versions = \"3.0.1\" | \"3.0.2\" | \"3.0.3\";\nexport type OpenSpecVersions = OS2Versions | OS3Versions;\n"]}
package/lib/esm/index.js CHANGED
@@ -1,3 +1,40 @@
1
- export * from "./common";
2
- export * from "./openspec3";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./common/OpenSpecExternalDocs.js";
5
+ export * from "./common/OpenSpecHash.js";
6
+ export * from "./common/OpenSpecInfo.js";
7
+ export * from "./common/OpenSpecJsonSchema.js";
8
+ export * from "./common/OpenSpecPath.js";
9
+ export * from "./common/OpenSpecRef.js";
10
+ export * from "./common/OpenSpecSecurity.js";
11
+ export * from "./common/OpenSpecTag.js";
12
+ export * from "./common/OpenSpecTypes.js";
13
+ export * from "./common/OpenSpecVersions.js";
14
+ export * from "./common/OpenSpecXML.js";
15
+ export * from "./openspec2/OS2Header.js";
16
+ export * from "./openspec2/OS2Operation.js";
17
+ export * from "./openspec2/OS2Parameter.js";
18
+ export * from "./openspec2/OS2Paths.js";
19
+ export * from "./openspec2/OS2Response.js";
20
+ export * from "./openspec2/OS2Schema.js";
21
+ export * from "./openspec2/OS2Security.js";
22
+ export * from "./openspec2/OpenSpec2.js";
23
+ export * from "./openspec3/OS3Callbacks.js";
24
+ export * from "./openspec3/OS3Components.js";
25
+ export * from "./openspec3/OS3Encoding.js";
26
+ export * from "./openspec3/OS3Example.js";
27
+ export * from "./openspec3/OS3Flows.js";
28
+ export * from "./openspec3/OS3Header.js";
29
+ export * from "./openspec3/OS3Link.js";
30
+ export * from "./openspec3/OS3MediaType.js";
31
+ export * from "./openspec3/OS3Operation.js";
32
+ export * from "./openspec3/OS3Parameter.js";
33
+ export * from "./openspec3/OS3Paths.js";
34
+ export * from "./openspec3/OS3RequestBody.js";
35
+ export * from "./openspec3/OS3Response.js";
36
+ export * from "./openspec3/OS3Schema.js";
37
+ export * from "./openspec3/OS3Security.js";
38
+ export * from "./openspec3/OS3Server.js";
39
+ export * from "./openspec3/OpenSpec3.js";
3
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC","sourcesContent":["export * from \"./common\";\nexport * from \"./openspec3\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./common/OpenSpecExternalDocs\";\nexport * from \"./common/OpenSpecHash\";\nexport * from \"./common/OpenSpecInfo\";\nexport * from \"./common/OpenSpecJsonSchema\";\nexport * from \"./common/OpenSpecPath\";\nexport * from \"./common/OpenSpecRef\";\nexport * from \"./common/OpenSpecSecurity\";\nexport * from \"./common/OpenSpecTag\";\nexport * from \"./common/OpenSpecTypes\";\nexport * from \"./common/OpenSpecVersions\";\nexport * from \"./common/OpenSpecXML\";\nexport * from \"./openspec2/OS2Header\";\nexport * from \"./openspec2/OS2Operation\";\nexport * from \"./openspec2/OS2Parameter\";\nexport * from \"./openspec2/OS2Paths\";\nexport * from \"./openspec2/OS2Response\";\nexport * from \"./openspec2/OS2Schema\";\nexport * from \"./openspec2/OS2Security\";\nexport * from \"./openspec2/OpenSpec2\";\nexport * from \"./openspec3/OS3Callbacks\";\nexport * from \"./openspec3/OS3Components\";\nexport * from \"./openspec3/OS3Encoding\";\nexport * from \"./openspec3/OS3Example\";\nexport * from \"./openspec3/OS3Flows\";\nexport * from \"./openspec3/OS3Header\";\nexport * from \"./openspec3/OS3Link\";\nexport * from \"./openspec3/OS3MediaType\";\nexport * from \"./openspec3/OS3Operation\";\nexport * from \"./openspec3/OS3Parameter\";\nexport * from \"./openspec3/OS3Paths\";\nexport * from \"./openspec3/OS3RequestBody\";\nexport * from \"./openspec3/OS3Response\";\nexport * from \"./openspec3/OS3Schema\";\nexport * from \"./openspec3/OS3Security\";\nexport * from \"./openspec3/OS3Server\";\nexport * from \"./openspec3/OpenSpec3\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Header.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OS2BaseSchema} from \"./OS2Schema\";\n\nexport interface OS2Header extends OS2BaseSchema {\n /**\n * The type of the object. The value MUST be one of `string`, `number`, `integer`, `boolean`, or `array`.\n */\n type: \"string\" | \"number\" | \"integer\" | \"boolean\" | \"array\";\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Operation.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Operation.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecSecurity} from \"../common/OpenSpecSecurity\";\nimport {OS2Parameter} from \"./OS2Parameter\";\nimport {OS2Response} from \"./OS2Response\";\n\nexport interface OS2Operation {\n /**\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 */\n tags?: string[];\n /**\n * A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.\n */\n summary?: string;\n /**\n * A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.\n */\n description?: string;\n /**\n * Additional external documentation for this operation.\n */\n externalDocs?: OpenSpecExternalDocs;\n /**\n * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.\n */\n operationId?: string;\n /**\n * A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n consumes?: string[];\n /**\n * A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n produces?: string[];\n /**\n * A list of parameters that are applicable for this operation.\n * If a parameter is already defined at the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemParameters),\n * the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters.\n * A unique parameter is defined by a combination of a [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterName) and (location)[https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterIn].\n * The list can use the [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject) to link to parameters that are defined at the [Swagger Object's parameters](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerParameters).\n * There can be one \"body\" parameter at most.\n */\n parameters?: (OS2Parameter | OpenSpecRef)[];\n /**\n * The list of possible responses as they are returned from executing this operation.\n */\n responses: OpenSpecHash<OS2Response | OpenSpecRef>;\n /**\n * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.\n */\n schemes?: string[];\n /**\n * Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.\n */\n deprecated?: boolean;\n /**\n * A declaration of which security schemes are applied for this operation.\n * The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements).\n * This definition overrides any declared top-level [security](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerSecurity).\n * To remove a top-level security declaration, an empty array can be used.\n */\n security?: OpenSpecSecurity;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Parameter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Parameter.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecTypes} from \"../common/OpenSpecTypes\";\nimport {OS2BaseSchema, OS2Schema} from \"./OS2Schema\";\n\nexport type OS2BaseParameter = {\n name: string;\n in: \"body\" | \"query\" | \"path\" | \"header\" | \"formData\";\n required?: boolean;\n description?: string;\n};\n\nexport type OS2BodyParameter = OS2BaseParameter & {\n in: \"body\";\n schema?: OS2Schema;\n};\n\nexport type OS2GenericFormat = {\n type?: OpenSpecTypes;\n format?: string;\n};\n\nexport type OS2IntegerFormat = {\n type: \"integer\";\n format?: \"int32\" | \"int64\";\n};\n\nexport type OS2NumberFormat = {\n type: \"number\";\n format?: \"float\" | \"double\";\n};\n\nexport type OS2StringFormat = {\n type: \"string\";\n format?: \"\" | \"byte\" | \"binary\" | \"date\" | \"date-time\" | \"password\";\n};\n\nexport type OS2SchemaFormatConstraints = OS2GenericFormat | OS2IntegerFormat | OS2NumberFormat | OS2StringFormat;\nexport type OS2BaseFormatContrainedParameter = OS2BaseParameter & OS2SchemaFormatConstraints;\nexport type ParameterCollectionFormat = \"csv\" | \"ssv\" | \"tsv\" | \"pipes\" | \"multi\";\nexport type OS2QueryParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"query\";\n allowEmptyValue?: boolean;\n collectionFormat?: ParameterCollectionFormat;\n };\n\nexport type OS2PathParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"path\";\n required: true;\n };\n\nexport type OS2HeaderParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"header\";\n };\n\nexport type OS2FormDataParameter = OS2BaseFormatContrainedParameter &\n OS2BaseSchema & {\n in: \"formData\";\n type: OpenSpecTypes;\n allowEmptyValue?: boolean;\n collectionFormat?: ParameterCollectionFormat;\n };\n\nexport type OS2Parameter = OS2BodyParameter | OS2FormDataParameter | OS2QueryParameter | OS2PathParameter | OS2HeaderParameter;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Paths.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath} from \"../common/OpenSpecPath\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS2Operation} from \"./OS2Operation\";\nimport {OS2Parameter} from \"./OS2Parameter\";\n\nexport interface OS2Paths extends OpenSpecPath<OS2Operation> {\n parameters?: (OS2Parameter | OpenSpecRef)[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Response.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Response.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OS2Header} from \"./OS2Header\";\nimport {OS2Schema} from \"./OS2Schema\";\n\nexport interface OS2Response {\n /**\n * A short description of the response. GFM syntax can be used for rich text representation.\n */\n description: string;\n /**\n * A definition of the response structure. It can be a primitive, an array or an object. If this field does not exist, it means no content is returned as part of the response. As an extension to the Schema Object, its root type value may also be \"file\". This SHOULD be accompanied by a relevant produces mime-type.\n */\n schema?: OS2Schema;\n /**\n * A list of headers that are sent with the response.\n */\n headers?: OpenSpecHash<OS2Header>;\n /**\n * An example of the response message.\n */\n examples?: OpenSpecHash<{}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Schema.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecXML} from \"../common/OpenSpecXML\";\n\nexport interface OS2XML {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\n\nexport interface OS2BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS2Schema | OpenSpecRef;\n}\n\nexport interface OS2Schema extends OpenSpecJsonSchema<OS2Schema> {\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OS2Security.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OS2Security.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Security.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\n\nexport interface OS2SecurityBase {\n /**\n * The type of the security scheme\n */\n type: \"basic\" | \"apiKey\" | \"oauth2\";\n /**\n *\n */\n description?: string;\n}\n\nexport interface OS2SecurityBasic extends OS2SecurityBase {\n type: \"basic\";\n}\n\nexport interface OS2SecurityApiKey extends OS2SecurityBase {\n type: \"apiKey\";\n name: string;\n in: \"query\" | \"header\";\n}\n\nexport interface OS2SecurityOAuth extends OS2SecurityBase {\n type: \"oauth2\";\n flow: \"accessCode\" | \"application\" | \"implicit\" | \"password\";\n /**\n * The available scopes for the OAuth2 security scheme.\n */\n scopes: OpenSpecHash<string>;\n}\n\nexport interface OS2FlowImplicit extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"implicit\";\n authorizationUrl: string;\n}\n\nexport interface OS2FlowPassword extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"password\";\n tokenUrl: string;\n}\n\nexport interface OS2FlowApplication extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"application\";\n tokenUrl: string;\n}\n\nexport interface OS2FlowAccessCode extends OS2SecurityOAuth {\n type: \"oauth2\";\n flow: \"accessCode\";\n tokenUrl: string;\n authorizationUrl: string;\n}\n\nexport type OS2Security = OS2SecurityBasic | OS2FlowAccessCode | OS2FlowApplication | OS2FlowImplicit | OS2FlowPassword | OS2SecurityApiKey;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OpenSpec2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenSpec2.js","sourceRoot":"","sources":["../../../src/openspec2/OpenSpec2.ts"],"names":[],"mappings":"","sourcesContent":["import {OS2Response} from \"./OS2Response\";\nimport {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecInfo} from \"../common/OpenSpecInfo\";\nimport {OpenSpecSecurity} from \"../common/OpenSpecSecurity\";\nimport {OpenSpecTag} from \"../common/OpenSpecTag\";\nimport {OS2BodyParameter, OS2QueryParameter} from \"./OS2Parameter\";\nimport {OS2Paths} from \"./OS2Paths\";\nimport {OS2Schema} from \"./OS2Schema\";\nimport {OS2Security} from \"./OS2Security\";\n\nexport interface OpenSpec2 {\n /**\n * Specifies the Swagger Specification version being used. It can be used by the Swagger UI and other clients to interpret the API listing. The value MUST be \"2.0\".\n */\n swagger: string;\n /**\n * Provides metadata about the API. The metadata can be used by the clients if needed.\n */\n info?: OpenSpecInfo;\n /**\n * The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).\n */\n host?: string;\n /**\n * The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).\n */\n basePath?: string;\n /**\n * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.\n */\n schemes?: (\"http\" | \"https\" | \"ws\" | \"wss\")[];\n /**\n * A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n consumes?: string[];\n /**\n * A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).\n */\n produces?: string[];\n /**\n * The available paths and operations for the API.\n */\n paths?: OpenSpecHash<OS2Paths>;\n /**\n * An object to hold data types produced and consumed by operations.\n */\n definitions?: OpenSpecHash<OS2Schema>;\n /**\n * An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.\n */\n parameters?: OpenSpecHash<OS2BodyParameter | OS2QueryParameter>;\n /**\n * An object to hold responses that can be used across operations. This property does not define global responses for all operations.\n */\n responses?: OpenSpecHash<OS2Response>;\n /**\n * A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.\n */\n security?: OpenSpecSecurity;\n /**\n * Security scheme definitions that can be used across the specification.\n */\n securityDefinitions?: OpenSpecHash<OS2Security>;\n /**\n * A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.\n */\n tags?: OpenSpecTag[];\n /**\n * Additional external documentation.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Header.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs, OpenSpecRef} from \"../common\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport interface OS3Header<Schema = OS3Schema> {\n /**\n * A description of the header. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * The schema defining the type used for the header.\n */\n schema?: Schema | OpenSpecRef;\n /**\n * Additional external documentation for this tag.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
1
+ {"version":3,"file":"OS3Header.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Header.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport interface OS3Header<Schema = OS3Schema> {\n /**\n * A description of the header. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * The schema defining the type used for the header.\n */\n schema?: Schema | OpenSpecRef;\n /**\n * Additional external documentation for this tag.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Parameter.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash, OpenSpecRef} from \"../common\";\nimport {OS3Example} from \"./OS3Example\";\nimport {OS3MediaType} from \"./OS3MediaType\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport type OS3StyleParameter = \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n\nexport interface OS3Parameter<Schema = OS3Schema> {\n /**\n *The name of the parameter. Parameter names are case sensitive.\n *\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"path\"`, the `name` field MUST correspond to the associated [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsPath) segment from the path field in the [Paths Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsObject). See [Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathTemplating) for further information.\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"header\"` and the `name` field is `\"Accept\"`, `\"Content-Type\"` or `\"Authorization\"`, the parameter definition SHALL be ignored.\n * - For all other cases, the `name` corresponds to the parameter name used by the [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) property.\n */\n name: string;\n /**\n * The location of the parameter. Possible values are `\"query\"`, `\"header\"`, `\"path\"` or `\"cookie\"`.\n */\n in: \"path\" | \"query\" | \"header\" | \"cookie\";\n /**\n * Determines whether this parameter is mandatory. If the [parameter location](Determines whether this parameter is mandatory.\n * If the parameter location is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is false.) is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is `false`.\n */\n required: boolean;\n /**\n * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.\n */\n deprecated?: boolean;\n /**\n * Sets the ability to pass empty-valued parameters.\n * This is valid only for query parameters and allows sending a parameter with an empty value.\n * Default value is `false`.\n * If style is used, and if behavior is `n/a` (cannot be serialized), the value of `allowEmptyValue` SHALL be ignored.\n */\n allowEmptyValue?: boolean;\n /**\n * The schema defining the type used for the parameter.\n */\n schema?: OS3Schema | OpenSpecRef;\n /**\n * Describes how the parameter value will be serialized depending on the type of the parameter value.\n * Default values (based on value of in): for `query` - `form`; for `path` - `simple`; for `header` - `simple`; for `cookie` - `form`.\n * See [style values](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#style-values).\n */\n style?: OS3StyleParameter;\n /**\n * When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.\n * For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.\n */\n explode?: boolean;\n /**\n * Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.\n * This property only applies to parameters with an `in` value of `query`. The default value is `false`.\n */\n allowReserved?: boolean;\n /**\n * Example of the media type.\n * The `example` SHOULD match the specified schema and encoding properties if present.\n * The `example` field is mutually exclusive of the `examples` field.\n * Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL override the example provided by the schema.\n * To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.\n */\n example?: any;\n /**\n * Examples of the media type.\n * Each example SHOULD contain a value in the correct format as specified in the parameter encoding.\n * The `examples` field is mutually exclusive of the `example` field.\n * Furthermore, if referencing a `schema` which contains an example, the examples value SHALL override the example provided by the schema.\n */\n examples?: OpenSpecHash<OS3Example | OpenSpecRef>;\n /***\n * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.\n */\n content?: OpenSpecHash<OS3MediaType>;\n}\n"]}
1
+ {"version":3,"file":"OS3Parameter.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Parameter.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecHash} from \"../common/OpenSpecHash\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Example} from \"./OS3Example\";\nimport {OS3MediaType} from \"./OS3MediaType\";\nimport {OS3Schema} from \"./OS3Schema\";\n\nexport type OS3StyleParameter = \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n\nexport interface OS3Parameter<Schema = OS3Schema> {\n /**\n *The name of the parameter. Parameter names are case sensitive.\n *\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"path\"`, the `name` field MUST correspond to the associated [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsPath) segment from the path field in the [Paths Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathsObject). See [Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#pathTemplating) for further information.\n * - If [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) is `\"header\"` and the `name` field is `\"Accept\"`, `\"Content-Type\"` or `\"Authorization\"`, the parameter definition SHALL be ignored.\n * - For all other cases, the `name` corresponds to the parameter name used by the [`in`](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterIn) property.\n */\n name: string;\n /**\n * The location of the parameter. Possible values are `\"query\"`, `\"header\"`, `\"path\"` or `\"cookie\"`.\n */\n in: \"path\" | \"query\" | \"header\" | \"cookie\";\n /**\n * Determines whether this parameter is mandatory. If the [parameter location](Determines whether this parameter is mandatory.\n * If the parameter location is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is false.) is `\"path\"`, this property is **REQUIRED** and its value MUST be `true`.\n * Otherwise, the property MAY be included and its default value is `false`.\n */\n required: boolean;\n /**\n * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.\n */\n deprecated?: boolean;\n /**\n * Sets the ability to pass empty-valued parameters.\n * This is valid only for query parameters and allows sending a parameter with an empty value.\n * Default value is `false`.\n * If style is used, and if behavior is `n/a` (cannot be serialized), the value of `allowEmptyValue` SHALL be ignored.\n */\n allowEmptyValue?: boolean;\n /**\n * The schema defining the type used for the parameter.\n */\n schema?: OS3Schema | OpenSpecRef;\n /**\n * Describes how the parameter value will be serialized depending on the type of the parameter value.\n * Default values (based on value of in): for `query` - `form`; for `path` - `simple`; for `header` - `simple`; for `cookie` - `form`.\n * See [style values](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#style-values).\n */\n style?: OS3StyleParameter;\n /**\n * When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.\n * For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.\n */\n explode?: boolean;\n /**\n * Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.\n * This property only applies to parameters with an `in` value of `query`. The default value is `false`.\n */\n allowReserved?: boolean;\n /**\n * Example of the media type.\n * The `example` SHOULD match the specified schema and encoding properties if present.\n * The `example` field is mutually exclusive of the `examples` field.\n * Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL override the example provided by the schema.\n * To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.\n */\n example?: any;\n /**\n * Examples of the media type.\n * Each example SHOULD contain a value in the correct format as specified in the parameter encoding.\n * The `examples` field is mutually exclusive of the `example` field.\n * Furthermore, if referencing a `schema` which contains an example, the examples value SHALL override the example provided by the schema.\n */\n examples?: OpenSpecHash<OS3Example | OpenSpecRef>;\n /***\n * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.\n */\n content?: OpenSpecHash<OS3MediaType>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Paths.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath, OpenSpecRef} from \"../common\";\nimport {OS3Operation} from \"./OS3Operation\";\nimport {OS3Parameter} from \"./OS3Parameter\";\nimport {OS3Schema} from \"./OS3Schema\";\nimport {OS3Server} from \"./OS3Server\";\n\nexport interface OS3Paths<Schema = OS3Schema> extends OpenSpecPath<OS3Operation<Schema>> {\n /**\n * An optional, string summary, intended to apply to all operations in this path.\n */\n summary?: string;\n /**\n * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * A definition of a TRACE operation on this path.\n */\n trace?: OS3Operation<Schema>;\n /**\n * An alternative server array to service all operations in this path.\n */\n servers?: OS3Server[];\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. 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 at the OpenAPI Object's components/parameters.\n */\n parameters?: (OS3Parameter<Schema> | OpenSpecRef)[];\n}\n"]}
1
+ {"version":3,"file":"OS3Paths.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Paths.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecPath} from \"../common/OpenSpecPath\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OS3Operation} from \"./OS3Operation\";\nimport {OS3Parameter} from \"./OS3Parameter\";\nimport {OS3Schema} from \"./OS3Schema\";\nimport {OS3Server} from \"./OS3Server\";\n\nexport interface OS3Paths<Schema = OS3Schema> extends OpenSpecPath<OS3Operation<Schema>> {\n /**\n * An optional, string summary, intended to apply to all operations in this path.\n */\n summary?: string;\n /**\n * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.\n */\n description?: string;\n /**\n * A definition of a TRACE operation on this path.\n */\n trace?: OS3Operation<Schema>;\n /**\n * An alternative server array to service all operations in this path.\n */\n servers?: OS3Server[];\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. 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 at the OpenAPI Object's components/parameters.\n */\n parameters?: (OS3Parameter<Schema> | OpenSpecRef)[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"OS3Schema.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs, OpenSpecRef, OpenSpecXML} from \"../common\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\n\nexport interface OS3BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS3Schema | OpenSpecRef;\n}\n\nexport interface OS3Schema extends OpenSpecJsonSchema<OS3Schema> {\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n oneOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n anyOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n not?: OS3Schema | OpenSpecRef;\n /**\n * Allows sending a null value for the defined schema. Default value is false.\n */\n nullable?: boolean;\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"write only\". Therefore, it MAY be sent as part of a request but SHOULD NOT be sent as part of the response. If the property is marked as writeOnly being true and is in the required list, the required will take effect on the request only. A property MUST NOT be marked as both readOnly and writeOnly being true. Default value is false.\n */\n writeOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
1
+ {"version":3,"file":"OS3Schema.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Schema.ts"],"names":[],"mappings":"","sourcesContent":["import {OpenSpecExternalDocs} from \"../common/OpenSpecExternalDocs\";\nimport {OpenSpecBaseJsonSchema, OpenSpecJsonSchema} from \"../common/OpenSpecJsonSchema\";\nimport {OpenSpecRef} from \"../common/OpenSpecRef\";\nimport {OpenSpecXML} from \"../common/OpenSpecXML\";\n\nexport interface OS3BaseSchema extends OpenSpecBaseJsonSchema {\n /**\n * Required if type is \"array\". Describes the type of items in the array.\n */\n items?: OS3Schema | OpenSpecRef;\n}\n\nexport interface OS3Schema extends OpenSpecJsonSchema<OS3Schema> {\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n oneOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n anyOf?: (OS3Schema | OpenSpecRef)[];\n /**\n * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.\n */\n not?: OS3Schema | OpenSpecRef;\n /**\n * Allows sending a null value for the defined schema. Default value is false.\n */\n nullable?: boolean;\n /**\n * Adds support for polymorphism.\n * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.\n */\n discriminator?: string;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"read only\". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.\n */\n readOnly?: boolean;\n /**\n * Relevant only for Schema \"properties\" definitions. Declares the property as \"write only\". Therefore, it MAY be sent as part of a request but SHOULD NOT be sent as part of the response. If the property is marked as writeOnly being true and is in the required list, the required will take effect on the request only. A property MUST NOT be marked as both readOnly and writeOnly being true. Default value is false.\n */\n writeOnly?: boolean;\n /**\n * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.\n */\n xml?: OpenSpecXML;\n /**\n * Additional external documentation for this schema.\n */\n externalDocs?: OpenSpecExternalDocs;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,2 +1,3 @@
1
+ export declare type OS2Versions = "2.0";
1
2
  export declare type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3";
2
- export declare type OpenSpecVersions = OS3Versions;
3
+ export declare type OpenSpecVersions = OS2Versions | OS3Versions;
@@ -1,2 +1,39 @@
1
- export * from "./common";
2
- export * from "./openspec3";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./common/OpenSpecExternalDocs";
5
+ export * from "./common/OpenSpecHash";
6
+ export * from "./common/OpenSpecInfo";
7
+ export * from "./common/OpenSpecJsonSchema";
8
+ export * from "./common/OpenSpecPath";
9
+ export * from "./common/OpenSpecRef";
10
+ export * from "./common/OpenSpecSecurity";
11
+ export * from "./common/OpenSpecTag";
12
+ export * from "./common/OpenSpecTypes";
13
+ export * from "./common/OpenSpecVersions";
14
+ export * from "./common/OpenSpecXML";
15
+ export * from "./openspec2/OS2Header";
16
+ export * from "./openspec2/OS2Operation";
17
+ export * from "./openspec2/OS2Parameter";
18
+ export * from "./openspec2/OS2Paths";
19
+ export * from "./openspec2/OS2Response";
20
+ export * from "./openspec2/OS2Schema";
21
+ export * from "./openspec2/OS2Security";
22
+ export * from "./openspec2/OpenSpec2";
23
+ export * from "./openspec3/OS3Callbacks";
24
+ export * from "./openspec3/OS3Components";
25
+ export * from "./openspec3/OS3Encoding";
26
+ export * from "./openspec3/OS3Example";
27
+ export * from "./openspec3/OS3Flows";
28
+ export * from "./openspec3/OS3Header";
29
+ export * from "./openspec3/OS3Link";
30
+ export * from "./openspec3/OS3MediaType";
31
+ export * from "./openspec3/OS3Operation";
32
+ export * from "./openspec3/OS3Parameter";
33
+ export * from "./openspec3/OS3Paths";
34
+ export * from "./openspec3/OS3RequestBody";
35
+ export * from "./openspec3/OS3Response";
36
+ export * from "./openspec3/OS3Schema";
37
+ export * from "./openspec3/OS3Security";
38
+ export * from "./openspec3/OS3Server";
39
+ export * from "./openspec3/OpenSpec3";
@@ -0,0 +1,7 @@
1
+ import { OS2BaseSchema } from "./OS2Schema";
2
+ export interface OS2Header extends OS2BaseSchema {
3
+ /**
4
+ * The type of the object. The value MUST be one of `string`, `number`, `integer`, `boolean`, or `array`.
5
+ */
6
+ type: "string" | "number" | "integer" | "boolean" | "array";
7
+ }
@@ -0,0 +1,64 @@
1
+ import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs";
2
+ import { OpenSpecHash } from "../common/OpenSpecHash";
3
+ import { OpenSpecRef } from "../common/OpenSpecRef";
4
+ import { OpenSpecSecurity } from "../common/OpenSpecSecurity";
5
+ import { OS2Parameter } from "./OS2Parameter";
6
+ import { OS2Response } from "./OS2Response";
7
+ export interface OS2Operation {
8
+ /**
9
+ * A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
10
+ */
11
+ tags?: string[];
12
+ /**
13
+ * A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
14
+ */
15
+ summary?: string;
16
+ /**
17
+ * A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
18
+ */
19
+ description?: string;
20
+ /**
21
+ * Additional external documentation for this operation.
22
+ */
23
+ externalDocs?: OpenSpecExternalDocs;
24
+ /**
25
+ * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.
26
+ */
27
+ operationId?: string;
28
+ /**
29
+ * A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
30
+ */
31
+ consumes?: string[];
32
+ /**
33
+ * A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
34
+ */
35
+ produces?: string[];
36
+ /**
37
+ * A list of parameters that are applicable for this operation.
38
+ * If a parameter is already defined at the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemParameters),
39
+ * the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters.
40
+ * A unique parameter is defined by a combination of a [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterName) and (location)[https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterIn].
41
+ * The list can use the [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject) to link to parameters that are defined at the [Swagger Object's parameters](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerParameters).
42
+ * There can be one "body" parameter at most.
43
+ */
44
+ parameters?: (OS2Parameter | OpenSpecRef)[];
45
+ /**
46
+ * The list of possible responses as they are returned from executing this operation.
47
+ */
48
+ responses: OpenSpecHash<OS2Response | OpenSpecRef>;
49
+ /**
50
+ * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.
51
+ */
52
+ schemes?: string[];
53
+ /**
54
+ * Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.
55
+ */
56
+ deprecated?: boolean;
57
+ /**
58
+ * A declaration of which security schemes are applied for this operation.
59
+ * The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements).
60
+ * This definition overrides any declared top-level [security](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerSecurity).
61
+ * To remove a top-level security declaration, an empty array can be used.
62
+ */
63
+ security?: OpenSpecSecurity;
64
+ }
@@ -0,0 +1,50 @@
1
+ import { OpenSpecTypes } from "../common/OpenSpecTypes";
2
+ import { OS2BaseSchema, OS2Schema } from "./OS2Schema";
3
+ export declare type OS2BaseParameter = {
4
+ name: string;
5
+ in: "body" | "query" | "path" | "header" | "formData";
6
+ required?: boolean;
7
+ description?: string;
8
+ };
9
+ export declare type OS2BodyParameter = OS2BaseParameter & {
10
+ in: "body";
11
+ schema?: OS2Schema;
12
+ };
13
+ export declare type OS2GenericFormat = {
14
+ type?: OpenSpecTypes;
15
+ format?: string;
16
+ };
17
+ export declare type OS2IntegerFormat = {
18
+ type: "integer";
19
+ format?: "int32" | "int64";
20
+ };
21
+ export declare type OS2NumberFormat = {
22
+ type: "number";
23
+ format?: "float" | "double";
24
+ };
25
+ export declare type OS2StringFormat = {
26
+ type: "string";
27
+ format?: "" | "byte" | "binary" | "date" | "date-time" | "password";
28
+ };
29
+ export declare type OS2SchemaFormatConstraints = OS2GenericFormat | OS2IntegerFormat | OS2NumberFormat | OS2StringFormat;
30
+ export declare type OS2BaseFormatContrainedParameter = OS2BaseParameter & OS2SchemaFormatConstraints;
31
+ export declare type ParameterCollectionFormat = "csv" | "ssv" | "tsv" | "pipes" | "multi";
32
+ export declare type OS2QueryParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
33
+ in: "query";
34
+ allowEmptyValue?: boolean;
35
+ collectionFormat?: ParameterCollectionFormat;
36
+ };
37
+ export declare type OS2PathParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
38
+ in: "path";
39
+ required: true;
40
+ };
41
+ export declare type OS2HeaderParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
42
+ in: "header";
43
+ };
44
+ export declare type OS2FormDataParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
45
+ in: "formData";
46
+ type: OpenSpecTypes;
47
+ allowEmptyValue?: boolean;
48
+ collectionFormat?: ParameterCollectionFormat;
49
+ };
50
+ export declare type OS2Parameter = OS2BodyParameter | OS2FormDataParameter | OS2QueryParameter | OS2PathParameter | OS2HeaderParameter;
@@ -0,0 +1,7 @@
1
+ import { OpenSpecPath } from "../common/OpenSpecPath";
2
+ import { OpenSpecRef } from "../common/OpenSpecRef";
3
+ import { OS2Operation } from "./OS2Operation";
4
+ import { OS2Parameter } from "./OS2Parameter";
5
+ export interface OS2Paths extends OpenSpecPath<OS2Operation> {
6
+ parameters?: (OS2Parameter | OpenSpecRef)[];
7
+ }
@@ -0,0 +1,21 @@
1
+ import { OpenSpecHash } from "../common/OpenSpecHash";
2
+ import { OS2Header } from "./OS2Header";
3
+ import { OS2Schema } from "./OS2Schema";
4
+ export interface OS2Response {
5
+ /**
6
+ * A short description of the response. GFM syntax can be used for rich text representation.
7
+ */
8
+ description: string;
9
+ /**
10
+ * A definition of the response structure. It can be a primitive, an array or an object. If this field does not exist, it means no content is returned as part of the response. As an extension to the Schema Object, its root type value may also be "file". This SHOULD be accompanied by a relevant produces mime-type.
11
+ */
12
+ schema?: OS2Schema;
13
+ /**
14
+ * A list of headers that are sent with the response.
15
+ */
16
+ headers?: OpenSpecHash<OS2Header>;
17
+ /**
18
+ * An example of the response message.
19
+ */
20
+ examples?: OpenSpecHash<{}>;
21
+ }
@@ -0,0 +1,36 @@
1
+ import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs";
2
+ import { OpenSpecBaseJsonSchema, OpenSpecJsonSchema } from "../common/OpenSpecJsonSchema";
3
+ import { OpenSpecRef } from "../common/OpenSpecRef";
4
+ import { OpenSpecXML } from "../common/OpenSpecXML";
5
+ export interface OS2XML {
6
+ name?: string;
7
+ namespace?: string;
8
+ prefix?: string;
9
+ attribute?: boolean;
10
+ wrapped?: boolean;
11
+ }
12
+ export interface OS2BaseSchema extends OpenSpecBaseJsonSchema {
13
+ /**
14
+ * Required if type is "array". Describes the type of items in the array.
15
+ */
16
+ items?: OS2Schema | OpenSpecRef;
17
+ }
18
+ export interface OS2Schema extends OpenSpecJsonSchema<OS2Schema> {
19
+ /**
20
+ * Adds support for polymorphism.
21
+ * The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
22
+ */
23
+ discriminator?: string;
24
+ /**
25
+ * Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
26
+ */
27
+ readOnly?: boolean;
28
+ /**
29
+ * This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.
30
+ */
31
+ xml?: OpenSpecXML;
32
+ /**
33
+ * Additional external documentation for this schema.
34
+ */
35
+ externalDocs?: OpenSpecExternalDocs;
36
+ }
@@ -0,0 +1,49 @@
1
+ import { OpenSpecHash } from "../common/OpenSpecHash";
2
+ export interface OS2SecurityBase {
3
+ /**
4
+ * The type of the security scheme
5
+ */
6
+ type: "basic" | "apiKey" | "oauth2";
7
+ /**
8
+ *
9
+ */
10
+ description?: string;
11
+ }
12
+ export interface OS2SecurityBasic extends OS2SecurityBase {
13
+ type: "basic";
14
+ }
15
+ export interface OS2SecurityApiKey extends OS2SecurityBase {
16
+ type: "apiKey";
17
+ name: string;
18
+ in: "query" | "header";
19
+ }
20
+ export interface OS2SecurityOAuth extends OS2SecurityBase {
21
+ type: "oauth2";
22
+ flow: "accessCode" | "application" | "implicit" | "password";
23
+ /**
24
+ * The available scopes for the OAuth2 security scheme.
25
+ */
26
+ scopes: OpenSpecHash<string>;
27
+ }
28
+ export interface OS2FlowImplicit extends OS2SecurityOAuth {
29
+ type: "oauth2";
30
+ flow: "implicit";
31
+ authorizationUrl: string;
32
+ }
33
+ export interface OS2FlowPassword extends OS2SecurityOAuth {
34
+ type: "oauth2";
35
+ flow: "password";
36
+ tokenUrl: string;
37
+ }
38
+ export interface OS2FlowApplication extends OS2SecurityOAuth {
39
+ type: "oauth2";
40
+ flow: "application";
41
+ tokenUrl: string;
42
+ }
43
+ export interface OS2FlowAccessCode extends OS2SecurityOAuth {
44
+ type: "oauth2";
45
+ flow: "accessCode";
46
+ tokenUrl: string;
47
+ authorizationUrl: string;
48
+ }
49
+ export declare type OS2Security = OS2SecurityBasic | OS2FlowAccessCode | OS2FlowApplication | OS2FlowImplicit | OS2FlowPassword | OS2SecurityApiKey;
@@ -0,0 +1,72 @@
1
+ import { OS2Response } from "./OS2Response";
2
+ import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs";
3
+ import { OpenSpecHash } from "../common/OpenSpecHash";
4
+ import { OpenSpecInfo } from "../common/OpenSpecInfo";
5
+ import { OpenSpecSecurity } from "../common/OpenSpecSecurity";
6
+ import { OpenSpecTag } from "../common/OpenSpecTag";
7
+ import { OS2BodyParameter, OS2QueryParameter } from "./OS2Parameter";
8
+ import { OS2Paths } from "./OS2Paths";
9
+ import { OS2Schema } from "./OS2Schema";
10
+ import { OS2Security } from "./OS2Security";
11
+ export interface OpenSpec2 {
12
+ /**
13
+ * Specifies the Swagger Specification version being used. It can be used by the Swagger UI and other clients to interpret the API listing. The value MUST be "2.0".
14
+ */
15
+ swagger: string;
16
+ /**
17
+ * Provides metadata about the API. The metadata can be used by the clients if needed.
18
+ */
19
+ info?: OpenSpecInfo;
20
+ /**
21
+ * The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).
22
+ */
23
+ host?: string;
24
+ /**
25
+ * The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).
26
+ */
27
+ basePath?: string;
28
+ /**
29
+ * The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.
30
+ */
31
+ schemes?: ("http" | "https" | "ws" | "wss")[];
32
+ /**
33
+ * A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
34
+ */
35
+ consumes?: string[];
36
+ /**
37
+ * A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
38
+ */
39
+ produces?: string[];
40
+ /**
41
+ * The available paths and operations for the API.
42
+ */
43
+ paths?: OpenSpecHash<OS2Paths>;
44
+ /**
45
+ * An object to hold data types produced and consumed by operations.
46
+ */
47
+ definitions?: OpenSpecHash<OS2Schema>;
48
+ /**
49
+ * An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.
50
+ */
51
+ parameters?: OpenSpecHash<OS2BodyParameter | OS2QueryParameter>;
52
+ /**
53
+ * An object to hold responses that can be used across operations. This property does not define global responses for all operations.
54
+ */
55
+ responses?: OpenSpecHash<OS2Response>;
56
+ /**
57
+ * A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
58
+ */
59
+ security?: OpenSpecSecurity;
60
+ /**
61
+ * Security scheme definitions that can be used across the specification.
62
+ */
63
+ securityDefinitions?: OpenSpecHash<OS2Security>;
64
+ /**
65
+ * A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
66
+ */
67
+ tags?: OpenSpecTag[];
68
+ /**
69
+ * Additional external documentation.
70
+ */
71
+ externalDocs?: OpenSpecExternalDocs;
72
+ }
@@ -1,4 +1,5 @@
1
- import { OpenSpecExternalDocs, OpenSpecRef } from "../common";
1
+ import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs";
2
+ import { OpenSpecRef } from "../common/OpenSpecRef";
2
3
  import { OS3Schema } from "./OS3Schema";
3
4
  export interface OS3Header<Schema = OS3Schema> {
4
5
  /**
@@ -1,4 +1,5 @@
1
- import { OpenSpecHash, OpenSpecRef } from "../common";
1
+ import { OpenSpecHash } from "../common/OpenSpecHash";
2
+ import { OpenSpecRef } from "../common/OpenSpecRef";
2
3
  import { OS3Example } from "./OS3Example";
3
4
  import { OS3MediaType } from "./OS3MediaType";
4
5
  import { OS3Schema } from "./OS3Schema";
@@ -1,4 +1,5 @@
1
- import { OpenSpecPath, OpenSpecRef } from "../common";
1
+ import { OpenSpecPath } from "../common/OpenSpecPath";
2
+ import { OpenSpecRef } from "../common/OpenSpecRef";
2
3
  import { OS3Operation } from "./OS3Operation";
3
4
  import { OS3Parameter } from "./OS3Parameter";
4
5
  import { OS3Schema } from "./OS3Schema";
@@ -1,5 +1,7 @@
1
- import { OpenSpecExternalDocs, OpenSpecRef, OpenSpecXML } from "../common";
1
+ import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs";
2
2
  import { OpenSpecBaseJsonSchema, OpenSpecJsonSchema } from "../common/OpenSpecJsonSchema";
3
+ import { OpenSpecRef } from "../common/OpenSpecRef";
4
+ import { OpenSpecXML } from "../common/OpenSpecXML";
3
5
  export interface OS3BaseSchema extends OpenSpecBaseJsonSchema {
4
6
  /**
5
7
  * Required if type is "array". Describes the type of items in the array.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tsed/openspec",
3
- "version": "7.0.0-beta.3",
4
- "description": "OpenSpec3 interfaces declarations for TypeScript application",
3
+ "version": "7.0.0-beta.4",
4
+ "description": "OpenSpec2 and OpenSpec3 interfaces declarations for TypeScript application",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
+ "module": "./lib/esm/index.js",
8
9
  "typings": "./lib/types/index.d.ts",
9
10
  "exports": {
10
11
  "types": "./lib/types/index.d.ts",
@@ -13,9 +14,10 @@
13
14
  "default": "./lib/esm/index.js"
14
15
  },
15
16
  "scripts": {
16
- "build": "yarn run build:esm && yarn run build:cjs",
17
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
17
18
  "build:cjs": "tsc --build tsconfig.compile.json",
18
- "build:esm": "tsc --build tsconfig.compile.esm.json"
19
+ "build:esm": "tsc --build tsconfig.compile.esm.json",
20
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\""
19
21
  },
20
22
  "keywords": [
21
23
  "TypeScript",
@@ -34,7 +36,7 @@
34
36
  "bugs": {
35
37
  "url": "https://github.com/tsedio/tsed/issues"
36
38
  },
37
- "homepage": "https://github.com/tsedio/tsed/tree/beta/packages/specs/openspec",
39
+ "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/openspec",
38
40
  "author": "Romain Lenzotti",
39
41
  "license": "MIT"
40
42
  }
package/readme.md CHANGED
@@ -48,11 +48,12 @@ npm install --save @tsed/openspec
48
48
  ```typescript
49
49
  import {OpenSpec3, OpenSpec2} from "@tsed/openspec";
50
50
 
51
- const spec3: OpenSpec3 = { openapi: '3.0.1', paths: {}};
52
- const spec2: OpenSpec2 = { swagger: '2.0', paths: {}};
51
+ const spec3: OpenSpec3 = {openapi: "3.0.1", paths: {}};
52
+ const spec2: OpenSpec2 = {swagger: "2.0", paths: {}};
53
53
  ```
54
54
 
55
55
  ## Contributors
56
+
56
57
  Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
57
58
 
58
59
  <a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
@@ -8,16 +8,5 @@
8
8
  "declaration": true,
9
9
  "declarationDir": "./lib/types"
10
10
  },
11
- "exclude": [
12
- "node_modules",
13
- "test",
14
- "lib",
15
- "benchmark",
16
- "coverage",
17
- "spec",
18
- "**/*.benchmark.ts",
19
- "**/*.spec.ts",
20
- "keys",
21
- "jest.config.js"
22
- ]
11
+ "exclude": ["node_modules", "test", "lib", "benchmark", "coverage", "spec", "**/*.benchmark.ts", "**/*.spec.ts", "keys", "jest.config.js"]
23
12
  }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./OpenSpecExternalDocs"), exports);
5
- (0, tslib_1.__exportStar)(require("./OpenSpecHash"), exports);
6
- (0, tslib_1.__exportStar)(require("./OpenSpecInfo"), exports);
7
- (0, tslib_1.__exportStar)(require("./OpenSpecJsonSchema"), exports);
8
- (0, tslib_1.__exportStar)(require("./OpenSpecPath"), exports);
9
- (0, tslib_1.__exportStar)(require("./OpenSpecRef"), exports);
10
- (0, tslib_1.__exportStar)(require("./OpenSpecTag"), exports);
11
- (0, tslib_1.__exportStar)(require("./OpenSpecTypes"), exports);
12
- (0, tslib_1.__exportStar)(require("./OpenSpecVersions"), exports);
13
- (0, tslib_1.__exportStar)(require("./OpenSpecXML"), exports);
14
- (0, tslib_1.__exportStar)(require("./OpenSpecSecurity"), exports);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,sEAAuC;AACvC,8DAA+B;AAC/B,8DAA+B;AAC/B,oEAAqC;AACrC,8DAA+B;AAC/B,6DAA8B;AAC9B,6DAA8B;AAC9B,+DAAgC;AAChC,kEAAmC;AACnC,6DAA8B;AAC9B,kEAAmC","sourcesContent":["export * from \"./OpenSpecExternalDocs\";\nexport * from \"./OpenSpecHash\";\nexport * from \"./OpenSpecInfo\";\nexport * from \"./OpenSpecJsonSchema\";\nexport * from \"./OpenSpecPath\";\nexport * from \"./OpenSpecRef\";\nexport * from \"./OpenSpecTag\";\nexport * from \"./OpenSpecTypes\";\nexport * from \"./OpenSpecVersions\";\nexport * from \"./OpenSpecXML\";\nexport * from \"./OpenSpecSecurity\";\n"]}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./OpenSpec3"), exports);
5
- (0, tslib_1.__exportStar)(require("./OS3Callbacks"), exports);
6
- (0, tslib_1.__exportStar)(require("./OS3Components"), exports);
7
- (0, tslib_1.__exportStar)(require("./OS3Encoding"), exports);
8
- (0, tslib_1.__exportStar)(require("./OS3Flows"), exports);
9
- (0, tslib_1.__exportStar)(require("./OS3Header"), exports);
10
- (0, tslib_1.__exportStar)(require("./OS3Link"), exports);
11
- (0, tslib_1.__exportStar)(require("./OS3MediaType"), exports);
12
- (0, tslib_1.__exportStar)(require("./OS3Operation"), exports);
13
- (0, tslib_1.__exportStar)(require("./OS3Parameter"), exports);
14
- (0, tslib_1.__exportStar)(require("./OS3Paths"), exports);
15
- (0, tslib_1.__exportStar)(require("./OS3RequestBody"), exports);
16
- (0, tslib_1.__exportStar)(require("./OS3Response"), exports);
17
- (0, tslib_1.__exportStar)(require("./OS3Schema"), exports);
18
- (0, tslib_1.__exportStar)(require("./OS3Security"), exports);
19
- (0, tslib_1.__exportStar)(require("./OS3Server"), exports);
20
- (0, tslib_1.__exportStar)(require("./OS3Example"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openspec3/index.ts"],"names":[],"mappings":";;;AAAA,2DAA4B;AAC5B,8DAA+B;AAC/B,+DAAgC;AAChC,6DAA8B;AAC9B,0DAA2B;AAC3B,2DAA4B;AAC5B,yDAA0B;AAC1B,8DAA+B;AAC/B,8DAA+B;AAC/B,8DAA+B;AAC/B,0DAA2B;AAC3B,gEAAiC;AACjC,6DAA8B;AAC9B,2DAA4B;AAC5B,6DAA8B;AAC9B,2DAA4B;AAC5B,4DAA6B","sourcesContent":["export * from \"./OpenSpec3\";\nexport * from \"./OS3Callbacks\";\nexport * from \"./OS3Components\";\nexport * from \"./OS3Encoding\";\nexport * from \"./OS3Flows\";\nexport * from \"./OS3Header\";\nexport * from \"./OS3Link\";\nexport * from \"./OS3MediaType\";\nexport * from \"./OS3Operation\";\nexport * from \"./OS3Parameter\";\nexport * from \"./OS3Paths\";\nexport * from \"./OS3RequestBody\";\nexport * from \"./OS3Response\";\nexport * from \"./OS3Schema\";\nexport * from \"./OS3Security\";\nexport * from \"./OS3Server\";\nexport * from \"./OS3Example\";\n"]}
@@ -1,12 +0,0 @@
1
- export * from "./OpenSpecExternalDocs";
2
- export * from "./OpenSpecHash";
3
- export * from "./OpenSpecInfo";
4
- export * from "./OpenSpecJsonSchema";
5
- export * from "./OpenSpecPath";
6
- export * from "./OpenSpecRef";
7
- export * from "./OpenSpecTag";
8
- export * from "./OpenSpecTypes";
9
- export * from "./OpenSpecVersions";
10
- export * from "./OpenSpecXML";
11
- export * from "./OpenSpecSecurity";
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC","sourcesContent":["export * from \"./OpenSpecExternalDocs\";\nexport * from \"./OpenSpecHash\";\nexport * from \"./OpenSpecInfo\";\nexport * from \"./OpenSpecJsonSchema\";\nexport * from \"./OpenSpecPath\";\nexport * from \"./OpenSpecRef\";\nexport * from \"./OpenSpecTag\";\nexport * from \"./OpenSpecTypes\";\nexport * from \"./OpenSpecVersions\";\nexport * from \"./OpenSpecXML\";\nexport * from \"./OpenSpecSecurity\";\n"]}
@@ -1,18 +0,0 @@
1
- export * from "./OpenSpec3";
2
- export * from "./OS3Callbacks";
3
- export * from "./OS3Components";
4
- export * from "./OS3Encoding";
5
- export * from "./OS3Flows";
6
- export * from "./OS3Header";
7
- export * from "./OS3Link";
8
- export * from "./OS3MediaType";
9
- export * from "./OS3Operation";
10
- export * from "./OS3Parameter";
11
- export * from "./OS3Paths";
12
- export * from "./OS3RequestBody";
13
- export * from "./OS3Response";
14
- export * from "./OS3Schema";
15
- export * from "./OS3Security";
16
- export * from "./OS3Server";
17
- export * from "./OS3Example";
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openspec3/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC","sourcesContent":["export * from \"./OpenSpec3\";\nexport * from \"./OS3Callbacks\";\nexport * from \"./OS3Components\";\nexport * from \"./OS3Encoding\";\nexport * from \"./OS3Flows\";\nexport * from \"./OS3Header\";\nexport * from \"./OS3Link\";\nexport * from \"./OS3MediaType\";\nexport * from \"./OS3Operation\";\nexport * from \"./OS3Parameter\";\nexport * from \"./OS3Paths\";\nexport * from \"./OS3RequestBody\";\nexport * from \"./OS3Response\";\nexport * from \"./OS3Schema\";\nexport * from \"./OS3Security\";\nexport * from \"./OS3Server\";\nexport * from \"./OS3Example\";\n"]}
@@ -1,11 +0,0 @@
1
- export * from "./OpenSpecExternalDocs";
2
- export * from "./OpenSpecHash";
3
- export * from "./OpenSpecInfo";
4
- export * from "./OpenSpecJsonSchema";
5
- export * from "./OpenSpecPath";
6
- export * from "./OpenSpecRef";
7
- export * from "./OpenSpecTag";
8
- export * from "./OpenSpecTypes";
9
- export * from "./OpenSpecVersions";
10
- export * from "./OpenSpecXML";
11
- export * from "./OpenSpecSecurity";
@@ -1,17 +0,0 @@
1
- export * from "./OpenSpec3";
2
- export * from "./OS3Callbacks";
3
- export * from "./OS3Components";
4
- export * from "./OS3Encoding";
5
- export * from "./OS3Flows";
6
- export * from "./OS3Header";
7
- export * from "./OS3Link";
8
- export * from "./OS3MediaType";
9
- export * from "./OS3Operation";
10
- export * from "./OS3Parameter";
11
- export * from "./OS3Paths";
12
- export * from "./OS3RequestBody";
13
- export * from "./OS3Response";
14
- export * from "./OS3Schema";
15
- export * from "./OS3Security";
16
- export * from "./OS3Server";
17
- export * from "./OS3Example";