@twin.org/tools-models 0.0.3-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/es/index.js +36 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/jsonSchema/IJsonSchema.js +4 -0
- package/dist/es/models/jsonSchema/IJsonSchema.js.map +1 -0
- package/dist/es/models/jsonSchema/jsonSchemaTagNames.js +58 -0
- package/dist/es/models/jsonSchema/jsonSchemaTagNames.js.map +1 -0
- package/dist/es/models/jsonSchema/jsonSchemaTypeNames.js +4 -0
- package/dist/es/models/jsonSchema/jsonSchemaTypeNames.js.map +1 -0
- package/dist/es/models/openApi/IOpenApi.js +2 -0
- package/dist/es/models/openApi/IOpenApi.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiComponents.js +2 -0
- package/dist/es/models/openApi/IOpenApiComponents.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiContact.js +4 -0
- package/dist/es/models/openApi/IOpenApiContact.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiExample.js +4 -0
- package/dist/es/models/openApi/IOpenApiExample.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiExternalDocumentation.js +4 -0
- package/dist/es/models/openApi/IOpenApiExternalDocumentation.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiHeader.js +2 -0
- package/dist/es/models/openApi/IOpenApiHeader.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiInfo.js +2 -0
- package/dist/es/models/openApi/IOpenApiInfo.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiLicense.js +4 -0
- package/dist/es/models/openApi/IOpenApiLicense.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiMediaType.js +2 -0
- package/dist/es/models/openApi/IOpenApiMediaType.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiOAuthFlow.js +4 -0
- package/dist/es/models/openApi/IOpenApiOAuthFlow.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiOAuthFlows.js +2 -0
- package/dist/es/models/openApi/IOpenApiOAuthFlows.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiParameter.js +2 -0
- package/dist/es/models/openApi/IOpenApiParameter.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiPathItem.js +2 -0
- package/dist/es/models/openApi/IOpenApiPathItem.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiPathMethod.js +2 -0
- package/dist/es/models/openApi/IOpenApiPathMethod.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiReference.js +4 -0
- package/dist/es/models/openApi/IOpenApiReference.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiRequestBody.js +2 -0
- package/dist/es/models/openApi/IOpenApiRequestBody.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiResponse.js +2 -0
- package/dist/es/models/openApi/IOpenApiResponse.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiResponses.js +2 -0
- package/dist/es/models/openApi/IOpenApiResponses.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiSecurityRequirement.js +4 -0
- package/dist/es/models/openApi/IOpenApiSecurityRequirement.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiSecurityScheme.js +2 -0
- package/dist/es/models/openApi/IOpenApiSecurityScheme.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiServer.js +2 -0
- package/dist/es/models/openApi/IOpenApiServer.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiServerVariable.js +4 -0
- package/dist/es/models/openApi/IOpenApiServerVariable.js.map +1 -0
- package/dist/es/models/openApi/IOpenApiTag.js +2 -0
- package/dist/es/models/openApi/IOpenApiTag.js.map +1 -0
- package/dist/es/models/openApi/openApiConstants.js +12 -0
- package/dist/es/models/openApi/openApiConstants.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJson.js +4 -0
- package/dist/es/models/packageJson/IPackageJson.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJsonBugs.js +4 -0
- package/dist/es/models/packageJson/IPackageJsonBugs.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJsonPerson.js +4 -0
- package/dist/es/models/packageJson/IPackageJsonPerson.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJsonPublishConfig.js +4 -0
- package/dist/es/models/packageJson/IPackageJsonPublishConfig.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJsonRepository.js +4 -0
- package/dist/es/models/packageJson/IPackageJsonRepository.js.map +1 -0
- package/dist/es/models/packageJson/IPackageJsonStringMap.js +4 -0
- package/dist/es/models/packageJson/IPackageJsonStringMap.js.map +1 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/models/jsonSchema/IJsonSchema.d.ts +372 -0
- package/dist/types/models/jsonSchema/jsonSchemaTagNames.d.ts +4 -0
- package/dist/types/models/jsonSchema/jsonSchemaTypeNames.d.ts +4 -0
- package/dist/types/models/openApi/IOpenApi.d.ts +72 -0
- package/dist/types/models/openApi/IOpenApiComponents.d.ts +70 -0
- package/dist/types/models/openApi/IOpenApiContact.d.ts +21 -0
- package/dist/types/models/openApi/IOpenApiExample.d.ts +30 -0
- package/dist/types/models/openApi/IOpenApiExternalDocumentation.d.ts +14 -0
- package/dist/types/models/openApi/IOpenApiHeader.d.ts +50 -0
- package/dist/types/models/openApi/IOpenApiInfo.d.ts +43 -0
- package/dist/types/models/openApi/IOpenApiLicense.d.ts +21 -0
- package/dist/types/models/openApi/IOpenApiMediaType.d.ts +41 -0
- package/dist/types/models/openApi/IOpenApiOAuthFlow.d.ts +28 -0
- package/dist/types/models/openApi/IOpenApiOAuthFlows.d.ts +27 -0
- package/dist/types/models/openApi/IOpenApiParameter.d.ts +74 -0
- package/dist/types/models/openApi/IOpenApiPathItem.d.ts +72 -0
- package/dist/types/models/openApi/IOpenApiPathMethod.d.ts +75 -0
- package/dist/types/models/openApi/IOpenApiReference.d.ts +18 -0
- package/dist/types/models/openApi/IOpenApiRequestBody.d.ts +22 -0
- package/dist/types/models/openApi/IOpenApiResponse.d.ts +35 -0
- package/dist/types/models/openApi/IOpenApiResponses.d.ts +18 -0
- package/dist/types/models/openApi/IOpenApiSecurityRequirement.d.ts +7 -0
- package/dist/types/models/openApi/IOpenApiSecurityScheme.d.ts +33 -0
- package/dist/types/models/openApi/IOpenApiServer.d.ts +29 -0
- package/dist/types/models/openApi/IOpenApiServerVariable.d.ts +21 -0
- package/dist/types/models/openApi/IOpenApiTag.d.ts +31 -0
- package/dist/types/models/openApi/openApiConstants.d.ts +9 -0
- package/dist/types/models/packageJson/IPackageJson.d.ts +134 -0
- package/dist/types/models/packageJson/IPackageJsonBugs.d.ts +7 -0
- package/dist/types/models/packageJson/IPackageJsonPerson.d.ts +8 -0
- package/dist/types/models/packageJson/IPackageJsonPublishConfig.d.ts +6 -0
- package/dist/types/models/packageJson/IPackageJsonRepository.d.ts +8 -0
- package/dist/types/models/packageJson/IPackageJsonStringMap.d.ts +6 -0
- package/docs/changelog.md +10 -0
- package/docs/examples.md +85 -0
- package/docs/reference/classes/OpenApiConstants.md +21 -0
- package/docs/reference/index.md +48 -0
- package/docs/reference/interfaces/IJsonSchema.md +795 -0
- package/docs/reference/interfaces/IOpenApi.md +147 -0
- package/docs/reference/interfaces/IOpenApiComponents.md +115 -0
- package/docs/reference/interfaces/IOpenApiContact.md +43 -0
- package/docs/reference/interfaces/IOpenApiExample.md +55 -0
- package/docs/reference/interfaces/IOpenApiExternalDocumentation.md +23 -0
- package/docs/reference/interfaces/IOpenApiHeader.md +87 -0
- package/docs/reference/interfaces/IOpenApiInfo.md +91 -0
- package/docs/reference/interfaces/IOpenApiLicense.md +43 -0
- package/docs/reference/interfaces/IOpenApiMediaType.md +71 -0
- package/docs/reference/interfaces/IOpenApiOAuthFlow.md +51 -0
- package/docs/reference/interfaces/IOpenApiOAuthFlows.md +47 -0
- package/docs/reference/interfaces/IOpenApiParameter.md +119 -0
- package/docs/reference/interfaces/IOpenApiPathItem.md +131 -0
- package/docs/reference/interfaces/IOpenApiPathMethod.md +155 -0
- package/docs/reference/interfaces/IOpenApiReference.md +31 -0
- package/docs/reference/interfaces/IOpenApiRequestBody.md +35 -0
- package/docs/reference/interfaces/IOpenApiResponse.md +59 -0
- package/docs/reference/interfaces/IOpenApiResponses.md +29 -0
- package/docs/reference/interfaces/IOpenApiSecurityRequirement.md +11 -0
- package/docs/reference/interfaces/IOpenApiServer.md +59 -0
- package/docs/reference/interfaces/IOpenApiServerVariable.md +43 -0
- package/docs/reference/interfaces/IOpenApiTag.md +55 -0
- package/docs/reference/interfaces/IPackageJson.md +295 -0
- package/docs/reference/interfaces/IPackageJsonPublishConfig.md +7 -0
- package/docs/reference/interfaces/IPackageJsonStringMap.md +7 -0
- package/docs/reference/type-aliases/IOpenApiSecurityScheme.md +9 -0
- package/docs/reference/type-aliases/IPackageJsonBugs.md +5 -0
- package/docs/reference/type-aliases/IPackageJsonPerson.md +5 -0
- package/docs/reference/type-aliases/IPackageJsonRepository.md +5 -0
- package/docs/reference/type-aliases/JsonSchemaTypeNames.md +5 -0
- package/docs/reference/type-aliases/OpenApiParameterLocation.md +5 -0
- package/docs/reference/type-aliases/OpenApiParameterStyle.md +5 -0
- package/docs/reference/variables/JsonSchemaTagNames.md +5 -0
- package/locales/en.json +1 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 IOTA Stiftung.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# TWIN Tools Models
|
|
2
|
+
|
|
3
|
+
This package provides shared models for tooling packages.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
npm install @twin.org/tools-models
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
Usage of the APIs is shown in the examples [docs/examples.md](docs/examples.md)
|
|
14
|
+
|
|
15
|
+
## Reference
|
|
16
|
+
|
|
17
|
+
Detailed reference documentation for the API can be found in [docs/reference/index.md](docs/reference/index.md)
|
|
18
|
+
|
|
19
|
+
## Changelog
|
|
20
|
+
|
|
21
|
+
The changes between each version can be found in [docs/changelog.md](docs/changelog.md)
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./models/jsonSchema/IJsonSchema.js";
|
|
4
|
+
export * from "./models/jsonSchema/jsonSchemaTagNames.js";
|
|
5
|
+
export * from "./models/jsonSchema/jsonSchemaTypeNames.js";
|
|
6
|
+
export * from "./models/openApi/IOpenApi.js";
|
|
7
|
+
export * from "./models/openApi/IOpenApiComponents.js";
|
|
8
|
+
export * from "./models/openApi/IOpenApiContact.js";
|
|
9
|
+
export * from "./models/openApi/IOpenApiExample.js";
|
|
10
|
+
export * from "./models/openApi/IOpenApiExternalDocumentation.js";
|
|
11
|
+
export * from "./models/openApi/IOpenApiHeader.js";
|
|
12
|
+
export * from "./models/openApi/IOpenApiInfo.js";
|
|
13
|
+
export * from "./models/openApi/IOpenApiLicense.js";
|
|
14
|
+
export * from "./models/openApi/IOpenApiMediaType.js";
|
|
15
|
+
export * from "./models/openApi/IOpenApiOAuthFlow.js";
|
|
16
|
+
export * from "./models/openApi/IOpenApiOAuthFlows.js";
|
|
17
|
+
export * from "./models/openApi/IOpenApiParameter.js";
|
|
18
|
+
export * from "./models/openApi/IOpenApiPathItem.js";
|
|
19
|
+
export * from "./models/openApi/IOpenApiPathMethod.js";
|
|
20
|
+
export * from "./models/openApi/IOpenApiReference.js";
|
|
21
|
+
export * from "./models/openApi/IOpenApiRequestBody.js";
|
|
22
|
+
export * from "./models/openApi/IOpenApiResponse.js";
|
|
23
|
+
export * from "./models/openApi/IOpenApiResponses.js";
|
|
24
|
+
export * from "./models/openApi/IOpenApiSecurityRequirement.js";
|
|
25
|
+
export * from "./models/openApi/IOpenApiSecurityScheme.js";
|
|
26
|
+
export * from "./models/openApi/IOpenApiServer.js";
|
|
27
|
+
export * from "./models/openApi/IOpenApiServerVariable.js";
|
|
28
|
+
export * from "./models/openApi/IOpenApiTag.js";
|
|
29
|
+
export * from "./models/openApi/openApiConstants.js";
|
|
30
|
+
export * from "./models/packageJson/IPackageJson.js";
|
|
31
|
+
export * from "./models/packageJson/IPackageJsonBugs.js";
|
|
32
|
+
export * from "./models/packageJson/IPackageJsonPerson.js";
|
|
33
|
+
export * from "./models/packageJson/IPackageJsonPublishConfig.js";
|
|
34
|
+
export * from "./models/packageJson/IPackageJsonRepository.js";
|
|
35
|
+
export * from "./models/packageJson/IPackageJsonStringMap.js";
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mDAAmD,CAAC;AAClE,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/jsonSchema/IJsonSchema.js\";\nexport * from \"./models/jsonSchema/jsonSchemaTagNames.js\";\nexport * from \"./models/jsonSchema/jsonSchemaTypeNames.js\";\nexport * from \"./models/openApi/IOpenApi.js\";\nexport * from \"./models/openApi/IOpenApiComponents.js\";\nexport * from \"./models/openApi/IOpenApiContact.js\";\nexport * from \"./models/openApi/IOpenApiExample.js\";\nexport * from \"./models/openApi/IOpenApiExternalDocumentation.js\";\nexport * from \"./models/openApi/IOpenApiHeader.js\";\nexport * from \"./models/openApi/IOpenApiInfo.js\";\nexport * from \"./models/openApi/IOpenApiLicense.js\";\nexport * from \"./models/openApi/IOpenApiMediaType.js\";\nexport * from \"./models/openApi/IOpenApiOAuthFlow.js\";\nexport * from \"./models/openApi/IOpenApiOAuthFlows.js\";\nexport * from \"./models/openApi/IOpenApiParameter.js\";\nexport * from \"./models/openApi/IOpenApiPathItem.js\";\nexport * from \"./models/openApi/IOpenApiPathMethod.js\";\nexport * from \"./models/openApi/IOpenApiReference.js\";\nexport * from \"./models/openApi/IOpenApiRequestBody.js\";\nexport * from \"./models/openApi/IOpenApiResponse.js\";\nexport * from \"./models/openApi/IOpenApiResponses.js\";\nexport * from \"./models/openApi/IOpenApiSecurityRequirement.js\";\nexport * from \"./models/openApi/IOpenApiSecurityScheme.js\";\nexport * from \"./models/openApi/IOpenApiServer.js\";\nexport * from \"./models/openApi/IOpenApiServerVariable.js\";\nexport * from \"./models/openApi/IOpenApiTag.js\";\nexport * from \"./models/openApi/openApiConstants.js\";\nexport * from \"./models/packageJson/IPackageJson.js\";\nexport * from \"./models/packageJson/IPackageJsonBugs.js\";\nexport * from \"./models/packageJson/IPackageJsonPerson.js\";\nexport * from \"./models/packageJson/IPackageJsonPublishConfig.js\";\nexport * from \"./models/packageJson/IPackageJsonRepository.js\";\nexport * from \"./models/packageJson/IPackageJsonStringMap.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonSchema.js","sourceRoot":"","sources":["../../../../src/models/jsonSchema/IJsonSchema.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * JSON schema representation used by the TypeScript conversion utilities.\n * @see https://json-schema.org/draft/2020-12/json-schema-core\n */\nexport interface IJsonSchema {\n\t/**\n\t * Dialect URI for the schema document.\n\t * @see https://www.learnjsonschema.com/2020-12/core/schema/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.1.1\n\t */\n\t$schema?: string;\n\n\t/**\n\t * Canonical identifier for the schema resource.\n\t * @see https://www.learnjsonschema.com/2020-12/core/id/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.1\n\t */\n\t$id?: string;\n\n\t/**\n\t * Reference to another schema resource.\n\t * @see https://www.learnjsonschema.com/2020-12/core/ref/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.3.1\n\t */\n\t$ref?: string;\n\n\t/**\n\t * Location-independent identifier fragment.\n\t * @see https://www.learnjsonschema.com/2020-12/core/anchor/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.2\n\t */\n\t$anchor?: string;\n\n\t/**\n\t * Runtime-resolved dynamic schema reference.\n\t * @see https://www.learnjsonschema.com/2020-12/core/dynamicref/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.3.2\n\t */\n\t$dynamicRef?: string;\n\n\t/**\n\t * Dynamic extension point anchor.\n\t * @see https://www.learnjsonschema.com/2020-12/core/dynamicanchor/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.2\n\t */\n\t$dynamicAnchor?: string;\n\n\t/**\n\t * Declares vocabularies for a meta-schema dialect.\n\t * @see https://www.learnjsonschema.com/2020-12/core/vocabulary/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.1.2\n\t */\n\t$vocabulary?: { [uri: string]: boolean };\n\n\t/**\n\t * Maintainer comment for tools.\n\t * @see https://www.learnjsonschema.com/2020-12/core/comment/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.3\n\t */\n\t$comment?: string;\n\n\t/**\n\t * Reusable inlined schema definitions.\n\t * @see https://www.learnjsonschema.com/2020-12/core/defs/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.4\n\t */\n\t$defs?: { [id: string]: IJsonSchema };\n\n\t/**\n\t * Human-friendly schema title.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/title/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.1\n\t */\n\ttitle?: string;\n\n\t/**\n\t * Human-friendly schema description.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/description/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.1\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Constrain allowed JSON value types.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/type/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.1\n\t */\n\ttype?: string | string[];\n\n\t/**\n\t * Property schemas for object members.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/properties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.1\n\t */\n\tproperties?: { [id: string]: IJsonSchema };\n\n\t/**\n\t * Property schemas selected by regex on property names.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/patternproperties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.2\n\t */\n\tpatternProperties?: { [pattern: string]: IJsonSchema };\n\n\t/**\n\t * Object property names that must be present.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/required/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.3\n\t */\n\trequired?: string[];\n\n\t/**\n\t * Property-level schema dependencies.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/dependentschemas/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.4\n\t */\n\tdependentSchemas?: { [property: string]: IJsonSchema };\n\n\t/**\n\t * Property-level required-key dependencies.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/dependentrequired/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.4\n\t */\n\tdependentRequired?: { [property: string]: string[] };\n\n\t/**\n\t * Schema for array items (or boolean form).\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/items/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.2\n\t */\n\titems?: IJsonSchema | boolean;\n\n\t/**\n\t * Tuple-style schemas for leading array positions.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/prefixitems/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.1\n\t */\n\tprefixItems?: IJsonSchema[];\n\n\t/**\n\t * Schema for properties not listed in properties/patternProperties.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/additionalproperties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.3\n\t */\n\tadditionalProperties?: IJsonSchema | boolean;\n\n\t/**\n\t * Union where at least one branch schema must match.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/anyof/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.2\n\t */\n\tanyOf?: IJsonSchema[];\n\n\t/**\n\t * Intersection where all branch schemas must match.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/allof/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.1\n\t */\n\tallOf?: IJsonSchema[];\n\n\t/**\n\t * Exactly one branch schema must match.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/oneof/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.3\n\t */\n\toneOf?: IJsonSchema[];\n\n\t/**\n\t * Negated schema condition.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/not/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.4\n\t */\n\tnot?: IJsonSchema;\n\n\t/**\n\t * Condition schema for conditional application.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/if/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.1\n\t */\n\tif?: IJsonSchema;\n\n\t/**\n\t * Schema applied when if matches.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/then/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.2\n\t */\n\tthen?: IJsonSchema;\n\n\t/**\n\t * Schema applied when if does not match.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/else/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.2.3\n\t */\n\telse?: IJsonSchema;\n\n\t/**\n\t * Array must contain at least one matching item.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/contains/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.1.3\n\t */\n\tcontains?: IJsonSchema;\n\n\t/**\n\t * Schema for validating object property names.\n\t * @see https://www.learnjsonschema.com/2020-12/applicator/propertynames/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-10.3.2.4\n\t */\n\tpropertyNames?: IJsonSchema;\n\n\t/**\n\t * Single fixed value constraint.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/const/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.3\n\t */\n\tconst?: unknown;\n\n\t/**\n\t * Enumerated set of allowed values.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/enum/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.2\n\t */\n\tenum?: unknown[];\n\n\t/**\n\t * Example instances for documentation tooling.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/examples/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.5\n\t */\n\texamples?: unknown[];\n\n\t/**\n\t * Suggested default instance value.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/default/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.2\n\t */\n\tdefault?: unknown;\n\n\t/**\n\t * Semantic format annotation.\n\t * @see https://www.learnjsonschema.com/2020-12/format-annotation/format/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-7.1\n\t */\n\tformat?: string;\n\n\t/**\n\t * Regular expression that strings must match.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/pattern/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.3\n\t */\n\tpattern?: string;\n\n\t/**\n\t * Content encoding annotation for string instances.\n\t * @see https://www.learnjsonschema.com/2020-12/content/contentencoding/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-8.3\n\t */\n\tcontentEncoding?: string;\n\n\t/**\n\t * Media type annotation for string content.\n\t * @see https://www.learnjsonschema.com/2020-12/content/contentmediatype/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-8.4\n\t */\n\tcontentMediaType?: string;\n\n\t/**\n\t * Schema for the decoded content payload.\n\t * @see https://www.learnjsonschema.com/2020-12/content/contentschema/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-8.5\n\t */\n\tcontentSchema?: IJsonSchema;\n\n\t/**\n\t * Annotation indicating read-only semantics.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/readonly/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.4\n\t */\n\treadOnly?: boolean;\n\n\t/**\n\t * Annotation indicating write-only semantics.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/writeonly/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.4\n\t */\n\twriteOnly?: boolean;\n\n\t/**\n\t * Annotation indicating deprecation.\n\t * @see https://www.learnjsonschema.com/2020-12/meta-data/deprecated/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-9.3\n\t */\n\tdeprecated?: boolean;\n\n\t/**\n\t * Non-standard extension used by some tooling ecosystems.\n\t */\n\tdiscriminator?: {\n\t\tpropertyName: string;\n\t};\n\n\t/**\n\t * Minimum length for strings.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/minlength/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.2\n\t */\n\tminLength?: number;\n\n\t/**\n\t * Maximum length for strings.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/maxlength/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.3.1\n\t */\n\tmaxLength?: number;\n\n\t/**\n\t * Inclusive lower numeric bound.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/minimum/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.4\n\t */\n\tminimum?: number;\n\n\t/**\n\t * Inclusive upper numeric bound.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/maximum/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.2\n\t */\n\tmaximum?: number;\n\n\t/**\n\t * Exclusive lower numeric bound.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/exclusiveminimum/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.5\n\t */\n\texclusiveMinimum?: number;\n\n\t/**\n\t * Exclusive upper numeric bound.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/exclusivemaximum/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.3\n\t */\n\texclusiveMaximum?: number;\n\n\t/**\n\t * Numeric divisor constraint.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/multipleof/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.2.1\n\t */\n\tmultipleOf?: number;\n\n\t/**\n\t * Minimum array length.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/minitems/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.2\n\t */\n\tminItems?: number;\n\n\t/**\n\t * Maximum array length.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/maxitems/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.1\n\t */\n\tmaxItems?: number;\n\n\t/**\n\t * Require array elements to be unique.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/uniqueitems/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.3\n\t */\n\tuniqueItems?: boolean;\n\n\t/**\n\t * Minimum number of object properties.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/minproperties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.2\n\t */\n\tminProperties?: number;\n\n\t/**\n\t * Maximum number of object properties.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/maxproperties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.1\n\t */\n\tmaxProperties?: number;\n\n\t/**\n\t * Minimum number of contains matches.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/mincontains/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.5\n\t */\n\tminContains?: number;\n\n\t/**\n\t * Maximum number of contains matches.\n\t * @see https://www.learnjsonschema.com/2020-12/validation/maxcontains/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-validation#section-6.4.4\n\t */\n\tmaxContains?: number;\n\n\t/**\n\t * Schema applied to array items not yet evaluated by adjacent applicators.\n\t * @see https://www.learnjsonschema.com/2020-12/unevaluated/unevaluateditems/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-11.2\n\t */\n\tunevaluatedItems?: IJsonSchema | boolean;\n\n\t/**\n\t * Schema applied to object properties not yet evaluated by adjacent applicators.\n\t * @see https://www.learnjsonschema.com/2020-12/unevaluated/unevaluatedproperties/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-11.3\n\t */\n\tunevaluatedProperties?: IJsonSchema | boolean;\n\n\t/**\n\t * Allow additional extension keywords.\n\t * @see https://www.learnjsonschema.com/2020-12/\n\t * @see https://json-schema.org/draft/2020-12/json-schema-core#section-4.3.1\n\t */\n\t// eslint-disable-next-line @typescript-eslint/member-ordering\n\t[key: string]: unknown;\n}\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Supported @json-schema tag keys (after alias mapping).
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const JsonSchemaTagNames = [
|
|
8
|
+
"$schema",
|
|
9
|
+
"$id",
|
|
10
|
+
"$ref",
|
|
11
|
+
"$anchor",
|
|
12
|
+
"$dynamicRef",
|
|
13
|
+
"$dynamicAnchor",
|
|
14
|
+
"$vocabulary",
|
|
15
|
+
"$comment",
|
|
16
|
+
"$defs",
|
|
17
|
+
"title",
|
|
18
|
+
"description",
|
|
19
|
+
"patternProperties",
|
|
20
|
+
"dependentSchemas",
|
|
21
|
+
"dependentRequired",
|
|
22
|
+
"not",
|
|
23
|
+
"if",
|
|
24
|
+
"then",
|
|
25
|
+
"else",
|
|
26
|
+
"contains",
|
|
27
|
+
"propertyNames",
|
|
28
|
+
"const",
|
|
29
|
+
"enum",
|
|
30
|
+
"examples",
|
|
31
|
+
"default",
|
|
32
|
+
"format",
|
|
33
|
+
"pattern",
|
|
34
|
+
"contentEncoding",
|
|
35
|
+
"contentMediaType",
|
|
36
|
+
"contentSchema",
|
|
37
|
+
"readOnly",
|
|
38
|
+
"writeOnly",
|
|
39
|
+
"deprecated",
|
|
40
|
+
"discriminator",
|
|
41
|
+
"minLength",
|
|
42
|
+
"maxLength",
|
|
43
|
+
"minimum",
|
|
44
|
+
"maximum",
|
|
45
|
+
"exclusiveMinimum",
|
|
46
|
+
"exclusiveMaximum",
|
|
47
|
+
"multipleOf",
|
|
48
|
+
"minItems",
|
|
49
|
+
"maxItems",
|
|
50
|
+
"uniqueItems",
|
|
51
|
+
"minProperties",
|
|
52
|
+
"maxProperties",
|
|
53
|
+
"minContains",
|
|
54
|
+
"maxContains",
|
|
55
|
+
"unevaluatedItems",
|
|
56
|
+
"unevaluatedProperties"
|
|
57
|
+
];
|
|
58
|
+
//# sourceMappingURL=jsonSchemaTagNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonSchemaTagNames.js","sourceRoot":"","sources":["../../../../src/models/jsonSchema/jsonSchemaTagNames.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAa;IAC3C,SAAS;IACT,KAAK;IACL,MAAM;IACN,SAAS;IACT,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,UAAU;IACV,OAAO;IACP,OAAO;IACP,aAAa;IACb,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,KAAK;IACL,IAAI;IACJ,MAAM;IACN,MAAM;IACN,UAAU;IACV,eAAe;IACf,OAAO;IACP,MAAM;IACN,UAAU;IACV,SAAS;IACT,QAAQ;IACR,SAAS;IACT,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,UAAU;IACV,WAAW;IACX,YAAY;IACZ,eAAe;IACf,WAAW;IACX,WAAW;IACX,SAAS;IACT,SAAS;IACT,kBAAkB;IAClB,kBAAkB;IAClB,YAAY;IACZ,UAAU;IACV,UAAU;IACV,aAAa;IACb,eAAe;IACf,eAAe;IACf,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,uBAAuB;CACvB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Supported @json-schema tag keys (after alias mapping).\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const JsonSchemaTagNames: string[] = [\n\t\"$schema\",\n\t\"$id\",\n\t\"$ref\",\n\t\"$anchor\",\n\t\"$dynamicRef\",\n\t\"$dynamicAnchor\",\n\t\"$vocabulary\",\n\t\"$comment\",\n\t\"$defs\",\n\t\"title\",\n\t\"description\",\n\t\"patternProperties\",\n\t\"dependentSchemas\",\n\t\"dependentRequired\",\n\t\"not\",\n\t\"if\",\n\t\"then\",\n\t\"else\",\n\t\"contains\",\n\t\"propertyNames\",\n\t\"const\",\n\t\"enum\",\n\t\"examples\",\n\t\"default\",\n\t\"format\",\n\t\"pattern\",\n\t\"contentEncoding\",\n\t\"contentMediaType\",\n\t\"contentSchema\",\n\t\"readOnly\",\n\t\"writeOnly\",\n\t\"deprecated\",\n\t\"discriminator\",\n\t\"minLength\",\n\t\"maxLength\",\n\t\"minimum\",\n\t\"maximum\",\n\t\"exclusiveMinimum\",\n\t\"exclusiveMaximum\",\n\t\"multipleOf\",\n\t\"minItems\",\n\t\"maxItems\",\n\t\"uniqueItems\",\n\t\"minProperties\",\n\t\"maxProperties\",\n\t\"minContains\",\n\t\"maxContains\",\n\t\"unevaluatedItems\",\n\t\"unevaluatedProperties\"\n];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonSchemaTypeNames.js","sourceRoot":"","sources":["../../../../src/models/jsonSchema/jsonSchemaTypeNames.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Default schema type names.\n */\nexport type JsonSchemaTypeNames =\n\t| \"string\"\n\t| \"number\"\n\t| \"integer\"\n\t| \"boolean\"\n\t| \"null\"\n\t| \"object\"\n\t| \"array\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApi.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApi.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiComponents } from \"./IOpenApiComponents.js\";\nimport type { IOpenApiExternalDocumentation } from \"./IOpenApiExternalDocumentation.js\";\nimport type { IOpenApiInfo } from \"./IOpenApiInfo.js\";\nimport type { IOpenApiPathItem } from \"./IOpenApiPathItem.js\";\nimport type { IOpenApiSecurityRequirement } from \"./IOpenApiSecurityRequirement.js\";\nimport type { IOpenApiServer } from \"./IOpenApiServer.js\";\nimport type { IOpenApiTag } from \"./IOpenApiTag.js\";\n\n/**\n * The OpenAPI document definition.\n * @see https://spec.openapis.org/oas/latest.html#openapi-object\n */\nexport interface IOpenApi {\n\t/**\n\t * The OpenAPI specification version.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\topenapi: string;\n\n\t/**\n\t * The self-assigned URI of the document.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\t$self?: string;\n\n\t/**\n\t * The metadata for the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tinfo: IOpenApiInfo;\n\n\t/**\n\t * The default JSON Schema dialect URI.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tjsonSchemaDialect?: string;\n\n\t/**\n\t * Connectivity information for target servers.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tservers?: IOpenApiServer[];\n\n\t/**\n\t * Available paths and operations.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tpaths?: {\n\t\t[path: string]: IOpenApiPathItem;\n\t};\n\n\t/**\n\t * Incoming webhooks keyed by name.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\twebhooks?: {\n\t\t[name: string]: IOpenApiPathItem;\n\t};\n\n\t/**\n\t * Reusable components.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tcomponents?: IOpenApiComponents;\n\n\t/**\n\t * API-wide security requirements.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\tsecurity?: IOpenApiSecurityRequirement[];\n\n\t/**\n\t * Tags used by the API description.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\ttags?: IOpenApiTag[];\n\n\t/**\n\t * Additional external documentation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields\n\t */\n\texternalDocs?: IOpenApiExternalDocumentation;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiComponents.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiComponents.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiExample } from \"./IOpenApiExample.js\";\nimport type { IOpenApiHeader } from \"./IOpenApiHeader.js\";\nimport type { IOpenApiMediaType } from \"./IOpenApiMediaType.js\";\nimport type { IOpenApiParameter } from \"./IOpenApiParameter.js\";\nimport type { IOpenApiPathItem } from \"./IOpenApiPathItem.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IOpenApiRequestBody } from \"./IOpenApiRequestBody.js\";\nimport type { IOpenApiResponse } from \"./IOpenApiResponse.js\";\nimport type { IOpenApiSecurityScheme } from \"./IOpenApiSecurityScheme.js\";\nimport type { IJsonSchema } from \"../jsonSchema/IJsonSchema.js\";\n\n/**\n * An OpenAPI Components Object.\n * @see https://spec.openapis.org/oas/latest.html#components-object\n */\nexport interface IOpenApiComponents {\n\t/**\n\t * Reusable schemas.\n\t */\n\tschemas?: {\n\t\t[name: string]: IJsonSchema | boolean;\n\t};\n\n\t/**\n\t * Reusable responses.\n\t */\n\tresponses?: {\n\t\t[name: string]: IOpenApiResponse | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable parameters.\n\t */\n\tparameters?: {\n\t\t[name: string]: IOpenApiParameter | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable examples.\n\t */\n\texamples?: {\n\t\t[name: string]: IOpenApiExample | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable request bodies.\n\t */\n\trequestBodies?: {\n\t\t[name: string]: IOpenApiRequestBody | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable headers.\n\t */\n\theaders?: {\n\t\t[name: string]: IOpenApiHeader | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable security schemes.\n\t */\n\tsecuritySchemes?: {\n\t\t[name: string]: IOpenApiSecurityScheme | IOpenApiReference;\n\t};\n\n\t/**\n\t * Reusable path items.\n\t */\n\tpathItems?: {\n\t\t[name: string]: IOpenApiPathItem;\n\t};\n\n\t/**\n\t * Reusable media types.\n\t */\n\tmediaTypes?: {\n\t\t[name: string]: IOpenApiMediaType | IOpenApiReference;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiContact.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiContact.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI Contact Object.\n * @see https://spec.openapis.org/oas/latest.html#contact-object\n */\nexport interface IOpenApiContact {\n\t/**\n\t * The identifying name of the contact person or organisation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-1\n\t */\n\tname?: string;\n\n\t/**\n\t * The URI for the contact information.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-1\n\t */\n\turl?: string;\n\n\t/**\n\t * The email address for the contact.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-1\n\t */\n\temail?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiExample.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiExample.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI Example Object.\n * @see https://spec.openapis.org/oas/latest.html#example-object\n */\nexport interface IOpenApiExample {\n\t/**\n\t * Short description for the example.\n\t */\n\tsummary?: string;\n\n\t/**\n\t * Long description for the example.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The schema-ready value for the example.\n\t */\n\tdataValue?: unknown;\n\n\t/**\n\t * The serialized form of the example.\n\t */\n\tserializedValue?: string;\n\n\t/**\n\t * An external URI for the serialized example.\n\t */\n\texternalValue?: string;\n\n\t/**\n\t * Backwards-compatible embedded example value.\n\t */\n\tvalue?: unknown;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiExternalDocumentation.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiExternalDocumentation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI External Documentation Object.\n * @see https://spec.openapis.org/oas/latest.html#external-documentation-object\n */\nexport interface IOpenApiExternalDocumentation {\n\t/**\n\t * A description of the target documentation.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The URI for the target documentation.\n\t */\n\turl: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiHeader.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiHeader.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiExample } from \"./IOpenApiExample.js\";\nimport type { IOpenApiMediaType } from \"./IOpenApiMediaType.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IJsonSchema } from \"../jsonSchema/IJsonSchema.js\";\n\n/**\n * An OpenAPI Header Object.\n * @see https://spec.openapis.org/oas/latest.html#header-object\n */\nexport interface IOpenApiHeader {\n\t/**\n\t * The description of the header.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Whether the header is required.\n\t */\n\trequired?: boolean;\n\n\t/**\n\t * Whether the header is deprecated.\n\t */\n\tdeprecated?: boolean;\n\n\t/**\n\t * A shorthand example for the header.\n\t */\n\texample?: unknown;\n\n\t/**\n\t * Named examples for the header.\n\t */\n\texamples?: {\n\t\t[id: string]: IOpenApiExample | IOpenApiReference;\n\t};\n\n\t/**\n\t * The serialization style for the header.\n\t */\n\tstyle?: \"simple\";\n\n\t/**\n\t * Whether exploded serialization is used.\n\t */\n\texplode?: boolean;\n\n\t/**\n\t * The schema of the header.\n\t */\n\tschema?: IJsonSchema;\n\n\t/**\n\t * The content definition for the header.\n\t */\n\tcontent?: {\n\t\t[contentType: string]: IOpenApiMediaType | IOpenApiReference;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiInfo.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiInfo.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiContact } from \"./IOpenApiContact.js\";\nimport type { IOpenApiLicense } from \"./IOpenApiLicense.js\";\n\n/**\n * An OpenAPI Info Object.\n * @see https://spec.openapis.org/oas/latest.html#info-object\n */\nexport interface IOpenApiInfo {\n\t/**\n\t * The title of the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\ttitle: string;\n\n\t/**\n\t * A short summary of the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\tsummary?: string;\n\n\t/**\n\t * A description of the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The terms of service URI.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\ttermsOfService?: string;\n\n\t/**\n\t * Contact information for the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\tcontact?: IOpenApiContact;\n\n\t/**\n\t * License information for the API.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\tlicense?: IOpenApiLicense;\n\n\t/**\n\t * The version of the API description.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-0\n\t */\n\tversion: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiLicense.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiLicense.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI License Object.\n * @see https://spec.openapis.org/oas/latest.html#license-object\n */\nexport interface IOpenApiLicense {\n\t/**\n\t * The license name.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-2\n\t */\n\tname: string;\n\n\t/**\n\t * The SPDX license expression.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-2\n\t */\n\tidentifier?: string;\n\n\t/**\n\t * The URI for the license.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-2\n\t */\n\turl?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiMediaType.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiMediaType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiExample } from \"./IOpenApiExample.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IJsonSchema } from \"../jsonSchema/IJsonSchema.js\";\n\n/**\n * An OpenAPI Media Type Object.\n * @see https://spec.openapis.org/oas/latest.html#media-type-object\n */\nexport interface IOpenApiMediaType {\n\t/**\n\t * A schema describing the complete content.\n\t */\n\tschema?: IJsonSchema;\n\n\t/**\n\t * A schema describing each item within a sequential media type.\n\t */\n\titemSchema?: IJsonSchema;\n\n\t/**\n\t * A single shorthand example.\n\t */\n\texample?: unknown;\n\n\t/**\n\t * Named examples for the media type.\n\t */\n\texamples?: {\n\t\t[id: string]: IOpenApiExample | IOpenApiReference;\n\t};\n\n\t/**\n\t * Encoding metadata keyed by property name.\n\t */\n\tencoding?: {\n\t\t[id: string]: unknown;\n\t};\n\n\t/**\n\t * Positional encoding metadata for multipart payloads.\n\t */\n\tprefixEncoding?: unknown[];\n\n\t/**\n\t * Repeating item encoding metadata for multipart payloads.\n\t */\n\titemEncoding?: unknown;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiOAuthFlow.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiOAuthFlow.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI OAuth Flow Object.\n * @see https://spec.openapis.org/oas/latest.html#oauth-flow-object\n */\nexport interface IOpenApiOAuthFlow {\n\t/**\n\t * The authorization URL for this flow.\n\t */\n\tauthorizationUrl?: string;\n\n\t/**\n\t * The device authorization URL for this flow.\n\t */\n\tdeviceAuthorizationUrl?: string;\n\n\t/**\n\t * The token URL for this flow.\n\t */\n\ttokenUrl?: string;\n\n\t/**\n\t * The refresh URL for this flow.\n\t */\n\trefreshUrl?: string;\n\n\t/**\n\t * Available scopes for this flow.\n\t */\n\tscopes: {\n\t\t[name: string]: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiOAuthFlows.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiOAuthFlows.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiOAuthFlow } from \"./IOpenApiOAuthFlow.js\";\n\n/**\n * An OpenAPI OAuth Flows Object.\n * @see https://spec.openapis.org/oas/latest.html#oauth-flows-object\n */\nexport interface IOpenApiOAuthFlows {\n\t/**\n\t * Configuration for the implicit flow.\n\t */\n\timplicit?: IOpenApiOAuthFlow;\n\n\t/**\n\t * Configuration for the resource owner password flow.\n\t */\n\tpassword?: IOpenApiOAuthFlow;\n\n\t/**\n\t * Configuration for the client credentials flow.\n\t */\n\tclientCredentials?: IOpenApiOAuthFlow;\n\n\t/**\n\t * Configuration for the authorization code flow.\n\t */\n\tauthorizationCode?: IOpenApiOAuthFlow;\n\n\t/**\n\t * Configuration for the device authorization flow.\n\t */\n\tdeviceAuthorization?: IOpenApiOAuthFlow;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiParameter.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiParameter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiExample } from \"./IOpenApiExample.js\";\nimport type { IOpenApiMediaType } from \"./IOpenApiMediaType.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IJsonSchema } from \"../jsonSchema/IJsonSchema.js\";\n\n/**\n * The supported parameter locations.\n */\nexport type OpenApiParameterLocation = \"path\" | \"query\" | \"querystring\" | \"header\" | \"cookie\";\n\n/**\n * The supported parameter styles.\n */\nexport type OpenApiParameterStyle =\n\t| \"matrix\"\n\t| \"label\"\n\t| \"simple\"\n\t| \"form\"\n\t| \"spaceDelimited\"\n\t| \"pipeDelimited\"\n\t| \"deepObject\"\n\t| \"cookie\";\n\n/**\n * An OpenAPI Parameter Object.\n * @see https://spec.openapis.org/oas/latest.html#parameter-object\n */\nexport interface IOpenApiParameter {\n\t/**\n\t * The name of the parameter.\n\t */\n\tname: string;\n\n\t/**\n\t * The location of the parameter.\n\t */\n\tin: OpenApiParameterLocation;\n\n\t/**\n\t * A brief description of the parameter.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Whether the parameter is required.\n\t */\n\trequired?: boolean;\n\n\t/**\n\t * Whether the parameter is deprecated.\n\t */\n\tdeprecated?: boolean;\n\n\t/**\n\t * Whether empty values are allowed for query parameters.\n\t */\n\tallowEmptyValue?: boolean;\n\n\t/**\n\t * A shorthand example for the parameter.\n\t */\n\texample?: unknown;\n\n\t/**\n\t * Named examples for the parameter.\n\t */\n\texamples?: {\n\t\t[id: string]: IOpenApiExample | IOpenApiReference;\n\t};\n\n\t/**\n\t * The serialization style for the parameter.\n\t */\n\tstyle?: OpenApiParameterStyle;\n\n\t/**\n\t * Whether exploded serialization is used.\n\t */\n\texplode?: boolean;\n\n\t/**\n\t * Whether reserved characters may pass through unchanged.\n\t */\n\tallowReserved?: boolean;\n\n\t/**\n\t * The schema describing the parameter.\n\t */\n\tschema?: IJsonSchema;\n\n\t/**\n\t * Content-based parameter serialization.\n\t */\n\tcontent?: {\n\t\t[contentType: string]: IOpenApiMediaType | IOpenApiReference;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiPathItem.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiPathItem.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiParameter } from \"./IOpenApiParameter.js\";\nimport type { IOpenApiPathMethod } from \"./IOpenApiPathMethod.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IOpenApiServer } from \"./IOpenApiServer.js\";\n\n/**\n * An OpenAPI Path Item Object.\n * @see https://spec.openapis.org/oas/latest.html#path-item-object\n */\nexport interface IOpenApiPathItem {\n\t/**\n\t * A referenced definition of this path item.\n\t */\n\t$ref?: string;\n\n\t/**\n\t * A summary applying to all operations in the path.\n\t */\n\tsummary?: string;\n\n\t/**\n\t * A description applying to all operations in the path.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * A GET operation on the path.\n\t */\n\tget?: IOpenApiPathMethod;\n\n\t/**\n\t * A PUT operation on the path.\n\t */\n\tput?: IOpenApiPathMethod;\n\n\t/**\n\t * A POST operation on the path.\n\t */\n\tpost?: IOpenApiPathMethod;\n\n\t/**\n\t * A DELETE operation on the path.\n\t */\n\tdelete?: IOpenApiPathMethod;\n\n\t/**\n\t * An OPTIONS operation on the path.\n\t */\n\toptions?: IOpenApiPathMethod;\n\n\t/**\n\t * A HEAD operation on the path.\n\t */\n\thead?: IOpenApiPathMethod;\n\n\t/**\n\t * A PATCH operation on the path.\n\t */\n\tpatch?: IOpenApiPathMethod;\n\n\t/**\n\t * A TRACE operation on the path.\n\t */\n\ttrace?: IOpenApiPathMethod;\n\n\t/**\n\t * A QUERY operation on the path.\n\t */\n\tquery?: IOpenApiPathMethod;\n\n\t/**\n\t * Additional non-standard HTTP operations keyed by method name.\n\t */\n\tadditionalOperations?: {\n\t\t[method: string]: IOpenApiPathMethod;\n\t};\n\n\t/**\n\t * Alternative servers for this path.\n\t */\n\tservers?: IOpenApiServer[];\n\n\t/**\n\t * Shared parameters for all operations on this path.\n\t */\n\tparameters?: (IOpenApiParameter | IOpenApiReference)[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiPathMethod.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiPathMethod.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiExternalDocumentation } from \"./IOpenApiExternalDocumentation.js\";\nimport type { IOpenApiParameter } from \"./IOpenApiParameter.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IOpenApiRequestBody } from \"./IOpenApiRequestBody.js\";\nimport type { IOpenApiResponses } from \"./IOpenApiResponses.js\";\nimport type { IOpenApiSecurityRequirement } from \"./IOpenApiSecurityRequirement.js\";\nimport type { IOpenApiServer } from \"./IOpenApiServer.js\";\n\n/**\n * An OpenAPI Operation Object.\n * @see https://spec.openapis.org/oas/latest.html#operation-object\n */\nexport interface IOpenApiPathMethod {\n\t/**\n\t * Tags for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\ttags?: string[];\n\n\t/**\n\t * A short summary of the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tsummary?: string;\n\n\t/**\n\t * A verbose description of the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tdescription?: string;\n\n\t/**\n\t * Additional external documentation for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\texternalDocs?: IOpenApiExternalDocumentation;\n\n\t/**\n\t * A unique identifier for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\toperationId?: string;\n\n\t/**\n\t * Parameters for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tparameters?: (IOpenApiParameter | IOpenApiReference)[];\n\n\t/**\n\t * The request body for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\trequestBody?: IOpenApiRequestBody | IOpenApiReference;\n\n\t/**\n\t * The responses for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tresponses: IOpenApiResponses;\n\n\t/**\n\t * Callbacks related to the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tcallbacks?: {\n\t\t[id: string]: unknown;\n\t};\n\n\t/**\n\t * Whether the operation is deprecated.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tdeprecated?: boolean;\n\n\t/**\n\t * Security requirements for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tsecurity?: IOpenApiSecurityRequirement[];\n\n\t/**\n\t * Alternative servers for the operation.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-7\n\t */\n\tservers?: IOpenApiServer[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiReference.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiReference.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * An OpenAPI Reference Object.\n * @see https://spec.openapis.org/oas/latest.html#reference-object\n */\nexport interface IOpenApiReference {\n\t/**\n\t * The reference identifier.\n\t */\n\t$ref: string;\n\n\t/**\n\t * A summary override for the referenced object.\n\t */\n\tsummary?: string;\n\n\t/**\n\t * A description override for the referenced object.\n\t */\n\tdescription?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiRequestBody.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiRequestBody.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiMediaType } from \"./IOpenApiMediaType.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\n\n/**\n * An OpenAPI Request Body Object.\n * @see https://spec.openapis.org/oas/latest.html#request-body-object\n */\nexport interface IOpenApiRequestBody {\n\t/**\n\t * A brief description of the request body.\n\t */\n\tdescription?: string;\n\n\t/**\n\t * The content of the request body.\n\t */\n\tcontent: {\n\t\t[contentType: string]: IOpenApiMediaType | IOpenApiReference;\n\t};\n\n\t/**\n\t * Whether the request body is required.\n\t */\n\trequired?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiResponse.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiHeader } from \"./IOpenApiHeader.js\";\nimport type { IOpenApiMediaType } from \"./IOpenApiMediaType.js\";\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\n\n/**\n * An OpenAPI Response Object.\n * @see https://spec.openapis.org/oas/latest.html#response-object\n */\nexport interface IOpenApiResponse {\n\t/**\n\t * A short summary of the meaning of the response.\n\t */\n\tsummary?: string;\n\n\t/**\n\t * A description of the response.\n\t */\n\tdescription: string;\n\n\t/**\n\t * The headers for the response.\n\t */\n\theaders?: {\n\t\t[id: string]: IOpenApiHeader | IOpenApiReference;\n\t};\n\n\t/**\n\t * The content for the response.\n\t */\n\tcontent?: {\n\t\t[contentType: string]: IOpenApiMediaType | IOpenApiReference;\n\t};\n\n\t/**\n\t * Design-time links from this response.\n\t */\n\tlinks?: {\n\t\t[id: string]: unknown;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOpenApiResponses.js","sourceRoot":"","sources":["../../../../src/models/openApi/IOpenApiResponses.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOpenApiReference } from \"./IOpenApiReference.js\";\nimport type { IOpenApiResponse } from \"./IOpenApiResponse.js\";\n\n/**\n * An OpenAPI Responses Object.\n * @see https://spec.openapis.org/oas/latest.html#responses-object\n */\nexport interface IOpenApiResponses {\n\t/**\n\t * Named HTTP status code or status code range responses.\n\t * @see https://spec.openapis.org/oas/latest.html#patterned-fields-0\n\t */\n\t[code: string]: IOpenApiResponse | IOpenApiReference | undefined;\n\n\t/**\n\t * The default response for otherwise undeclared status codes.\n\t * @see https://spec.openapis.org/oas/latest.html#fixed-fields-13\n\t */\n\tdefault?: IOpenApiResponse | IOpenApiReference;\n}\n"]}
|