@api-client/ui 0.1.9 → 0.2.2

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 (1357) hide show
  1. package/.github/workflows/deployment.yml +0 -2
  2. package/build/src/decorators/reactive.d.ts.map +1 -1
  3. package/build/src/decorators/reactive.js +17 -8
  4. package/build/src/decorators/reactive.js.map +1 -1
  5. package/build/src/index.d.ts +0 -17
  6. package/build/src/index.d.ts.map +1 -1
  7. package/build/src/index.js +0 -18
  8. package/build/src/index.js.map +1 -1
  9. package/build/src/md/dialog/internals/Dialog.d.ts.map +1 -1
  10. package/build/src/md/dialog/internals/Dialog.js +6 -5
  11. package/build/src/md/dialog/internals/Dialog.js.map +1 -1
  12. package/build/src/md/dialog/internals/Dialog.styles.d.ts.map +1 -1
  13. package/build/src/md/dialog/internals/Dialog.styles.js +14 -10
  14. package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
  15. package/demo/elements/authorization/api-key.html +1 -1
  16. package/demo/elements/authorization/basic.html +1 -1
  17. package/demo/elements/authorization/bearer.html +1 -1
  18. package/demo/elements/authorization/index.html +0 -3
  19. package/demo/elements/authorization/ntlm.html +1 -1
  20. package/demo/elements/authorization/oauth-authorize.html +1 -1
  21. package/demo/elements/authorization/oauth-error.html +1 -1
  22. package/demo/elements/authorization/oauth2.html +1 -1
  23. package/demo/elements/authorization/oidc.html +1 -1
  24. package/demo/elements/context-menu/basic.html +1 -1
  25. package/demo/elements/context-menu/custom-data.html +1 -1
  26. package/demo/elements/context-menu/enabled-state.html +1 -1
  27. package/demo/elements/context-menu/icons.html +1 -1
  28. package/demo/elements/context-menu/nested.html +1 -1
  29. package/demo/elements/context-menu/no-execute.html +1 -1
  30. package/demo/elements/context-menu/radio-menu.html +1 -1
  31. package/demo/elements/context-menu/separators.html +1 -1
  32. package/demo/elements/environment/environment-editor.html +1 -1
  33. package/demo/elements/environment/server-editor.html +1 -1
  34. package/demo/elements/environment/variables-editor.html +1 -1
  35. package/demo/elements/har/har-viewer.html +1 -1
  36. package/demo/elements/highlight/index.html +0 -4
  37. package/demo/elements/highlight/marked-highlight.html +1 -1
  38. package/demo/elements/highlight/prism-highlight.html +1 -1
  39. package/demo/elements/http/body-editor.html +1 -1
  40. package/demo/elements/http/headers.html +1 -1
  41. package/demo/elements/http/http-assertions.html +1 -1
  42. package/demo/elements/http/http-flows.html +1 -1
  43. package/demo/elements/http/request-editor.html +1 -1
  44. package/demo/elements/http/request-log.html +1 -1
  45. package/demo/elements/http/url-editing.html +1 -1
  46. package/demo/elements/icons/index.html +1 -1
  47. package/demo/elements/index.html +0 -3
  48. package/demo/elements/project/index.html +7 -0
  49. package/demo/elements/project/project-run-report.html +1 -1
  50. package/demo/elements/project/request-editor.html +1 -1
  51. package/demo/elements/user/user-avatar.html +1 -1
  52. package/demo/elements/user/user-avatar.ts +1 -1
  53. package/demo/index.html +3 -3
  54. package/demo/layout/index.html +1 -1
  55. package/demo/{elements/md → md}/UiDemoPage.ts +1 -1
  56. package/demo/{elements/md → md}/buttons/button.html +3 -3
  57. package/demo/{elements/md → md}/buttons/button.ts +10 -10
  58. package/demo/{elements/md → md}/buttons/icon-button.html +3 -3
  59. package/demo/{elements/md → md}/buttons/icon-button.ts +4 -4
  60. package/demo/{elements/md → md}/buttons/segmented-buttons.html +3 -3
  61. package/demo/{elements/md → md}/buttons/segmented-buttons.ts +4 -4
  62. package/demo/{elements/md → md}/chip/chip.html +3 -3
  63. package/demo/{elements/md → md}/chip/chip.ts +5 -5
  64. package/demo/{elements/md → md}/collapse/CustomDetail.ts +2 -2
  65. package/demo/{elements/md → md}/collapse/collapse.html +3 -3
  66. package/demo/{elements/md → md}/collapse/collapse.ts +1 -1
  67. package/demo/{elements/md → md}/dialog/dialog.html +7 -3
  68. package/demo/{elements/md → md}/dialog/dialog.ts +19 -12
  69. package/demo/{elements/md → md}/index.html +3 -3
  70. package/demo/{elements/md → md}/inputs/checkbox.html +3 -3
  71. package/demo/{elements/md → md}/inputs/checkbox.ts +4 -4
  72. package/demo/{elements/md → md}/inputs/input.html +3 -3
  73. package/demo/{elements/md → md}/inputs/input.ts +7 -7
  74. package/demo/{elements/md → md}/inputs/radio.html +3 -3
  75. package/demo/{elements/md → md}/inputs/radio.ts +4 -4
  76. package/demo/{elements/md → md}/inputs/switch.html +3 -3
  77. package/demo/{elements/md → md}/inputs/switch.ts +5 -5
  78. package/demo/{elements/md → md}/list/dropdown-list.html +3 -3
  79. package/demo/{elements/md → md}/list/dropdown-list.ts +9 -9
  80. package/demo/{elements/md → md}/list/list.html +3 -3
  81. package/demo/{elements/md → md}/list/list.ts +5 -5
  82. package/demo/{elements/md → md}/notification/snack.html +3 -3
  83. package/demo/{elements/md → md}/notification/snack.ts +2 -2
  84. package/demo/{elements/md → md}/progress/progress.html +3 -3
  85. package/demo/{elements/md → md}/progress/progress.ts +2 -2
  86. package/demo/{elements/md → md}/tabs/tabs.html +3 -3
  87. package/demo/{elements/md → md}/tabs/tabs.ts +7 -7
  88. package/demo/tsconfig.json +0 -3
  89. package/eslint.config.js +0 -3
  90. package/package.json +44 -71
  91. package/src/decorators/reactive.ts +18 -8
  92. package/src/index.ts +0 -19
  93. package/src/md/dialog/internals/Dialog.styles.ts +14 -10
  94. package/src/md/dialog/internals/Dialog.ts +6 -5
  95. package/test/core/activity.spec.ts +3 -3
  96. package/tsconfig.all.json +7 -0
  97. package/tsconfig.json +1 -0
  98. package/web-dev-server.config.js +21 -0
  99. package/web-test-runner.config.js +8 -28
  100. package/bin/dev.ts +0 -7
  101. package/bin/test.ts +0 -6
  102. package/build/src/amf/lib/AmfInputParser.d.ts +0 -69
  103. package/build/src/amf/lib/AmfInputParser.d.ts.map +0 -1
  104. package/build/src/amf/lib/AmfInputParser.js +0 -189
  105. package/build/src/amf/lib/AmfInputParser.js.map +0 -1
  106. package/build/src/amf/lib/AmfParameters.d.ts +0 -166
  107. package/build/src/amf/lib/AmfParameters.d.ts.map +0 -1
  108. package/build/src/amf/lib/AmfParameters.js +0 -720
  109. package/build/src/amf/lib/AmfParameters.js.map +0 -1
  110. package/build/src/amf/lib/AmfSecurity.d.ts +0 -7
  111. package/build/src/amf/lib/AmfSecurity.d.ts.map +0 -1
  112. package/build/src/amf/lib/AmfSecurity.js +0 -41
  113. package/build/src/amf/lib/AmfSecurity.js.map +0 -1
  114. package/build/src/amf/lib/InputCache.d.ts +0 -45
  115. package/build/src/amf/lib/InputCache.d.ts.map +0 -1
  116. package/build/src/amf/lib/InputCache.js +0 -92
  117. package/build/src/amf/lib/InputCache.js.map +0 -1
  118. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +0 -38
  119. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +0 -1
  120. package/build/src/amf/lib/Oauth2RamlCustomData.js +0 -248
  121. package/build/src/amf/lib/Oauth2RamlCustomData.js.map +0 -1
  122. package/build/src/amf/lib/PayloadUtils.d.ts +0 -19
  123. package/build/src/amf/lib/PayloadUtils.d.ts.map +0 -1
  124. package/build/src/amf/lib/PayloadUtils.js +0 -73
  125. package/build/src/amf/lib/PayloadUtils.js.map +0 -1
  126. package/build/src/amf/lib/QueryParameterProcessor.d.ts +0 -44
  127. package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +0 -1
  128. package/build/src/amf/lib/QueryParameterProcessor.js +0 -167
  129. package/build/src/amf/lib/QueryParameterProcessor.js.map +0 -1
  130. package/build/src/amf/lib/UrlUtils.d.ts +0 -49
  131. package/build/src/amf/lib/UrlUtils.d.ts.map +0 -1
  132. package/build/src/amf/lib/UrlUtils.js +0 -209
  133. package/build/src/amf/lib/UrlUtils.js.map +0 -1
  134. package/build/src/amf/lib/Utils.d.ts +0 -43
  135. package/build/src/amf/lib/Utils.d.ts.map +0 -1
  136. package/build/src/amf/lib/Utils.js +0 -204
  137. package/build/src/amf/lib/Utils.js.map +0 -1
  138. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts +0 -8
  139. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts.map +0 -1
  140. package/build/src/amf/lib/navigation-layout/ApiSorting.js +0 -18
  141. package/build/src/amf/lib/navigation-layout/ApiSorting.js.map +0 -1
  142. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts +0 -33
  143. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts.map +0 -1
  144. package/build/src/amf/lib/navigation-layout/EndpointsTree.js +0 -178
  145. package/build/src/amf/lib/navigation-layout/EndpointsTree.js.map +0 -1
  146. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts +0 -25
  147. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts.map +0 -1
  148. package/build/src/amf/lib/navigation-layout/NaturalTree.js +0 -91
  149. package/build/src/amf/lib/navigation-layout/NaturalTree.js.map +0 -1
  150. package/build/src/amf/plugins/ApiNavigationCommands.d.ts +0 -4
  151. package/build/src/amf/plugins/ApiNavigationCommands.d.ts.map +0 -1
  152. package/build/src/amf/plugins/ApiNavigationCommands.js +0 -71
  153. package/build/src/amf/plugins/ApiNavigationCommands.js.map +0 -1
  154. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts +0 -16
  155. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts.map +0 -1
  156. package/build/src/amf/plugins/ApiNavigationContextMenu.js +0 -40
  157. package/build/src/amf/plugins/ApiNavigationContextMenu.js.map +0 -1
  158. package/build/src/amf/store/AmfGraphStore.d.ts +0 -39
  159. package/build/src/amf/store/AmfGraphStore.d.ts.map +0 -1
  160. package/build/src/amf/store/AmfGraphStore.js +0 -62
  161. package/build/src/amf/store/AmfGraphStore.js.map +0 -1
  162. package/build/src/amf/store/AmfStore.d.ts +0 -122
  163. package/build/src/amf/store/AmfStore.d.ts.map +0 -1
  164. package/build/src/amf/store/AmfStore.js +0 -171
  165. package/build/src/amf/store/AmfStore.js.map +0 -1
  166. package/build/src/amf/store/DomEventsAmfStore.d.ts +0 -6
  167. package/build/src/amf/store/DomEventsAmfStore.d.ts.map +0 -1
  168. package/build/src/amf/store/DomEventsAmfStore.js +0 -5
  169. package/build/src/amf/store/DomEventsAmfStore.js.map +0 -1
  170. package/build/src/amf/store/InMemAmfGraphStore.d.ts +0 -137
  171. package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +0 -1
  172. package/build/src/amf/store/InMemAmfGraphStore.js +0 -586
  173. package/build/src/amf/store/InMemAmfGraphStore.js.map +0 -1
  174. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts +0 -38
  175. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts.map +0 -1
  176. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js +0 -99
  177. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js.map +0 -1
  178. package/build/src/amf/types.d.ts +0 -320
  179. package/build/src/amf/types.d.ts.map +0 -1
  180. package/build/src/amf/types.js +0 -2
  181. package/build/src/amf/types.js.map +0 -1
  182. package/build/src/define/amf/api-annotation-document.d.ts +0 -10
  183. package/build/src/define/amf/api-annotation-document.d.ts.map +0 -1
  184. package/build/src/define/amf/api-annotation-document.js +0 -27
  185. package/build/src/define/amf/api-annotation-document.js.map +0 -1
  186. package/build/src/define/amf/api-authorization-editor.d.ts +0 -10
  187. package/build/src/define/amf/api-authorization-editor.d.ts.map +0 -1
  188. package/build/src/define/amf/api-authorization-editor.js +0 -27
  189. package/build/src/define/amf/api-authorization-editor.js.map +0 -1
  190. package/build/src/define/amf/api-channel-document.d.ts +0 -10
  191. package/build/src/define/amf/api-channel-document.d.ts.map +0 -1
  192. package/build/src/define/amf/api-channel-document.js +0 -27
  193. package/build/src/define/amf/api-channel-document.js.map +0 -1
  194. package/build/src/define/amf/api-documentation-document.d.ts +0 -10
  195. package/build/src/define/amf/api-documentation-document.d.ts.map +0 -1
  196. package/build/src/define/amf/api-documentation-document.js +0 -27
  197. package/build/src/define/amf/api-documentation-document.js.map +0 -1
  198. package/build/src/define/amf/api-documentation.d.ts +0 -10
  199. package/build/src/define/amf/api-documentation.d.ts.map +0 -1
  200. package/build/src/define/amf/api-documentation.js +0 -27
  201. package/build/src/define/amf/api-documentation.js.map +0 -1
  202. package/build/src/define/amf/api-navigation.d.ts +0 -10
  203. package/build/src/define/amf/api-navigation.d.ts.map +0 -1
  204. package/build/src/define/amf/api-navigation.js +0 -27
  205. package/build/src/define/amf/api-navigation.js.map +0 -1
  206. package/build/src/define/amf/api-operation-document.d.ts +0 -10
  207. package/build/src/define/amf/api-operation-document.d.ts.map +0 -1
  208. package/build/src/define/amf/api-operation-document.js +0 -27
  209. package/build/src/define/amf/api-operation-document.js.map +0 -1
  210. package/build/src/define/amf/api-parameter-document.d.ts +0 -10
  211. package/build/src/define/amf/api-parameter-document.d.ts.map +0 -1
  212. package/build/src/define/amf/api-parameter-document.js +0 -27
  213. package/build/src/define/amf/api-parameter-document.js.map +0 -1
  214. package/build/src/define/amf/api-parametrized-security-scheme.d.ts +0 -10
  215. package/build/src/define/amf/api-parametrized-security-scheme.d.ts.map +0 -1
  216. package/build/src/define/amf/api-parametrized-security-scheme.js +0 -27
  217. package/build/src/define/amf/api-parametrized-security-scheme.js.map +0 -1
  218. package/build/src/define/amf/api-payload-document.d.ts +0 -10
  219. package/build/src/define/amf/api-payload-document.d.ts.map +0 -1
  220. package/build/src/define/amf/api-payload-document.js +0 -27
  221. package/build/src/define/amf/api-payload-document.js.map +0 -1
  222. package/build/src/define/amf/api-request-document.d.ts +0 -10
  223. package/build/src/define/amf/api-request-document.d.ts.map +0 -1
  224. package/build/src/define/amf/api-request-document.js +0 -27
  225. package/build/src/define/amf/api-request-document.js.map +0 -1
  226. package/build/src/define/amf/api-request-editor.d.ts +0 -10
  227. package/build/src/define/amf/api-request-editor.d.ts.map +0 -1
  228. package/build/src/define/amf/api-request-editor.js +0 -27
  229. package/build/src/define/amf/api-request-editor.js.map +0 -1
  230. package/build/src/define/amf/api-request.d.ts +0 -10
  231. package/build/src/define/amf/api-request.d.ts.map +0 -1
  232. package/build/src/define/amf/api-request.js +0 -27
  233. package/build/src/define/amf/api-request.js.map +0 -1
  234. package/build/src/define/amf/api-resource-document.d.ts +0 -10
  235. package/build/src/define/amf/api-resource-document.d.ts.map +0 -1
  236. package/build/src/define/amf/api-resource-document.js +0 -27
  237. package/build/src/define/amf/api-resource-document.js.map +0 -1
  238. package/build/src/define/amf/api-response-document.d.ts +0 -10
  239. package/build/src/define/amf/api-response-document.d.ts.map +0 -1
  240. package/build/src/define/amf/api-response-document.js +0 -27
  241. package/build/src/define/amf/api-response-document.js.map +0 -1
  242. package/build/src/define/amf/api-schema-document.d.ts +0 -10
  243. package/build/src/define/amf/api-schema-document.d.ts.map +0 -1
  244. package/build/src/define/amf/api-schema-document.js +0 -27
  245. package/build/src/define/amf/api-schema-document.js.map +0 -1
  246. package/build/src/define/amf/api-security-document.d.ts +0 -10
  247. package/build/src/define/amf/api-security-document.d.ts.map +0 -1
  248. package/build/src/define/amf/api-security-document.js +0 -27
  249. package/build/src/define/amf/api-security-document.js.map +0 -1
  250. package/build/src/define/amf/api-security-requirement-document.d.ts +0 -10
  251. package/build/src/define/amf/api-security-requirement-document.d.ts.map +0 -1
  252. package/build/src/define/amf/api-security-requirement-document.js +0 -27
  253. package/build/src/define/amf/api-security-requirement-document.js.map +0 -1
  254. package/build/src/define/amf/api-server-picker.d.ts +0 -10
  255. package/build/src/define/amf/api-server-picker.d.ts.map +0 -1
  256. package/build/src/define/amf/api-server-picker.js +0 -27
  257. package/build/src/define/amf/api-server-picker.js.map +0 -1
  258. package/build/src/define/amf/api-summary.d.ts +0 -10
  259. package/build/src/define/amf/api-summary.d.ts.map +0 -1
  260. package/build/src/define/amf/api-summary.js +0 -27
  261. package/build/src/define/amf/api-summary.js.map +0 -1
  262. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts +0 -10
  263. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts.map +0 -1
  264. package/build/src/define/amf/authorization/amf-apikey-authorization.js +0 -28
  265. package/build/src/define/amf/authorization/amf-apikey-authorization.js.map +0 -1
  266. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts +0 -10
  267. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts.map +0 -1
  268. package/build/src/define/amf/authorization/amf-basic-authorization.js +0 -28
  269. package/build/src/define/amf/authorization/amf-basic-authorization.js.map +0 -1
  270. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts +0 -10
  271. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts.map +0 -1
  272. package/build/src/define/amf/authorization/amf-bearer-authorization.js +0 -28
  273. package/build/src/define/amf/authorization/amf-bearer-authorization.js.map +0 -1
  274. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts +0 -10
  275. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts.map +0 -1
  276. package/build/src/define/amf/authorization/amf-oauth2-authorization.js +0 -31
  277. package/build/src/define/amf/authorization/amf-oauth2-authorization.js.map +0 -1
  278. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts +0 -10
  279. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts.map +0 -1
  280. package/build/src/define/amf/authorization/amf-oidc-authorization.js +0 -31
  281. package/build/src/define/amf/authorization/amf-oidc-authorization.js.map +0 -1
  282. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts +0 -10
  283. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts.map +0 -1
  284. package/build/src/define/amf/authorization/amf-passthrough-authorization.js +0 -28
  285. package/build/src/define/amf/authorization/amf-passthrough-authorization.js.map +0 -1
  286. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts +0 -10
  287. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts.map +0 -1
  288. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js +0 -28
  289. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js.map +0 -1
  290. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +0 -61
  291. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +0 -1
  292. package/build/src/elements/amf/ApiAnnotationDocument.element.js +0 -176
  293. package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +0 -1
  294. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts +0 -3
  295. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts.map +0 -1
  296. package/build/src/elements/amf/ApiAnnotationDocument.styles.js +0 -46
  297. package/build/src/elements/amf/ApiAnnotationDocument.styles.js.map +0 -1
  298. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +0 -143
  299. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +0 -1
  300. package/build/src/elements/amf/ApiAuthorizationEditor.element.js +0 -379
  301. package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +0 -1
  302. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts +0 -3
  303. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts.map +0 -1
  304. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js +0 -25
  305. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js.map +0 -1
  306. package/build/src/elements/amf/ApiChannelDocument.element.d.ts +0 -28
  307. package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +0 -1
  308. package/build/src/elements/amf/ApiChannelDocument.element.js +0 -85
  309. package/build/src/elements/amf/ApiChannelDocument.element.js.map +0 -1
  310. package/build/src/elements/amf/ApiDocumentation.element.d.ts +0 -254
  311. package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +0 -1
  312. package/build/src/elements/amf/ApiDocumentation.element.js +0 -686
  313. package/build/src/elements/amf/ApiDocumentation.element.js.map +0 -1
  314. package/build/src/elements/amf/ApiDocumentation.styles.d.ts +0 -3
  315. package/build/src/elements/amf/ApiDocumentation.styles.d.ts.map +0 -1
  316. package/build/src/elements/amf/ApiDocumentation.styles.js +0 -11
  317. package/build/src/elements/amf/ApiDocumentation.styles.js.map +0 -1
  318. package/build/src/elements/amf/ApiDocumentationBase.d.ts +0 -103
  319. package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +0 -1
  320. package/build/src/elements/amf/ApiDocumentationBase.js +0 -291
  321. package/build/src/elements/amf/ApiDocumentationBase.js.map +0 -1
  322. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +0 -29
  323. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +0 -1
  324. package/build/src/elements/amf/ApiDocumentationDocument.element.js +0 -79
  325. package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +0 -1
  326. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts +0 -3
  327. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts.map +0 -1
  328. package/build/src/elements/amf/ApiDocumentationDocument.styles.js +0 -32
  329. package/build/src/elements/amf/ApiDocumentationDocument.styles.js.map +0 -1
  330. package/build/src/elements/amf/ApiNavigation.element.d.ts +0 -579
  331. package/build/src/elements/amf/ApiNavigation.element.d.ts.map +0 -1
  332. package/build/src/elements/amf/ApiNavigation.element.js +0 -2244
  333. package/build/src/elements/amf/ApiNavigation.element.js.map +0 -1
  334. package/build/src/elements/amf/ApiNavigation.styles.d.ts +0 -3
  335. package/build/src/elements/amf/ApiNavigation.styles.d.ts.map +0 -1
  336. package/build/src/elements/amf/ApiNavigation.styles.js +0 -159
  337. package/build/src/elements/amf/ApiNavigation.styles.js.map +0 -1
  338. package/build/src/elements/amf/ApiOperationDocument.element.d.ts +0 -266
  339. package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +0 -1
  340. package/build/src/elements/amf/ApiOperationDocument.element.js +0 -1002
  341. package/build/src/elements/amf/ApiOperationDocument.element.js.map +0 -1
  342. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts +0 -3
  343. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts.map +0 -1
  344. package/build/src/elements/amf/ApiOperationDocument.styles.js +0 -67
  345. package/build/src/elements/amf/ApiOperationDocument.styles.js.map +0 -1
  346. package/build/src/elements/amf/ApiParameterDocument.element.d.ts +0 -32
  347. package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +0 -1
  348. package/build/src/elements/amf/ApiParameterDocument.element.js +0 -94
  349. package/build/src/elements/amf/ApiParameterDocument.element.js.map +0 -1
  350. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts +0 -3
  351. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts.map +0 -1
  352. package/build/src/elements/amf/ApiParameterDocument.styles.js +0 -15
  353. package/build/src/elements/amf/ApiParameterDocument.styles.js.map +0 -1
  354. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +0 -19
  355. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +0 -1
  356. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +0 -58
  357. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +0 -1
  358. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts +0 -3
  359. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts.map +0 -1
  360. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js +0 -4
  361. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js.map +0 -1
  362. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +0 -32
  363. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +0 -1
  364. package/build/src/elements/amf/ApiPayloadDocument.element.js +0 -131
  365. package/build/src/elements/amf/ApiPayloadDocument.element.js.map +0 -1
  366. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts +0 -3
  367. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts.map +0 -1
  368. package/build/src/elements/amf/ApiPayloadDocument.styles.js +0 -15
  369. package/build/src/elements/amf/ApiPayloadDocument.styles.js.map +0 -1
  370. package/build/src/elements/amf/ApiRequest.element.d.ts +0 -131
  371. package/build/src/elements/amf/ApiRequest.element.d.ts.map +0 -1
  372. package/build/src/elements/amf/ApiRequest.element.js +0 -318
  373. package/build/src/elements/amf/ApiRequest.element.js.map +0 -1
  374. package/build/src/elements/amf/ApiRequest.styles.d.ts +0 -3
  375. package/build/src/elements/amf/ApiRequest.styles.d.ts.map +0 -1
  376. package/build/src/elements/amf/ApiRequest.styles.js +0 -11
  377. package/build/src/elements/amf/ApiRequest.styles.js.map +0 -1
  378. package/build/src/elements/amf/ApiRequestDocument.element.d.ts +0 -115
  379. package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +0 -1
  380. package/build/src/elements/amf/ApiRequestDocument.element.js +0 -401
  381. package/build/src/elements/amf/ApiRequestDocument.element.js.map +0 -1
  382. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts +0 -3
  383. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts.map +0 -1
  384. package/build/src/elements/amf/ApiRequestDocument.styles.js +0 -13
  385. package/build/src/elements/amf/ApiRequestDocument.styles.js.map +0 -1
  386. package/build/src/elements/amf/ApiRequestEditor.element.d.ts +0 -485
  387. package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +0 -1
  388. package/build/src/elements/amf/ApiRequestEditor.element.js +0 -1735
  389. package/build/src/elements/amf/ApiRequestEditor.element.js.map +0 -1
  390. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts +0 -3
  391. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts.map +0 -1
  392. package/build/src/elements/amf/ApiRequestEditor.styles.js +0 -160
  393. package/build/src/elements/amf/ApiRequestEditor.styles.js.map +0 -1
  394. package/build/src/elements/amf/ApiResourceDocument.element.d.ts +0 -233
  395. package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +0 -1
  396. package/build/src/elements/amf/ApiResourceDocument.element.js +0 -706
  397. package/build/src/elements/amf/ApiResourceDocument.element.js.map +0 -1
  398. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts +0 -3
  399. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts.map +0 -1
  400. package/build/src/elements/amf/ApiResourceDocument.styles.js +0 -91
  401. package/build/src/elements/amf/ApiResourceDocument.styles.js.map +0 -1
  402. package/build/src/elements/amf/ApiResponseDocument.element.d.ts +0 -79
  403. package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +0 -1
  404. package/build/src/elements/amf/ApiResponseDocument.element.js +0 -298
  405. package/build/src/elements/amf/ApiResponseDocument.element.js.map +0 -1
  406. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts +0 -3
  407. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts.map +0 -1
  408. package/build/src/elements/amf/ApiResponseDocument.styles.js +0 -41
  409. package/build/src/elements/amf/ApiResponseDocument.styles.js.map +0 -1
  410. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +0 -144
  411. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +0 -1
  412. package/build/src/elements/amf/ApiSchemaDocument.element.js +0 -765
  413. package/build/src/elements/amf/ApiSchemaDocument.element.js.map +0 -1
  414. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts +0 -3
  415. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts.map +0 -1
  416. package/build/src/elements/amf/ApiSchemaDocument.styles.js +0 -41
  417. package/build/src/elements/amf/ApiSchemaDocument.styles.js.map +0 -1
  418. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +0 -180
  419. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +0 -1
  420. package/build/src/elements/amf/ApiSecurityDocument.element.js +0 -592
  421. package/build/src/elements/amf/ApiSecurityDocument.element.js.map +0 -1
  422. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts +0 -3
  423. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts.map +0 -1
  424. package/build/src/elements/amf/ApiSecurityDocument.styles.js +0 -89
  425. package/build/src/elements/amf/ApiSecurityDocument.styles.js.map +0 -1
  426. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +0 -16
  427. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +0 -1
  428. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js +0 -76
  429. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +0 -1
  430. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts +0 -3
  431. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts.map +0 -1
  432. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js +0 -7
  433. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js.map +0 -1
  434. package/build/src/elements/amf/ApiServerPicker.element.d.ts +0 -256
  435. package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +0 -1
  436. package/build/src/elements/amf/ApiServerPicker.element.js +0 -715
  437. package/build/src/elements/amf/ApiServerPicker.element.js.map +0 -1
  438. package/build/src/elements/amf/ApiServerPicker.styles.d.ts +0 -3
  439. package/build/src/elements/amf/ApiServerPicker.styles.d.ts.map +0 -1
  440. package/build/src/elements/amf/ApiServerPicker.styles.js +0 -25
  441. package/build/src/elements/amf/ApiServerPicker.styles.js.map +0 -1
  442. package/build/src/elements/amf/ApiSummary.element.d.ts +0 -90
  443. package/build/src/elements/amf/ApiSummary.element.d.ts.map +0 -1
  444. package/build/src/elements/amf/ApiSummary.element.js +0 -385
  445. package/build/src/elements/amf/ApiSummary.element.js.map +0 -1
  446. package/build/src/elements/amf/ApiSummary.styles.d.ts +0 -3
  447. package/build/src/elements/amf/ApiSummary.styles.d.ts.map +0 -1
  448. package/build/src/elements/amf/ApiSummary.styles.js +0 -192
  449. package/build/src/elements/amf/ApiSummary.styles.js.map +0 -1
  450. package/build/src/elements/amf/SchemaCommonTemplates.d.ts +0 -56
  451. package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +0 -1
  452. package/build/src/elements/amf/SchemaCommonTemplates.js +0 -499
  453. package/build/src/elements/amf/SchemaCommonTemplates.js.map +0 -1
  454. package/build/src/elements/amf/authorization/AmfApiKey.d.ts +0 -60
  455. package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +0 -1
  456. package/build/src/elements/amf/authorization/AmfApiKey.js +0 -237
  457. package/build/src/elements/amf/authorization/AmfApiKey.js.map +0 -1
  458. package/build/src/elements/amf/authorization/AmfBasic.d.ts +0 -16
  459. package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +0 -1
  460. package/build/src/elements/amf/authorization/AmfBasic.js +0 -86
  461. package/build/src/elements/amf/authorization/AmfBasic.js.map +0 -1
  462. package/build/src/elements/amf/authorization/AmfBearer.d.ts +0 -15
  463. package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +0 -1
  464. package/build/src/elements/amf/authorization/AmfBearer.js +0 -73
  465. package/build/src/elements/amf/authorization/AmfBearer.js.map +0 -1
  466. package/build/src/elements/amf/authorization/AmfOauth2.d.ts +0 -236
  467. package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +0 -1
  468. package/build/src/elements/amf/authorization/AmfOauth2.js +0 -795
  469. package/build/src/elements/amf/authorization/AmfOauth2.js.map +0 -1
  470. package/build/src/elements/amf/authorization/AmfOidc.d.ts +0 -14
  471. package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +0 -1
  472. package/build/src/elements/amf/authorization/AmfOidc.js +0 -72
  473. package/build/src/elements/amf/authorization/AmfOidc.js.map +0 -1
  474. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +0 -58
  475. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +0 -1
  476. package/build/src/elements/amf/authorization/AmfPassThrough.js +0 -259
  477. package/build/src/elements/amf/authorization/AmfPassThrough.js.map +0 -1
  478. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +0 -53
  479. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +0 -1
  480. package/build/src/elements/amf/authorization/AmfRamlCustom.js +0 -291
  481. package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +0 -1
  482. package/build/src/elements/amf/authorization/Authorization.styles.d.ts +0 -3
  483. package/build/src/elements/amf/authorization/Authorization.styles.d.ts.map +0 -1
  484. package/build/src/elements/amf/authorization/Authorization.styles.js +0 -40
  485. package/build/src/elements/amf/authorization/Authorization.styles.js.map +0 -1
  486. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts +0 -3
  487. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts.map +0 -1
  488. package/build/src/elements/amf/styles/AuthorizationMethod.js +0 -46
  489. package/build/src/elements/amf/styles/AuthorizationMethod.js.map +0 -1
  490. package/build/src/elements/amf/styles/Common.d.ts +0 -3
  491. package/build/src/elements/amf/styles/Common.d.ts.map +0 -1
  492. package/build/src/elements/amf/styles/Common.js +0 -150
  493. package/build/src/elements/amf/styles/Common.js.map +0 -1
  494. package/build/src/elements/amf/styles/SchemaCommon.d.ts +0 -3
  495. package/build/src/elements/amf/styles/SchemaCommon.d.ts.map +0 -1
  496. package/build/src/elements/amf/styles/SchemaCommon.js +0 -376
  497. package/build/src/elements/amf/styles/SchemaCommon.js.map +0 -1
  498. package/build/src/events/amf/ApiEvents.d.ts +0 -25
  499. package/build/src/events/amf/ApiEvents.d.ts.map +0 -1
  500. package/build/src/events/amf/ApiEvents.js +0 -42
  501. package/build/src/events/amf/ApiEvents.js.map +0 -1
  502. package/build/src/events/amf/BaseEvents.d.ts +0 -69
  503. package/build/src/events/amf/BaseEvents.d.ts.map +0 -1
  504. package/build/src/events/amf/BaseEvents.js +0 -64
  505. package/build/src/events/amf/BaseEvents.js.map +0 -1
  506. package/build/src/events/amf/DocumentationEvents.d.ts +0 -17
  507. package/build/src/events/amf/DocumentationEvents.d.ts.map +0 -1
  508. package/build/src/events/amf/DocumentationEvents.js +0 -27
  509. package/build/src/events/amf/DocumentationEvents.js.map +0 -1
  510. package/build/src/events/amf/EndpointEvents.d.ts +0 -21
  511. package/build/src/events/amf/EndpointEvents.d.ts.map +0 -1
  512. package/build/src/events/amf/EndpointEvents.js +0 -35
  513. package/build/src/events/amf/EndpointEvents.js.map +0 -1
  514. package/build/src/events/amf/EventTypes.d.ts +0 -65
  515. package/build/src/events/amf/EventTypes.d.ts.map +0 -1
  516. package/build/src/events/amf/EventTypes.js +0 -65
  517. package/build/src/events/amf/EventTypes.js.map +0 -1
  518. package/build/src/events/amf/Events.d.ts +0 -63
  519. package/build/src/events/amf/Events.d.ts.map +0 -1
  520. package/build/src/events/amf/Events.js +0 -38
  521. package/build/src/events/amf/Events.js.map +0 -1
  522. package/build/src/events/amf/NavigationEvents.d.ts +0 -50
  523. package/build/src/events/amf/NavigationEvents.d.ts.map +0 -1
  524. package/build/src/events/amf/NavigationEvents.js +0 -59
  525. package/build/src/events/amf/NavigationEvents.js.map +0 -1
  526. package/build/src/events/amf/OperationEvents.d.ts +0 -17
  527. package/build/src/events/amf/OperationEvents.d.ts.map +0 -1
  528. package/build/src/events/amf/OperationEvents.js +0 -27
  529. package/build/src/events/amf/OperationEvents.js.map +0 -1
  530. package/build/src/events/amf/PayloadEvents.d.ts +0 -10
  531. package/build/src/events/amf/PayloadEvents.d.ts.map +0 -1
  532. package/build/src/events/amf/PayloadEvents.js +0 -16
  533. package/build/src/events/amf/PayloadEvents.js.map +0 -1
  534. package/build/src/events/amf/ReportingEvents.d.ts +0 -16
  535. package/build/src/events/amf/ReportingEvents.d.ts.map +0 -1
  536. package/build/src/events/amf/ReportingEvents.js +0 -22
  537. package/build/src/events/amf/ReportingEvents.js.map +0 -1
  538. package/build/src/events/amf/RequestEvents.d.ts +0 -10
  539. package/build/src/events/amf/RequestEvents.d.ts.map +0 -1
  540. package/build/src/events/amf/RequestEvents.js +0 -15
  541. package/build/src/events/amf/RequestEvents.js.map +0 -1
  542. package/build/src/events/amf/ResponseEvents.d.ts +0 -10
  543. package/build/src/events/amf/ResponseEvents.d.ts.map +0 -1
  544. package/build/src/events/amf/ResponseEvents.js +0 -16
  545. package/build/src/events/amf/ResponseEvents.js.map +0 -1
  546. package/build/src/events/amf/SecurityEvents.d.ts +0 -31
  547. package/build/src/events/amf/SecurityEvents.d.ts.map +0 -1
  548. package/build/src/events/amf/SecurityEvents.js +0 -53
  549. package/build/src/events/amf/SecurityEvents.js.map +0 -1
  550. package/build/src/events/amf/ServerEvents.d.ts +0 -63
  551. package/build/src/events/amf/ServerEvents.d.ts.map +0 -1
  552. package/build/src/events/amf/ServerEvents.js +0 -70
  553. package/build/src/events/amf/ServerEvents.js.map +0 -1
  554. package/build/src/events/amf/StoreEvents.d.ts +0 -8
  555. package/build/src/events/amf/StoreEvents.d.ts.map +0 -1
  556. package/build/src/events/amf/StoreEvents.js +0 -16
  557. package/build/src/events/amf/StoreEvents.js.map +0 -1
  558. package/build/src/events/amf/TelemetryEvents.d.ts +0 -79
  559. package/build/src/events/amf/TelemetryEvents.d.ts.map +0 -1
  560. package/build/src/events/amf/TelemetryEvents.js +0 -65
  561. package/build/src/events/amf/TelemetryEvents.js.map +0 -1
  562. package/build/src/events/amf/TypeEvents.d.ts +0 -16
  563. package/build/src/events/amf/TypeEvents.d.ts.map +0 -1
  564. package/build/src/events/amf/TypeEvents.js +0 -25
  565. package/build/src/events/amf/TypeEvents.js.map +0 -1
  566. package/demo/amf/api-annotation.html +0 -21
  567. package/demo/amf/api-annotation.ts +0 -117
  568. package/demo/amf/api-channel.html +0 -25
  569. package/demo/amf/api-channel.ts +0 -76
  570. package/demo/amf/api-console.html +0 -23
  571. package/demo/amf/api-console.ts +0 -505
  572. package/demo/amf/api-documentation-document.html +0 -25
  573. package/demo/amf/api-documentation-document.ts +0 -79
  574. package/demo/amf/api-documentation.html +0 -25
  575. package/demo/amf/api-documentation.ts +0 -242
  576. package/demo/amf/api-navigation.html +0 -29
  577. package/demo/amf/api-navigation.ts +0 -278
  578. package/demo/amf/api-operation.html +0 -37
  579. package/demo/amf/api-operation.ts +0 -274
  580. package/demo/amf/api-payload.html +0 -25
  581. package/demo/amf/api-payload.ts +0 -176
  582. package/demo/amf/api-request.html +0 -24
  583. package/demo/amf/api-request.ts +0 -259
  584. package/demo/amf/api-resource.html +0 -31
  585. package/demo/amf/api-resource.ts +0 -264
  586. package/demo/amf/api-schema-documentation.html +0 -25
  587. package/demo/amf/api-schema-documentation.ts +0 -207
  588. package/demo/amf/api-security-documentation.html +0 -25
  589. package/demo/amf/api-security-documentation.ts +0 -94
  590. package/demo/amf/api-server-picker.html +0 -24
  591. package/demo/amf/api-server-picker.ts +0 -233
  592. package/demo/amf/api-summary.html +0 -25
  593. package/demo/amf/api-summary.ts +0 -84
  594. package/demo/amf/bare-components.css +0 -11
  595. package/demo/amf/bare-components.html +0 -38
  596. package/demo/amf/bare-components.ts +0 -18
  597. package/demo/amf/demo.css +0 -136
  598. package/demo/amf/index.html +0 -65
  599. package/demo/amf/lib/AmfDemoPage.ts +0 -285
  600. package/demo/amf/oauth-authorize.html +0 -74
  601. package/demo/amf/oauth-authorize.ts +0 -40
  602. package/demo/amf/request-editor.html +0 -24
  603. package/demo/amf/request-editor.ts +0 -267
  604. package/demo/amf/styles/api-console.css +0 -60
  605. package/demo/amf/styles/api-editor.css +0 -139
  606. package/demo/amf/styles/console-theme.css +0 -0
  607. package/demo/amf/styles/demo-grid.css +0 -26
  608. package/demo/apis/21143/21143.json +0 -638
  609. package/demo/apis/APIC-15/APIC-15.raml +0 -36
  610. package/demo/apis/APIC-15/data-types/organization-data-type.raml +0 -19
  611. package/demo/apis/APIC-15/examples/organization/organization-array-response.raml +0 -15
  612. package/demo/apis/APIC-15/examples/organization/organization-individual-response.raml +0 -8
  613. package/demo/apis/APIC-168/APIC-168.raml +0 -38
  614. package/demo/apis/APIC-282/APIC-282.raml +0 -57
  615. package/demo/apis/APIC-289/APIC-289.yaml +0 -21
  616. package/demo/apis/APIC-298/APIC-298.json +0 -588
  617. package/demo/apis/APIC-332/APIC-332.raml +0 -22
  618. package/demo/apis/APIC-349-cache-resolution/APIC-349-cache-resolution.raml +0 -141
  619. package/demo/apis/APIC-349-cache-resolution/docs/DocumentationItem-1.raml +0 -3
  620. package/demo/apis/APIC-349-cache-resolution/docs/api.md +0 -1
  621. package/demo/apis/APIC-349-cache-resolution/docs/documentationTitle.md +0 -1
  622. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example.json +0 -19
  623. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example2.json +0 -19
  624. package/demo/apis/APIC-349-cache-resolution/libraries/schema.json +0 -21
  625. package/demo/apis/APIC-349-cache-resolution/libraries/types.raml +0 -88
  626. package/demo/apis/APIC-390/APIC-390.raml +0 -13
  627. package/demo/apis/APIC-390/Types/ISO-standards.raml +0 -30
  628. package/demo/apis/APIC-429/APIC-429.yaml +0 -63
  629. package/demo/apis/APIC-435/APIC-435.yaml +0 -27
  630. package/demo/apis/APIC-449/APIC-449.yaml +0 -8
  631. package/demo/apis/APIC-463/APIC-463.raml +0 -13
  632. package/demo/apis/APIC-480/APIC-480.raml +0 -61
  633. package/demo/apis/APIC-480/examples/account-response.json +0 -5
  634. package/demo/apis/APIC-483/APIC-483.raml +0 -16
  635. package/demo/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  636. package/demo/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  637. package/demo/apis/APIC-550/APIC-550.raml +0 -46
  638. package/demo/apis/APIC-553/APIC-553.raml +0 -59
  639. package/demo/apis/APIC-554/APIC-554.raml +0 -6
  640. package/demo/apis/APIC-554-ii/APIC-554-ii.raml +0 -5
  641. package/demo/apis/APIC-560/APIC-560.yaml +0 -209
  642. package/demo/apis/APIC-582/APIC-582.yaml +0 -23
  643. package/demo/apis/APIC-613/APIC-613.raml +0 -16
  644. package/demo/apis/APIC-631/APIC-631.raml +0 -20
  645. package/demo/apis/APIC-641/APIC-641.yaml +0 -29
  646. package/demo/apis/APIC-649/APIC-649.yaml +0 -118
  647. package/demo/apis/APIC-650/APIC-650.yaml +0 -24
  648. package/demo/apis/APIC-650/common-parameters.yaml +0 -23
  649. package/demo/apis/APIC-667/APIC-667.raml +0 -30
  650. package/demo/apis/APIC-671/APIC-671.yaml +0 -387
  651. package/demo/apis/APIC-689/APIC-689.raml +0 -20
  652. package/demo/apis/APIC-711/APIC-711.raml +0 -41
  653. package/demo/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  654. package/demo/apis/SE-10469/SE-10469.raml +0 -11
  655. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-address.raml +0 -126
  656. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-base.raml +0 -31
  657. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-basic-questions-set.raml +0 -42
  658. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-description.raml +0 -36
  659. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-origin.raml +0 -24
  660. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contact-information.raml +0 -69
  661. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-data.raml +0 -19
  662. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-metadata.raml +0 -243
  663. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content.raml +0 -47
  664. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contextual.raml +0 -18
  665. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-currency.raml +0 -22
  666. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-document-statistic.raml +0 -44
  667. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-email-address.raml +0 -19
  668. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-error.raml +0 -33
  669. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-habit.raml +0 -61
  670. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-language.raml +0 -32
  671. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-log-entry.raml +0 -92
  672. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-master-key.raml +0 -49
  673. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-organization.raml +0 -38
  674. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-party.raml +0 -37
  675. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-node.raml +0 -43
  676. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-report.raml +0 -22
  677. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person-name.raml +0 -45
  678. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person.raml +0 -103
  679. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-phone.raml +0 -32
  680. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-policyholder.raml +0 -1
  681. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-preferable.raml +0 -15
  682. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-property.raml +0 -61
  683. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-role.raml +0 -51
  684. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-social-media-account.raml +0 -28
  685. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-source.raml +0 -65
  686. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-version.raml +0 -36
  687. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/docs/Legal.raml +0 -3
  688. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-error.raml +0 -7
  689. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-get-health-check.raml +0 -16
  690. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-performance-report.raml +0 -23
  691. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/exchange.json +0 -1
  692. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-address.raml +0 -7
  693. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-base.raml +0 -3
  694. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-basic-questions-set.raml +0 -7
  695. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-code-description.raml +0 -7
  696. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-contact-info.raml +0 -3
  697. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-content.raml +0 -5
  698. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-context-and-preference.raml +0 -4
  699. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-email.raml +0 -7
  700. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-entity.raml +0 -36
  701. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-error.raml +0 -3
  702. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-habit.raml +0 -7
  703. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-language.raml +0 -7
  704. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-master-key.raml +0 -3
  705. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-organization.raml +0 -4
  706. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-party.raml +0 -8
  707. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-performance.raml +0 -8
  708. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person-name.raml +0 -3
  709. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person.raml +0 -7
  710. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-phone.raml +0 -7
  711. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-property.raml +0 -7
  712. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-role.raml +0 -6
  713. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-social-media.raml +0 -7
  714. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-source.raml +0 -7
  715. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-traits.raml +0 -11
  716. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-version.raml +0 -7
  717. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collection-actions.raml +0 -51
  718. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collections.raml +0 -157
  719. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-item-actions.raml +0 -48
  720. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-items.raml +0 -154
  721. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-get-health-check.raml +0 -39
  722. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/security-schemes/securityScheme-basic.raml +0 -4
  723. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-asynchronously-callable.raml +0 -12
  724. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-filterable.raml +0 -19
  725. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-identifyable.raml +0 -50
  726. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-pageable.raml +0 -40
  727. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-performance-monitorable.raml +0 -31
  728. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-routable.raml +0 -22
  729. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-selectable.raml +0 -140
  730. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-sortable.raml +0 -20
  731. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-traceable.raml +0 -24
  732. package/demo/apis/SE-11155/SE-11155.raml +0 -43
  733. package/demo/apis/SE-11155/data-types/dataType-archive-users-request.raml +0 -19
  734. package/demo/apis/SE-11155/data-types/dataType-archive-users-response.raml +0 -20
  735. package/demo/apis/SE-11155/data-types/dataType-restore-user-request.raml +0 -1
  736. package/demo/apis/SE-11155/data-types/dataType-restore-user-response.raml +0 -1
  737. package/demo/apis/SE-11155/data-types/dataType-user.raml +0 -53
  738. package/demo/apis/SE-11155/examples/user-action-restore-user-200.raml +0 -3
  739. package/demo/apis/SE-11155/examples/user-action-restore-user-cds-202.raml +0 -7
  740. package/demo/apis/SE-11155/examples/user-action-restore-user.raml +0 -3
  741. package/demo/apis/SE-11155/examples/user-delete-cds-200.raml +0 -4
  742. package/demo/apis/SE-11155/examples/user-delete-cds-202.raml +0 -11
  743. package/demo/apis/SE-11155/examples/user-get-200.raml +0 -17
  744. package/demo/apis/SE-11155/examples/user-patch-200.raml +0 -14
  745. package/demo/apis/SE-11155/examples/user-patch-cds-200.raml +0 -4
  746. package/demo/apis/SE-11155/examples/user-patch-cds-202.raml +0 -7
  747. package/demo/apis/SE-11155/examples/user-patch.raml +0 -14
  748. package/demo/apis/SE-11155/examples/user-put-200.raml +0 -17
  749. package/demo/apis/SE-11155/examples/user-put-cds-200.raml +0 -4
  750. package/demo/apis/SE-11155/examples/user-put-cds-202.raml +0 -11
  751. package/demo/apis/SE-11155/examples/user-put.raml +0 -17
  752. package/demo/apis/SE-11155/examples/users-action-archive-users-200.raml +0 -5
  753. package/demo/apis/SE-11155/examples/users-action-archive-users-cds-200.raml +0 -5
  754. package/demo/apis/SE-11155/examples/users-action-archive-users.raml +0 -5
  755. package/demo/apis/SE-11155/examples/users-delete-cds-200.raml +0 -4
  756. package/demo/apis/SE-11155/examples/users-delete-cds-202.raml +0 -11
  757. package/demo/apis/SE-11155/examples/users-get-200.raml +0 -47
  758. package/demo/apis/SE-11155/examples/users-patch-200.raml +0 -32
  759. package/demo/apis/SE-11155/examples/users-patch-cds-200.raml +0 -4
  760. package/demo/apis/SE-11155/examples/users-patch-cds-202.raml +0 -11
  761. package/demo/apis/SE-11155/examples/users-patch.raml +0 -14
  762. package/demo/apis/SE-11155/examples/users-post-cds-200.raml +0 -4
  763. package/demo/apis/SE-11155/examples/users-post-cds-202.raml +0 -11
  764. package/demo/apis/SE-11155/examples/users-post-multi-200.raml +0 -47
  765. package/demo/apis/SE-11155/examples/users-post-multi.raml +0 -44
  766. package/demo/apis/SE-11155/examples/users-post-single-200.raml +0 -17
  767. package/demo/apis/SE-11155/examples/users-post-single.raml +0 -16
  768. package/demo/apis/SE-11155/libraries/library.raml +0 -16
  769. package/demo/apis/SE-11415/SE-11415.raml +0 -94
  770. package/demo/apis/SE-11415/canda-commons/canda-commons.raml +0 -50
  771. package/demo/apis/SE-11415/canda-commons/ref/log-levels-example.json +0 -3
  772. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-example.json +0 -3
  773. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-schema.json +0 -10
  774. package/demo/apis/SE-11415/canda-commons/ref/log-levels-schema.json +0 -30
  775. package/demo/apis/SE-11415/ref/additions-example.json +0 -12
  776. package/demo/apis/SE-11415/ref/additions-schema.json +0 -43
  777. package/demo/apis/SE-11415/ref/companies-example.json +0 -11
  778. package/demo/apis/SE-11415/ref/companies-schema.json +0 -36
  779. package/demo/apis/SE-11415/ref/greeting-example.json +0 -4
  780. package/demo/apis/SE-11415/ref/greeting-schema.json +0 -22
  781. package/demo/apis/SE-11415/ref/greetings-example.json +0 -15
  782. package/demo/apis/SE-11415/ref/greetings-schema.json +0 -34
  783. package/demo/apis/SE-11415/ref/jms-message-response-exmaple.json +0 -7
  784. package/demo/apis/SE-11415/ref/log-levels-example.json +0 -3
  785. package/demo/apis/SE-11415/ref/log-levels-response-example.json +0 -3
  786. package/demo/apis/SE-11415/ref/log-levels-response-schema.json +0 -10
  787. package/demo/apis/SE-11415/ref/log-levels-schema.json +0 -30
  788. package/demo/apis/SE-11508/SE-11508.raml +0 -257
  789. package/demo/apis/SE-11508/examples/change-credentials-post-201.raml +0 -9
  790. package/demo/apis/SE-11508/examples/convert-aggregator-quote-post-201.raml +0 -19
  791. package/demo/apis/SE-11508/examples/create-quote-post-200.raml +0 -12
  792. package/demo/apis/SE-11508/examples/create-quote-post-201.raml +0 -8
  793. package/demo/apis/SE-11508/examples/create-quote-post-request.raml +0 -19
  794. package/demo/apis/SE-11508/examples/customer-accounts-get-200.raml +0 -41
  795. package/demo/apis/SE-11508/examples/customer-accounts-patch-request.raml +0 -31
  796. package/demo/apis/SE-11508/examples/retrieve-quotes-post-200.raml +0 -17
  797. package/demo/apis/SE-11508/examples/send-correspondence-post-request.raml +0 -34
  798. package/demo/apis/SE-11508/examples/validate-credentials-post-200.raml +0 -30
  799. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-400.raml +0 -10
  800. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-request.raml +0 -7
  801. package/demo/apis/SE-11508/examples/validate-customer-account-post-200.raml +0 -76
  802. package/demo/apis/SE-11508/examples/validate-customer-account-post-400.raml +0 -10
  803. package/demo/apis/SE-11508/examples/validate-customer-account-post-request.raml +0 -8
  804. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/securityscheme-system/0.0.4/auth.raml +0 -10
  805. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/api-headers-trait.raml +0 -20
  806. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/bad-responses.raml +0 -30
  807. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/create.raml +0 -30
  808. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/customer-account-filter-trait.raml +0 -8
  809. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/delete.raml +0 -48
  810. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/payment.raml +0 -10
  811. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/policy-filter-trait.raml +0 -8
  812. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/read.raml +0 -48
  813. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/common-responses.raml +0 -8
  814. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/error.raml +0 -12
  815. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/underwriting.raml +0 -11
  816. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/update.raml +0 -48
  817. package/demo/apis/SE-11508/model-system/api-headers.raml +0 -8
  818. package/demo/apis/SE-11508/model-system/api-strict-headers.raml +0 -25
  819. package/demo/apis/SE-11508/model-system/change-credentials-type.raml +0 -11
  820. package/demo/apis/SE-11508/model-system/convert-aggregator-quote-types.raml +0 -25
  821. package/demo/apis/SE-11508/model-system/create-quote-types.raml +0 -35
  822. package/demo/apis/SE-11508/model-system/customer-accounts-types.raml +0 -57
  823. package/demo/apis/SE-11508/model-system/ping-error-messages-types.raml +0 -17
  824. package/demo/apis/SE-11508/model-system/ping-validate-credentials.raml +0 -16
  825. package/demo/apis/SE-11508/model-system/retrieve-quotes-types.raml +0 -40
  826. package/demo/apis/SE-12042/SE-12042.raml +0 -52
  827. package/demo/apis/SE-12042/dataTypes/CheckAPIStatus.raml +0 -25
  828. package/demo/apis/SE-12042/examples/CheckAPIStatusExample1.raml +0 -7
  829. package/demo/apis/SE-12042/examples/CheckAPIStatusExample2.raml +0 -7
  830. package/demo/apis/SE-12042/securitySchemes/x-clientIdSecret.raml +0 -18
  831. package/demo/apis/SE-12224/SE-12224.raml +0 -89
  832. package/demo/apis/SE-12224/dataTypes/product.raml +0 -15
  833. package/demo/apis/SE-12224/dataTypes/products.raml +0 -5
  834. package/demo/apis/SE-12224/examples/product.json +0 -8
  835. package/demo/apis/SE-12224/examples/products.json +0 -8
  836. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/error.raml +0 -14
  837. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/error.json +0 -13
  838. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/innerError.json +0 -7
  839. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/exchange.json +0 -1
  840. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/innerError.raml +0 -20
  841. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/orderable.raml +0 -13
  842. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/pageable.raml +0 -15
  843. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/searchable.raml +0 -8
  844. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-aad-oauth2.raml +0 -15
  845. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-basic-authentication.raml +0 -10
  846. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-client-id-secret.raml +0 -15
  847. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-mule-oauth2.raml +0 -15
  848. package/demo/apis/SE-12291/SE-12291.json +0 -357
  849. package/demo/apis/SE-12752/SE-12752.raml +0 -36
  850. package/demo/apis/SE-12957/SE-12957.json +0 -741
  851. package/demo/apis/SE-12959/SE-12959.json +0 -741
  852. package/demo/apis/SE-17897/SE-17897.yaml +0 -21
  853. package/demo/apis/SE-19215/SE-19215.raml +0 -7
  854. package/demo/apis/SE-19500/SE-19500.raml +0 -95
  855. package/demo/apis/SE-19500/docs/home.md +0 -1
  856. package/demo/apis/SE-19500/modules/canada-commons/canda-commons.raml +0 -64
  857. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-example.json +0 -3
  858. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-example.json +0 -3
  859. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-schema.json +0 -10
  860. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-schema.json +0 -30
  861. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-example.json +0 -7
  862. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-schema.json +0 -49
  863. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/api.raml +0 -6
  864. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greeting-example.json +0 -4
  865. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greetings-example.json +0 -15
  866. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greeting-schema.json +0 -22
  867. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greetings-schema.json +0 -34
  868. package/demo/apis/SE-19500/ref/companies-example.json +0 -14
  869. package/demo/apis/SE-19500/ref/companies-schema.json +0 -70
  870. package/demo/apis/Streetlights/streetlights.yaml +0 -36
  871. package/demo/apis/aap-1698/aap-1698.raml +0 -26
  872. package/demo/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  873. package/demo/apis/amf-helper-api/examples/comment-example.json +0 -42
  874. package/demo/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  875. package/demo/apis/amf-helper-api/examples/commentList-example.json +0 -48
  876. package/demo/apis/amf-helper-api/examples/person.json +0 -14
  877. package/demo/apis/amf-helper-api/examples/person.raml +0 -13
  878. package/demo/apis/amf-helper-api/examples/person.xml +0 -14
  879. package/demo/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  880. package/demo/apis/amf-helper-api/library.raml +0 -7
  881. package/demo/apis/amf-helper-api/schemas/person.json +0 -104
  882. package/demo/apis/amf-helper-api/schemas/person.xsd +0 -26
  883. package/demo/apis/amf-helper-api/traits/file.raml +0 -33
  884. package/demo/apis/amf-helper-api/traits/pagination.raml +0 -80
  885. package/demo/apis/amf-helper-api/traits/results.raml +0 -19
  886. package/demo/apis/amf-helper-api/traits/visibility.raml +0 -14
  887. package/demo/apis/amf-helper-api/types/app-person.raml +0 -101
  888. package/demo/apis/amf-helper-api/types/dimensions.raml +0 -24
  889. package/demo/apis/amf-helper-api/types/external-type.raml +0 -7
  890. package/demo/apis/amf-helper-api/types/image.raml +0 -23
  891. package/demo/apis/amf-helper-api/types/product.raml +0 -52
  892. package/demo/apis/amf-helper-api/types/resource.raml +0 -11
  893. package/demo/apis/amf-helper-api/types/standard-request.raml +0 -50
  894. package/demo/apis/amf-helper-api/types/user.raml +0 -37
  895. package/demo/apis/annotated-api/annotated-api.raml +0 -82
  896. package/demo/apis/annotated-parameters/annotated-parameters.raml +0 -18
  897. package/demo/apis/anyOf/anyOf.yaml +0 -37
  898. package/demo/apis/api-keys/api-keys.yaml +0 -85
  899. package/demo/apis/apic-169/apic-169.raml +0 -28
  900. package/demo/apis/apic-83/apic-83.raml +0 -32
  901. package/demo/apis/appian-api/appian-api.raml +0 -184
  902. package/demo/apis/array-body/array-body.raml +0 -23
  903. package/demo/apis/async-api/async-api.yaml +0 -96
  904. package/demo/apis/demo-api/demo-api.raml +0 -1425
  905. package/demo/apis/demo-api/examples/e400.xml +0 -4
  906. package/demo/apis/demo-api/examples/e401.xml +0 -4
  907. package/demo/apis/demo-api/examples/e404.xml +0 -4
  908. package/demo/apis/demo-api/examples/image.xml +0 -5
  909. package/demo/apis/demo-api/examples/messages-example.json +0 -22
  910. package/demo/apis/demo-api/examples/messages-sent-example.json +0 -15
  911. package/demo/apis/demo-api/examples/person.json +0 -14
  912. package/demo/apis/demo-api/examples/person.raml +0 -14
  913. package/demo/apis/demo-api/examples/person.url.encoded +0 -1
  914. package/demo/apis/demo-api/examples/person.xml +0 -14
  915. package/demo/apis/demo-api/examples/product.xml +0 -9
  916. package/demo/apis/demo-api/library/demo-types.raml +0 -44
  917. package/demo/apis/demo-api/library.raml +0 -36
  918. package/demo/apis/demo-api/resourceTypes/app-person.raml +0 -111
  919. package/demo/apis/demo-api/resourceTypes/example-types.raml +0 -45
  920. package/demo/apis/demo-api/resourceTypes/image.raml +0 -23
  921. package/demo/apis/demo-api/resourceTypes/message-sent-type.raml +0 -23
  922. package/demo/apis/demo-api/resourceTypes/message-type.raml +0 -33
  923. package/demo/apis/demo-api/resourceTypes/product.raml +0 -52
  924. package/demo/apis/demo-api/resourceTypes/resource.raml +0 -11
  925. package/demo/apis/demo-api/schemas/error-response.xsd +0 -11
  926. package/demo/apis/demo-api/schemas/image.xsd +0 -11
  927. package/demo/apis/demo-api/schemas/person.json +0 -104
  928. package/demo/apis/demo-api/schemas/person.xsd +0 -26
  929. package/demo/apis/demo-api/schemas/product.xsd +0 -17
  930. package/demo/apis/demo-api/securitySchemes/basic.raml +0 -5
  931. package/demo/apis/demo-api/securitySchemes/oauth-2-custom-settings.raml +0 -143
  932. package/demo/apis/demo-api/securitySchemes/oauth2-header-delivery.raml +0 -13
  933. package/demo/apis/demo-api/securitySchemes/oauth2-no-delivery.raml +0 -8
  934. package/demo/apis/demo-api/securitySchemes/oauth2-no-grants.raml +0 -12
  935. package/demo/apis/demo-api/securitySchemes/oauth2-pkce.raml +0 -13
  936. package/demo/apis/demo-api/securitySchemes/oauth2-query-delivery.raml +0 -13
  937. package/demo/apis/demo-api/securitySchemes/oauth_1_0.raml +0 -8
  938. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-settings.raml +0 -3
  939. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-signature.raml +0 -7
  940. package/demo/apis/demo-api/securitySchemes/oauth_1_0_signature.raml +0 -8
  941. package/demo/apis/demo-api/securitySchemes/oauth_2_0.raml +0 -29
  942. package/demo/apis/demo-api/securitySchemes/passthrough-querystring.raml +0 -16
  943. package/demo/apis/demo-api/securitySchemes/passthrough.raml +0 -24
  944. package/demo/apis/demo-api/securitySchemes/x-custom.raml +0 -33
  945. package/demo/apis/demo-api/securitySchemes/x-other.raml +0 -29
  946. package/demo/apis/demo-api/securitySchemes/x-query-string.raml +0 -16
  947. package/demo/apis/demo-api/traits/adminable.raml +0 -23
  948. package/demo/apis/demo-api/traits/pagination.raml +0 -83
  949. package/demo/apis/demo-api/traits/rate-limited.raml +0 -9
  950. package/demo/apis/demo-api/types/DemoPerson.raml +0 -67
  951. package/demo/apis/demo-document/demo-document.raml +0 -21
  952. package/demo/apis/documentation-fragment/documentation-fragment.raml +0 -76
  953. package/demo/apis/documented-api/documented-api.raml +0 -29
  954. package/demo/apis/enum-test/enum-test.raml +0 -64
  955. package/demo/apis/example-fragment/example-fragment.raml +0 -8
  956. package/demo/apis/examples-api/Address-1.0.raml +0 -75
  957. package/demo/apis/examples-api/CompanyIdentification-1.0.raml +0 -48
  958. package/demo/apis/examples-api/CompanyProfile-1.0.raml +0 -14
  959. package/demo/apis/examples-api/CompanyProfileBase-1.0.raml +0 -48
  960. package/demo/apis/examples-api/contact-email-example.raml +0 -6
  961. package/demo/apis/examples-api/contact-example.raml +0 -7
  962. package/demo/apis/examples-api/contact-fax-example.raml +0 -7
  963. package/demo/apis/examples-api/contact-website-example.raml +0 -4
  964. package/demo/apis/examples-api/example-1.raml +0 -7
  965. package/demo/apis/examples-api/example-2.raml +0 -12
  966. package/demo/apis/examples-api/example-3.raml +0 -5
  967. package/demo/apis/examples-api/example-4.raml +0 -3
  968. package/demo/apis/examples-api/example-5.raml +0 -5
  969. package/demo/apis/examples-api/example-6.raml +0 -3
  970. package/demo/apis/examples-api/example-7.raml +0 -7
  971. package/demo/apis/examples-api/example.json +0 -14
  972. package/demo/apis/examples-api/example.xml +0 -15
  973. package/demo/apis/examples-api/example.xsd +0 -26
  974. package/demo/apis/examples-api/examples/Address_BE_Example-1.0.raml +0 -10
  975. package/demo/apis/examples-api/examples/Address_GB_Example-1.0.raml +0 -8
  976. package/demo/apis/examples-api/examples/Address_NL_Example-1.0.raml +0 -8
  977. package/demo/apis/examples-api/examples/Addresses_BE_Example-1.0.raml +0 -11
  978. package/demo/apis/examples-api/examples/Addresses_GB_Example-1.0.raml +0 -9
  979. package/demo/apis/examples-api/examples/Addresses_NL_Example-1.0.raml +0 -17
  980. package/demo/apis/examples-api/examples/CompanyIdentification_BE_Example-1.0.raml +0 -7
  981. package/demo/apis/examples-api/examples/CompanyIdentification_GB_Example-1.0.raml +0 -7
  982. package/demo/apis/examples-api/examples/CompanyIdentification_NL_BranchId_Example-1.0.raml +0 -7
  983. package/demo/apis/examples-api/examples/CompanyIdentification_NL_Example-1.0.raml +0 -7
  984. package/demo/apis/examples-api/examples/CompanyIdentification_NL_GY-Holding_Example-1.0.raml +0 -6
  985. package/demo/apis/examples-api/examples/CompanyLegalForm_BE_Example-1.0.raml +0 -3
  986. package/demo/apis/examples-api/examples/CompanyLegalForm_GB_Example-1.0.raml +0 -3
  987. package/demo/apis/examples-api/examples/CompanyLegalForm_NL_Example-1.0.raml +0 -3
  988. package/demo/apis/examples-api/examples/CompanyProfile_BE_Example-1.0.raml +0 -14
  989. package/demo/apis/examples-api/examples/CompanyProfile_GB_Example-1.0.raml +0 -11
  990. package/demo/apis/examples-api/examples/CompanyProfile_NL_Example-1.0.raml +0 -12
  991. package/demo/apis/examples-api/examples/Company_BE_Example-1.0.raml +0 -3
  992. package/demo/apis/examples-api/examples/Company_GB_Example-1.0.raml +0 -3
  993. package/demo/apis/examples-api/examples/Company_NL_Example-1.0.raml +0 -3
  994. package/demo/apis/examples-api/examples-api.raml +0 -313
  995. package/demo/apis/examples-api/linked-named-example.raml +0 -22
  996. package/demo/apis/examples-api/named-example-with-link.raml +0 -3
  997. package/demo/apis/examples-api/named-example.raml +0 -7
  998. package/demo/apis/examples-api/type-with-linked-examples.raml +0 -15
  999. package/demo/apis/examples-api/user-json-example.raml +0 -17
  1000. package/demo/apis/examples-api/user-raml-example.raml +0 -37
  1001. package/demo/apis/examples-api/user.json +0 -8
  1002. package/demo/apis/examples-api/user.raml +0 -18
  1003. package/demo/apis/examples-api/users-json-example.raml +0 -17
  1004. package/demo/apis/examples-api/users-raml-example.raml +0 -32
  1005. package/demo/apis/examples-api/users.json +0 -8
  1006. package/demo/apis/expanded-api/expanded-api.raml +0 -8
  1007. package/demo/apis/ext-docs/ext-docs.yaml +0 -15
  1008. package/demo/apis/flattened-api/flattened-api.raml +0 -8
  1009. package/demo/apis/google-drive-api/docs/api/headline.md +0 -1
  1010. package/demo/apis/google-drive-api/docs/search-for-file.md +0 -176
  1011. package/demo/apis/google-drive-api/docs/upload-files.md +0 -268
  1012. package/demo/apis/google-drive-api/docs/uploadApi/headline.md +0 -1
  1013. package/demo/apis/google-drive-api/docs/work-with-folders.md +0 -307
  1014. package/demo/apis/google-drive-api/examples/about-example.json +0 -470
  1015. package/demo/apis/google-drive-api/examples/app-example.json +0 -100
  1016. package/demo/apis/google-drive-api/examples/app-list-example.json +0 -108
  1017. package/demo/apis/google-drive-api/examples/change-example.json +0 -91
  1018. package/demo/apis/google-drive-api/examples/changeList-example.json +0 -351
  1019. package/demo/apis/google-drive-api/examples/channel-example.json +0 -8
  1020. package/demo/apis/google-drive-api/examples/childList-example.json +0 -15
  1021. package/demo/apis/google-drive-api/examples/childReference-example.json +0 -6
  1022. package/demo/apis/google-drive-api/examples/comment-example.json +0 -42
  1023. package/demo/apis/google-drive-api/examples/comment-reply-update-response.json +0 -18
  1024. package/demo/apis/google-drive-api/examples/commentCreateRequest-example.json +0 -7
  1025. package/demo/apis/google-drive-api/examples/commentList-example.json +0 -48
  1026. package/demo/apis/google-drive-api/examples/commentReply-example.json +0 -17
  1027. package/demo/apis/google-drive-api/examples/commentReplyList-example.json +0 -21
  1028. package/demo/apis/google-drive-api/examples/commentReplyRequest-example.json +0 -4
  1029. package/demo/apis/google-drive-api/examples/file-example.json +0 -92
  1030. package/demo/apis/google-drive-api/examples/fileList-example.json +0 -98
  1031. package/demo/apis/google-drive-api/examples/newFileRequest-example.json +0 -29
  1032. package/demo/apis/google-drive-api/examples/parentList-example.json +0 -14
  1033. package/demo/apis/google-drive-api/examples/parentReference-example.json +0 -7
  1034. package/demo/apis/google-drive-api/examples/permission-example.json +0 -18
  1035. package/demo/apis/google-drive-api/examples/permissionId-example.json +0 -4
  1036. package/demo/apis/google-drive-api/examples/permissionList-example.json +0 -17
  1037. package/demo/apis/google-drive-api/examples/permissionRequest-example.json +0 -9
  1038. package/demo/apis/google-drive-api/examples/permissionUpdateRequest-example.json +0 -9
  1039. package/demo/apis/google-drive-api/examples/property-example.json +0 -8
  1040. package/demo/apis/google-drive-api/examples/propertyList-example.json +0 -13
  1041. package/demo/apis/google-drive-api/examples/revision-example.json +0 -30
  1042. package/demo/apis/google-drive-api/examples/revisionList-example.json +0 -35
  1043. package/demo/apis/google-drive-api/examples/revisionUpdateRequest-example.json +0 -6
  1044. package/demo/apis/google-drive-api/examples/stopWatchingRequest-example.json +0 -4
  1045. package/demo/apis/google-drive-api/examples/watchRequest-example.json +0 -7
  1046. package/demo/apis/google-drive-api/google-drive-api.raml +0 -1118
  1047. package/demo/apis/google-drive-api/libraries/about-lib.raml +0 -121
  1048. package/demo/apis/google-drive-api/libraries/annotations.raml +0 -4
  1049. package/demo/apis/google-drive-api/libraries/app-lib.raml +0 -134
  1050. package/demo/apis/google-drive-api/libraries/child-lib.raml +0 -53
  1051. package/demo/apis/google-drive-api/libraries/comment-lib.raml +0 -145
  1052. package/demo/apis/google-drive-api/libraries/file-lib.raml +0 -517
  1053. package/demo/apis/google-drive-api/libraries/parent-lib.raml +0 -52
  1054. package/demo/apis/google-drive-api/libraries/permission-lib.raml +0 -146
  1055. package/demo/apis/google-drive-api/libraries/properties-lib.raml +0 -44
  1056. package/demo/apis/google-drive-api/libraries/revision-lib.raml +0 -116
  1057. package/demo/apis/google-drive-api/libraries/watch-lib.raml +0 -128
  1058. package/demo/apis/google-drive-api/securitySchemes/oauth_2_0.raml +0 -25
  1059. package/demo/apis/google-drive-api/traits/file.raml +0 -33
  1060. package/demo/apis/google-drive-api/traits/results.raml +0 -19
  1061. package/demo/apis/google-drive-api/traits/visibility.raml +0 -17
  1062. package/demo/apis/google-drive-api/types/additional-role-info.raml +0 -12
  1063. package/demo/apis/google-drive-api/types/channels-stop.raml +0 -11
  1064. package/demo/apis/google-drive-api/types/export-format.raml +0 -11
  1065. package/demo/apis/google-drive-api/types/feature.raml +0 -11
  1066. package/demo/apis/google-drive-api/types/file-capabilities.raml +0 -69
  1067. package/demo/apis/google-drive-api/types/file-labels.raml +0 -35
  1068. package/demo/apis/google-drive-api/types/icon.raml +0 -25
  1069. package/demo/apis/google-drive-api/types/import-format.raml +0 -11
  1070. package/demo/apis/google-drive-api/types/new-drive-file.raml +0 -48
  1071. package/demo/apis/google-drive-api/types/owners.raml +0 -32
  1072. package/demo/apis/google-drive-api/types/picture.raml +0 -9
  1073. package/demo/apis/google-drive-api/types/property.raml +0 -25
  1074. package/demo/apis/google-drive-api/types/resource.raml +0 -28
  1075. package/demo/apis/google-drive-api/types/role-set.raml +0 -11
  1076. package/demo/apis/google-drive-api/types/service-quota.raml +0 -10
  1077. package/demo/apis/google-drive-api/types/standard-request.raml +0 -51
  1078. package/demo/apis/google-drive-api/types/team-drive-list.raml +0 -18
  1079. package/demo/apis/google-drive-api/types/team-drive.raml +0 -59
  1080. package/demo/apis/google-drive-api/types/thumbnail.raml +0 -14
  1081. package/demo/apis/google-drive-api/types/upload-size.raml +0 -12
  1082. package/demo/apis/google-drive-api/types/user.raml +0 -37
  1083. package/demo/apis/httpbin/httpbin.json +0 -1836
  1084. package/demo/apis/lib-fragment/lib-fragment.raml +0 -55
  1085. package/demo/apis/loan-ms/loan-microservice.json +0 -699
  1086. package/demo/apis/missing-endpoints/missing-endpoints.raml +0 -34
  1087. package/demo/apis/mocking-service/mocking-service.raml +0 -149
  1088. package/demo/apis/modular-api/models/ecommerce-canonical.raml +0 -89
  1089. package/demo/apis/modular-api/models/ecommerce.raml +0 -36
  1090. package/demo/apis/modular-api/models/things.raml +0 -32
  1091. package/demo/apis/modular-api/modular-api.raml +0 -12
  1092. package/demo/apis/multi-server/multi-server.yaml +0 -128
  1093. package/demo/apis/multiple-servers/multiple-servers.yaml +0 -112
  1094. package/demo/apis/navigation-api/library.raml +0 -7
  1095. package/demo/apis/navigation-api/navigation-api.raml +0 -357
  1096. package/demo/apis/navigation-api/types/app-person.raml +0 -101
  1097. package/demo/apis/navigation-api/types/image.raml +0 -23
  1098. package/demo/apis/navigation-api/types/product.raml +0 -52
  1099. package/demo/apis/navigation-api/types/resource.raml +0 -11
  1100. package/demo/apis/new-oas3-types/new-oas3-types.yaml +0 -84
  1101. package/demo/apis/nexmo-sms-api/nexmo-sms-api.raml +0 -488
  1102. package/demo/apis/no-endpoints/no-endpoints.raml +0 -14
  1103. package/demo/apis/no-server/no-server.raml +0 -27
  1104. package/demo/apis/no-servers-api/no-servers-api.yaml +0 -31
  1105. package/demo/apis/not-schema/not-schema.yaml +0 -38
  1106. package/demo/apis/oas-3-api/oas-3-api.yaml +0 -356
  1107. package/demo/apis/oas-api/LoanMicrosrvice.yaml +0 -339
  1108. package/demo/apis/oas-api/Petstore-v2.yaml +0 -144
  1109. package/demo/apis/oas-api/Petstore.raml +0 -106
  1110. package/demo/apis/oas-api/UBER.raml +0 -274
  1111. package/demo/apis/oas-api/UBER.yaml +0 -272
  1112. package/demo/apis/oas-api/petstore-expanded.raml +0 -141
  1113. package/demo/apis/oas-api/petstore-expanded.yaml +0 -139
  1114. package/demo/apis/oas-api/read-only-properties.yaml +0 -42
  1115. package/demo/apis/oas-bearer/oas-bearer.yaml +0 -45
  1116. package/demo/apis/oas-callbacks/oas-callbacks.yaml +0 -150
  1117. package/demo/apis/oas-demo/oas-demo.yaml +0 -94
  1118. package/demo/apis/oauth-flows/oauth-flows.yaml +0 -61
  1119. package/demo/apis/oauth-pkce/oauth-2-pkce.raml +0 -33
  1120. package/demo/apis/oauth-pkce/oauth-pkce.raml +0 -22
  1121. package/demo/apis/oauth1-fragment/oauth1-fragment.raml +0 -7
  1122. package/demo/apis/oauth2-fragment/oauth2-fragment.raml +0 -30
  1123. package/demo/apis/petstore/petstore.yaml +0 -954
  1124. package/demo/apis/prevent-xss/prevent-xss.json +0 -20
  1125. package/demo/apis/rearrange-api/rearrange-api.raml +0 -32
  1126. package/demo/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  1127. package/demo/apis/secured-api/oauth2-header-delivery.raml +0 -13
  1128. package/demo/apis/secured-api/oauth2-no-delivery.raml +0 -8
  1129. package/demo/apis/secured-api/oauth2-no-grants.raml +0 -12
  1130. package/demo/apis/secured-api/oauth2-pkce.raml +0 -13
  1131. package/demo/apis/secured-api/oauth2-query-delivery.raml +0 -13
  1132. package/demo/apis/secured-api/oauth_1_0.raml +0 -8
  1133. package/demo/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  1134. package/demo/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  1135. package/demo/apis/secured-api/oauth_1_0_signature.raml +0 -8
  1136. package/demo/apis/secured-api/passthrough-querystring.raml +0 -16
  1137. package/demo/apis/secured-api/passthrough.raml +0 -24
  1138. package/demo/apis/secured-api/secured-api.raml +0 -231
  1139. package/demo/apis/secured-api/x-custom.raml +0 -33
  1140. package/demo/apis/secured-api/x-other.raml +0 -29
  1141. package/demo/apis/secured-api/x-query-string.raml +0 -16
  1142. package/demo/apis/secured-unions/secured-unions.yaml +0 -95
  1143. package/demo/apis/security-api/oauth-2-custom-settings.raml +0 -154
  1144. package/demo/apis/security-api/readme.md +0 -1
  1145. package/demo/apis/security-api/security/basic.raml +0 -13
  1146. package/demo/apis/security-api/security/digest.raml +0 -5
  1147. package/demo/apis/security-api/security/oauth_1_0.raml +0 -27
  1148. package/demo/apis/security-api/security/oauth_2_0.raml +0 -30
  1149. package/demo/apis/security-api/security/oauth_2_0_no_scopes.raml +0 -29
  1150. package/demo/apis/security-api/security/other-oauth_1_0.raml +0 -29
  1151. package/demo/apis/security-api/security/passthrough.raml +0 -12
  1152. package/demo/apis/security-api/security/x-custom.raml +0 -26
  1153. package/demo/apis/security-api/security/x-other.raml +0 -29
  1154. package/demo/apis/security-api/security-api.raml +0 -89
  1155. package/demo/apis/servers-api/servers-api.yaml +0 -80
  1156. package/demo/apis/simple-api/simple-api.raml +0 -12
  1157. package/demo/apis/steveTest-1/exchange.json +0 -6
  1158. package/demo/apis/steveTest-1/schemas/schema-termsConditionsAccept.json +0 -43
  1159. package/demo/apis/steveTest-1/schemas_response/schema-termsConditionsAccept-Get.json +0 -24
  1160. package/demo/apis/steveTest-1/stevetest.json +0 -167
  1161. package/demo/apis/steveTest-1/traits/response-errors.json +0 -123
  1162. package/demo/apis/steveTest-1/traits/schema-response-errors.json +0 -35
  1163. package/demo/apis/streetlights2/streetlights2.yaml +0 -213
  1164. package/demo/apis/tracked-examples/datatypes/employee.raml +0 -5
  1165. package/demo/apis/tracked-examples/examples/employee.raml +0 -4
  1166. package/demo/apis/tracked-examples/examples/employees.raml +0 -8
  1167. package/demo/apis/tracked-examples/tracked-to-linked.raml +0 -28
  1168. package/demo/apis/type-fragment/type-fragment.raml +0 -96
  1169. package/demo/apis/types-list/exchange.json +0 -1
  1170. package/demo/apis/types-list/library.raml +0 -7
  1171. package/demo/apis/types-list/typeFromDataTypeFile.raml +0 -6
  1172. package/demo/apis/types-list/types-list.raml +0 -38
  1173. package/demo/apis/unordered-endpoints/unordered-endpoints.raml +0 -11
  1174. package/demo/lib/DemoBindings.ts +0 -38
  1175. package/demo/lib/amf/AmfPartialGraphStore.ts +0 -305
  1176. package/demo/lib/amf/AmfPartialModel.ts +0 -690
  1177. package/demo/lib/amf/ApiExamples.ts +0 -3270
  1178. package/demo/lib/io/ApiStore.ts +0 -16
  1179. package/demo/lib/io/SharedWorkerThread.ts +0 -31
  1180. package/demo/lib/io/main.ts +0 -23
  1181. package/demo/model.js +0 -203
  1182. package/demo/store/IpAddress.js +0 -15
  1183. package/demo/store/StorePlugin.js +0 -18
  1184. package/demo/stores.md +0 -5
  1185. package/dev/amf-server/AmfParser.js +0 -144
  1186. package/dev/amf-server/AmfService.js +0 -136
  1187. package/dev/amf-server/ApiError.js +0 -10
  1188. package/dev/amf-server/ParserProcess.js +0 -101
  1189. package/dev/amf-server/api.js +0 -146
  1190. package/dev/types.d.ts +0 -28
  1191. package/src/amf/lib/AmfInputParser.ts +0 -254
  1192. package/src/amf/lib/AmfParameters.ts +0 -814
  1193. package/src/amf/lib/AmfSecurity.ts +0 -45
  1194. package/src/amf/lib/InputCache.ts +0 -100
  1195. package/src/amf/lib/Oauth2RamlCustomData.ts +0 -265
  1196. package/src/amf/lib/PayloadUtils.ts +0 -87
  1197. package/src/amf/lib/QueryParameterProcessor.ts +0 -186
  1198. package/src/amf/lib/UrlUtils.ts +0 -213
  1199. package/src/amf/lib/Utils.ts +0 -220
  1200. package/src/amf/lib/navigation-layout/ApiSorting.ts +0 -20
  1201. package/src/amf/lib/navigation-layout/EndpointsTree.ts +0 -189
  1202. package/src/amf/lib/navigation-layout/NaturalTree.ts +0 -100
  1203. package/src/amf/plugins/ApiNavigationCommands.ts +0 -73
  1204. package/src/amf/plugins/ApiNavigationContextMenu.ts +0 -43
  1205. package/src/amf/store/AmfGraphStore.ts +0 -69
  1206. package/src/amf/store/AmfStore.ts +0 -216
  1207. package/src/amf/store/DomEventsAmfStore.ts +0 -4
  1208. package/src/amf/store/InMemAmfGraphStore.ts +0 -630
  1209. package/src/amf/store/Readme.md +0 -40
  1210. package/src/amf/store/mixins/AmfStoreDomEventsMixin.ts +0 -132
  1211. package/src/amf/types.ts +0 -359
  1212. package/src/define/amf/api-annotation-document.ts +0 -14
  1213. package/src/define/amf/api-authorization-editor.ts +0 -14
  1214. package/src/define/amf/api-channel-document.ts +0 -14
  1215. package/src/define/amf/api-documentation-document.ts +0 -14
  1216. package/src/define/amf/api-documentation.ts +0 -14
  1217. package/src/define/amf/api-navigation.ts +0 -14
  1218. package/src/define/amf/api-operation-document.ts +0 -14
  1219. package/src/define/amf/api-parameter-document.ts +0 -14
  1220. package/src/define/amf/api-parametrized-security-scheme.ts +0 -14
  1221. package/src/define/amf/api-payload-document.ts +0 -14
  1222. package/src/define/amf/api-request-document.ts +0 -14
  1223. package/src/define/amf/api-request-editor.ts +0 -14
  1224. package/src/define/amf/api-request.ts +0 -14
  1225. package/src/define/amf/api-resource-document.ts +0 -14
  1226. package/src/define/amf/api-response-document.ts +0 -14
  1227. package/src/define/amf/api-schema-document.ts +0 -14
  1228. package/src/define/amf/api-security-document.ts +0 -14
  1229. package/src/define/amf/api-security-requirement-document.ts +0 -14
  1230. package/src/define/amf/api-server-picker.ts +0 -14
  1231. package/src/define/amf/api-summary.ts +0 -14
  1232. package/src/define/amf/authorization/amf-apikey-authorization.ts +0 -15
  1233. package/src/define/amf/authorization/amf-basic-authorization.ts +0 -15
  1234. package/src/define/amf/authorization/amf-bearer-authorization.ts +0 -15
  1235. package/src/define/amf/authorization/amf-oauth2-authorization.ts +0 -18
  1236. package/src/define/amf/authorization/amf-oidc-authorization.ts +0 -18
  1237. package/src/define/amf/authorization/amf-passthrough-authorization.ts +0 -15
  1238. package/src/define/amf/authorization/amf-ramlcustom-authorization.ts +0 -15
  1239. package/src/elements/amf/ApiAnnotationDocument.element.ts +0 -181
  1240. package/src/elements/amf/ApiAnnotationDocument.styles.ts +0 -46
  1241. package/src/elements/amf/ApiAuthorizationEditor.element.ts +0 -364
  1242. package/src/elements/amf/ApiAuthorizationEditor.styles.ts +0 -25
  1243. package/src/elements/amf/ApiChannelDocument.element.ts +0 -89
  1244. package/src/elements/amf/ApiDocumentation.element.ts +0 -642
  1245. package/src/elements/amf/ApiDocumentation.styles.ts +0 -11
  1246. package/src/elements/amf/ApiDocumentationBase.ts +0 -296
  1247. package/src/elements/amf/ApiDocumentationDocument.element.ts +0 -85
  1248. package/src/elements/amf/ApiDocumentationDocument.styles.ts +0 -32
  1249. package/src/elements/amf/ApiNavigation.element.ts +0 -2285
  1250. package/src/elements/amf/ApiNavigation.styles.ts +0 -159
  1251. package/src/elements/amf/ApiOperationDocument.element.ts +0 -978
  1252. package/src/elements/amf/ApiOperationDocument.styles.ts +0 -67
  1253. package/src/elements/amf/ApiParameterDocument.element.ts +0 -105
  1254. package/src/elements/amf/ApiParameterDocument.styles.ts +0 -15
  1255. package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +0 -72
  1256. package/src/elements/amf/ApiParametrizedSecurityScheme.styles.ts +0 -4
  1257. package/src/elements/amf/ApiPayloadDocument.element.ts +0 -128
  1258. package/src/elements/amf/ApiPayloadDocument.styles.ts +0 -15
  1259. package/src/elements/amf/ApiRequest.element.ts +0 -260
  1260. package/src/elements/amf/ApiRequest.styles.ts +0 -11
  1261. package/src/elements/amf/ApiRequestDocument.element.ts +0 -388
  1262. package/src/elements/amf/ApiRequestDocument.styles.ts +0 -13
  1263. package/src/elements/amf/ApiRequestEditor.element.ts +0 -1773
  1264. package/src/elements/amf/ApiRequestEditor.styles.ts +0 -160
  1265. package/src/elements/amf/ApiResourceDocument.element.ts +0 -682
  1266. package/src/elements/amf/ApiResourceDocument.styles.ts +0 -91
  1267. package/src/elements/amf/ApiResponseDocument.element.ts +0 -290
  1268. package/src/elements/amf/ApiResponseDocument.styles.ts +0 -41
  1269. package/src/elements/amf/ApiSchemaDocument.element.ts +0 -786
  1270. package/src/elements/amf/ApiSchemaDocument.styles.ts +0 -41
  1271. package/src/elements/amf/ApiSecurityDocument.element.ts +0 -607
  1272. package/src/elements/amf/ApiSecurityDocument.styles.ts +0 -89
  1273. package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +0 -72
  1274. package/src/elements/amf/ApiSecurityRequirementDocument.styles.ts +0 -7
  1275. package/src/elements/amf/ApiServerPicker.element.ts +0 -690
  1276. package/src/elements/amf/ApiServerPicker.styles.ts +0 -25
  1277. package/src/elements/amf/ApiSummary.element.ts +0 -387
  1278. package/src/elements/amf/ApiSummary.styles.ts +0 -192
  1279. package/src/elements/amf/SchemaCommonTemplates.ts +0 -563
  1280. package/src/elements/amf/authorization/AmfApiKey.ts +0 -250
  1281. package/src/elements/amf/authorization/AmfBasic.ts +0 -77
  1282. package/src/elements/amf/authorization/AmfBearer.ts +0 -63
  1283. package/src/elements/amf/authorization/AmfOauth2.ts +0 -830
  1284. package/src/elements/amf/authorization/AmfOidc.ts +0 -66
  1285. package/src/elements/amf/authorization/AmfPassThrough.ts +0 -261
  1286. package/src/elements/amf/authorization/AmfRamlCustom.ts +0 -291
  1287. package/src/elements/amf/authorization/Authorization.styles.ts +0 -40
  1288. package/src/elements/amf/styles/AuthorizationMethod.ts +0 -46
  1289. package/src/elements/amf/styles/Common.ts +0 -150
  1290. package/src/elements/amf/styles/SchemaCommon.ts +0 -376
  1291. package/src/events/amf/ApiEvents.ts +0 -47
  1292. package/src/events/amf/BaseEvents.ts +0 -96
  1293. package/src/events/amf/DocumentationEvents.ts +0 -29
  1294. package/src/events/amf/EndpointEvents.ts +0 -37
  1295. package/src/events/amf/EventTypes.ts +0 -64
  1296. package/src/events/amf/Events.ts +0 -39
  1297. package/src/events/amf/NavigationEvents.ts +0 -86
  1298. package/src/events/amf/OperationEvents.ts +0 -29
  1299. package/src/events/amf/PayloadEvents.ts +0 -18
  1300. package/src/events/amf/ReportingEvents.ts +0 -28
  1301. package/src/events/amf/RequestEvents.ts +0 -16
  1302. package/src/events/amf/ResponseEvents.ts +0 -18
  1303. package/src/events/amf/SecurityEvents.ts +0 -60
  1304. package/src/events/amf/ServerEvents.ts +0 -94
  1305. package/src/events/amf/StoreEvents.ts +0 -16
  1306. package/src/events/amf/TelemetryEvents.ts +0 -115
  1307. package/src/events/amf/TypeEvents.ts +0 -28
  1308. package/test/amf/AmfLoader.ts +0 -575
  1309. package/test/amf/MonacoSetup.ts +0 -63
  1310. package/test/amf/authorization/ApiAuthorizationEditorElement.oas.test.ts +0 -253
  1311. package/test/amf/authorization/ApiAuthorizationEditorElement.raml.test.ts +0 -477
  1312. package/test/amf/authorization/ApiKeyMethod.test.ts +0 -160
  1313. package/test/amf/authorization/CustomMethod.test.ts +0 -306
  1314. package/test/amf/authorization/OAuth2-21143.test.ts +0 -40
  1315. package/test/amf/authorization/OAuth2-flows.test.ts +0 -99
  1316. package/test/amf/authorization/OAuth2-pkce.test.ts +0 -39
  1317. package/test/amf/authorization/OAuth2Method.test.ts +0 -369
  1318. package/test/amf/authorization/PassThroughMethod.test.ts +0 -180
  1319. package/test/amf/elements/ApiAnnotationDocumentElement.test.ts +0 -123
  1320. package/test/amf/elements/ApiDocumentationDocumentElement.test.ts +0 -153
  1321. package/test/amf/elements/ApiDocumentationElement.test.ts +0 -680
  1322. package/test/amf/elements/ApiOperationDocumentElement.test.ts +0 -753
  1323. package/test/amf/elements/ApiRequestDocumentElement.test.ts +0 -165
  1324. package/test/amf/elements/ApiResourceDocumentElement.test.ts +0 -320
  1325. package/test/amf/elements/ApiResponseDocumentElement.test.ts +0 -288
  1326. package/test/amf/elements/ApiSchemaDocumentElement.test.ts +0 -934
  1327. package/test/amf/elements/ApiSecurityDocumentElement.test.ts +0 -667
  1328. package/test/amf/elements/ApiSecurityRequirementDocumentElement.test.ts +0 -58
  1329. package/test/amf/elements/ApiServerPickerElement.test.ts +0 -960
  1330. package/test/amf/elements/ApiSummaryElement.test.ts +0 -485
  1331. package/test/amf/elements/SE-12957.test.ts +0 -49
  1332. package/test/amf/events/ApiEvents.test.ts +0 -32
  1333. package/test/amf/events/EndpointEvents.test.ts +0 -94
  1334. package/test/amf/events/EventHelper.ts +0 -11
  1335. package/test/amf/events/EventTypes.test.ts +0 -241
  1336. package/test/amf/events/NavigationEvents.test.ts +0 -58
  1337. package/test/amf/events/ReportingEvents.test.ts +0 -53
  1338. package/test/amf/events/StoreEvents.test.ts +0 -21
  1339. package/test/amf/events/TelemetryEvents.test.ts +0 -202
  1340. package/test/amf/http-request/APIC-289.test.ts +0 -66
  1341. package/test/amf/http-request/APIC-298.test.ts +0 -49
  1342. package/test/amf/http-request/APIC-689.test.ts +0 -45
  1343. package/test/amf/http-request/ApiRequestEditorElement.test.ts +0 -1472
  1344. package/test/amf/http-request/ApiRequestElement.test.ts +0 -39
  1345. package/test/amf/http-request/SE-12042.test.ts +0 -56
  1346. package/test/amf/http-request/SE-12957.test.ts +0 -80
  1347. package/test/amf/http-request/server.ts +0 -154
  1348. package/test/amf/lib/UrlUtils.test.ts +0 -324
  1349. package/test/amf/navigation/ApiNavigationElement.test.ts +0 -1464
  1350. package/test/amf/navigation/documentation-fragment.test.ts +0 -77
  1351. package/test/amf/navigation/security-fragment.test.ts +0 -77
  1352. package/test/amf/navigation/type-fragment.test.ts +0 -77
  1353. package/tsconfig.browser.json +0 -40
  1354. package/tsconfig.testing.json +0 -39
  1355. package/wds-demo.config.js +0 -49
  1356. /package/demo/{elements/md → md}/DemoStyles.ts +0 -0
  1357. /package/demo/{elements/md → md}/chip/pawel6c9a.jpg +0 -0
@@ -1,1735 +0,0 @@
1
- import { __esDecorate, __runInitializers } from "tslib";
2
- import { html, nothing } from 'lit';
3
- import { property, state } from 'lit/decorators.js';
4
- import { classMap } from 'lit/directives/class-map.js';
5
- import { nanoid } from 'nanoid';
6
- import { Headers } from '@api-client/core/lib/headers/Headers.js';
7
- import { Request } from '@api-client/core/models/Request.js';
8
- import { Kind as HttpRequestKind } from '@api-client/core/models/HttpRequest.js';
9
- import { cancelEvent } from '@api-client/core/lib/events/Utils.js';
10
- import { Events as CoreEvents } from '@api-client/core/events/Events.js';
11
- import { ensureContentType, generateHeaders } from '../../amf/lib/Utils.js';
12
- import { cachePayloadValue, getPayloadValue, readCachePayloadValue } from '../../amf/lib/PayloadUtils.js';
13
- import { applyUrlParameters, applyUrlVariables, computeEndpointUri, applyQueryParamStringToObject, } from '../../amf/lib/UrlUtils.js';
14
- import { AmfInputParser } from '../../amf/lib/AmfInputParser.js';
15
- import * as InputCache from '../../amf/lib/InputCache.js';
16
- import { Events } from '../../events/amf/Events.js';
17
- import { EventTypes } from '../../events/amf/EventTypes.js';
18
- import { EventTypes as UiEventTypes } from '../../events/EventTypes.js';
19
- import { ifProperty } from '../../directives/if-property.js';
20
- import ApiElement from '../ApiElement.js';
21
- import { AmfParameters } from '../../amf/lib/AmfParameters.js';
22
- import { AmfSecurity } from '../../amf/lib/AmfSecurity.js';
23
- import { SnackNotifications } from '../../md/notification/SnackNotifications.js';
24
- import '../../define/amf/api-authorization-editor.js';
25
- import '../../define/amf/api-server-picker.js';
26
- import '../../define/http/http-body-urlencoded-editor.js';
27
- import '../../define/http/http-body-multipart-editor.js';
28
- import '../../define/http/http-body-text-editor.js';
29
- import '../../md/icons/ui-icon.js';
30
- import '../../md/text-field/ui-text-field.js';
31
- import '../../md/switch/ui-switch.js';
32
- import '../../md/button/ui-filled-tonal-button.js';
33
- import '../../md/button/ui-outlined-button.js';
34
- import '../../md/dropdown-list/ui-dropdown-list.js';
35
- import '../../md/list/ui-list.js';
36
- import '../../md/list/ui-list-item.js';
37
- import '../../md/progress/ui-progress.js';
38
- export const EventCategory = 'API Request editor';
39
- let ApiRequestEditor = (() => {
40
- let _classSuper = ApiElement;
41
- let _instanceExtraInitializers = [];
42
- let _mimeType_decorators;
43
- let _mimeType_initializers = [];
44
- let _mimeType_extraInitializers = [];
45
- let _urlLabel_decorators;
46
- let _urlLabel_initializers = [];
47
- let _urlLabel_extraInitializers = [];
48
- let _urlEditor_decorators;
49
- let _urlEditor_initializers = [];
50
- let _urlEditor_extraInitializers = [];
51
- let _allowHideOptional_decorators;
52
- let _allowHideOptional_initializers = [];
53
- let _allowHideOptional_extraInitializers = [];
54
- let _allowCustom_decorators;
55
- let _allowCustom_initializers = [];
56
- let _allowCustom_extraInitializers = [];
57
- let _redirectUri_decorators;
58
- let _redirectUri_initializers = [];
59
- let _redirectUri_extraInitializers = [];
60
- let _url_decorators;
61
- let _url_initializers = [];
62
- let _url_extraInitializers = [];
63
- let _serverValue_decorators;
64
- let _serverValue_initializers = [];
65
- let _serverValue_extraInitializers = [];
66
- let _serverType_decorators;
67
- let _serverType_initializers = [];
68
- let _serverType_extraInitializers = [];
69
- let _noServerSelector_decorators;
70
- let _noServerSelector_initializers = [];
71
- let _noServerSelector_extraInitializers = [];
72
- let _allowCustomBaseUri_decorators;
73
- let _allowCustomBaseUri_initializers = [];
74
- let _allowCustomBaseUri_extraInitializers = [];
75
- let _credentialsSource_decorators;
76
- let _credentialsSource_initializers = [];
77
- let _credentialsSource_extraInitializers = [];
78
- let _selectedSecurity_decorators;
79
- let _selectedSecurity_initializers = [];
80
- let _selectedSecurity_extraInitializers = [];
81
- let _endpointId_decorators;
82
- let _endpointId_initializers = [];
83
- let _endpointId_extraInitializers = [];
84
- let _set_domainId_decorators;
85
- let _loadingRequest_decorators;
86
- let _loadingRequest_initializers = [];
87
- let _loadingRequest_extraInitializers = [];
88
- let _set_baseUri_decorators;
89
- return class ApiRequestEditor extends _classSuper {
90
- static {
91
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
92
- _mimeType_decorators = [property({ type: String, reflect: true })];
93
- _urlLabel_decorators = [property({ type: Boolean, reflect: true })];
94
- _urlEditor_decorators = [property({ type: Boolean, reflect: true })];
95
- _allowHideOptional_decorators = [property({ type: Boolean, reflect: true })];
96
- _allowCustom_decorators = [property({ type: Boolean, reflect: true })];
97
- _redirectUri_decorators = [property({ type: String })];
98
- _url_decorators = [property({ type: String })];
99
- _serverValue_decorators = [property({ type: String })];
100
- _serverType_decorators = [property({ type: String })];
101
- _noServerSelector_decorators = [property({ type: Boolean, reflect: true })];
102
- _allowCustomBaseUri_decorators = [property({ type: Boolean, reflect: true })];
103
- _credentialsSource_decorators = [property({ type: Array })];
104
- _selectedSecurity_decorators = [property({ type: String })];
105
- _endpointId_decorators = [property({ type: String })];
106
- _set_domainId_decorators = [property({ type: String, reflect: true })];
107
- _loadingRequest_decorators = [state()];
108
- _set_baseUri_decorators = [property({ type: String })];
109
- __esDecorate(this, null, _mimeType_decorators, { kind: "accessor", name: "mimeType", static: false, private: false, access: { has: obj => "mimeType" in obj, get: obj => obj.mimeType, set: (obj, value) => { obj.mimeType = value; } }, metadata: _metadata }, _mimeType_initializers, _mimeType_extraInitializers);
110
- __esDecorate(this, null, _urlLabel_decorators, { kind: "accessor", name: "urlLabel", static: false, private: false, access: { has: obj => "urlLabel" in obj, get: obj => obj.urlLabel, set: (obj, value) => { obj.urlLabel = value; } }, metadata: _metadata }, _urlLabel_initializers, _urlLabel_extraInitializers);
111
- __esDecorate(this, null, _urlEditor_decorators, { kind: "accessor", name: "urlEditor", static: false, private: false, access: { has: obj => "urlEditor" in obj, get: obj => obj.urlEditor, set: (obj, value) => { obj.urlEditor = value; } }, metadata: _metadata }, _urlEditor_initializers, _urlEditor_extraInitializers);
112
- __esDecorate(this, null, _allowHideOptional_decorators, { kind: "accessor", name: "allowHideOptional", static: false, private: false, access: { has: obj => "allowHideOptional" in obj, get: obj => obj.allowHideOptional, set: (obj, value) => { obj.allowHideOptional = value; } }, metadata: _metadata }, _allowHideOptional_initializers, _allowHideOptional_extraInitializers);
113
- __esDecorate(this, null, _allowCustom_decorators, { kind: "accessor", name: "allowCustom", static: false, private: false, access: { has: obj => "allowCustom" in obj, get: obj => obj.allowCustom, set: (obj, value) => { obj.allowCustom = value; } }, metadata: _metadata }, _allowCustom_initializers, _allowCustom_extraInitializers);
114
- __esDecorate(this, null, _redirectUri_decorators, { kind: "accessor", name: "redirectUri", static: false, private: false, access: { has: obj => "redirectUri" in obj, get: obj => obj.redirectUri, set: (obj, value) => { obj.redirectUri = value; } }, metadata: _metadata }, _redirectUri_initializers, _redirectUri_extraInitializers);
115
- __esDecorate(this, null, _url_decorators, { kind: "accessor", name: "url", static: false, private: false, access: { has: obj => "url" in obj, get: obj => obj.url, set: (obj, value) => { obj.url = value; } }, metadata: _metadata }, _url_initializers, _url_extraInitializers);
116
- __esDecorate(this, null, _serverValue_decorators, { kind: "accessor", name: "serverValue", static: false, private: false, access: { has: obj => "serverValue" in obj, get: obj => obj.serverValue, set: (obj, value) => { obj.serverValue = value; } }, metadata: _metadata }, _serverValue_initializers, _serverValue_extraInitializers);
117
- __esDecorate(this, null, _serverType_decorators, { kind: "accessor", name: "serverType", static: false, private: false, access: { has: obj => "serverType" in obj, get: obj => obj.serverType, set: (obj, value) => { obj.serverType = value; } }, metadata: _metadata }, _serverType_initializers, _serverType_extraInitializers);
118
- __esDecorate(this, null, _noServerSelector_decorators, { kind: "accessor", name: "noServerSelector", static: false, private: false, access: { has: obj => "noServerSelector" in obj, get: obj => obj.noServerSelector, set: (obj, value) => { obj.noServerSelector = value; } }, metadata: _metadata }, _noServerSelector_initializers, _noServerSelector_extraInitializers);
119
- __esDecorate(this, null, _allowCustomBaseUri_decorators, { kind: "accessor", name: "allowCustomBaseUri", static: false, private: false, access: { has: obj => "allowCustomBaseUri" in obj, get: obj => obj.allowCustomBaseUri, set: (obj, value) => { obj.allowCustomBaseUri = value; } }, metadata: _metadata }, _allowCustomBaseUri_initializers, _allowCustomBaseUri_extraInitializers);
120
- __esDecorate(this, null, _credentialsSource_decorators, { kind: "accessor", name: "credentialsSource", static: false, private: false, access: { has: obj => "credentialsSource" in obj, get: obj => obj.credentialsSource, set: (obj, value) => { obj.credentialsSource = value; } }, metadata: _metadata }, _credentialsSource_initializers, _credentialsSource_extraInitializers);
121
- __esDecorate(this, null, _selectedSecurity_decorators, { kind: "accessor", name: "selectedSecurity", static: false, private: false, access: { has: obj => "selectedSecurity" in obj, get: obj => obj.selectedSecurity, set: (obj, value) => { obj.selectedSecurity = value; } }, metadata: _metadata }, _selectedSecurity_initializers, _selectedSecurity_extraInitializers);
122
- __esDecorate(this, null, _endpointId_decorators, { kind: "accessor", name: "endpointId", static: false, private: false, access: { has: obj => "endpointId" in obj, get: obj => obj.endpointId, set: (obj, value) => { obj.endpointId = value; } }, metadata: _metadata }, _endpointId_initializers, _endpointId_extraInitializers);
123
- __esDecorate(this, null, _set_domainId_decorators, { kind: "setter", name: "domainId", static: false, private: false, access: { has: obj => "domainId" in obj, set: (obj, value) => { obj.domainId = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
124
- __esDecorate(this, null, _loadingRequest_decorators, { kind: "accessor", name: "loadingRequest", static: false, private: false, access: { has: obj => "loadingRequest" in obj, get: obj => obj.loadingRequest, set: (obj, value) => { obj.loadingRequest = value; } }, metadata: _metadata }, _loadingRequest_initializers, _loadingRequest_extraInitializers);
125
- __esDecorate(this, null, _set_baseUri_decorators, { kind: "setter", name: "baseUri", static: false, private: false, access: { has: obj => "baseUri" in obj, set: (obj, value) => { obj.baseUri = value; } }, metadata: _metadata }, null, _instanceExtraInitializers);
126
- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
127
- }
128
- #mimeType_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _mimeType_initializers, void 0));
129
- /**
130
- * The currently selected media type for the payloads.
131
- * @attribute
132
- */
133
- get mimeType() { return this.#mimeType_accessor_storage; }
134
- set mimeType(value) { this.#mimeType_accessor_storage = value; }
135
- #urlLabel_accessor_storage = (__runInitializers(this, _mimeType_extraInitializers), __runInitializers(this, _urlLabel_initializers, void 0));
136
- /**
137
- * When set it renders a label with the computed URL.
138
- * @attribute
139
- */
140
- get urlLabel() { return this.#urlLabel_accessor_storage; }
141
- set urlLabel(value) { this.#urlLabel_accessor_storage = value; }
142
- #urlEditor_accessor_storage = (__runInitializers(this, _urlLabel_extraInitializers), __runInitializers(this, _urlEditor_initializers, void 0));
143
- /**
144
- * When set it renders the URL input above the URL parameters.
145
- * @attribute
146
- */
147
- get urlEditor() { return this.#urlEditor_accessor_storage; }
148
- set urlEditor(value) { this.#urlEditor_accessor_storage = value; }
149
- #allowHideOptional_accessor_storage = (__runInitializers(this, _urlEditor_extraInitializers), __runInitializers(this, _allowHideOptional_initializers, void 0));
150
- /**
151
- * If set it computes `hasOptional` property and shows checkbox in the
152
- * form to show / hide optional properties.
153
- * @attribute
154
- */
155
- get allowHideOptional() { return this.#allowHideOptional_accessor_storage; }
156
- set allowHideOptional(value) { this.#allowHideOptional_accessor_storage = value; }
157
- #allowCustom_accessor_storage = (__runInitializers(this, _allowHideOptional_extraInitializers), __runInitializers(this, _allowCustom_initializers, void 0));
158
- /**
159
- * When set, renders "add custom" item button.
160
- * If the element is to be used without AMF model this should always
161
- * be enabled. Otherwise users won't be able to add a parameter.
162
- * @attribute
163
- */
164
- get allowCustom() { return this.#allowCustom_accessor_storage; }
165
- set allowCustom(value) { this.#allowCustom_accessor_storage = value; }
166
- #redirectUri_accessor_storage = (__runInitializers(this, _allowCustom_extraInitializers), __runInitializers(this, _redirectUri_initializers, void 0));
167
- /**
168
- * OAuth2 redirect URI.
169
- * This value **must** be set in order for OAuth 1/2 to work properly.
170
- * @attribute
171
- */
172
- get redirectUri() { return this.#redirectUri_accessor_storage; }
173
- set redirectUri(value) { this.#redirectUri_accessor_storage = value; }
174
- #url_accessor_storage = (__runInitializers(this, _redirectUri_extraInitializers), __runInitializers(this, _url_initializers, void 0));
175
- /**
176
- * Final request URL including settings like `baseUri`, AMF
177
- * model settings and user provided parameters.
178
- * @attribute
179
- */
180
- get url() { return this.#url_accessor_storage; }
181
- set url(value) { this.#url_accessor_storage = value; }
182
- #serverValue_accessor_storage = (__runInitializers(this, _url_extraInitializers), __runInitializers(this, _serverValue_initializers, void 0));
183
- /**
184
- * Holds the value of the currently selected server
185
- * Data type: URI
186
- * @attribute
187
- */
188
- get serverValue() { return this.#serverValue_accessor_storage; }
189
- set serverValue(value) { this.#serverValue_accessor_storage = value; }
190
- #serverType_accessor_storage = (__runInitializers(this, _serverValue_extraInitializers), __runInitializers(this, _serverType_initializers, void 0));
191
- /**
192
- * Holds the type of the currently selected server
193
- * Values: `server` | `uri` | `custom`
194
- * @attribute
195
- */
196
- get serverType() { return this.#serverType_accessor_storage; }
197
- set serverType(value) { this.#serverType_accessor_storage = value; }
198
- #noServerSelector_accessor_storage = (__runInitializers(this, _serverType_extraInitializers), __runInitializers(this, _noServerSelector_initializers, void 0));
199
- /**
200
- * Optional property to set
201
- * If true, the server selector is not rendered
202
- * @attribute
203
- */
204
- get noServerSelector() { return this.#noServerSelector_accessor_storage; }
205
- set noServerSelector(value) { this.#noServerSelector_accessor_storage = value; }
206
- #allowCustomBaseUri_accessor_storage = (__runInitializers(this, _noServerSelector_extraInitializers), __runInitializers(this, _allowCustomBaseUri_initializers, void 0));
207
- /**
208
- * Optional property to set
209
- * If true, the server selector custom base URI option is rendered
210
- * @attribute
211
- */
212
- get allowCustomBaseUri() { return this.#allowCustomBaseUri_accessor_storage; }
213
- set allowCustomBaseUri(value) { this.#allowCustomBaseUri_accessor_storage = value; }
214
- #credentialsSource_accessor_storage = (__runInitializers(this, _allowCustomBaseUri_extraInitializers), __runInitializers(this, _credentialsSource_initializers, void 0));
215
- /**
216
- * List of credentials source
217
- */
218
- get credentialsSource() { return this.#credentialsSource_accessor_storage; }
219
- set credentialsSource(value) { this.#credentialsSource_accessor_storage = value; }
220
- #selectedSecurity_accessor_storage = (__runInitializers(this, _credentialsSource_extraInitializers), __runInitializers(this, _selectedSecurity_initializers, void 0));
221
- /**
222
- * The domain id key of the selected security
223
- * @attribute
224
- */
225
- get selectedSecurity() { return this.#selectedSecurity_accessor_storage; }
226
- set selectedSecurity(value) { this.#selectedSecurity_accessor_storage = value; }
227
- #endpointId_accessor_storage = (__runInitializers(this, _selectedSecurity_extraInitializers), __runInitializers(this, _endpointId_initializers, void 0));
228
- /**
229
- * Optional. The parent endpoint id. When set it uses this value to query for the endpoint
230
- * instead of querying for a parent through the operation id.
231
- * Also, when `endpoint` is set and the `endpointId` match then it ignores querying for
232
- * the endpoint.
233
- * @attribute
234
- */
235
- get endpointId() { return this.#endpointId_accessor_storage; }
236
- set endpointId(value) { this.#endpointId_accessor_storage = value; }
237
- domainIdValue = __runInitializers(this, _endpointId_extraInitializers);
238
- /**
239
- * The domain id (AMF id) of the rendered operation.
240
- * @attribute
241
- */
242
- get domainId() {
243
- return this.domainIdValue;
244
- }
245
- set domainId(value) {
246
- const old = this.domainIdValue;
247
- /* istanbul ignore if */
248
- if (old === value) {
249
- return;
250
- }
251
- this.domainIdValue = value;
252
- this.requestUpdate('domainId', old);
253
- this.processDebounce();
254
- }
255
- endpointValue;
256
- get endpoint() {
257
- return this.endpointValue;
258
- }
259
- set endpoint(value) {
260
- const old = this.endpointValue;
261
- if (old === value) {
262
- return;
263
- }
264
- this.endpointValue = value;
265
- this.requestUpdate();
266
- this.readUrlData();
267
- this.notifyChange();
268
- }
269
- /**
270
- * The HTTP method name.
271
- */
272
- get httpMethod() {
273
- const op = this.operationValue;
274
- if (!op) {
275
- return undefined;
276
- }
277
- return op.method;
278
- }
279
- #loadingRequest_accessor_storage = __runInitializers(this, _loadingRequest_initializers, void 0);
280
- /**
281
- * A flag set when the request is being made.
282
- */
283
- get loadingRequest() { return this.#loadingRequest_accessor_storage; }
284
- set loadingRequest(value) { this.#loadingRequest_accessor_storage = value; }
285
- baseUriValue = __runInitializers(this, _loadingRequest_extraInitializers);
286
- /**
287
- * A base URI for the API. To be set if RAML spec is missing `baseUri`
288
- * declaration and this produces invalid URL input. This information
289
- * is passed to the URL editor that prefixes the URL with `baseUri` value
290
- * if passed URL is a relative URL.
291
- * @attribute
292
- */
293
- get baseUri() {
294
- return this.baseUriValue;
295
- }
296
- set baseUri(value) {
297
- const old = this.baseUriValue;
298
- if (old === value) {
299
- return;
300
- }
301
- this.baseUriValue = value;
302
- this.readUrlData();
303
- this.requestUpdate('baseUri', old);
304
- }
305
- serversValue;
306
- /**
307
- * The computed list of servers.
308
- */
309
- get servers() {
310
- return this.serversValue;
311
- }
312
- serverLocalValue;
313
- get server() {
314
- return this.serverLocalValue;
315
- }
316
- /**
317
- * This is the final computed value for the baseUri to propagate downwards
318
- * If baseUri is defined, return baseUri
319
- * Else, return the selectedServerValue if serverType is not `server`
320
- */
321
- get effectiveBaseUri() {
322
- if (this.baseUri) {
323
- return this.baseUri;
324
- }
325
- if (this.serverType !== 'server') {
326
- return this.serverValue;
327
- }
328
- return '';
329
- }
330
- /**
331
- * @return True when there is not enough servers to render the selector
332
- */
333
- get serverSelectorHidden() {
334
- const { serversCount = 0, noServerSelector = false, allowCustomBaseUri } = this;
335
- return noServerSelector || (!allowCustomBaseUri && serversCount < 2);
336
- }
337
- /**
338
- * The list of security list items to render.
339
- * An operation may have multiple security definition in an or/and fashion.
340
- * This allows to render the selector to pick the current security.
341
- */
342
- securityList;
343
- /**
344
- * The security requirement for the operation or undefined.
345
- */
346
- get security() {
347
- const items = this.securityList;
348
- if (Array.isArray(items) && items.length) {
349
- return items;
350
- }
351
- return undefined;
352
- }
353
- /**
354
- * The currently rendered payload, if any.
355
- */
356
- get payload() {
357
- const { payloads } = this;
358
- if (!payloads) {
359
- return undefined;
360
- }
361
- const { mimeType } = this;
362
- let payload;
363
- if (mimeType) {
364
- payload = payloads.find((i) => i.mediaType === mimeType);
365
- }
366
- if (!payload) {
367
- ;
368
- [payload] = payloads;
369
- }
370
- return payload;
371
- }
372
- /**
373
- * The list of all possible payloads for this operation.
374
- */
375
- get payloads() {
376
- const operation = this.operationValue;
377
- if (!operation) {
378
- return undefined;
379
- }
380
- const { request } = operation;
381
- if (!request) {
382
- return undefined;
383
- }
384
- const { payloads } = request;
385
- if (!Array.isArray(payloads) || !payloads.length) {
386
- return undefined;
387
- }
388
- return payloads;
389
- }
390
- /**
391
- * @returns API defined base URI (current server + the endpoint)
392
- */
393
- get apiBaseUri() {
394
- const endpoint = this.endpointValue;
395
- const server = this.serverLocalValue;
396
- if (!server || !endpoint) {
397
- return undefined;
398
- }
399
- const { path = '' } = endpoint;
400
- let { url = '' } = server;
401
- if (url.endsWith('/')) {
402
- url = url.substr(0, url.length - 1);
403
- }
404
- return `${url}${path}`;
405
- }
406
- urlInvalidValue;
407
- /**
408
- * True when the URL input is invalid.
409
- */
410
- get urlInvalid() {
411
- return this.urlInvalidValue;
412
- }
413
- protocolsValue;
414
- /**
415
- * The API's protocols.
416
- */
417
- get protocols() {
418
- return this.protocolsValue;
419
- }
420
- versionValue;
421
- /**
422
- * The API's version.
423
- */
424
- get version() {
425
- return this.versionValue;
426
- }
427
- queryDebouncerTimeout;
428
- /**
429
- * Set when the selection change, this is a JS object created form the
430
- * supportedOperation definition of the AMF graph.
431
- */
432
- operationValue;
433
- /**
434
- * The list of parameter groups that are opened when `allowHideOptional` is set.
435
- */
436
- openedOptional;
437
- debounceValue;
438
- urlSearchRegexpValue;
439
- serversCount;
440
- amfParameters;
441
- /**
442
- * This is set while the HTTP request is being executed.
443
- * It allows to abort the request.
444
- */
445
- requestController;
446
- /**
447
- * @constructor
448
- */
449
- constructor() {
450
- super();
451
- /**
452
- * The timeout after which the `queryGraph()` function is called
453
- * in the debouncer.
454
- */
455
- this.queryDebouncerTimeout = 1;
456
- this.authRedirectChangedHandler = this.authRedirectChangedHandler.bind(this);
457
- this.populateAnnotatedFieldsHandler = this.populateAnnotatedFieldsHandler.bind(this);
458
- this.openedOptional = [];
459
- this.amfParameters = new AmfParameters(this);
460
- this.amfParameters.addEventListener('render', () => this.requestUpdate());
461
- this.amfParameters.addEventListener('change', () => this.notifyChange());
462
- this.amfParameters.addEventListener('paramchange', this.paramChangeHandler.bind(this));
463
- InputCache.registerLocal(this);
464
- this.graphChangeHandler = this.graphChangeHandler.bind(this);
465
- this.addEventListener(UiEventTypes.Http.Request.send, this.internalSendHandler.bind(this));
466
- }
467
- connectedCallback() {
468
- super.connectedCallback();
469
- this.processDebounce();
470
- this.amfParameters.globalCache = true;
471
- const node = this.eventsTarget;
472
- node.addEventListener(EventTypes.Store.graphChange, this.graphChangeHandler);
473
- node.addEventListener(EventTypes.Request.redirectUriChange, this.authRedirectChangedHandler);
474
- node.addEventListener(EventTypes.Request.populateAnnotatedFields, this.populateAnnotatedFieldsHandler);
475
- }
476
- disconnectedCallback() {
477
- super.disconnectedCallback();
478
- if (this.debounceValue) {
479
- clearTimeout(this.debounceValue);
480
- this.debounceValue = undefined;
481
- }
482
- const node = this.eventsTarget;
483
- node.removeEventListener(EventTypes.Store.graphChange, this.graphChangeHandler);
484
- node.removeEventListener(EventTypes.Request.redirectUriChange, this.authRedirectChangedHandler);
485
- node.removeEventListener(EventTypes.Request.populateAnnotatedFields, this.populateAnnotatedFieldsHandler);
486
- }
487
- /**
488
- * Handler for the event dispatched by the store when the graph model change.
489
- */
490
- graphChangeHandler() {
491
- this.processDebounce();
492
- }
493
- /**
494
- * Calls the `queryGraph()` function in a debouncer.
495
- */
496
- processDebounce() {
497
- if (this.debounceValue) {
498
- clearTimeout(this.debounceValue);
499
- }
500
- this.debounceValue = setTimeout(() => {
501
- this.debounceValue = undefined;
502
- this.processGraph();
503
- }, this.queryDebouncerTimeout);
504
- }
505
- /**
506
- * Reads the URL data from the ApiUrlDataModel library and sets local variables.
507
- */
508
- readUrlData() {
509
- this.updateServerParameters();
510
- this.orderPathParameters();
511
- this.computeUrlValue();
512
- }
513
- /**
514
- * It makes sure that the path parameters are rendered in order (server, endpoint)
515
- * and in order of occurrence in the URL.
516
- */
517
- orderPathParameters() {
518
- const params = this.getOrderedPathParams();
519
- if (!params || !params.length) {
520
- return;
521
- }
522
- const { amfParameters } = this;
523
- amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.binding !== 'path');
524
- amfParameters.parametersValue = amfParameters.parametersValue.concat(params);
525
- }
526
- paramChangeHandler(e) {
527
- this.paramChanged(e.detail);
528
- }
529
- /**
530
- * A function to be overwritten by child classes to execute an action when a parameter has changed.
531
- */
532
- paramChanged(key) {
533
- this.computeUrlValue();
534
- this.validateUrl();
535
- const { amfParameters } = this;
536
- const param = amfParameters.parametersValue.find((p) => p.paramId === key);
537
- if (param && param.binding === 'header' && (param.parameter.name || '').toLocaleLowerCase() === 'content-type') {
538
- const value = InputCache.get(this, param.paramId, true);
539
- this.mimeType = value;
540
- }
541
- }
542
- /**
543
- * Computes the URL value for the current serves, selected server, and endpoint's path.
544
- */
545
- computeUrlValue() {
546
- const { effectiveBaseUri, server, protocols, version } = this;
547
- const endpoint = this.endpointValue;
548
- const result = computeEndpointUri({
549
- baseUri: effectiveBaseUri,
550
- server,
551
- endpoint,
552
- protocols,
553
- version,
554
- forceHttpProtocol: true,
555
- });
556
- const { amfParameters } = this;
557
- const params = amfParameters.parametersValue.map((p) => p.parameter);
558
- const report = AmfInputParser.reportRequestInputs(params, InputCache.getStore(this, true), amfParameters.nilValues);
559
- let url = applyUrlVariables(result, report.path, true);
560
- url = applyUrlParameters(url, report.query, true);
561
- this.url = url;
562
- }
563
- /**
564
- * Checks if the current server has variables and update the parameters array
565
- */
566
- updateServerParameters() {
567
- const { server } = this;
568
- const source = 'server';
569
- const { amfParameters } = this;
570
- // clears previously set request parameters related to server configuration.
571
- amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source);
572
- if (!server || ['custom', 'uri'].includes(this.serverType || '')) {
573
- // we don't need to compute server variables for a custom URLs.
574
- return;
575
- }
576
- if (Array.isArray(server.variables) && server.variables.length) {
577
- server.variables.forEach((param) => {
578
- const item = {
579
- binding: param.binding || '',
580
- paramId: param.id,
581
- parameter: param,
582
- source,
583
- };
584
- if (param.schema) {
585
- item.schema = param.schema;
586
- item.schemaId = param.schema.id;
587
- }
588
- amfParameters.parametersValue.push(item);
589
- });
590
- }
591
- }
592
- /**
593
- * Checks if the current endpoint has variables and requests them when needed.
594
- */
595
- updateEndpointParameters() {
596
- const source = 'endpoint';
597
- const { amfParameters } = this;
598
- // clears previously set request parameters related to server configuration.
599
- amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source);
600
- const endpoint = this.endpointValue;
601
- if (!endpoint) {
602
- // we don't need to compute endpoint variables for a custom URLs.
603
- return;
604
- }
605
- if (Array.isArray(endpoint.parameters) && endpoint.parameters.length) {
606
- endpoint.parameters.forEach((param) => {
607
- const item = {
608
- binding: param.binding || '',
609
- paramId: param.id,
610
- parameter: param,
611
- source,
612
- };
613
- if (param.schema) {
614
- item.schema = param.schema;
615
- item.schemaId = param.schema.id;
616
- }
617
- amfParameters.parametersValue.push(item);
618
- });
619
- }
620
- }
621
- reset() {
622
- this.securityList = undefined;
623
- this.mimeType = undefined;
624
- this.amfParameters.parametersValue = [];
625
- }
626
- /**
627
- * Processes the selection of the domain id for an operation.
628
- */
629
- async processGraph() {
630
- await this.queryEndpoint();
631
- await this.queryOperation();
632
- await this.queryServers();
633
- await this.queryProtocols();
634
- this.processEndpoint();
635
- this.processOperation();
636
- this.processSecurity();
637
- this.processPayload();
638
- this.computeUrlValue();
639
- this.readUrlData();
640
- this.notifyChange();
641
- }
642
- /**
643
- * Queries the store for the operation data, when needed.
644
- */
645
- async queryOperation() {
646
- const { domainId } = this;
647
- if (!domainId || domainId === 'undefined') {
648
- // this.operationValue = undefined;
649
- return;
650
- }
651
- if (this.operationValue && this.operationValue.id === domainId) {
652
- // in case the operation model was provided via the property setter.
653
- return;
654
- }
655
- try {
656
- const endpointId = this.endpointValue && this.endpointValue.id;
657
- const info = await Events.Operation.get(this, domainId, endpointId);
658
- this.operationValue = info;
659
- }
660
- catch (e) {
661
- const ex = e;
662
- Events.Telemetry.exception(this, ex.message, false);
663
- Events.Reporting.error(this, ex, `Unable to query for API operation data: ${ex.message}`, this.localName);
664
- }
665
- }
666
- /**
667
- * Queries the store for the endpoint data.
668
- * @returns {Promise<void>}
669
- */
670
- async queryEndpoint() {
671
- const { domainId, endpointId } = this;
672
- if (!domainId || domainId === 'undefined') {
673
- // this.endpointValue = undefined;
674
- return;
675
- }
676
- if (this.endpointValue && this.endpointValue.id === endpointId) {
677
- // in case the endpoint model was provided via the property setter.
678
- return;
679
- }
680
- this.endpointValue = undefined;
681
- try {
682
- const info = await (endpointId
683
- ? Events.Endpoint.get(this, endpointId)
684
- : Events.Operation.getParent(this, domainId));
685
- this.endpointValue = info;
686
- }
687
- catch (e) {
688
- const ex = e;
689
- Events.Telemetry.exception(this, ex.message, false);
690
- Events.Reporting.error(this, ex, `Unable to query for API endpoint data: ${ex.message}`, this.localName);
691
- }
692
- }
693
- /**
694
- * Queries for the current servers value.
695
- */
696
- async queryServers() {
697
- const { domainId } = this;
698
- const endpointId = this.endpointValue && this.endpointValue.id;
699
- try {
700
- const info = await Events.Server.query(this, {
701
- endpointId,
702
- methodId: domainId,
703
- });
704
- this.serversValue = info || undefined;
705
- }
706
- catch (e) {
707
- const ex = e;
708
- this.serversValue = undefined;
709
- Events.Telemetry.exception(this, ex.message, false);
710
- Events.Reporting.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName);
711
- }
712
- }
713
- /**
714
- * Queries the API store for the API protocols list.
715
- */
716
- async queryProtocols() {
717
- this.protocolsValue = undefined;
718
- try {
719
- const info = await Events.Api.protocols(this);
720
- this.protocolsValue = info;
721
- }
722
- catch (e) {
723
- const ex = e;
724
- Events.Telemetry.exception(this, ex.message, false);
725
- Events.Reporting.error(this, ex, `Unable to query for API protocols list: ${ex.message}`, this.localName);
726
- }
727
- }
728
- /**
729
- * Searches for the current operation endpoint and sets variables from the endpoint definition.
730
- */
731
- processEndpoint() {
732
- this.updateEndpointParameters();
733
- this.computeUrlRegexp();
734
- }
735
- /**
736
- * Collects operations input parameters into a single object.
737
- */
738
- processOperation() {
739
- const source = 'request';
740
- const operation = this.operationValue;
741
- const { amfParameters } = this;
742
- // clears previously set request parameters (query, path, headers)
743
- amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source);
744
- if (!operation) {
745
- return;
746
- }
747
- const { request } = operation;
748
- if (!request) {
749
- return;
750
- }
751
- const uri = [];
752
- if (Array.isArray(request.uriParameters)) {
753
- // OAS has this weird thing where you can define URI parameters on the endpoint and the operation.
754
- // this eliminates the duplicates and merges the schemas
755
- request.uriParameters.forEach((param) => {
756
- if (!param.paramName) {
757
- uri.push(param);
758
- return;
759
- }
760
- const index = amfParameters.parametersValue.findIndex((p) => p.binding === 'path' && p.parameter.paramName === param.paramName);
761
- if (index !== -1) {
762
- // remove the parameter that is being replaced by the local definition
763
- amfParameters.parametersValue.splice(index, 1);
764
- }
765
- uri.push(param);
766
- });
767
- }
768
- this.appendToParams(uri, source);
769
- this.appendToParams(request.queryParameters, source);
770
- this.appendToParams(request.headers, source);
771
- this.appendToParams(request.cookieParameters, source);
772
- }
773
- /**
774
- * Processes security information for the UI.
775
- */
776
- processSecurity() {
777
- const operation = this.operationValue;
778
- if (!operation) {
779
- return;
780
- }
781
- const { security } = operation;
782
- this.securityList = AmfSecurity.readSecurityList(security);
783
- const [first] = this.securityList;
784
- this.selectedSecurity = first ? first.security.id : undefined;
785
- }
786
- /**
787
- * Makes sure the correct mime type is selected for the current selection.
788
- */
789
- processPayload() {
790
- const operation = this.operationValue;
791
- if (!operation) {
792
- return;
793
- }
794
- const { request } = operation;
795
- if (!request) {
796
- return;
797
- }
798
- const { payloads = [] } = request;
799
- if (!payloads.length) {
800
- return;
801
- }
802
- let mime = this.mimeType;
803
- if (mime) {
804
- const has = payloads.find((p) => p.mediaType === mime);
805
- if (!has) {
806
- mime = undefined;
807
- }
808
- }
809
- if (!mime) {
810
- const first = payloads.find((p) => p.mediaType);
811
- if (first) {
812
- mime = first.mediaType;
813
- }
814
- }
815
- this.mimeType = mime;
816
- }
817
- /**
818
- * Appends a list of parameters to the list of rendered parameters
819
- */
820
- appendToParams(list, source) {
821
- const params = this.amfParameters.parametersValue;
822
- if (Array.isArray(list)) {
823
- list.forEach((param) => {
824
- params.push({
825
- paramId: param.id,
826
- parameter: param,
827
- binding: param.binding || '',
828
- source,
829
- schema: param.schema,
830
- schemaId: param.schema && param.schema.id ? param.schema.id : undefined,
831
- });
832
- });
833
- }
834
- }
835
- /**
836
- * A handler for the change event dispatched by the `raw` editor.
837
- */
838
- rawBodyChangeHandler(e) {
839
- const editor = e.target;
840
- const { value, dataset } = editor;
841
- const { payloadId } = dataset;
842
- if (!payloadId) {
843
- return;
844
- }
845
- cachePayloadValue(payloadId, value);
846
- }
847
- /**
848
- * A handler for the change event dispatched by the
849
- * `urlEncode` editor.
850
- * Updated the local value, model, and notifies the change.
851
- */
852
- modelBodyEditorChangeHandler(e) {
853
- const editor = e.target;
854
- const { value, model, dataset } = editor;
855
- const { payloadId } = dataset;
856
- if (!payloadId) {
857
- return;
858
- }
859
- cachePayloadValue(payloadId, value, model);
860
- }
861
- handleAuthSelect(e) {
862
- const { item } = e.detail;
863
- const { id } = item.dataset;
864
- if (!id) {
865
- return;
866
- }
867
- this.selectedSecurity = id;
868
- this.requestUpdate();
869
- }
870
- /**
871
- * Handles send button click.
872
- * Depending on authorization validity it either sends the
873
- * request or forces authorization and sends the request.
874
- */
875
- sendHandler() {
876
- this.execute();
877
- }
878
- /**
879
- * To be called when the user want to execute the request but
880
- * authorization is invalid (missing values).
881
- * This function brings the auth panel to front and displays error toast
882
- */
883
- async authAndExecute() {
884
- const { shadowRoot } = this;
885
- if (!shadowRoot) {
886
- throw new Error(`Invalid state. The element is not initialized.`);
887
- }
888
- const panel = shadowRoot.querySelector('api-authorization-editor');
889
- if (!panel) {
890
- throw new Error(`Invalid state. The authorization editor element was removed from the DOM.`);
891
- }
892
- await panel.authorize();
893
- const valid = panel.validate();
894
- if (valid) {
895
- this.execute();
896
- }
897
- }
898
- async proxyRequest(init) {
899
- let result;
900
- try {
901
- result = await CoreEvents.Transport.Core.request(init, this);
902
- }
903
- catch {
904
- // ...
905
- }
906
- return result;
907
- }
908
- /**
909
- * Proxies the request to the endpoint using the core libraries.
910
- */
911
- async execute() {
912
- if (this.loadingRequest) {
913
- this.abort();
914
- }
915
- Events.Telemetry.event(this, {
916
- category: EventCategory,
917
- action: 'request-execute',
918
- label: 'true',
919
- });
920
- const request = await this.serialize();
921
- const ctrl = new AbortController();
922
- this.requestController = ctrl;
923
- const init = {
924
- kind: HttpRequestKind,
925
- request: request.expects,
926
- authorization: request.authorization,
927
- signal: ctrl.signal,
928
- };
929
- this.loadingRequest = true;
930
- const result = await this.proxyRequest(init);
931
- this.loadingRequest = false;
932
- if (!result) {
933
- if (ctrl.signal.aborted) {
934
- return;
935
- }
936
- const message = `The request was not sent. Proxy not available.`;
937
- SnackNotifications.notify(message, { timeout: 2000, close: true });
938
- throw new Error(message);
939
- }
940
- this.dispatchEvent(new CustomEvent('response', { detail: result.result }));
941
- }
942
- /**
943
- * Uses the `requestController` to abort the ongoing HTTP request.
944
- */
945
- abort() {
946
- Events.Telemetry.event(this, {
947
- category: EventCategory,
948
- action: 'request-abort',
949
- label: 'true',
950
- });
951
- const { requestController } = this;
952
- if (!requestController) {
953
- return;
954
- }
955
- requestController.abort();
956
- this.requestController = undefined;
957
- this.loadingRequest = false;
958
- }
959
- /**
960
- * Event handler for abort click.
961
- */
962
- abortHandler() {
963
- this.abort();
964
- }
965
- /**
966
- * Serializes the state of the request editor.
967
- */
968
- async serialize() {
969
- const op = this.operationValue;
970
- if (!op) {
971
- throw new Error(`No API operation defined on the editor`);
972
- }
973
- const method = (op.method || 'get').toUpperCase();
974
- const params = [];
975
- const { amfParameters } = this;
976
- amfParameters.parametersValue.forEach((item) => {
977
- const { parameter, enabled } = item;
978
- if (enabled === false) {
979
- return;
980
- }
981
- params.push(parameter);
982
- });
983
- const report = AmfInputParser.reportRequestInputs(params, InputCache.getStore(this, true), amfParameters.nilValues);
984
- const serverUrl = computeEndpointUri({
985
- baseUri: this.effectiveBaseUri,
986
- server: this.server,
987
- endpoint: this.endpointValue,
988
- protocols: this.protocols,
989
- forceHttpProtocol: true,
990
- });
991
- let url = applyUrlVariables(serverUrl, report.path, true);
992
- url = applyUrlParameters(url, report.query, true);
993
- const headers = generateHeaders(report.header);
994
- const instance = new Request();
995
- const expects = instance.getExpects();
996
- expects.method = method;
997
- expects.url = url;
998
- expects.headers = headers;
999
- if (!['GET', 'HEAD'].includes(method)) {
1000
- let body;
1001
- const { payload } = this;
1002
- if (payload) {
1003
- const info = readCachePayloadValue(payload.id);
1004
- if (info && info.value) {
1005
- body = info.value;
1006
- }
1007
- }
1008
- if (body instanceof FormData) {
1009
- const parser = new Headers(expects.headers);
1010
- parser.delete('content-type');
1011
- expects.headers = parser.toString();
1012
- }
1013
- else if (payload) {
1014
- expects.headers = ensureContentType(expects.headers || '', payload.mediaType);
1015
- }
1016
- if (typeof body !== 'undefined') {
1017
- await expects.writePayload(body);
1018
- }
1019
- }
1020
- const result = instance.toJSON();
1021
- const authElement = this.shadowRoot?.querySelector('api-authorization-editor');
1022
- if (authElement) {
1023
- const auth = authElement.serialize();
1024
- result.authorization = auth;
1025
- }
1026
- return result;
1027
- }
1028
- /**
1029
- * Handler for the `oauth2-redirect-uri-changed` custom event. Changes
1030
- * the `redirectUri` property.
1031
- */
1032
- authRedirectChangedHandler(e) {
1033
- this.redirectUri = e.detail.value;
1034
- }
1035
- /**
1036
- * Handle event for populating annotated fields in the editor.
1037
- */
1038
- populateAnnotatedFieldsHandler(e) {
1039
- const populationInfoArray = e.detail.values;
1040
- const { parametersValue = [] } = this.amfParameters;
1041
- const allAnnotated = parametersValue.filter((param) => Array.isArray(param.parameter.customDomainProperties) && !!param.parameter.customDomainProperties.length);
1042
- let update = false;
1043
- populationInfoArray.forEach(({ annotationName, annotationValue, fieldValue }) => {
1044
- allAnnotated.forEach((item) => {
1045
- const { parameter, paramId } = item;
1046
- const hasAnnotation = (parameter.customDomainProperties || []).some((prop) => prop.name === annotationName && prop.extension.value === annotationValue);
1047
- if (!hasAnnotation) {
1048
- return;
1049
- }
1050
- InputCache.set(this, paramId, fieldValue, true);
1051
- update = true;
1052
- });
1053
- });
1054
- if (update) {
1055
- this.requestUpdate();
1056
- }
1057
- /* @TODO populate values for the security schema. */
1058
- }
1059
- /**
1060
- * Computes a current server value for selection made in the server selector.
1061
- */
1062
- updateServer() {
1063
- const { serverValue, serverType, servers = [] } = this;
1064
- if (serverType !== 'server') {
1065
- this.serverLocalValue = undefined;
1066
- }
1067
- else {
1068
- this.serverLocalValue = servers.find((server) => server.url === serverValue);
1069
- }
1070
- this.readUrlData();
1071
- this.computeUrlRegexp();
1072
- }
1073
- /**
1074
- * Handler for the change dispatched from the server selector.
1075
- */
1076
- serverCountHandler(e) {
1077
- const { value = 0 } = e.detail;
1078
- this.serversCount = value;
1079
- this.updateServer();
1080
- this.requestUpdate();
1081
- }
1082
- /**
1083
- * Handler for the change dispatched from the server selector.
1084
- */
1085
- serverHandler(e) {
1086
- const { value, type } = e.detail;
1087
- this.serverType = type;
1088
- this.serverValue = value;
1089
- this.updateServer();
1090
- this.computeUrlRegexp();
1091
- }
1092
- /**
1093
- * Computes a regexp for the base URI defined in the server to process URL input change
1094
- * and set the `.urlSearchRegexpValue` value.
1095
- * This should be computed only when a server and en endpoint change.
1096
- */
1097
- computeUrlRegexp() {
1098
- const { effectiveBaseUri } = this;
1099
- let value;
1100
- if (effectiveBaseUri) {
1101
- value = computeEndpointUri({
1102
- baseUri: effectiveBaseUri,
1103
- endpoint: this.endpointValue,
1104
- forceHttpProtocol: true,
1105
- });
1106
- }
1107
- else {
1108
- value = this.apiBaseUri;
1109
- }
1110
- if (!value) {
1111
- this.urlSearchRegexpValue = undefined;
1112
- }
1113
- else {
1114
- value = value.replace('?', '\\?');
1115
- value = value.replace(/(\.|\/)/g, '\\$1');
1116
- value = value.replace(/{[\w\\+]+}/g, "([a-zA-Z0-9\\$\\-_\\.~\\+!'\\(\\)\\*\\{\\}]+)");
1117
- value += '.*';
1118
- this.urlSearchRegexpValue = new RegExp(value);
1119
- }
1120
- }
1121
- handleMediaTypeSelect(e) {
1122
- const node = e.target;
1123
- const { value } = node;
1124
- this.mimeType = value;
1125
- const ctParam = this.amfParameters.parametersValue.find((p) => p.binding === 'header' && (p.parameter.name || '').toLocaleLowerCase() === 'content-type');
1126
- if (ctParam) {
1127
- InputCache.set(this, ctParam.paramId, value, true);
1128
- }
1129
- }
1130
- async notifyResizeAfterUpdate() {
1131
- await this.updateComplete;
1132
- this.dispatchEvent(new Event('resize', { bubbles: true, composed: true }));
1133
- }
1134
- /**
1135
- * Toggles optional parameter groups.
1136
- */
1137
- handleOptionalToggle(e) {
1138
- const node = e.target;
1139
- const { target } = node.dataset;
1140
- if (!target) {
1141
- return;
1142
- }
1143
- if (!Array.isArray(this.openedOptional)) {
1144
- this.openedOptional = [];
1145
- }
1146
- if (this.openedOptional.includes(target)) {
1147
- const index = this.openedOptional.indexOf(target);
1148
- this.openedOptional.splice(index, 1);
1149
- }
1150
- else {
1151
- this.openedOptional.push(target);
1152
- }
1153
- this.requestUpdate();
1154
- this.notifyResizeAfterUpdate();
1155
- }
1156
- /**
1157
- * When enabled it adds a new custom parameter to the request section defined in the source button.
1158
- */
1159
- addCustomHandler(e) {
1160
- const button = e.currentTarget;
1161
- const { type } = button.dataset;
1162
- if (!['query', 'header'].includes(type)) {
1163
- return;
1164
- }
1165
- const id = nanoid();
1166
- const param = {
1167
- binding: type || '',
1168
- source: 'custom',
1169
- paramId: id,
1170
- parameter: {
1171
- id,
1172
- required: true,
1173
- binding: type,
1174
- name: '',
1175
- examples: [],
1176
- payloads: [],
1177
- customDomainProperties: [],
1178
- types: [],
1179
- },
1180
- };
1181
- this.amfParameters.parametersValue.push(param);
1182
- this.requestUpdate();
1183
- }
1184
- /**
1185
- * Updates path/query model from user input.
1186
- *
1187
- * @param e The change event
1188
- */
1189
- handleUrlEditorChange(e) {
1190
- const { value } = e.target;
1191
- let matches;
1192
- const uriRegexp = this.urlSearchRegexpValue;
1193
- // parameters must be in order from server to the endpoint
1194
- const pathParams = this.getOrderedPathParams();
1195
- let changed = false;
1196
- if (pathParams.length && uriRegexp) {
1197
- matches = value.match(uriRegexp);
1198
- if (matches) {
1199
- matches.shift();
1200
- changed = this.applyUriValues(matches, pathParams);
1201
- }
1202
- }
1203
- const matchesNew = value.match(/[^&?]*?=[^&?]*/g);
1204
- if (matchesNew) {
1205
- const params = {};
1206
- matchesNew.forEach((item) => applyQueryParamStringToObject(item, params));
1207
- const qpChanged = this.applyQueryParamsValues(params);
1208
- if (!changed) {
1209
- changed = qpChanged;
1210
- }
1211
- }
1212
- this.url = value;
1213
- this.validateUrl();
1214
- this.notifyChange();
1215
- this.requestUpdate();
1216
- }
1217
- /**
1218
- * Sets the value of `.urlInvalidValue` and therefore `urlInvalid` properties.
1219
- */
1220
- validateUrl() {
1221
- this.urlInvalidValue = !this.readUrlValidity();
1222
- this.requestUpdate();
1223
- }
1224
- /**
1225
- * Validates the current URL value.
1226
- * @returns True when the current URL is a valid URL.
1227
- */
1228
- readUrlValidity() {
1229
- const { url } = this;
1230
- if (!url) {
1231
- return false;
1232
- }
1233
- if (typeof url !== 'string') {
1234
- return false;
1235
- }
1236
- if (url.indexOf('{') !== -1 && url.indexOf('}') !== -1) {
1237
- return false;
1238
- }
1239
- const { shadowRoot } = this;
1240
- if (!shadowRoot) {
1241
- return true;
1242
- }
1243
- const inputElement = shadowRoot.querySelector('.url-input');
1244
- if (inputElement) {
1245
- return inputElement.reportValidity();
1246
- }
1247
- return true;
1248
- }
1249
- /**
1250
- * Reads the ordered list of path parameters from the server and the endpoint.
1251
- */
1252
- getOrderedPathParams() {
1253
- const result = [];
1254
- const { effectiveBaseUri } = this;
1255
- let url;
1256
- if (effectiveBaseUri) {
1257
- url = computeEndpointUri({
1258
- baseUri: effectiveBaseUri,
1259
- endpoint: this.endpointValue,
1260
- forceHttpProtocol: true,
1261
- });
1262
- }
1263
- else {
1264
- url = this.apiBaseUri;
1265
- }
1266
- if (!url) {
1267
- return result;
1268
- }
1269
- const matches = url.match(/{[\w\\+]+}/g);
1270
- if (!matches) {
1271
- return result;
1272
- }
1273
- const all = this.amfParameters.parametersValue;
1274
- matches.forEach((tpl) => {
1275
- const name = tpl.substr(1, tpl.length - 2);
1276
- const param = all.find((p) => p.binding === 'path' && p.parameter.name === name);
1277
- if (param) {
1278
- result.push(param);
1279
- }
1280
- });
1281
- return result;
1282
- }
1283
- /**
1284
- * Applies values from the `values` array to the uri parameters which names are in the `names` array.
1285
- * Both lists are ordered list of parameters.
1286
- *
1287
- * @param values Values for the parameters
1288
- * @param params List of path parameters.
1289
- * @returns True when any parameter was changed.
1290
- */
1291
- applyUriValues(values, params) {
1292
- let changed = false;
1293
- for (let i = 0, len = params.length; i < len; i++) {
1294
- const value = values[i];
1295
- if (value && value[0] === '{') {
1296
- // This is still a variable
1297
- continue;
1298
- }
1299
- const param = params[i];
1300
- if (InputCache.get(this, param.paramId, true) !== value) {
1301
- InputCache.set(this, param.paramId, value, true);
1302
- changed = true;
1303
- }
1304
- }
1305
- return changed;
1306
- }
1307
- /**
1308
- * Applies query parameters values to the render list.
1309
- *
1310
- * @returns True when any parameter was changed.
1311
- */
1312
- applyQueryParamsValues(map) {
1313
- if (!map) {
1314
- return false;
1315
- }
1316
- const keys = Object.keys(map);
1317
- let changed = false;
1318
- keys.forEach((key) => {
1319
- const value = map[key];
1320
- if (value && value[0] === '{') {
1321
- // This is still a variable
1322
- return;
1323
- }
1324
- const param = this.amfParameters.parametersValue.find((p) => p.binding === 'query' && p.parameter.name === key);
1325
- if (param) {
1326
- if (InputCache.get(this, param.paramId, true) !== value) {
1327
- InputCache.set(this, param.paramId, value, true);
1328
- changed = true;
1329
- }
1330
- }
1331
- });
1332
- return changed;
1333
- }
1334
- internalSendHandler(e) {
1335
- e.stopPropagation();
1336
- this.execute();
1337
- }
1338
- /**
1339
- * A handler for the change event on the authorization panel.
1340
- */
1341
- authorizationChangeHandler() {
1342
- this.notifyChange();
1343
- }
1344
- render() {
1345
- return html ` <div class="content">
1346
- ${this.serverSelectorTemplate()} ${this.urlLabelTemplate()} ${this.renderUrlEditor()} ${this.parametersTemplate()}
1347
- ${this.headersTemplate()} ${this.mediaTypeSelectorTemplate()} ${this.bodyTemplate()}
1348
- ${this.authorizationTemplate()} ${this.formActionsTemplate()}
1349
- </div>`;
1350
- }
1351
- /**
1352
- * @return Template for the request URL label.
1353
- */
1354
- urlLabelTemplate() {
1355
- const { urlLabel, url } = this;
1356
- if (!urlLabel) {
1357
- return nothing;
1358
- }
1359
- return html `<div class="url-label text-selectable" title="Current request URL">${url}</div>`;
1360
- }
1361
- authorizationTemplate() {
1362
- const { security } = this;
1363
- if (!security) {
1364
- return nothing;
1365
- }
1366
- const { selectedSecurity, redirectUri, credentialsSource } = this;
1367
- const rendered = security.find((i) => i.security.id === selectedSecurity);
1368
- if (!rendered) {
1369
- return nothing;
1370
- }
1371
- return html `
1372
- <section class="authorization params-section">
1373
- <div class="section-title"><span class="label">Credentials</span></div>
1374
- ${security.length > 1 ? this.authorizationSelectorTemplate(security, rendered) : ''}
1375
- <api-authorization-editor
1376
- .security="${rendered.security}"
1377
- .oauth2RedirectUri="${redirectUri}"
1378
- .credentialsSource="${credentialsSource}"
1379
- @change="${this.authorizationChangeHandler}"
1380
- ></api-authorization-editor>
1381
- </section>
1382
- `;
1383
- }
1384
- /**
1385
- * @returns The template for the security drop down selector.
1386
- */
1387
- authorizationSelectorTemplate(security, selected) {
1388
- const finalValue = selected.labels.join(', ');
1389
- return html `
1390
- <ui-dropdown-list
1391
- class="authorization-selector"
1392
- closeOnOutsideClick
1393
- matchTriggerWidth
1394
- @select="${this.handleAuthSelect}"
1395
- >
1396
- <ui-text-field
1397
- class="dropdown-trigger"
1398
- label="Authorization method"
1399
- readOnly
1400
- name="authorization"
1401
- .value="${finalValue || ''}"
1402
- @select="${cancelEvent}"
1403
- >
1404
- <ui-icon icon="arrowDropDown" role="presentation" slot="suffix"></ui-icon>
1405
- </ui-text-field>
1406
- <ui-list slot="dropdown" role="menu" selector="[data-value]" selectActive>
1407
- ${security.map((item) => this.authorizationSelectorItemTemplate(item))}
1408
- </ui-list>
1409
- </ui-dropdown-list>
1410
- `;
1411
- }
1412
- /**
1413
- * @returns The template for the security drop down selector list item.
1414
- */
1415
- authorizationSelectorItemTemplate(info) {
1416
- const { labels, types, security } = info;
1417
- const label = labels.join(', ');
1418
- const type = types.join(', ');
1419
- const single = !type;
1420
- return html `
1421
- <ui-list-item role="menuitem" lines="${single ? 'one' : 'two'}" data-id="${security.id}">
1422
- ${label} ${!single ? html `<div slot="supporting-text">${type}</div>` : ''}
1423
- </ui-list-item>
1424
- `;
1425
- }
1426
- formActionsTemplate() {
1427
- const loading = this.loadingRequest;
1428
- return html ` <div class="action-bar">
1429
- ${loading ? this.abortButtonTemplate() : this.sendButtonTemplate()}
1430
- <ui-progress ?hidden="${!loading}" indeterminate class="request-progress"></ui-progress>
1431
- </div>`;
1432
- }
1433
- /**
1434
- * Creates a template for the "abort" button.
1435
- */
1436
- abortButtonTemplate() {
1437
- return html ` <ui-filled-tonal-button class="send-button abort" @click="${this.abortHandler}"
1438
- >Abort</ui-filled-tonal-button
1439
- >`;
1440
- }
1441
- /**
1442
- * Creates a template for the "send" or "auth and send" button.
1443
- */
1444
- sendButtonTemplate() {
1445
- return html ` <ui-filled-tonal-button class="send-button" @click="${this.sendHandler}">Send</ui-filled-tonal-button>`;
1446
- }
1447
- /**
1448
- * @return A template for the server selector
1449
- */
1450
- serverSelectorTemplate() {
1451
- const { serverType, serverValue, allowCustomBaseUri, serverSelectorHidden, domainId } = this;
1452
- return html ` <api-server-picker
1453
- ?hidden="${serverSelectorHidden}"
1454
- ?custom="${allowCustomBaseUri}"
1455
- .value="${serverValue}"
1456
- .type="${serverType}"
1457
- .domainId="${domainId}"
1458
- domainType="operation"
1459
- auto
1460
- @serverscountchanged="${this.serverCountHandler}"
1461
- @apiserverchanged="${this.serverHandler}"
1462
- >
1463
- <slot name="custom-base-uri" slot="custom-base-uri"></slot>
1464
- </api-server-picker>`;
1465
- }
1466
- /**
1467
- * @return
1468
- */
1469
- parametersTemplate() {
1470
- const qp = [];
1471
- const path = [];
1472
- // NOTE, the "* Required field" has been added after the a11y audit of API Console.
1473
- let hasRequired = false;
1474
- const { amfParameters } = this;
1475
- amfParameters.parametersValue.forEach((item) => {
1476
- if (!hasRequired && item.parameter && item.parameter.required) {
1477
- hasRequired = true;
1478
- }
1479
- if (item.binding === 'query') {
1480
- qp.push(item);
1481
- }
1482
- else if (item.binding === 'path') {
1483
- path.push(item);
1484
- }
1485
- });
1486
- const { allowCustom, openedOptional = [] } = this;
1487
- if (!allowCustom && !qp.length && !path.length) {
1488
- return nothing;
1489
- }
1490
- const pathOptions = Object.freeze({ required: true });
1491
- const queryClasses = {
1492
- 'query-params': true,
1493
- 'hide-optional': !!this.allowHideOptional && !openedOptional.includes('query'),
1494
- };
1495
- return html `
1496
- <section class="params-section parameter">
1497
- <div class="section-title"><span class="label">Parameters</span></div>
1498
- ${hasRequired ? html `<p class="required-field">* Required field</p>` : ''}
1499
- <div class="path-params">${path.map((param) => amfParameters.parameterTemplate(param, pathOptions))}</div>
1500
- <div class="${classMap(queryClasses)}">
1501
- ${this.renderToggleOptional('query', qp)} ${qp.map((param) => amfParameters.parameterTemplate(param))}
1502
- ${allowCustom ? this.addCustomButtonTemplate('query') : ''}
1503
- </div>
1504
- </section>
1505
- `;
1506
- }
1507
- headersTemplate() {
1508
- const headers = [];
1509
- // NOTE, the "* Required field" has been added after the a11y audit of API Console.
1510
- let hasRequired = false;
1511
- const { amfParameters } = this;
1512
- amfParameters.parametersValue.forEach((item) => {
1513
- if (item.binding === 'header') {
1514
- headers.push(item);
1515
- if (!hasRequired && item.parameter && item.parameter.required) {
1516
- hasRequired = true;
1517
- }
1518
- }
1519
- });
1520
- const { allowCustom, openedOptional = [] } = this;
1521
- if (!allowCustom && !headers.length) {
1522
- return nothing;
1523
- }
1524
- const classes = {
1525
- 'header-params': true,
1526
- 'hide-optional': !!this.allowHideOptional && !openedOptional.includes('header'),
1527
- };
1528
- return html `
1529
- <section class="params-section header" aria-label="HTTP headers">
1530
- <div class="section-title"><span class="label">Headers</span></div>
1531
- ${hasRequired ? html `<p class="required-field">* Required field</p>` : ''}
1532
- ${this.renderToggleOptional('header', headers)}
1533
- <div class="${classMap(classes)}">
1534
- ${headers.map((param) => amfParameters.parameterTemplate(param))}
1535
- ${allowCustom ? this.addCustomButtonTemplate('header') : ''}
1536
- </div>
1537
- </section>
1538
- `;
1539
- }
1540
- /**
1541
- * @returns The template for the add custom parameter button
1542
- */
1543
- addCustomButtonTemplate(type) {
1544
- return html `
1545
- <div class="add-custom-button">
1546
- <ui-outlined-button
1547
- data-type="${type}"
1548
- title="Adds a new custom parameter to the request"
1549
- @click="${this.addCustomHandler}"
1550
- >
1551
- <ui-icon icon="add" role="presentation"></ui-icon>
1552
- Add custom
1553
- </ui-outlined-button>
1554
- </div>
1555
- `;
1556
- }
1557
- /**
1558
- * @return The template for the payload's mime type selector.
1559
- */
1560
- mediaTypeSelectorTemplate() {
1561
- const { payloads, mimeType } = this;
1562
- if (!payloads || payloads.length === 1) {
1563
- return nothing;
1564
- }
1565
- const mimes = payloads.map((p) => p.mediaType);
1566
- let index = mimes.indexOf(mimeType);
1567
- if (index === -1) {
1568
- index = 0;
1569
- }
1570
- return html `
1571
- <div class="payload-mime-selector">
1572
- <span id="body-mime" class="label-large">Body media type</span>
1573
- ${mimes.map((item) => html `
1574
- <label class="label-large">
1575
- <ui-radio
1576
- name="mediaTypeValue"
1577
- value="${item || ''}"
1578
- .checked="${item === mimeType}"
1579
- @change="${this.handleMediaTypeSelect}"
1580
- ></ui-radio>
1581
- ${item}
1582
- </label>
1583
- `)}
1584
- </div>
1585
- `;
1586
- }
1587
- /**
1588
- * @returns The template for the body editor.
1589
- */
1590
- bodyTemplate() {
1591
- const { payload } = this;
1592
- if (!payload) {
1593
- return nothing;
1594
- }
1595
- const info = getPayloadValue(payload);
1596
- const mimeType = payload.mediaType;
1597
- let content;
1598
- if (mimeType === 'application/x-www-form-urlencoded') {
1599
- content = this.formDataEditorTemplate(info, payload.id);
1600
- }
1601
- else if (mimeType === 'multipart/form-data') {
1602
- content = this.multipartEditorTemplate(info, payload.id);
1603
- }
1604
- else {
1605
- content = this.rawEditorTemplate(info, payload.id, mimeType);
1606
- }
1607
- return html `
1608
- <section class="params-section body" aria-label="HTTP body">
1609
- <div class="section-title"><span class="label">Body</span></div>
1610
- ${content}
1611
- </section>
1612
- `;
1613
- }
1614
- /**
1615
- * @returns The template for the editor that specializes in the URL encoded form data
1616
- */
1617
- formDataEditorTemplate(info, id) {
1618
- const editorModel = info.model;
1619
- const effectiveValue = Array.isArray(editorModel) && editorModel.length ? undefined : info.value;
1620
- return html `
1621
- <http-body-urlencoded-editor
1622
- class="body-editor"
1623
- autoEncode
1624
- .value="${ifProperty(effectiveValue)}"
1625
- .model="${ifProperty(editorModel)}"
1626
- data-payload-id="${id}"
1627
- @change="${this.modelBodyEditorChangeHandler}"
1628
- ></http-body-urlencoded-editor>
1629
- `;
1630
- }
1631
- /**
1632
- * @returns The template for the editor that specializes in the multipart form data
1633
- */
1634
- multipartEditorTemplate(info, id) {
1635
- const editorModel = info.model;
1636
- const effectiveValue = Array.isArray(editorModel) && editorModel.length ? undefined : info.value;
1637
- return html `
1638
- <http-body-multipart-editor
1639
- class="body-editor"
1640
- .value="${ifProperty(effectiveValue)}"
1641
- .model="${ifProperty(editorModel)}"
1642
- data-payload-id="${id}"
1643
- @change="${this.modelBodyEditorChangeHandler}"
1644
- ></http-body-multipart-editor>
1645
- `;
1646
- }
1647
- /**
1648
- * @returns The template for the editor that specializes in any text data
1649
- */
1650
- rawEditorTemplate(info, id, mimeType) {
1651
- let schemas;
1652
- if (Array.isArray(info.schemas) && info.schemas.length) {
1653
- schemas = info.schemas;
1654
- }
1655
- return html `
1656
- <http-body-text-editor
1657
- class="body-editor"
1658
- .value="${info.value}"
1659
- .contentType="${mimeType}"
1660
- .schemas="${ifProperty(schemas)}"
1661
- data-payload-id="${id}"
1662
- @change="${this.rawBodyChangeHandler}"
1663
- ></http-body-text-editor>
1664
- `;
1665
- }
1666
- /**
1667
- * @param target The name of the target parameter group.
1668
- * @param params The list of parameters. When all are required or empty it won't render then button.
1669
- * @returns Template for the switch button to toggle visibility of the optional items.
1670
- */
1671
- renderToggleOptional(target, params) {
1672
- const { openedOptional = [], allowHideOptional } = this;
1673
- if (!allowHideOptional || !params || !params.length) {
1674
- return nothing;
1675
- }
1676
- const optional = params.some((p) => !!p.parameter && !p.parameter.required);
1677
- if (!optional) {
1678
- return nothing;
1679
- }
1680
- const checked = openedOptional.includes(target);
1681
- return html `
1682
- <div class="optional-checkbox">
1683
- <label class="label-large">
1684
- <ui-switch
1685
- class="toggle-optional-switch"
1686
- .checked="${checked}"
1687
- @change="${this.handleOptionalToggle}"
1688
- title="Toggles optional parameters"
1689
- data-target="${target}"
1690
- name="toggleOptional"
1691
- aria-label="Toggle optional parameters"
1692
- ></ui-switch>
1693
- Show optional parameters
1694
- </label>
1695
- </div>
1696
- `;
1697
- }
1698
- /**
1699
- * @returns A template for the URL editor.
1700
- */
1701
- renderUrlEditor() {
1702
- const { urlEditor, url, urlInvalid } = this;
1703
- if (!urlEditor) {
1704
- return nothing;
1705
- }
1706
- return html `
1707
- <div class="url-input-wrapper">
1708
- <ui-text-field
1709
- name="url"
1710
- type="url"
1711
- class="url-input"
1712
- ?invalid="${urlInvalid}"
1713
- required
1714
- invalidText="The URL is invalid"
1715
- .value="${url || ''}"
1716
- @change="${this.handleUrlEditorChange}"
1717
- @blur="${this.validateUrl}"
1718
- label="Request URL"
1719
- ></ui-text-field>
1720
- </div>
1721
- `;
1722
- }
1723
- };
1724
- })();
1725
- /**
1726
- * @fires amfstoreopget - Dispatched when querying for an operation data
1727
- * @fires amfstoreopgetparent - Dispatched when querying for an operation data for an endpoint
1728
- * @fires amfstoreendpointget - Dispatched when querying for an endpoint data
1729
- * @fires apistoreserverquery - Dispatched when querying for API servers
1730
- * @fires amfstoreapiprotocols - Dispatched when querying for API protocols
1731
- * @fires amfstoreapiversion - Dispatched when querying for API version
1732
- * @fires response - Dispatched when the response was received by the editor.
1733
- */
1734
- export default ApiRequestEditor;
1735
- //# sourceMappingURL=ApiRequestEditor.element.js.map