@api-client/core 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/LICENSE.md +69 -0
  2. package/amf-models/dialects/ApiProjectVocabulary.yaml +233 -0
  3. package/amf-models/dialects/Environment.yaml +38 -0
  4. package/amf-models/dialects/HttpProject.yaml +55 -0
  5. package/amf-models/dialects/License.yaml +31 -0
  6. package/amf-models/dialects/ProjectFolder.yaml +43 -0
  7. package/amf-models/dialects/ProjectItem.yaml +22 -0
  8. package/amf-models/dialects/ProjectRequest.yaml +23 -0
  9. package/amf-models/dialects/ProjectSchema.yaml +36 -0
  10. package/amf-models/dialects/Property.yaml +43 -0
  11. package/amf-models/dialects/Provider.yaml +32 -0
  12. package/amf-models/dialects/Server.yaml +31 -0
  13. package/amf-models/dialects/Thing.yaml +28 -0
  14. package/build/browser.d.ts +79 -0
  15. package/build/browser.js +92 -0
  16. package/build/browser.js.map +1 -0
  17. package/build/index.d.ts +89 -0
  18. package/build/index.js +108 -0
  19. package/build/index.js.map +1 -0
  20. package/build/src/data/DataReader.d.ts +10 -0
  21. package/build/src/data/DataReader.js +4 -0
  22. package/build/src/data/DataReader.js.map +1 -0
  23. package/build/src/data/DataUtils.d.ts +40 -0
  24. package/build/src/data/DataUtils.js +106 -0
  25. package/build/src/data/DataUtils.js.map +1 -0
  26. package/build/src/data/JmesparthReader.d.ts +12 -0
  27. package/build/src/data/JmesparthReader.js +27 -0
  28. package/build/src/data/JmesparthReader.js.map +1 -0
  29. package/build/src/data/Json2Xml.d.ts +84 -0
  30. package/build/src/data/Json2Xml.js +185 -0
  31. package/build/src/data/Json2Xml.js.map +1 -0
  32. package/build/src/data/JsonReader.d.ts +8 -0
  33. package/build/src/data/JsonReader.js +40 -0
  34. package/build/src/data/JsonReader.js.map +1 -0
  35. package/build/src/data/PayloadPointer.d.ts +19 -0
  36. package/build/src/data/PayloadPointer.js +46 -0
  37. package/build/src/data/PayloadPointer.js.map +1 -0
  38. package/build/src/data/RequestDataExtractor.d.ts +44 -0
  39. package/build/src/data/RequestDataExtractor.js +126 -0
  40. package/build/src/data/RequestDataExtractor.js.map +1 -0
  41. package/build/src/data/UrlEncodedReader.d.ts +11 -0
  42. package/build/src/data/UrlEncodedReader.js +20 -0
  43. package/build/src/data/UrlEncodedReader.js.map +1 -0
  44. package/build/src/data/XmlReader.d.ts +14 -0
  45. package/build/src/data/XmlReader.js +97 -0
  46. package/build/src/data/XmlReader.js.map +1 -0
  47. package/build/src/events/BaseEvents.d.ts +208 -0
  48. package/build/src/events/BaseEvents.js +117 -0
  49. package/build/src/events/BaseEvents.js.map +1 -0
  50. package/build/src/events/CustomEvent.d.ts +2 -0
  51. package/build/src/events/CustomEvent.js +24 -0
  52. package/build/src/events/CustomEvent.js.map +1 -0
  53. package/build/src/events/EventTypes.d.ts +91 -0
  54. package/build/src/events/EventTypes.js +19 -0
  55. package/build/src/events/EventTypes.js.map +1 -0
  56. package/build/src/events/Events.d.ts +20 -0
  57. package/build/src/events/Events.js +19 -0
  58. package/build/src/events/Events.js.map +1 -0
  59. package/build/src/events/authorization/AuthorizationEventTypes.d.ts +22 -0
  60. package/build/src/events/authorization/AuthorizationEventTypes.js +23 -0
  61. package/build/src/events/authorization/AuthorizationEventTypes.js.map +1 -0
  62. package/build/src/events/authorization/AuthorizationEvents.d.ts +34 -0
  63. package/build/src/events/authorization/AuthorizationEvents.js +55 -0
  64. package/build/src/events/authorization/AuthorizationEvents.js.map +1 -0
  65. package/build/src/events/cookies/CookieEventTypes.d.ts +13 -0
  66. package/build/src/events/cookies/CookieEventTypes.js +14 -0
  67. package/build/src/events/cookies/CookieEventTypes.js.map +1 -0
  68. package/build/src/events/cookies/CookieEvents.d.ts +90 -0
  69. package/build/src/events/cookies/CookieEvents.js +126 -0
  70. package/build/src/events/cookies/CookieEvents.js.map +1 -0
  71. package/build/src/events/encryption/EncryptionEventTypes.d.ts +4 -0
  72. package/build/src/events/encryption/EncryptionEventTypes.js +5 -0
  73. package/build/src/events/encryption/EncryptionEventTypes.js.map +1 -0
  74. package/build/src/events/encryption/EncryptionEvents.d.ts +36 -0
  75. package/build/src/events/encryption/EncryptionEvents.js +35 -0
  76. package/build/src/events/encryption/EncryptionEvents.js.map +1 -0
  77. package/build/src/events/environment/EnvironmentEventTypes.d.ts +3 -0
  78. package/build/src/events/environment/EnvironmentEventTypes.js +4 -0
  79. package/build/src/events/environment/EnvironmentEventTypes.js.map +1 -0
  80. package/build/src/events/environment/EnvironmentEvents.d.ts +15 -0
  81. package/build/src/events/environment/EnvironmentEvents.js +19 -0
  82. package/build/src/events/environment/EnvironmentEvents.js.map +1 -0
  83. package/build/src/events/models/ClientCertificateEvents.d.ts +56 -0
  84. package/build/src/events/models/ClientCertificateEvents.js +80 -0
  85. package/build/src/events/models/ClientCertificateEvents.js.map +1 -0
  86. package/build/src/events/models/ModelEventTypes.d.ts +47 -0
  87. package/build/src/events/models/ModelEventTypes.js +48 -0
  88. package/build/src/events/models/ModelEventTypes.js.map +1 -0
  89. package/build/src/events/models/ModelEvents.d.ts +6 -0
  90. package/build/src/events/models/ModelEvents.js +7 -0
  91. package/build/src/events/models/ModelEvents.js.map +1 -0
  92. package/build/src/events/models/ProjectEvents.d.ts +221 -0
  93. package/build/src/events/models/ProjectEvents.js +254 -0
  94. package/build/src/events/models/ProjectEvents.js.map +1 -0
  95. package/build/src/events/process/ProcessEventTypes.d.ts +5 -0
  96. package/build/src/events/process/ProcessEventTypes.js +6 -0
  97. package/build/src/events/process/ProcessEventTypes.js.map +1 -0
  98. package/build/src/events/process/ProcessEvents.d.ts +42 -0
  99. package/build/src/events/process/ProcessEvents.js +59 -0
  100. package/build/src/events/process/ProcessEvents.js.map +1 -0
  101. package/build/src/events/reporting/ReportingEventTypes.d.ts +3 -0
  102. package/build/src/events/reporting/ReportingEventTypes.js +4 -0
  103. package/build/src/events/reporting/ReportingEventTypes.js.map +1 -0
  104. package/build/src/events/reporting/ReportingEvents.d.ts +16 -0
  105. package/build/src/events/reporting/ReportingEvents.js +22 -0
  106. package/build/src/events/reporting/ReportingEvents.js.map +1 -0
  107. package/build/src/events/telemetry/TelemetryEventTypes.d.ts +10 -0
  108. package/build/src/events/telemetry/TelemetryEventTypes.js +11 -0
  109. package/build/src/events/telemetry/TelemetryEventTypes.js.map +1 -0
  110. package/build/src/events/telemetry/TelemetryEvents.d.ts +89 -0
  111. package/build/src/events/telemetry/TelemetryEvents.js +109 -0
  112. package/build/src/events/telemetry/TelemetryEvents.js.map +1 -0
  113. package/build/src/lib/cookies/Cookie.d.ts +123 -0
  114. package/build/src/lib/cookies/Cookie.js +257 -0
  115. package/build/src/lib/cookies/Cookie.js.map +1 -0
  116. package/build/src/lib/cookies/Cookies.d.ts +90 -0
  117. package/build/src/lib/cookies/Cookies.js +310 -0
  118. package/build/src/lib/cookies/Cookies.js.map +1 -0
  119. package/build/src/lib/cookies/Utils.d.ts +47 -0
  120. package/build/src/lib/cookies/Utils.js +163 -0
  121. package/build/src/lib/cookies/Utils.js.map +1 -0
  122. package/build/src/lib/headers/Headers.d.ts +67 -0
  123. package/build/src/lib/headers/Headers.js +202 -0
  124. package/build/src/lib/headers/Headers.js.map +1 -0
  125. package/build/src/lib/logging/DefaultLogger.d.ts +8 -0
  126. package/build/src/lib/logging/DefaultLogger.js +19 -0
  127. package/build/src/lib/logging/DefaultLogger.js.map +1 -0
  128. package/build/src/lib/logging/DummyLogger.d.ts +8 -0
  129. package/build/src/lib/logging/DummyLogger.js +21 -0
  130. package/build/src/lib/logging/DummyLogger.js.map +1 -0
  131. package/build/src/lib/logging/Logger.d.ts +14 -0
  132. package/build/src/lib/logging/Logger.js +3 -0
  133. package/build/src/lib/logging/Logger.js.map +1 -0
  134. package/build/src/lib/transformers/PayloadSerializer.d.ts +145 -0
  135. package/build/src/lib/transformers/PayloadSerializer.js +264 -0
  136. package/build/src/lib/transformers/PayloadSerializer.js.map +1 -0
  137. package/build/src/lib/transformers/Utils.d.ts +7 -0
  138. package/build/src/lib/transformers/Utils.js +19 -0
  139. package/build/src/lib/transformers/Utils.js.map +1 -0
  140. package/build/src/lib/uuid.d.ts +8 -0
  141. package/build/src/lib/uuid.js +38 -0
  142. package/build/src/lib/uuid.js.map +1 -0
  143. package/build/src/mocking/LegacyInterfaces.d.ts +47 -0
  144. package/build/src/mocking/LegacyInterfaces.js +2 -0
  145. package/build/src/mocking/LegacyInterfaces.js.map +1 -0
  146. package/build/src/mocking/LegacyMock.d.ts +24 -0
  147. package/build/src/mocking/LegacyMock.js +34 -0
  148. package/build/src/mocking/LegacyMock.js.map +1 -0
  149. package/build/src/mocking/legacy/Authorization.d.ts +19 -0
  150. package/build/src/mocking/legacy/Authorization.js +34 -0
  151. package/build/src/mocking/legacy/Authorization.js.map +1 -0
  152. package/build/src/mocking/legacy/Certificates.d.ts +54 -0
  153. package/build/src/mocking/legacy/Certificates.js +125 -0
  154. package/build/src/mocking/legacy/Certificates.js.map +1 -0
  155. package/build/src/mocking/legacy/Cookies.d.ts +19 -0
  156. package/build/src/mocking/legacy/Cookies.js +46 -0
  157. package/build/src/mocking/legacy/Cookies.js.map +1 -0
  158. package/build/src/mocking/legacy/HostRules.d.ts +20 -0
  159. package/build/src/mocking/legacy/HostRules.js +38 -0
  160. package/build/src/mocking/legacy/HostRules.js.map +1 -0
  161. package/build/src/mocking/legacy/Http.d.ts +78 -0
  162. package/build/src/mocking/legacy/Http.js +192 -0
  163. package/build/src/mocking/legacy/Http.js.map +1 -0
  164. package/build/src/mocking/legacy/HttpResponse.d.ts +22 -0
  165. package/build/src/mocking/legacy/HttpResponse.js +98 -0
  166. package/build/src/mocking/legacy/HttpResponse.js.map +1 -0
  167. package/build/src/mocking/legacy/RestApi.d.ts +13 -0
  168. package/build/src/mocking/legacy/RestApi.js +61 -0
  169. package/build/src/mocking/legacy/RestApi.js.map +1 -0
  170. package/build/src/mocking/legacy/Urls.d.ts +19 -0
  171. package/build/src/mocking/legacy/Urls.js +39 -0
  172. package/build/src/mocking/legacy/Urls.js.map +1 -0
  173. package/build/src/mocking/legacy/Variables.d.ts +17 -0
  174. package/build/src/mocking/legacy/Variables.js +50 -0
  175. package/build/src/mocking/legacy/Variables.js.map +1 -0
  176. package/build/src/models/ArcResponse.d.ts +63 -0
  177. package/build/src/models/ArcResponse.js +142 -0
  178. package/build/src/models/ArcResponse.js.map +1 -0
  179. package/build/src/models/Authorization.d.ts +452 -0
  180. package/build/src/models/Authorization.js +2 -0
  181. package/build/src/models/Authorization.js.map +1 -0
  182. package/build/src/models/AuthorizationData.d.ts +27 -0
  183. package/build/src/models/AuthorizationData.js +52 -0
  184. package/build/src/models/AuthorizationData.js.map +1 -0
  185. package/build/src/models/Backend.d.ts +71 -0
  186. package/build/src/models/Backend.js +2 -0
  187. package/build/src/models/Backend.js.map +1 -0
  188. package/build/src/models/ClientCertificate.d.ts +65 -0
  189. package/build/src/models/ClientCertificate.js +2 -0
  190. package/build/src/models/ClientCertificate.js.map +1 -0
  191. package/build/src/models/Environment.d.ts +125 -0
  192. package/build/src/models/Environment.js +215 -0
  193. package/build/src/models/Environment.js.map +1 -0
  194. package/build/src/models/ErrorResponse.d.ts +35 -0
  195. package/build/src/models/ErrorResponse.js +88 -0
  196. package/build/src/models/ErrorResponse.js.map +1 -0
  197. package/build/src/models/HistoryIndex.d.ts +43 -0
  198. package/build/src/models/HistoryIndex.js +53 -0
  199. package/build/src/models/HistoryIndex.js.map +1 -0
  200. package/build/src/models/HistoryRequest.d.ts +13 -0
  201. package/build/src/models/HistoryRequest.js +25 -0
  202. package/build/src/models/HistoryRequest.js.map +1 -0
  203. package/build/src/models/HostRule.d.ts +78 -0
  204. package/build/src/models/HostRule.js +134 -0
  205. package/build/src/models/HostRule.js.map +1 -0
  206. package/build/src/models/HttpCookie.d.ts +123 -0
  207. package/build/src/models/HttpCookie.js +209 -0
  208. package/build/src/models/HttpCookie.js.map +1 -0
  209. package/build/src/models/HttpProject.d.ts +455 -0
  210. package/build/src/models/HttpProject.js +987 -0
  211. package/build/src/models/HttpProject.js.map +1 -0
  212. package/build/src/models/HttpProjectListItem.d.ts +23 -0
  213. package/build/src/models/HttpProjectListItem.js +2 -0
  214. package/build/src/models/HttpProjectListItem.js.map +1 -0
  215. package/build/src/models/HttpRequest.d.ts +69 -0
  216. package/build/src/models/HttpRequest.js +92 -0
  217. package/build/src/models/HttpRequest.js.map +1 -0
  218. package/build/src/models/HttpResponse.d.ts +59 -0
  219. package/build/src/models/HttpResponse.js +116 -0
  220. package/build/src/models/HttpResponse.js.map +1 -0
  221. package/build/src/models/License.d.ts +52 -0
  222. package/build/src/models/License.js +91 -0
  223. package/build/src/models/License.js.map +1 -0
  224. package/build/src/models/ProjectDefinitionProperty.d.ts +34 -0
  225. package/build/src/models/ProjectDefinitionProperty.js +2 -0
  226. package/build/src/models/ProjectDefinitionProperty.js.map +1 -0
  227. package/build/src/models/ProjectFolder.d.ts +213 -0
  228. package/build/src/models/ProjectFolder.js +314 -0
  229. package/build/src/models/ProjectFolder.js.map +1 -0
  230. package/build/src/models/ProjectItem.d.ts +59 -0
  231. package/build/src/models/ProjectItem.js +119 -0
  232. package/build/src/models/ProjectItem.js.map +1 -0
  233. package/build/src/models/ProjectParent.d.ts +58 -0
  234. package/build/src/models/ProjectParent.js +77 -0
  235. package/build/src/models/ProjectParent.js.map +1 -0
  236. package/build/src/models/ProjectRequest.d.ts +118 -0
  237. package/build/src/models/ProjectRequest.js +238 -0
  238. package/build/src/models/ProjectRequest.js.map +1 -0
  239. package/build/src/models/ProjectSchema.d.ts +105 -0
  240. package/build/src/models/ProjectSchema.js +156 -0
  241. package/build/src/models/ProjectSchema.js.map +1 -0
  242. package/build/src/models/Property.d.ts +130 -0
  243. package/build/src/models/Property.js +392 -0
  244. package/build/src/models/Property.js.map +1 -0
  245. package/build/src/models/Provider.d.ts +52 -0
  246. package/build/src/models/Provider.js +75 -0
  247. package/build/src/models/Provider.js.map +1 -0
  248. package/build/src/models/Request.d.ts +157 -0
  249. package/build/src/models/Request.js +398 -0
  250. package/build/src/models/Request.js.map +1 -0
  251. package/build/src/models/RequestActions.d.ts +67 -0
  252. package/build/src/models/RequestActions.js +116 -0
  253. package/build/src/models/RequestActions.js.map +1 -0
  254. package/build/src/models/RequestAuthorization.d.ts +59 -0
  255. package/build/src/models/RequestAuthorization.js +85 -0
  256. package/build/src/models/RequestAuthorization.js.map +1 -0
  257. package/build/src/models/RequestConfig.d.ts +161 -0
  258. package/build/src/models/RequestConfig.js +246 -0
  259. package/build/src/models/RequestConfig.js.map +1 -0
  260. package/build/src/models/RequestLog.d.ts +70 -0
  261. package/build/src/models/RequestLog.js +133 -0
  262. package/build/src/models/RequestLog.js.map +1 -0
  263. package/build/src/models/RequestTime.d.ts +36 -0
  264. package/build/src/models/RequestTime.js +91 -0
  265. package/build/src/models/RequestTime.js.map +1 -0
  266. package/build/src/models/RequestUiMeta.d.ts +169 -0
  267. package/build/src/models/RequestUiMeta.js +120 -0
  268. package/build/src/models/RequestUiMeta.js.map +1 -0
  269. package/build/src/models/RequestsSize.d.ts +34 -0
  270. package/build/src/models/RequestsSize.js +52 -0
  271. package/build/src/models/RequestsSize.js.map +1 -0
  272. package/build/src/models/ResponseAuthorization.d.ts +54 -0
  273. package/build/src/models/ResponseAuthorization.js +82 -0
  274. package/build/src/models/ResponseAuthorization.js.map +1 -0
  275. package/build/src/models/ResponseRedirect.d.ts +73 -0
  276. package/build/src/models/ResponseRedirect.js +126 -0
  277. package/build/src/models/ResponseRedirect.js.map +1 -0
  278. package/build/src/models/RevisionInfo.d.ts +36 -0
  279. package/build/src/models/RevisionInfo.js +2 -0
  280. package/build/src/models/RevisionInfo.js.map +1 -0
  281. package/build/src/models/SentRequest.d.ts +62 -0
  282. package/build/src/models/SentRequest.js +93 -0
  283. package/build/src/models/SentRequest.js.map +1 -0
  284. package/build/src/models/SerializablePayload.d.ts +30 -0
  285. package/build/src/models/SerializablePayload.js +66 -0
  286. package/build/src/models/SerializablePayload.js.map +1 -0
  287. package/build/src/models/Server.d.ts +76 -0
  288. package/build/src/models/Server.js +121 -0
  289. package/build/src/models/Server.js.map +1 -0
  290. package/build/src/models/Thing.d.ts +56 -0
  291. package/build/src/models/Thing.js +85 -0
  292. package/build/src/models/Thing.js.map +1 -0
  293. package/build/src/models/Url.d.ts +51 -0
  294. package/build/src/models/Url.js +71 -0
  295. package/build/src/models/Url.js.map +1 -0
  296. package/build/src/models/User.d.ts +110 -0
  297. package/build/src/models/User.js +2 -0
  298. package/build/src/models/User.js.map +1 -0
  299. package/build/src/models/WebApi.d.ts +119 -0
  300. package/build/src/models/WebApi.js +175 -0
  301. package/build/src/models/WebApi.js.map +1 -0
  302. package/build/src/models/WebApiIndex.d.ts +70 -0
  303. package/build/src/models/WebApiIndex.js +72 -0
  304. package/build/src/models/WebApiIndex.js.map +1 -0
  305. package/build/src/models/Workspace.d.ts +98 -0
  306. package/build/src/models/Workspace.js +139 -0
  307. package/build/src/models/Workspace.js.map +1 -0
  308. package/build/src/models/actions/Action.d.ts +75 -0
  309. package/build/src/models/actions/Action.js +188 -0
  310. package/build/src/models/actions/Action.js.map +1 -0
  311. package/build/src/models/actions/ActionView.d.ts +15 -0
  312. package/build/src/models/actions/ActionView.js +33 -0
  313. package/build/src/models/actions/ActionView.js.map +1 -0
  314. package/build/src/models/actions/Condition.d.ts +81 -0
  315. package/build/src/models/actions/Condition.js +185 -0
  316. package/build/src/models/actions/Condition.js.map +1 -0
  317. package/build/src/models/actions/ConditionView.d.ts +17 -0
  318. package/build/src/models/actions/ConditionView.js +34 -0
  319. package/build/src/models/actions/ConditionView.js.map +1 -0
  320. package/build/src/models/actions/Enums.d.ts +26 -0
  321. package/build/src/models/actions/Enums.js +31 -0
  322. package/build/src/models/actions/Enums.js.map +1 -0
  323. package/build/src/models/actions/RunnableAction.d.ts +59 -0
  324. package/build/src/models/actions/RunnableAction.js +106 -0
  325. package/build/src/models/actions/RunnableAction.js.map +1 -0
  326. package/build/src/models/actions/runnable/DeleteCookieAction.d.ts +44 -0
  327. package/build/src/models/actions/runnable/DeleteCookieAction.js +92 -0
  328. package/build/src/models/actions/runnable/DeleteCookieAction.js.map +1 -0
  329. package/build/src/models/actions/runnable/Runnable.d.ts +8 -0
  330. package/build/src/models/actions/runnable/Runnable.js +4 -0
  331. package/build/src/models/actions/runnable/Runnable.js.map +1 -0
  332. package/build/src/models/actions/runnable/SetCookieAction.d.ts +87 -0
  333. package/build/src/models/actions/runnable/SetCookieAction.js +176 -0
  334. package/build/src/models/actions/runnable/SetCookieAction.js.map +1 -0
  335. package/build/src/models/actions/runnable/SetVariableAction.d.ts +31 -0
  336. package/build/src/models/actions/runnable/SetVariableAction.js +63 -0
  337. package/build/src/models/actions/runnable/SetVariableAction.js.map +1 -0
  338. package/build/src/models/actions/runnable/index.d.ts +7 -0
  339. package/build/src/models/actions/runnable/index.js +2 -0
  340. package/build/src/models/actions/runnable/index.js.map +1 -0
  341. package/build/src/models/legacy/DataExport.d.ts +168 -0
  342. package/build/src/models/legacy/DataExport.js +2 -0
  343. package/build/src/models/legacy/DataExport.js.map +1 -0
  344. package/build/src/models/legacy/Normalizer.d.ts +12 -0
  345. package/build/src/models/legacy/Normalizer.js +104 -0
  346. package/build/src/models/legacy/Normalizer.js.map +1 -0
  347. package/build/src/models/legacy/actions/Actions.d.ts +257 -0
  348. package/build/src/models/legacy/actions/Actions.js +2 -0
  349. package/build/src/models/legacy/actions/Actions.js.map +1 -0
  350. package/build/src/models/legacy/authorization/Authorization.d.ts +540 -0
  351. package/build/src/models/legacy/authorization/Authorization.js +3 -0
  352. package/build/src/models/legacy/authorization/Authorization.js.map +1 -0
  353. package/build/src/models/legacy/models/ApiTypes.d.ts +192 -0
  354. package/build/src/models/legacy/models/ApiTypes.js +2 -0
  355. package/build/src/models/legacy/models/ApiTypes.js.map +1 -0
  356. package/build/src/models/legacy/models/ArcLegacyProject.d.ts +37 -0
  357. package/build/src/models/legacy/models/ArcLegacyProject.js +2 -0
  358. package/build/src/models/legacy/models/ArcLegacyProject.js.map +1 -0
  359. package/build/src/models/legacy/models/AuthData.d.ts +14 -0
  360. package/build/src/models/legacy/models/AuthData.js +2 -0
  361. package/build/src/models/legacy/models/AuthData.js.map +1 -0
  362. package/build/src/models/legacy/models/ClientCertificate.d.ts +89 -0
  363. package/build/src/models/legacy/models/ClientCertificate.js +2 -0
  364. package/build/src/models/legacy/models/ClientCertificate.js.map +1 -0
  365. package/build/src/models/legacy/models/Cookies.d.ts +52 -0
  366. package/build/src/models/legacy/models/Cookies.js +2 -0
  367. package/build/src/models/legacy/models/Cookies.js.map +1 -0
  368. package/build/src/models/legacy/models/HostRule.d.ts +33 -0
  369. package/build/src/models/legacy/models/HostRule.js +2 -0
  370. package/build/src/models/legacy/models/HostRule.js.map +1 -0
  371. package/build/src/models/legacy/models/RestApi.d.ts +47 -0
  372. package/build/src/models/legacy/models/RestApi.js +2 -0
  373. package/build/src/models/legacy/models/RestApi.js.map +1 -0
  374. package/build/src/models/legacy/models/UrlHistory.d.ts +32 -0
  375. package/build/src/models/legacy/models/UrlHistory.js +2 -0
  376. package/build/src/models/legacy/models/UrlHistory.js.map +1 -0
  377. package/build/src/models/legacy/models/Variable.d.ts +38 -0
  378. package/build/src/models/legacy/models/Variable.js +2 -0
  379. package/build/src/models/legacy/models/Variable.js.map +1 -0
  380. package/build/src/models/legacy/request/ArcRequest.d.ts +387 -0
  381. package/build/src/models/legacy/request/ArcRequest.js +2 -0
  382. package/build/src/models/legacy/request/ArcRequest.js.map +1 -0
  383. package/build/src/models/legacy/request/ArcResponse.d.ts +166 -0
  384. package/build/src/models/legacy/request/ArcResponse.js +2 -0
  385. package/build/src/models/legacy/request/ArcResponse.js.map +1 -0
  386. package/build/src/models/legacy/request/HistoryData.d.ts +45 -0
  387. package/build/src/models/legacy/request/HistoryData.js +2 -0
  388. package/build/src/models/legacy/request/HistoryData.js.map +1 -0
  389. package/build/src/models/legacy/request/Legacy.d.ts +43 -0
  390. package/build/src/models/legacy/request/Legacy.js +2 -0
  391. package/build/src/models/legacy/request/Legacy.js.map +1 -0
  392. package/build/src/models/legacy/request/RequestBody.d.ts +82 -0
  393. package/build/src/models/legacy/request/RequestBody.js +2 -0
  394. package/build/src/models/legacy/request/RequestBody.js.map +1 -0
  395. package/build/src/models/transformers/ArcDexieTransformer.d.ts +108 -0
  396. package/build/src/models/transformers/ArcDexieTransformer.js +252 -0
  397. package/build/src/models/transformers/ArcDexieTransformer.js.map +1 -0
  398. package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +42 -0
  399. package/build/src/models/transformers/ArcLegacyNormalizer.js +80 -0
  400. package/build/src/models/transformers/ArcLegacyNormalizer.js.map +1 -0
  401. package/build/src/models/transformers/ArcLegacyTransformer.d.ts +85 -0
  402. package/build/src/models/transformers/ArcLegacyTransformer.js +150 -0
  403. package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -0
  404. package/build/src/models/transformers/ArcPouchTransformer.d.ts +46 -0
  405. package/build/src/models/transformers/ArcPouchTransformer.js +170 -0
  406. package/build/src/models/transformers/ArcPouchTransformer.js.map +1 -0
  407. package/build/src/models/transformers/BaseTransformer.d.ts +48 -0
  408. package/build/src/models/transformers/BaseTransformer.js +104 -0
  409. package/build/src/models/transformers/BaseTransformer.js.map +1 -0
  410. package/build/src/models/transformers/ImportUtils.d.ts +44 -0
  411. package/build/src/models/transformers/ImportUtils.js +135 -0
  412. package/build/src/models/transformers/ImportUtils.js.map +1 -0
  413. package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +15 -0
  414. package/build/src/models/transformers/LegacyDataExportToApiProject.js +70 -0
  415. package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +1 -0
  416. package/build/src/models/transformers/LegacyExportProcessor.d.ts +47 -0
  417. package/build/src/models/transformers/LegacyExportProcessor.js +219 -0
  418. package/build/src/models/transformers/LegacyExportProcessor.js.map +1 -0
  419. package/build/src/models/transformers/PostmanBackupTransformer.d.ts +96 -0
  420. package/build/src/models/transformers/PostmanBackupTransformer.js +188 -0
  421. package/build/src/models/transformers/PostmanBackupTransformer.js.map +1 -0
  422. package/build/src/models/transformers/PostmanDataTransformer.d.ts +9 -0
  423. package/build/src/models/transformers/PostmanDataTransformer.js +46 -0
  424. package/build/src/models/transformers/PostmanDataTransformer.js.map +1 -0
  425. package/build/src/models/transformers/PostmanTransformer.d.ts +49 -0
  426. package/build/src/models/transformers/PostmanTransformer.js +90 -0
  427. package/build/src/models/transformers/PostmanTransformer.js.map +1 -0
  428. package/build/src/models/transformers/PostmanV21Transformer.d.ts +125 -0
  429. package/build/src/models/transformers/PostmanV21Transformer.js +195 -0
  430. package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -0
  431. package/build/src/models/transformers/PostmanV2Transformer.d.ts +123 -0
  432. package/build/src/models/transformers/PostmanV2Transformer.js +195 -0
  433. package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -0
  434. package/build/src/models/transformers/har.d.ts +857 -0
  435. package/build/src/models/transformers/har.js +2 -0
  436. package/build/src/models/transformers/har.js.map +1 -0
  437. package/build/src/runtime/actions/ActionRunner.d.ts +17 -0
  438. package/build/src/runtime/actions/ActionRunner.js +74 -0
  439. package/build/src/runtime/actions/ActionRunner.js.map +1 -0
  440. package/build/src/runtime/actions/ConditionRunner.d.ts +74 -0
  441. package/build/src/runtime/actions/ConditionRunner.js +185 -0
  442. package/build/src/runtime/actions/ConditionRunner.js.map +1 -0
  443. package/build/src/runtime/actions/RunnableCondition.d.ts +28 -0
  444. package/build/src/runtime/actions/RunnableCondition.js +51 -0
  445. package/build/src/runtime/actions/RunnableCondition.js.map +1 -0
  446. package/build/src/runtime/actions/runnable/ActionRunnable.d.ts +13 -0
  447. package/build/src/runtime/actions/runnable/ActionRunnable.js +13 -0
  448. package/build/src/runtime/actions/runnable/ActionRunnable.js.map +1 -0
  449. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.d.ts +7 -0
  450. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js +36 -0
  451. package/build/src/runtime/actions/runnable/DeleteCookieRunnable.js.map +1 -0
  452. package/build/src/runtime/actions/runnable/SetCookieRunnable.d.ts +10 -0
  453. package/build/src/runtime/actions/runnable/SetCookieRunnable.js +89 -0
  454. package/build/src/runtime/actions/runnable/SetCookieRunnable.js.map +1 -0
  455. package/build/src/runtime/actions/runnable/SetVariableRunnable.d.ts +10 -0
  456. package/build/src/runtime/actions/runnable/SetVariableRunnable.js +49 -0
  457. package/build/src/runtime/actions/runnable/SetVariableRunnable.js.map +1 -0
  458. package/build/src/runtime/http-engine/ArcEngine.d.ts +218 -0
  459. package/build/src/runtime/http-engine/ArcEngine.js +1034 -0
  460. package/build/src/runtime/http-engine/ArcEngine.js.map +1 -0
  461. package/build/src/runtime/http-engine/Errors.d.ts +10 -0
  462. package/build/src/runtime/http-engine/Errors.js +14 -0
  463. package/build/src/runtime/http-engine/Errors.js.map +1 -0
  464. package/build/src/runtime/http-engine/FormData.d.ts +16 -0
  465. package/build/src/runtime/http-engine/FormData.js +72 -0
  466. package/build/src/runtime/http-engine/FormData.js.map +1 -0
  467. package/build/src/runtime/http-engine/HttpEngine.d.ts +294 -0
  468. package/build/src/runtime/http-engine/HttpEngine.js +736 -0
  469. package/build/src/runtime/http-engine/HttpEngine.js.map +1 -0
  470. package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +15 -0
  471. package/build/src/runtime/http-engine/HttpErrorCodes.js +223 -0
  472. package/build/src/runtime/http-engine/HttpErrorCodes.js.map +1 -0
  473. package/build/src/runtime/http-engine/NodeEngine.d.ts +154 -0
  474. package/build/src/runtime/http-engine/NodeEngine.js +761 -0
  475. package/build/src/runtime/http-engine/NodeEngine.js.map +1 -0
  476. package/build/src/runtime/http-engine/NodeEngineDirect.d.ts +113 -0
  477. package/build/src/runtime/http-engine/NodeEngineDirect.js +443 -0
  478. package/build/src/runtime/http-engine/NodeEngineDirect.js.map +1 -0
  479. package/build/src/runtime/http-engine/PayloadSupport.d.ts +26 -0
  480. package/build/src/runtime/http-engine/PayloadSupport.js +78 -0
  481. package/build/src/runtime/http-engine/PayloadSupport.js.map +1 -0
  482. package/build/src/runtime/http-engine/RequestUtils.d.ts +66 -0
  483. package/build/src/runtime/http-engine/RequestUtils.js +144 -0
  484. package/build/src/runtime/http-engine/RequestUtils.js.map +1 -0
  485. package/build/src/runtime/http-engine/ntlm/Des.d.ts +4 -0
  486. package/build/src/runtime/http-engine/ntlm/Des.js +343 -0
  487. package/build/src/runtime/http-engine/ntlm/Des.js.map +1 -0
  488. package/build/src/runtime/http-engine/ntlm/MD4.d.ts +13 -0
  489. package/build/src/runtime/http-engine/ntlm/MD4.js +120 -0
  490. package/build/src/runtime/http-engine/ntlm/MD4.js.map +1 -0
  491. package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +26 -0
  492. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +159 -0
  493. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +1 -0
  494. package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +10 -0
  495. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +51 -0
  496. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +1 -0
  497. package/build/src/runtime/modules/BasicAuthCache.d.ts +39 -0
  498. package/build/src/runtime/modules/BasicAuthCache.js +125 -0
  499. package/build/src/runtime/modules/BasicAuthCache.js.map +1 -0
  500. package/build/src/runtime/modules/ExecutionResponse.d.ts +4 -0
  501. package/build/src/runtime/modules/ExecutionResponse.js +6 -0
  502. package/build/src/runtime/modules/ExecutionResponse.js.map +1 -0
  503. package/build/src/runtime/modules/ModulesRegistry.d.ts +93 -0
  504. package/build/src/runtime/modules/ModulesRegistry.js +69 -0
  505. package/build/src/runtime/modules/ModulesRegistry.js.map +1 -0
  506. package/build/src/runtime/modules/RequestAuthorization.d.ts +6 -0
  507. package/build/src/runtime/modules/RequestAuthorization.js +114 -0
  508. package/build/src/runtime/modules/RequestAuthorization.js.map +1 -0
  509. package/build/src/runtime/modules/RequestCookies.d.ts +17 -0
  510. package/build/src/runtime/modules/RequestCookies.js +133 -0
  511. package/build/src/runtime/modules/RequestCookies.js.map +1 -0
  512. package/build/src/runtime/node/ProjectRunner.d.ts +125 -0
  513. package/build/src/runtime/node/ProjectRunner.js +178 -0
  514. package/build/src/runtime/node/ProjectRunner.js.map +1 -0
  515. package/build/src/runtime/node/RequestFactory.d.ts +139 -0
  516. package/build/src/runtime/node/RequestFactory.js +397 -0
  517. package/build/src/runtime/node/RequestFactory.js.map +1 -0
  518. package/build/src/runtime/node/VariablesStore.d.ts +9 -0
  519. package/build/src/runtime/node/VariablesStore.js +19 -0
  520. package/build/src/runtime/node/VariablesStore.js.map +1 -0
  521. package/build/src/runtime/variables/Cache.d.ts +23 -0
  522. package/build/src/runtime/variables/Cache.js +51 -0
  523. package/build/src/runtime/variables/Cache.js.map +1 -0
  524. package/build/src/runtime/variables/EvalFunctions.d.ts +58 -0
  525. package/build/src/runtime/variables/EvalFunctions.js +123 -0
  526. package/build/src/runtime/variables/EvalFunctions.js.map +1 -0
  527. package/build/src/runtime/variables/ProjectVariables.d.ts +5 -0
  528. package/build/src/runtime/variables/ProjectVariables.js +6 -0
  529. package/build/src/runtime/variables/ProjectVariables.js.map +1 -0
  530. package/build/src/runtime/variables/VariablesProcessor.d.ts +165 -0
  531. package/build/src/runtime/variables/VariablesProcessor.js +515 -0
  532. package/build/src/runtime/variables/VariablesProcessor.js.map +1 -0
  533. package/build/src/runtime/variables/VariablesTokenizer.d.ts +26 -0
  534. package/build/src/runtime/variables/VariablesTokenizer.js +53 -0
  535. package/build/src/runtime/variables/VariablesTokenizer.js.map +1 -0
  536. package/package.json +97 -0
  537. package/readme.md +51 -0
@@ -0,0 +1,455 @@
1
+ import { ProjectParent } from './ProjectParent.js';
2
+ import { IProjectDefinitionProperty } from './ProjectDefinitionProperty.js';
3
+ import { Environment, IEnvironment } from './Environment.js';
4
+ import { License, ILicense } from './License.js';
5
+ import { Provider, IProvider } from './Provider.js';
6
+ import { IThing } from './Thing.js';
7
+ import { ProjectItem, IProjectItem } from './ProjectItem.js';
8
+ import { IProjectFolder, ProjectFolder } from './ProjectFolder.js';
9
+ import { IProjectRequest, ProjectRequest } from './ProjectRequest.js';
10
+ import { ProjectSchema, IProjectSchema } from './ProjectSchema.js';
11
+ import { ARCSavedRequest, ARCHistoryRequest } from './legacy/request/ArcRequest.js';
12
+ import { ArcLegacyProject } from './legacy/models/ArcLegacyProject.js';
13
+ export declare type HttpProjectKind = 'ARC#HttpProject';
14
+ export declare const Kind = "ARC#HttpProject";
15
+ /**
16
+ * A list of options to initialize a project in various situations.
17
+ */
18
+ export interface IProjectInitOptions {
19
+ /**
20
+ * The name of the project.
21
+ */
22
+ name: string;
23
+ }
24
+ export interface IFolderCreateOptions {
25
+ /**
26
+ * Ignores the operation when the folder with the same name already exists.
27
+ * This command can be used used to ensure that the folder exists.
28
+ */
29
+ skipExisting?: boolean;
30
+ /**
31
+ * The id of the parent folder. When not set it adds the folder to the project root.
32
+ */
33
+ parent?: string;
34
+ /**
35
+ * Optionally the position at which to add the folder into the list of items.
36
+ */
37
+ index?: number;
38
+ }
39
+ export interface IFolderSearchOptions {
40
+ /**
41
+ * When set it searches for a folder using keys only.
42
+ * By default it searches for a key and the name.
43
+ */
44
+ keyOnly?: boolean;
45
+ }
46
+ export interface IFolderDeleteOptions {
47
+ /**
48
+ * When set it won't throw an error when the folder is not found in the project.
49
+ */
50
+ safe?: boolean;
51
+ }
52
+ export interface IRequestAddOptions {
53
+ /**
54
+ * The id of the parent folder. When not set it adds the request to the project root.
55
+ */
56
+ parent?: string;
57
+ /**
58
+ * Optionally the position at which to add the request into the list of items.
59
+ */
60
+ index?: number;
61
+ }
62
+ export interface IRequestSearchOptions {
63
+ /**
64
+ * When set it searches for a request using keys only.
65
+ * By default it searches for a key and the name.
66
+ */
67
+ keyOnly?: boolean;
68
+ }
69
+ export interface IRequestDeleteOptions {
70
+ /**
71
+ * When set it won't throw an error when the request is not found in the project.
72
+ */
73
+ safe?: boolean;
74
+ }
75
+ export interface IProjectMoveOptions {
76
+ /**
77
+ * The position at which to insert the object in the destination. BY default it adds the object at the end.
78
+ */
79
+ index?: number;
80
+ /**
81
+ * The name or the key of the parent folder to move the item into.
82
+ * When not set it moves the item to the project's root.
83
+ */
84
+ parent?: string;
85
+ }
86
+ export interface IReadEnvironmentOptions {
87
+ /**
88
+ * The name or the key of the environment to select.
89
+ *
90
+ * When the name is not specified it selects:
91
+ * - the first environment from the project, if any
92
+ * - any parent folder's first environment to the requested folder, if any (if folderKey is set)
93
+ * - the requested folder's first environment, if any (if folderKey is set)
94
+ */
95
+ nameOrKey?: string;
96
+ /**
97
+ * The key of the folder to collect the environments for.
98
+ */
99
+ folderKey?: string;
100
+ }
101
+ /**
102
+ * The object stored as a list index for the projects.
103
+ * This is used to list projects in the store and in the UI.
104
+ */
105
+ export interface IHttpProjectIndex {
106
+ key: string;
107
+ name: string;
108
+ version?: string;
109
+ }
110
+ export interface IProjectCloneOptions {
111
+ /**
112
+ * By default it revalidates (re-creates) keys in the request.
113
+ * Set this to true to not make any changes to the keys.
114
+ */
115
+ withoutRevalidate?: boolean;
116
+ }
117
+ export interface IFolderListOptions {
118
+ /**
119
+ * Folder name or key to list folders for.
120
+ */
121
+ folder?: string;
122
+ }
123
+ export interface ISchemaAddOptions {
124
+ /**
125
+ * Optionally the position at which to add the schema into the list of schemas.
126
+ */
127
+ index?: number;
128
+ }
129
+ export interface IProjectRequestIterator {
130
+ /**
131
+ * The parent folder key or name. Sets the starting point to iterate over the requests.
132
+ */
133
+ parent?: string;
134
+ /**
135
+ * When set it includes requests in the current folder and sub-folder according to the order
136
+ * defined in the folder.
137
+ */
138
+ recursive?: boolean;
139
+ /**
140
+ * Limits the number of requests to include in the iterator.
141
+ * It is an array of request keys or names.
142
+ */
143
+ requests?: string[];
144
+ /**
145
+ * The opposite of the `requests`. The list of names or keys of requests or folders to ignore.
146
+ * Note, ignore is tested before the `requests`.
147
+ */
148
+ ignore?: string[];
149
+ }
150
+ /**
151
+ * The new definition of a project in ARC.
152
+ * Note, this is not the same as future `ApiProject` which is reserved for building APIs
153
+ * using RAML or OAS.
154
+ */
155
+ export interface IHttpProject extends IProjectDefinitionProperty {
156
+ kind: HttpProjectKind;
157
+ /**
158
+ * The license information for this HTTP project.
159
+ */
160
+ license?: ILicense;
161
+ /**
162
+ * The basic information about the project.
163
+ */
164
+ info: IThing;
165
+ /**
166
+ * Information about project provider.
167
+ */
168
+ provider?: IProvider;
169
+ /**
170
+ * The ordered list of HTTP requests / folders in the projects.
171
+ * The UI uses this to manipulate the view without changing the definitions.
172
+ */
173
+ items: IProjectItem[];
174
+ /**
175
+ * The project definitions.
176
+ * This is where all the data are stored.
177
+ */
178
+ definitions: IHttpProjectDefinitions;
179
+ /**
180
+ * The list of environment keys to apply to the project.
181
+ * Each key references an environment in the `definitions.environments` array.
182
+ */
183
+ environments?: string[];
184
+ }
185
+ export interface IHttpProjectDefinitions {
186
+ requests?: IProjectRequest[];
187
+ folders?: IProjectFolder[];
188
+ schemas?: IProjectSchema[];
189
+ environments?: IEnvironment[];
190
+ }
191
+ interface HttpProjectDefinitions {
192
+ requests: ProjectRequest[];
193
+ folders: ProjectFolder[];
194
+ schemas: ProjectSchema[];
195
+ environments: Environment[];
196
+ }
197
+ /**
198
+ * An instance of an HttpProject.
199
+ */
200
+ export declare class HttpProject extends ProjectParent {
201
+ kind: string;
202
+ private initEnvironments?;
203
+ /**
204
+ * The license information for this HTTP project.
205
+ */
206
+ license?: License;
207
+ /**
208
+ * Information about project provider.
209
+ */
210
+ provider?: Provider;
211
+ /**
212
+ * The list of all requests stored in this project.
213
+ * Note, this is not used to visualized the request in the UI.
214
+ * This is just the source of data.
215
+ * The `items` property is used to build the view.
216
+ */
217
+ definitions: HttpProjectDefinitions;
218
+ static defaultDefinitions(): HttpProjectDefinitions;
219
+ /**
220
+ * Creates a new HTTP project from a name.
221
+ * @param {string} name The name to set.
222
+ */
223
+ static fromName(name: string): HttpProject;
224
+ /**
225
+ * Creates an HTTP project instance from ARC's legacy project definition.
226
+ */
227
+ static fromLegacy(project: ArcLegacyProject, requests: ARCSavedRequest[]): Promise<HttpProject>;
228
+ /**
229
+ * Creates an HTTP project from a Postman collection
230
+ * @param init The postman collection object or a string that can be parsed to one.
231
+ */
232
+ static fromPostman(init: any): Promise<HttpProject>;
233
+ /**
234
+ * Creates a new project from a set of options.
235
+ */
236
+ static fromInitOptions(init: IProjectInitOptions): HttpProject;
237
+ /**
238
+ * @param input The project definition used to restore the state.
239
+ * @param environments Optional list of environments to use with this project. It overrides environments stored in the project definition.
240
+ */
241
+ constructor(input?: string | IHttpProject, environments?: IEnvironment[]);
242
+ /**
243
+ * Creates a new project definition clearing anything that is so far defined.
244
+ *
245
+ * Note, this throws an error when the project is not an ARC project.
246
+ */
247
+ new(init: IHttpProject): void;
248
+ toJSON(): IHttpProject;
249
+ /**
250
+ * @returns JSON representation of the project
251
+ */
252
+ toString(): string;
253
+ /**
254
+ * Finds a parent of a definition.
255
+ *
256
+ * @param key The key of the definition.
257
+ * @returns The parent or undefine when not found.
258
+ */
259
+ findParent(key: string): ProjectFolder | HttpProject | undefined;
260
+ /**
261
+ * Appends an instance of a folder to a project.
262
+ *
263
+ * @param folder The folder to add to this project.
264
+ * @param opts Optional folder add options.
265
+ * @returns The added folder.
266
+ */
267
+ addFolder(folder: ProjectFolder, opts?: IFolderCreateOptions): ProjectFolder;
268
+ /**
269
+ * Appends new folder to a project from a full folder schema.
270
+ * This is primarily used to insert a folder on the client side
271
+ * after a folder was created in the store.
272
+ *
273
+ * @param folder The folder schema to add to this project.
274
+ * @param opts Optional folder add options.
275
+ * @returns The added folder.
276
+ */
277
+ addFolder(folder: IProjectFolder, opts?: IFolderCreateOptions): ProjectFolder;
278
+ /**
279
+ * Appends a new folder to the project or a sub-folder.
280
+ *
281
+ * @param name The name to set. Optional.
282
+ * @param opts Folder create options.
283
+ * @returns The newly inserted folder. If the folder already existed it returns its instance.
284
+ */
285
+ addFolder(name?: string, opts?: IFolderCreateOptions): ProjectFolder;
286
+ /**
287
+ * Searches for a folder in the structure.
288
+ *
289
+ * @param nameOrKey The name or the key of the folder.
290
+ * @param opts Optional search options.
291
+ * @returns Found project folder or undefined.
292
+ */
293
+ findFolder(nameOrKey: string, opts?: IFolderSearchOptions): ProjectFolder | undefined;
294
+ /**
295
+ * Removes a folder from the project.
296
+ * @param key The folder key. It ignores the name when searching to the folder to avoid ambiguity.
297
+ * @param opts Folder remove options.
298
+ * @returns The removed folder definition or undefined when not removed.
299
+ */
300
+ removeFolder(key: string, opts?: IFolderDeleteOptions): ProjectFolder | undefined;
301
+ /**
302
+ * Moves a folder between folders and the project or between items inside a folder or a project
303
+ *
304
+ * Note, when the `parent` option is not specified it moved the folder to the project's root.
305
+ *
306
+ * @param key The key of the request to move.
307
+ * @param opts The moving options.
308
+ */
309
+ moveFolder(key: string, opts?: IProjectMoveOptions): void;
310
+ /**
311
+ * Checks whether a folder has a child (anywhere down the structure).
312
+ *
313
+ * @param child The **key** of the child.
314
+ * @param folder The **key** of the folder. When not set it searches from the project root.
315
+ * @returns True when the child is located somewhere down the structure.
316
+ */
317
+ hasChild(child: string, folder?: string): boolean;
318
+ /**
319
+ * Adds a request to the project or a sub-folder.
320
+ *
321
+ * @param url The URL of the request.
322
+ * @param opts The request add options.
323
+ * @returns The inserted into the definitions request.
324
+ */
325
+ addRequest(url: string, opts?: IRequestAddOptions): ProjectRequest;
326
+ /**
327
+ * Adds a request to the project or a sub-folder.
328
+ *
329
+ * @param request The request to add.
330
+ * @param opts The request add options.
331
+ * @returns The inserted into the definitions request.
332
+ */
333
+ addRequest(request: IProjectRequest | ProjectRequest, opts?: IRequestAddOptions): ProjectRequest;
334
+ /**
335
+ * Adds a request to the project that has been created for a previous version of ARC.
336
+ *
337
+ * @param legacy The legacy request definition.
338
+ * @returns The created project request.
339
+ */
340
+ addLegacyRequest(legacy: ARCSavedRequest | ARCHistoryRequest): Promise<ProjectRequest>;
341
+ /**
342
+ * Searches for a request in the project.
343
+ *
344
+ * @param nameOrKey The name or the key of the request.
345
+ * @param opts Optional search options.
346
+ * @returns Found project request or undefined.
347
+ */
348
+ findRequest(nameOrKey: string, opts?: IRequestSearchOptions): ProjectRequest | undefined;
349
+ /**
350
+ * Removes a request from the project.
351
+ *
352
+ * @param key The request key. It ignores the name when searching to the request to avoid ambiguity.
353
+ * @param opts Request remove options.
354
+ * @returns The removed request definition or undefined when not removed.
355
+ */
356
+ removeRequest(key: string, opts?: IRequestDeleteOptions): ProjectRequest | undefined;
357
+ /**
358
+ * Moves a request between folders and the project or between items inside a folder or a project.
359
+ *
360
+ * Note, when the `parent` option is not specified it moved the request to the project's root.
361
+ *
362
+ * @param key The key of the request to move.
363
+ * @param opts The moving options.
364
+ */
365
+ moveRequest(key: string, opts?: IProjectMoveOptions): void;
366
+ /**
367
+ * Lists items (not the actual definitions!) that are folders.
368
+ */
369
+ listFolderItems(): ProjectItem[];
370
+ /**
371
+ * Lists items (not the actual definitions!) that are requests.
372
+ */
373
+ listRequestItems(): ProjectItem[];
374
+ /**
375
+ * Lists folders from the project or a sub-folder.
376
+ * @param opts Folder listing options.
377
+ */
378
+ listFolders(opts?: IFolderListOptions): ProjectFolder[];
379
+ /**
380
+ * Lists requests in this project or a sub-folder.
381
+ * @param folder The optional folder name or the key to list requests for.
382
+ */
383
+ listRequests(folder?: string): ProjectRequest[];
384
+ /**
385
+ * Lists definitions for the `items` of the project or a folder.
386
+ * @param folder Optionally the folder name to list the definitions for.
387
+ */
388
+ listDefinitions(folder?: string): (ProjectFolder | ProjectRequest | Environment)[];
389
+ /**
390
+ * Makes sure the license information exists.
391
+ * @returns The set license.
392
+ */
393
+ ensureLicense(): License;
394
+ /**
395
+ * Makes sure the Provider information exists.
396
+ * @returns The set provider.
397
+ */
398
+ ensureProvider(): Provider;
399
+ /**
400
+ * @returns On the project level this always returns undefined.
401
+ */
402
+ getParent(): ProjectFolder | HttpProject | undefined;
403
+ attachedCallback(): void;
404
+ detachedCallback(): void;
405
+ getProject(): HttpProject;
406
+ /**
407
+ * Reads the list of environments from then selected folder up to the project environments.
408
+ * It stops going up in the project structure when selected environment has the `encapsulated`
409
+ * property set to true.
410
+ * The environments are ordered from the top-most level to the selected folder.
411
+ *
412
+ * @param opts The environment read options
413
+ */
414
+ readEnvironments(opts?: IReadEnvironmentOptions): Promise<Environment[]>;
415
+ /**
416
+ * Makes a copy of this project.
417
+ */
418
+ clone(opts?: IProjectCloneOptions): HttpProject;
419
+ static clone(project: IHttpProject, opts?: IProjectCloneOptions): HttpProject;
420
+ /**
421
+ * Re-generates keys in the project, taking care of the references.
422
+ *
423
+ * Note, this changes the project properties. Make a copy of the project before calling this.
424
+ *
425
+ * @param src The project instance to re-generate keys for.
426
+ */
427
+ static regenerateKeys(src: HttpProject): void;
428
+ /**
429
+ * Adds an empty schema to the project.
430
+ *
431
+ * @param name The name of the schema
432
+ * @param opts The schema add options.
433
+ * @returns The inserted into the schemas schema.
434
+ */
435
+ addSchema(url: string, opts?: ISchemaAddOptions): ProjectSchema;
436
+ /**
437
+ * Adds a schema to the project.
438
+ *
439
+ * @param schema The schema to add.
440
+ * @param opts The schema add options.
441
+ * @returns The inserted into the schemas schema.
442
+ */
443
+ addSchema(schema: IProjectSchema | ProjectSchema, opts?: ISchemaAddOptions): ProjectSchema;
444
+ /**
445
+ * @returns The current list of schemas in the project.
446
+ */
447
+ listSchemas(): ProjectSchema[];
448
+ getEnvironments(): Environment[];
449
+ /**
450
+ * Iterates over requests in the project,
451
+ */
452
+ requestIterator(opts?: IProjectRequestIterator): Generator<ProjectRequest>;
453
+ [Symbol.iterator](): Generator<ProjectRequest>;
454
+ }
455
+ export {};