@api-client/core 0.20.10 → 0.21.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 (1606) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bin/test.ts +0 -16
  3. package/build/src/browser.d.ts +0 -19
  4. package/build/src/browser.d.ts.map +1 -1
  5. package/build/src/browser.js +0 -31
  6. package/build/src/browser.js.map +1 -1
  7. package/build/src/events/EventTypes.d.ts +0 -40
  8. package/build/src/events/EventTypes.d.ts.map +1 -1
  9. package/build/src/events/EventTypes.js +0 -8
  10. package/build/src/events/EventTypes.js.map +1 -1
  11. package/build/src/events/Events.d.ts +0 -20
  12. package/build/src/events/Events.d.ts.map +1 -1
  13. package/build/src/events/Events.js +0 -8
  14. package/build/src/events/Events.js.map +1 -1
  15. package/build/src/events/index.d.ts +0 -3
  16. package/build/src/events/index.d.ts.map +1 -1
  17. package/build/src/events/index.js.map +1 -1
  18. package/build/src/index.d.ts +0 -31
  19. package/build/src/index.d.ts.map +1 -1
  20. package/build/src/index.js +0 -55
  21. package/build/src/index.js.map +1 -1
  22. package/build/src/lib/headers/Headers.d.ts +0 -9
  23. package/build/src/lib/headers/Headers.d.ts.map +1 -1
  24. package/build/src/lib/headers/Headers.js +0 -20
  25. package/build/src/lib/headers/Headers.js.map +1 -1
  26. package/build/src/mocking/lib/File.d.ts.map +1 -1
  27. package/build/src/mocking/lib/File.js +3 -5
  28. package/build/src/mocking/lib/File.js.map +1 -1
  29. package/build/src/mocking/lib/Trash.d.ts.map +1 -1
  30. package/build/src/mocking/lib/Trash.js +2 -8
  31. package/build/src/mocking/lib/Trash.js.map +1 -1
  32. package/build/src/models/Folder.d.ts +1 -1
  33. package/build/src/models/Folder.d.ts.map +1 -1
  34. package/build/src/models/Folder.js +3 -3
  35. package/build/src/models/Folder.js.map +1 -1
  36. package/build/src/models/index.d.ts +1 -51
  37. package/build/src/models/index.d.ts.map +1 -1
  38. package/build/src/models/index.js +1 -56
  39. package/build/src/models/index.js.map +1 -1
  40. package/build/src/models/kinds.d.ts +1 -6
  41. package/build/src/models/kinds.d.ts.map +1 -1
  42. package/build/src/models/kinds.js +1 -6
  43. package/build/src/models/kinds.js.map +1 -1
  44. package/build/src/sdk/AiSdk.d.ts +4 -4
  45. package/build/src/sdk/AiSdk.d.ts.map +1 -1
  46. package/build/src/sdk/AiSdk.js +2 -2
  47. package/build/src/sdk/AiSdk.js.map +1 -1
  48. package/build/src/sdk/DataCatalogSdk.d.ts +5 -5
  49. package/build/src/sdk/DataCatalogSdk.d.ts.map +1 -1
  50. package/build/src/sdk/DataCatalogSdk.js +1 -1
  51. package/build/src/sdk/DataCatalogSdk.js.map +1 -1
  52. package/build/src/sdk/DeploymentsSdk.d.ts +2 -2
  53. package/build/src/sdk/DeploymentsSdk.d.ts.map +1 -1
  54. package/build/src/sdk/DeploymentsSdk.js +2 -2
  55. package/build/src/sdk/DeploymentsSdk.js.map +1 -1
  56. package/build/src/sdk/FilesSdk.d.ts +8 -8
  57. package/build/src/sdk/FilesSdk.d.ts.map +1 -1
  58. package/build/src/sdk/FilesSdk.js +3 -3
  59. package/build/src/sdk/FilesSdk.js.map +1 -1
  60. package/build/src/sdk/GroupsSdk.d.ts +2 -2
  61. package/build/src/sdk/GroupsSdk.d.ts.map +1 -1
  62. package/build/src/sdk/GroupsSdk.js +1 -1
  63. package/build/src/sdk/GroupsSdk.js.map +1 -1
  64. package/build/src/sdk/HttpNode.js +1 -1
  65. package/build/src/sdk/HttpNode.js.map +1 -1
  66. package/build/src/sdk/HttpWeb.d.ts +1 -0
  67. package/build/src/sdk/HttpWeb.d.ts.map +1 -1
  68. package/build/src/sdk/HttpWeb.js +28 -3
  69. package/build/src/sdk/HttpWeb.js.map +1 -1
  70. package/build/src/sdk/OrganizationsSdk.d.ts +5 -5
  71. package/build/src/sdk/OrganizationsSdk.d.ts.map +1 -1
  72. package/build/src/sdk/OrganizationsSdk.js +1 -1
  73. package/build/src/sdk/OrganizationsSdk.js.map +1 -1
  74. package/build/src/sdk/RevisionsSdk.d.ts +2 -2
  75. package/build/src/sdk/RevisionsSdk.d.ts.map +1 -1
  76. package/build/src/sdk/RevisionsSdk.js +1 -1
  77. package/build/src/sdk/RevisionsSdk.js.map +1 -1
  78. package/build/src/sdk/RouteBuilder.d.ts +3 -3
  79. package/build/src/sdk/RouteBuilder.d.ts.map +1 -1
  80. package/build/src/sdk/RouteBuilder.js.map +1 -1
  81. package/build/src/sdk/Sdk.d.ts +1 -21
  82. package/build/src/sdk/Sdk.d.ts.map +1 -1
  83. package/build/src/sdk/Sdk.js +0 -15
  84. package/build/src/sdk/Sdk.js.map +1 -1
  85. package/build/src/sdk/SdkBase.d.ts +3 -3
  86. package/build/src/sdk/SdkBase.d.ts.map +1 -1
  87. package/build/src/sdk/SdkBase.js +1 -1
  88. package/build/src/sdk/SdkBase.js.map +1 -1
  89. package/build/src/sdk/SdkMock.d.ts +2 -2
  90. package/build/src/sdk/SdkMock.d.ts.map +1 -1
  91. package/build/src/sdk/SdkMock.js +6 -6
  92. package/build/src/sdk/SdkMock.js.map +1 -1
  93. package/build/src/sdk/SdkNetworkMock.d.ts +323 -0
  94. package/build/src/sdk/SdkNetworkMock.d.ts.map +1 -0
  95. package/build/src/sdk/SdkNetworkMock.js +1196 -0
  96. package/build/src/sdk/SdkNetworkMock.js.map +1 -0
  97. package/build/src/sdk/SharedSdk.d.ts +2 -2
  98. package/build/src/sdk/SharedSdk.d.ts.map +1 -1
  99. package/build/src/sdk/SharedSdk.js +1 -1
  100. package/build/src/sdk/SharedSdk.js.map +1 -1
  101. package/build/src/sdk/StoreSdkNode.d.ts +0 -2
  102. package/build/src/sdk/StoreSdkNode.d.ts.map +1 -1
  103. package/build/src/sdk/StoreSdkNode.js +0 -2
  104. package/build/src/sdk/StoreSdkNode.js.map +1 -1
  105. package/build/src/sdk/StoreSdkWeb.d.ts +0 -2
  106. package/build/src/sdk/StoreSdkWeb.d.ts.map +1 -1
  107. package/build/src/sdk/StoreSdkWeb.js +0 -2
  108. package/build/src/sdk/StoreSdkWeb.js.map +1 -1
  109. package/build/src/sdk/TrashSdk.d.ts +2 -2
  110. package/build/src/sdk/TrashSdk.d.ts.map +1 -1
  111. package/build/src/sdk/TrashSdk.js +1 -1
  112. package/build/src/sdk/TrashSdk.js.map +1 -1
  113. package/build/src/sdk/UsersSdk.d.ts +1 -1
  114. package/build/src/sdk/UsersSdk.d.ts.map +1 -1
  115. package/build/src/sdk/UsersSdk.js +1 -1
  116. package/build/src/sdk/UsersSdk.js.map +1 -1
  117. package/build/tsconfig.build.tsbuildinfo +1 -0
  118. package/eslint.config.js +0 -4
  119. package/knip.json +10 -0
  120. package/lupa.config.ts +43 -0
  121. package/package.json +25 -67
  122. package/src/events/EventTypes.ts +0 -8
  123. package/src/events/Events.ts +0 -8
  124. package/src/lib/headers/Headers.ts +0 -22
  125. package/src/mocking/lib/File.ts +3 -6
  126. package/src/mocking/lib/Trash.ts +2 -8
  127. package/src/models/Folder.ts +3 -3
  128. package/src/models/kinds.ts +1 -6
  129. package/src/sdk/AiSdk.ts +6 -6
  130. package/src/sdk/DataCatalogSdk.ts +6 -6
  131. package/src/sdk/DeploymentsSdk.ts +3 -3
  132. package/src/sdk/FilesSdk.ts +10 -10
  133. package/src/sdk/GroupsSdk.ts +3 -3
  134. package/src/sdk/HttpNode.ts +1 -1
  135. package/src/sdk/HttpWeb.ts +28 -3
  136. package/src/sdk/OrganizationsSdk.ts +6 -6
  137. package/src/sdk/RevisionsSdk.ts +3 -3
  138. package/src/sdk/RouteBuilder.ts +3 -3
  139. package/src/sdk/Sdk.ts +1 -22
  140. package/src/sdk/SdkBase.ts +3 -3
  141. package/src/sdk/SdkMock.ts +11 -11
  142. package/src/sdk/SdkNetworkMock.ts +1607 -0
  143. package/src/sdk/SharedSdk.ts +3 -3
  144. package/src/sdk/StoreSdkNode.ts +0 -3
  145. package/src/sdk/StoreSdkWeb.ts +0 -3
  146. package/src/sdk/TrashSdk.ts +3 -3
  147. package/src/sdk/UsersSdk.ts +2 -2
  148. package/tests/client/env.ts +11 -0
  149. package/tests/client/lib/dom_purify.spec.ts +12 -0
  150. package/tests/client/sdk/DataCatalog.spec.ts +565 -0
  151. package/tests/client/sdk/Deployments.spec.ts +214 -0
  152. package/tests/client/sdk/FilesSdk.spec.ts +716 -0
  153. package/tests/client/sdk/groups.spec.ts +244 -0
  154. package/tests/client/sdk/network-mock/ai-mock.spec.ts +124 -0
  155. package/tests/client/sdk/network-mock/deployments-mock.spec.ts +182 -0
  156. package/tests/client/sdk/network-mock/files-mock.spec.ts +119 -0
  157. package/tests/client/sdk/network-mock/groups-mock.spec.ts +83 -0
  158. package/tests/client/sdk/network-mock/organizations-mock.spec.ts +129 -0
  159. package/tests/client/sdk/network-mock/shared-mock.spec.ts +25 -0
  160. package/tests/client/sdk/network-mock/trash-mock.spec.ts +43 -0
  161. package/tests/client/sdk/network-mock/users-mock.spec.ts +79 -0
  162. package/tests/client/sdk/organizations.spec.ts +2468 -0
  163. package/tests/client/src/platform.spec.ts +14 -0
  164. package/tests/unit/mocking/current/File.spec.ts +5 -5
  165. package/tests/unit/mocking/current/Trash.spec.ts +5 -5
  166. package/tests/unit/modeling/RuntimeApiModel.spec.ts +24 -4
  167. package/tests/unit/models/File/createFileCapabilities.spec.ts +3 -2
  168. package/tsconfig.build.json +8 -0
  169. package/RELEASE.md +0 -163
  170. package/RELEASE_SETUP.md +0 -237
  171. package/TESTING_SETUP.md +0 -198
  172. package/Testing.md +0 -21
  173. package/amf-models/dialects/ApiProjectVocabulary.yaml +0 -233
  174. package/amf-models/dialects/Environment.yaml +0 -38
  175. package/amf-models/dialects/HttpProject.yaml +0 -55
  176. package/amf-models/dialects/License.yaml +0 -31
  177. package/amf-models/dialects/ProjectFolder.yaml +0 -43
  178. package/amf-models/dialects/ProjectItem.yaml +0 -22
  179. package/amf-models/dialects/ProjectRequest.yaml +0 -23
  180. package/amf-models/dialects/ProjectSchema.yaml +0 -36
  181. package/amf-models/dialects/Property.yaml +0 -43
  182. package/amf-models/dialects/Provider.yaml +0 -32
  183. package/amf-models/dialects/Server.yaml +0 -31
  184. package/amf-models/dialects/Thing.yaml +0 -28
  185. package/bin/context.ts +0 -22
  186. package/bin/server.ts +0 -83
  187. package/build/src/authorization/AuthorizationError.d.ts +0 -24
  188. package/build/src/authorization/AuthorizationError.d.ts.map +0 -1
  189. package/build/src/authorization/AuthorizationError.js +0 -32
  190. package/build/src/authorization/AuthorizationError.js.map +0 -1
  191. package/build/src/authorization/CustomParameters.d.ts +0 -25
  192. package/build/src/authorization/CustomParameters.d.ts.map +0 -1
  193. package/build/src/authorization/CustomParameters.js +0 -61
  194. package/build/src/authorization/CustomParameters.js.map +0 -1
  195. package/build/src/authorization/OAuth2Authorization.d.ts +0 -333
  196. package/build/src/authorization/OAuth2Authorization.d.ts.map +0 -1
  197. package/build/src/authorization/OAuth2Authorization.js +0 -963
  198. package/build/src/authorization/OAuth2Authorization.js.map +0 -1
  199. package/build/src/authorization/OidcAuthorization.d.ts +0 -36
  200. package/build/src/authorization/OidcAuthorization.d.ts.map +0 -1
  201. package/build/src/authorization/OidcAuthorization.js +0 -146
  202. package/build/src/authorization/OidcAuthorization.js.map +0 -1
  203. package/build/src/authorization/Utils.d.ts +0 -52
  204. package/build/src/authorization/Utils.d.ts.map +0 -1
  205. package/build/src/authorization/Utils.js +0 -130
  206. package/build/src/authorization/Utils.js.map +0 -1
  207. package/build/src/authorization/index.d.ts +0 -10
  208. package/build/src/authorization/index.d.ts.map +0 -1
  209. package/build/src/authorization/index.js +0 -10
  210. package/build/src/authorization/index.js.map +0 -1
  211. package/build/src/authorization/lib/IframeAuthorization.d.ts +0 -54
  212. package/build/src/authorization/lib/IframeAuthorization.d.ts.map +0 -1
  213. package/build/src/authorization/lib/IframeAuthorization.js +0 -115
  214. package/build/src/authorization/lib/IframeAuthorization.js.map +0 -1
  215. package/build/src/authorization/lib/KnownGrants.d.ts +0 -7
  216. package/build/src/authorization/lib/KnownGrants.d.ts.map +0 -1
  217. package/build/src/authorization/lib/KnownGrants.js +0 -7
  218. package/build/src/authorization/lib/KnownGrants.js.map +0 -1
  219. package/build/src/authorization/lib/PopupAuthorization.d.ts +0 -42
  220. package/build/src/authorization/lib/PopupAuthorization.d.ts.map +0 -1
  221. package/build/src/authorization/lib/PopupAuthorization.js +0 -73
  222. package/build/src/authorization/lib/PopupAuthorization.js.map +0 -1
  223. package/build/src/authorization/lib/SecurityProcessor.d.ts +0 -67
  224. package/build/src/authorization/lib/SecurityProcessor.d.ts.map +0 -1
  225. package/build/src/authorization/lib/SecurityProcessor.js +0 -245
  226. package/build/src/authorization/lib/SecurityProcessor.js.map +0 -1
  227. package/build/src/authorization/lib/Tokens.d.ts +0 -56
  228. package/build/src/authorization/lib/Tokens.d.ts.map +0 -1
  229. package/build/src/authorization/lib/Tokens.js +0 -121
  230. package/build/src/authorization/lib/Tokens.js.map +0 -1
  231. package/build/src/authorization/lib/Utils.d.ts +0 -45
  232. package/build/src/authorization/lib/Utils.d.ts.map +0 -1
  233. package/build/src/authorization/lib/Utils.js +0 -91
  234. package/build/src/authorization/lib/Utils.js.map +0 -1
  235. package/build/src/authorization/types.d.ts +0 -196
  236. package/build/src/authorization/types.d.ts.map +0 -1
  237. package/build/src/authorization/types.js +0 -2
  238. package/build/src/authorization/types.js.map +0 -1
  239. package/build/src/cookies/CookieJar.d.ts +0 -24
  240. package/build/src/cookies/CookieJar.d.ts.map +0 -1
  241. package/build/src/cookies/CookieJar.js +0 -3
  242. package/build/src/cookies/CookieJar.js.map +0 -1
  243. package/build/src/cookies/CookieParser.d.ts +0 -81
  244. package/build/src/cookies/CookieParser.d.ts.map +0 -1
  245. package/build/src/cookies/CookieParser.js +0 -333
  246. package/build/src/cookies/CookieParser.js.map +0 -1
  247. package/build/src/cookies/InMemoryCookieJar.d.ts +0 -13
  248. package/build/src/cookies/InMemoryCookieJar.d.ts.map +0 -1
  249. package/build/src/cookies/InMemoryCookieJar.js +0 -68
  250. package/build/src/cookies/InMemoryCookieJar.js.map +0 -1
  251. package/build/src/cookies/Punycode.d.ts +0 -13
  252. package/build/src/cookies/Punycode.d.ts.map +0 -1
  253. package/build/src/cookies/Punycode.js +0 -127
  254. package/build/src/cookies/Punycode.js.map +0 -1
  255. package/build/src/data/DataExtractor.d.ts +0 -66
  256. package/build/src/data/DataExtractor.d.ts.map +0 -1
  257. package/build/src/data/DataExtractor.js +0 -178
  258. package/build/src/data/DataExtractor.js.map +0 -1
  259. package/build/src/data/DataReader.d.ts +0 -11
  260. package/build/src/data/DataReader.d.ts.map +0 -1
  261. package/build/src/data/DataReader.js +0 -4
  262. package/build/src/data/DataReader.js.map +0 -1
  263. package/build/src/data/JmespathReader.d.ts +0 -13
  264. package/build/src/data/JmespathReader.d.ts.map +0 -1
  265. package/build/src/data/JmespathReader.js +0 -27
  266. package/build/src/data/JmespathReader.js.map +0 -1
  267. package/build/src/data/Json2Xml.d.ts +0 -86
  268. package/build/src/data/Json2Xml.d.ts.map +0 -1
  269. package/build/src/data/Json2Xml.js +0 -187
  270. package/build/src/data/Json2Xml.js.map +0 -1
  271. package/build/src/data/JsonReader.d.ts +0 -9
  272. package/build/src/data/JsonReader.d.ts.map +0 -1
  273. package/build/src/data/JsonReader.js +0 -40
  274. package/build/src/data/JsonReader.js.map +0 -1
  275. package/build/src/data/PayloadPointer.d.ts +0 -22
  276. package/build/src/data/PayloadPointer.d.ts.map +0 -1
  277. package/build/src/data/PayloadPointer.js +0 -48
  278. package/build/src/data/PayloadPointer.js.map +0 -1
  279. package/build/src/data/RequestDataExtractor.d.ts +0 -49
  280. package/build/src/data/RequestDataExtractor.d.ts.map +0 -1
  281. package/build/src/data/RequestDataExtractor.js +0 -111
  282. package/build/src/data/RequestDataExtractor.js.map +0 -1
  283. package/build/src/data/UrlEncodedReader.d.ts +0 -13
  284. package/build/src/data/UrlEncodedReader.d.ts.map +0 -1
  285. package/build/src/data/UrlEncodedReader.js +0 -21
  286. package/build/src/data/UrlEncodedReader.js.map +0 -1
  287. package/build/src/data/XmlReader.d.ts +0 -15
  288. package/build/src/data/XmlReader.d.ts.map +0 -1
  289. package/build/src/data/XmlReader.js +0 -122
  290. package/build/src/data/XmlReader.js.map +0 -1
  291. package/build/src/data/index.d.ts +0 -10
  292. package/build/src/data/index.d.ts.map +0 -1
  293. package/build/src/data/index.js +0 -10
  294. package/build/src/data/index.js.map +0 -1
  295. package/build/src/events/authorization/AuthorizationEventTypes.d.ts +0 -23
  296. package/build/src/events/authorization/AuthorizationEventTypes.d.ts.map +0 -1
  297. package/build/src/events/authorization/AuthorizationEventTypes.js +0 -23
  298. package/build/src/events/authorization/AuthorizationEventTypes.js.map +0 -1
  299. package/build/src/events/authorization/AuthorizationEvents.d.ts +0 -35
  300. package/build/src/events/authorization/AuthorizationEvents.d.ts.map +0 -1
  301. package/build/src/events/authorization/AuthorizationEvents.js +0 -55
  302. package/build/src/events/authorization/AuthorizationEvents.js.map +0 -1
  303. package/build/src/events/cookies/CookieEventTypes.d.ts +0 -14
  304. package/build/src/events/cookies/CookieEventTypes.d.ts.map +0 -1
  305. package/build/src/events/cookies/CookieEventTypes.js +0 -14
  306. package/build/src/events/cookies/CookieEventTypes.js.map +0 -1
  307. package/build/src/events/cookies/CookieEvents.d.ts +0 -92
  308. package/build/src/events/cookies/CookieEvents.d.ts.map +0 -1
  309. package/build/src/events/cookies/CookieEvents.js +0 -128
  310. package/build/src/events/cookies/CookieEvents.js.map +0 -1
  311. package/build/src/events/environment/EnvironmentEventTypes.d.ts +0 -4
  312. package/build/src/events/environment/EnvironmentEventTypes.d.ts.map +0 -1
  313. package/build/src/events/environment/EnvironmentEventTypes.js +0 -4
  314. package/build/src/events/environment/EnvironmentEventTypes.js.map +0 -1
  315. package/build/src/events/environment/EnvironmentEvents.d.ts +0 -16
  316. package/build/src/events/environment/EnvironmentEvents.d.ts.map +0 -1
  317. package/build/src/events/environment/EnvironmentEvents.js +0 -20
  318. package/build/src/events/environment/EnvironmentEvents.js.map +0 -1
  319. package/build/src/events/transport/TransportEventTypes.d.ts +0 -30
  320. package/build/src/events/transport/TransportEventTypes.d.ts.map +0 -1
  321. package/build/src/events/transport/TransportEventTypes.js +0 -31
  322. package/build/src/events/transport/TransportEventTypes.js.map +0 -1
  323. package/build/src/events/transport/TransportEvents.d.ts +0 -63
  324. package/build/src/events/transport/TransportEvents.d.ts.map +0 -1
  325. package/build/src/events/transport/TransportEvents.js +0 -77
  326. package/build/src/events/transport/TransportEvents.js.map +0 -1
  327. package/build/src/legacy.d.ts +0 -40
  328. package/build/src/legacy.d.ts.map +0 -1
  329. package/build/src/legacy.js +0 -40
  330. package/build/src/legacy.js.map +0 -1
  331. package/build/src/lib/Buffer.d.ts +0 -21
  332. package/build/src/lib/Buffer.d.ts.map +0 -1
  333. package/build/src/lib/Buffer.js +0 -57
  334. package/build/src/lib/Buffer.js.map +0 -1
  335. package/build/src/lib/definitions/HttpDefinitions.d.ts +0 -35
  336. package/build/src/lib/definitions/HttpDefinitions.d.ts.map +0 -1
  337. package/build/src/lib/definitions/HttpDefinitions.js +0 -59
  338. package/build/src/lib/definitions/HttpDefinitions.js.map +0 -1
  339. package/build/src/lib/fs/Fs.d.ts +0 -53
  340. package/build/src/lib/fs/Fs.d.ts.map +0 -1
  341. package/build/src/lib/fs/Fs.js +0 -245
  342. package/build/src/lib/fs/Fs.js.map +0 -1
  343. package/build/src/lib/headers/HeadersData.d.ts +0 -36
  344. package/build/src/lib/headers/HeadersData.d.ts.map +0 -1
  345. package/build/src/lib/headers/HeadersData.js +0 -657
  346. package/build/src/lib/headers/HeadersData.js.map +0 -1
  347. package/build/src/lib/parsers/UriTemplate.d.ts +0 -110
  348. package/build/src/lib/parsers/UriTemplate.d.ts.map +0 -1
  349. package/build/src/lib/parsers/UriTemplate.js +0 -437
  350. package/build/src/lib/parsers/UriTemplate.js.map +0 -1
  351. package/build/src/lib/parsers/UrlEncoder.d.ts +0 -57
  352. package/build/src/lib/parsers/UrlEncoder.d.ts.map +0 -1
  353. package/build/src/lib/parsers/UrlEncoder.js +0 -125
  354. package/build/src/lib/parsers/UrlEncoder.js.map +0 -1
  355. package/build/src/lib/parsers/UrlParser.d.ts +0 -105
  356. package/build/src/lib/parsers/UrlParser.d.ts.map +0 -1
  357. package/build/src/lib/parsers/UrlParser.js +0 -190
  358. package/build/src/lib/parsers/UrlParser.js.map +0 -1
  359. package/build/src/lib/parsers/UrlProcessor.d.ts +0 -285
  360. package/build/src/lib/parsers/UrlProcessor.d.ts.map +0 -1
  361. package/build/src/lib/parsers/UrlProcessor.js +0 -763
  362. package/build/src/lib/parsers/UrlProcessor.js.map +0 -1
  363. package/build/src/lib/parsers/UrlValueParser.d.ts +0 -93
  364. package/build/src/lib/parsers/UrlValueParser.d.ts.map +0 -1
  365. package/build/src/lib/parsers/UrlValueParser.js +0 -172
  366. package/build/src/lib/parsers/UrlValueParser.js.map +0 -1
  367. package/build/src/lib/timers/Timers.d.ts +0 -15
  368. package/build/src/lib/timers/Timers.d.ts.map +0 -1
  369. package/build/src/lib/timers/Timers.js +0 -28
  370. package/build/src/lib/timers/Timers.js.map +0 -1
  371. package/build/src/lib/transformers/PayloadSerializer.d.ts +0 -221
  372. package/build/src/lib/transformers/PayloadSerializer.d.ts.map +0 -1
  373. package/build/src/lib/transformers/PayloadSerializer.js +0 -423
  374. package/build/src/lib/transformers/PayloadSerializer.js.map +0 -1
  375. package/build/src/mocking/LegacyInterfaces.d.ts +0 -47
  376. package/build/src/mocking/LegacyInterfaces.d.ts.map +0 -1
  377. package/build/src/mocking/LegacyInterfaces.js +0 -2
  378. package/build/src/mocking/LegacyInterfaces.js.map +0 -1
  379. package/build/src/mocking/LegacyMock.d.ts +0 -25
  380. package/build/src/mocking/LegacyMock.d.ts.map +0 -1
  381. package/build/src/mocking/LegacyMock.js +0 -34
  382. package/build/src/mocking/LegacyMock.js.map +0 -1
  383. package/build/src/mocking/ProjectMock.d.ts +0 -27
  384. package/build/src/mocking/ProjectMock.d.ts.map +0 -1
  385. package/build/src/mocking/ProjectMock.js +0 -31
  386. package/build/src/mocking/ProjectMock.js.map +0 -1
  387. package/build/src/mocking/legacy/Authorization.d.ts +0 -21
  388. package/build/src/mocking/legacy/Authorization.d.ts.map +0 -1
  389. package/build/src/mocking/legacy/Authorization.js +0 -35
  390. package/build/src/mocking/legacy/Authorization.js.map +0 -1
  391. package/build/src/mocking/legacy/Certificates.d.ts +0 -57
  392. package/build/src/mocking/legacy/Certificates.d.ts.map +0 -1
  393. package/build/src/mocking/legacy/Certificates.js +0 -128
  394. package/build/src/mocking/legacy/Certificates.js.map +0 -1
  395. package/build/src/mocking/legacy/Cookies.d.ts +0 -22
  396. package/build/src/mocking/legacy/Cookies.d.ts.map +0 -1
  397. package/build/src/mocking/legacy/Cookies.js +0 -48
  398. package/build/src/mocking/legacy/Cookies.js.map +0 -1
  399. package/build/src/mocking/legacy/HostRules.d.ts +0 -23
  400. package/build/src/mocking/legacy/HostRules.d.ts.map +0 -1
  401. package/build/src/mocking/legacy/HostRules.js +0 -40
  402. package/build/src/mocking/legacy/HostRules.js.map +0 -1
  403. package/build/src/mocking/legacy/Http.d.ts +0 -85
  404. package/build/src/mocking/legacy/Http.d.ts.map +0 -1
  405. package/build/src/mocking/legacy/Http.js +0 -199
  406. package/build/src/mocking/legacy/Http.js.map +0 -1
  407. package/build/src/mocking/legacy/HttpResponse.d.ts +0 -24
  408. package/build/src/mocking/legacy/HttpResponse.d.ts.map +0 -1
  409. package/build/src/mocking/legacy/HttpResponse.js +0 -98
  410. package/build/src/mocking/legacy/HttpResponse.js.map +0 -1
  411. package/build/src/mocking/legacy/RestApi.d.ts +0 -16
  412. package/build/src/mocking/legacy/RestApi.d.ts.map +0 -1
  413. package/build/src/mocking/legacy/RestApi.js +0 -63
  414. package/build/src/mocking/legacy/RestApi.js.map +0 -1
  415. package/build/src/mocking/legacy/Urls.d.ts +0 -22
  416. package/build/src/mocking/legacy/Urls.d.ts.map +0 -1
  417. package/build/src/mocking/legacy/Urls.js +0 -41
  418. package/build/src/mocking/legacy/Urls.js.map +0 -1
  419. package/build/src/mocking/legacy/Variables.d.ts +0 -19
  420. package/build/src/mocking/legacy/Variables.d.ts.map +0 -1
  421. package/build/src/mocking/legacy/Variables.js +0 -51
  422. package/build/src/mocking/legacy/Variables.js.map +0 -1
  423. package/build/src/mocking/lib/Certificates.d.ts +0 -28
  424. package/build/src/mocking/lib/Certificates.d.ts.map +0 -1
  425. package/build/src/mocking/lib/Certificates.js +0 -55
  426. package/build/src/mocking/lib/Certificates.js.map +0 -1
  427. package/build/src/mocking/lib/History.d.ts +0 -75
  428. package/build/src/mocking/lib/History.d.ts.map +0 -1
  429. package/build/src/mocking/lib/History.js +0 -128
  430. package/build/src/mocking/lib/History.js.map +0 -1
  431. package/build/src/mocking/lib/HostRules.d.ts +0 -23
  432. package/build/src/mocking/lib/HostRules.d.ts.map +0 -1
  433. package/build/src/mocking/lib/HostRules.js +0 -40
  434. package/build/src/mocking/lib/HostRules.js.map +0 -1
  435. package/build/src/mocking/lib/Request.d.ts +0 -44
  436. package/build/src/mocking/lib/Request.d.ts.map +0 -1
  437. package/build/src/mocking/lib/Request.js +0 -70
  438. package/build/src/mocking/lib/Request.js.map +0 -1
  439. package/build/src/mocking/lib/Response.d.ts +0 -38
  440. package/build/src/mocking/lib/Response.d.ts.map +0 -1
  441. package/build/src/mocking/lib/Response.js +0 -99
  442. package/build/src/mocking/lib/Response.js.map +0 -1
  443. package/build/src/mocking/lib/Url.d.ts +0 -22
  444. package/build/src/mocking/lib/Url.d.ts.map +0 -1
  445. package/build/src/mocking/lib/Url.js +0 -40
  446. package/build/src/mocking/lib/Url.js.map +0 -1
  447. package/build/src/models/Authorization.d.ts +0 -452
  448. package/build/src/models/Authorization.d.ts.map +0 -1
  449. package/build/src/models/Authorization.js +0 -2
  450. package/build/src/models/Authorization.js.map +0 -1
  451. package/build/src/models/AuthorizationData.d.ts +0 -30
  452. package/build/src/models/AuthorizationData.d.ts.map +0 -1
  453. package/build/src/models/AuthorizationData.js +0 -59
  454. package/build/src/models/AuthorizationData.js.map +0 -1
  455. package/build/src/models/CertificateFile.d.ts +0 -19
  456. package/build/src/models/CertificateFile.d.ts.map +0 -1
  457. package/build/src/models/CertificateFile.js +0 -70
  458. package/build/src/models/CertificateFile.js.map +0 -1
  459. package/build/src/models/ClientCertificate.d.ts +0 -188
  460. package/build/src/models/ClientCertificate.d.ts.map +0 -1
  461. package/build/src/models/ClientCertificate.js +0 -193
  462. package/build/src/models/ClientCertificate.js.map +0 -1
  463. package/build/src/models/Environment.d.ts +0 -134
  464. package/build/src/models/Environment.d.ts.map +0 -1
  465. package/build/src/models/Environment.js +0 -256
  466. package/build/src/models/Environment.js.map +0 -1
  467. package/build/src/models/ErrorResponse.d.ts +0 -37
  468. package/build/src/models/ErrorResponse.d.ts.map +0 -1
  469. package/build/src/models/ErrorResponse.js +0 -103
  470. package/build/src/models/ErrorResponse.js.map +0 -1
  471. package/build/src/models/HeadersArray.d.ts +0 -22
  472. package/build/src/models/HeadersArray.d.ts.map +0 -1
  473. package/build/src/models/HeadersArray.js +0 -58
  474. package/build/src/models/HeadersArray.js.map +0 -1
  475. package/build/src/models/HostRule.d.ts +0 -87
  476. package/build/src/models/HostRule.d.ts.map +0 -1
  477. package/build/src/models/HostRule.js +0 -142
  478. package/build/src/models/HostRule.js.map +0 -1
  479. package/build/src/models/HttpCookie.d.ts +0 -175
  480. package/build/src/models/HttpCookie.d.ts.map +0 -1
  481. package/build/src/models/HttpCookie.js +0 -343
  482. package/build/src/models/HttpCookie.js.map +0 -1
  483. package/build/src/models/HttpHistory.d.ts +0 -143
  484. package/build/src/models/HttpHistory.d.ts.map +0 -1
  485. package/build/src/models/HttpHistory.js +0 -179
  486. package/build/src/models/HttpHistory.js.map +0 -1
  487. package/build/src/models/HttpProject.d.ts +0 -540
  488. package/build/src/models/HttpProject.d.ts.map +0 -1
  489. package/build/src/models/HttpProject.js +0 -1237
  490. package/build/src/models/HttpProject.js.map +0 -1
  491. package/build/src/models/HttpRequest.d.ts +0 -88
  492. package/build/src/models/HttpRequest.d.ts.map +0 -1
  493. package/build/src/models/HttpRequest.js +0 -127
  494. package/build/src/models/HttpRequest.js.map +0 -1
  495. package/build/src/models/HttpResponse.d.ts +0 -54
  496. package/build/src/models/HttpResponse.d.ts.map +0 -1
  497. package/build/src/models/HttpResponse.js +0 -114
  498. package/build/src/models/HttpResponse.js.map +0 -1
  499. package/build/src/models/License.d.ts +0 -53
  500. package/build/src/models/License.d.ts.map +0 -1
  501. package/build/src/models/License.js +0 -91
  502. package/build/src/models/License.js.map +0 -1
  503. package/build/src/models/Project.d.ts +0 -27
  504. package/build/src/models/Project.d.ts.map +0 -1
  505. package/build/src/models/Project.js +0 -81
  506. package/build/src/models/Project.js.map +0 -1
  507. package/build/src/models/ProjectDefinitionProperty.d.ts +0 -35
  508. package/build/src/models/ProjectDefinitionProperty.d.ts.map +0 -1
  509. package/build/src/models/ProjectDefinitionProperty.js +0 -2
  510. package/build/src/models/ProjectDefinitionProperty.js.map +0 -1
  511. package/build/src/models/ProjectExecution.d.ts +0 -116
  512. package/build/src/models/ProjectExecution.d.ts.map +0 -1
  513. package/build/src/models/ProjectExecution.js +0 -147
  514. package/build/src/models/ProjectExecution.js.map +0 -1
  515. package/build/src/models/ProjectFolder.d.ts +0 -219
  516. package/build/src/models/ProjectFolder.d.ts.map +0 -1
  517. package/build/src/models/ProjectFolder.js +0 -341
  518. package/build/src/models/ProjectFolder.js.map +0 -1
  519. package/build/src/models/ProjectItem.d.ts +0 -68
  520. package/build/src/models/ProjectItem.d.ts.map +0 -1
  521. package/build/src/models/ProjectItem.js +0 -139
  522. package/build/src/models/ProjectItem.js.map +0 -1
  523. package/build/src/models/ProjectParent.d.ts +0 -27
  524. package/build/src/models/ProjectParent.d.ts.map +0 -1
  525. package/build/src/models/ProjectParent.js +0 -19
  526. package/build/src/models/ProjectParent.js.map +0 -1
  527. package/build/src/models/ProjectRequest.d.ts +0 -203
  528. package/build/src/models/ProjectRequest.d.ts.map +0 -1
  529. package/build/src/models/ProjectRequest.js +0 -440
  530. package/build/src/models/ProjectRequest.js.map +0 -1
  531. package/build/src/models/ProjectSchema.d.ts +0 -106
  532. package/build/src/models/ProjectSchema.d.ts.map +0 -1
  533. package/build/src/models/ProjectSchema.js +0 -156
  534. package/build/src/models/ProjectSchema.js.map +0 -1
  535. package/build/src/models/Property.d.ts +0 -140
  536. package/build/src/models/Property.d.ts.map +0 -1
  537. package/build/src/models/Property.js +0 -427
  538. package/build/src/models/Property.js.map +0 -1
  539. package/build/src/models/Provider.d.ts +0 -54
  540. package/build/src/models/Provider.d.ts.map +0 -1
  541. package/build/src/models/Provider.js +0 -75
  542. package/build/src/models/Provider.js.map +0 -1
  543. package/build/src/models/Request.d.ts +0 -175
  544. package/build/src/models/Request.d.ts.map +0 -1
  545. package/build/src/models/Request.js +0 -398
  546. package/build/src/models/Request.js.map +0 -1
  547. package/build/src/models/RequestAuthorization.d.ts +0 -58
  548. package/build/src/models/RequestAuthorization.d.ts.map +0 -1
  549. package/build/src/models/RequestAuthorization.js +0 -88
  550. package/build/src/models/RequestAuthorization.js.map +0 -1
  551. package/build/src/models/RequestConfig.d.ts +0 -174
  552. package/build/src/models/RequestConfig.d.ts.map +0 -1
  553. package/build/src/models/RequestConfig.js +0 -274
  554. package/build/src/models/RequestConfig.js.map +0 -1
  555. package/build/src/models/RequestLog.d.ts +0 -88
  556. package/build/src/models/RequestLog.d.ts.map +0 -1
  557. package/build/src/models/RequestLog.js +0 -158
  558. package/build/src/models/RequestLog.js.map +0 -1
  559. package/build/src/models/RequestTime.d.ts +0 -35
  560. package/build/src/models/RequestTime.d.ts.map +0 -1
  561. package/build/src/models/RequestTime.js +0 -89
  562. package/build/src/models/RequestTime.js.map +0 -1
  563. package/build/src/models/RequestUiMeta.d.ts +0 -166
  564. package/build/src/models/RequestUiMeta.d.ts.map +0 -1
  565. package/build/src/models/RequestUiMeta.js +0 -110
  566. package/build/src/models/RequestUiMeta.js.map +0 -1
  567. package/build/src/models/RequestsSize.d.ts +0 -33
  568. package/build/src/models/RequestsSize.d.ts.map +0 -1
  569. package/build/src/models/RequestsSize.js +0 -50
  570. package/build/src/models/RequestsSize.js.map +0 -1
  571. package/build/src/models/Response.d.ts +0 -61
  572. package/build/src/models/Response.d.ts.map +0 -1
  573. package/build/src/models/Response.js +0 -140
  574. package/build/src/models/Response.js.map +0 -1
  575. package/build/src/models/ResponseAuthorization.d.ts +0 -55
  576. package/build/src/models/ResponseAuthorization.d.ts.map +0 -1
  577. package/build/src/models/ResponseAuthorization.js +0 -82
  578. package/build/src/models/ResponseAuthorization.js.map +0 -1
  579. package/build/src/models/ResponseRedirect.d.ts +0 -72
  580. package/build/src/models/ResponseRedirect.d.ts.map +0 -1
  581. package/build/src/models/ResponseRedirect.js +0 -125
  582. package/build/src/models/ResponseRedirect.js.map +0 -1
  583. package/build/src/models/SentRequest.d.ts +0 -61
  584. package/build/src/models/SentRequest.d.ts.map +0 -1
  585. package/build/src/models/SentRequest.js +0 -91
  586. package/build/src/models/SentRequest.js.map +0 -1
  587. package/build/src/models/SerializablePayload.d.ts +0 -60
  588. package/build/src/models/SerializablePayload.d.ts.map +0 -1
  589. package/build/src/models/SerializablePayload.js +0 -79
  590. package/build/src/models/SerializablePayload.js.map +0 -1
  591. package/build/src/models/Server.d.ts +0 -89
  592. package/build/src/models/Server.d.ts.map +0 -1
  593. package/build/src/models/Server.js +0 -151
  594. package/build/src/models/Server.js.map +0 -1
  595. package/build/src/models/Url.d.ts +0 -50
  596. package/build/src/models/Url.d.ts.map +0 -1
  597. package/build/src/models/Url.js +0 -69
  598. package/build/src/models/Url.js.map +0 -1
  599. package/build/src/models/http-flows/AssertionError.d.ts +0 -37
  600. package/build/src/models/http-flows/AssertionError.d.ts.map +0 -1
  601. package/build/src/models/http-flows/AssertionError.js +0 -35
  602. package/build/src/models/http-flows/AssertionError.js.map +0 -1
  603. package/build/src/models/http-flows/HttpAssertion.d.ts +0 -86
  604. package/build/src/models/http-flows/HttpAssertion.d.ts.map +0 -1
  605. package/build/src/models/http-flows/HttpAssertion.js +0 -53
  606. package/build/src/models/http-flows/HttpAssertion.js.map +0 -1
  607. package/build/src/models/http-flows/HttpFlows.d.ts +0 -78
  608. package/build/src/models/http-flows/HttpFlows.d.ts.map +0 -1
  609. package/build/src/models/http-flows/HttpFlows.js +0 -35
  610. package/build/src/models/http-flows/HttpFlows.js.map +0 -1
  611. package/build/src/models/http-flows/HttpStep.d.ts +0 -30
  612. package/build/src/models/http-flows/HttpStep.d.ts.map +0 -1
  613. package/build/src/models/http-flows/HttpStep.js +0 -30
  614. package/build/src/models/http-flows/HttpStep.js.map +0 -1
  615. package/build/src/models/http-flows/LegacyTranslator.d.ts +0 -18
  616. package/build/src/models/http-flows/LegacyTranslator.d.ts.map +0 -1
  617. package/build/src/models/http-flows/LegacyTranslator.js +0 -278
  618. package/build/src/models/http-flows/LegacyTranslator.js.map +0 -1
  619. package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts +0 -75
  620. package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts.map +0 -1
  621. package/build/src/models/http-flows/steps/assertion/EqualAssertion.js +0 -79
  622. package/build/src/models/http-flows/steps/assertion/EqualAssertion.js.map +0 -1
  623. package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts +0 -35
  624. package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts.map +0 -1
  625. package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js +0 -59
  626. package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js.map +0 -1
  627. package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts +0 -27
  628. package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts.map +0 -1
  629. package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js +0 -45
  630. package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js.map +0 -1
  631. package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts +0 -19
  632. package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts.map +0 -1
  633. package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js +0 -29
  634. package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js.map +0 -1
  635. package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts +0 -19
  636. package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts.map +0 -1
  637. package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js +0 -29
  638. package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js.map +0 -1
  639. package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts +0 -27
  640. package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts.map +0 -1
  641. package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js +0 -45
  642. package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js.map +0 -1
  643. package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts +0 -35
  644. package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts.map +0 -1
  645. package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js +0 -59
  646. package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js.map +0 -1
  647. package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts +0 -27
  648. package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts.map +0 -1
  649. package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js +0 -45
  650. package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js.map +0 -1
  651. package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts +0 -39
  652. package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts.map +0 -1
  653. package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js +0 -60
  654. package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js.map +0 -1
  655. package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts +0 -75
  656. package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts.map +0 -1
  657. package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js +0 -79
  658. package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js.map +0 -1
  659. package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts +0 -27
  660. package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts.map +0 -1
  661. package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js +0 -45
  662. package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js.map +0 -1
  663. package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts +0 -19
  664. package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts.map +0 -1
  665. package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js +0 -29
  666. package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js.map +0 -1
  667. package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts +0 -28
  668. package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts.map +0 -1
  669. package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js +0 -45
  670. package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js.map +0 -1
  671. package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts +0 -19
  672. package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts.map +0 -1
  673. package/build/src/models/http-flows/steps/assertion/OkAssertion.js +0 -29
  674. package/build/src/models/http-flows/steps/assertion/OkAssertion.js.map +0 -1
  675. package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts +0 -34
  676. package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts.map +0 -1
  677. package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js +0 -53
  678. package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js.map +0 -1
  679. package/build/src/models/http-flows/steps/assertion/index.d.ts +0 -16
  680. package/build/src/models/http-flows/steps/assertion/index.d.ts.map +0 -1
  681. package/build/src/models/http-flows/steps/assertion/index.js +0 -16
  682. package/build/src/models/http-flows/steps/assertion/index.js.map +0 -1
  683. package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts +0 -49
  684. package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts.map +0 -1
  685. package/build/src/models/http-flows/steps/data/DeleteCookieStep.js +0 -73
  686. package/build/src/models/http-flows/steps/data/DeleteCookieStep.js.map +0 -1
  687. package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts +0 -37
  688. package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts.map +0 -1
  689. package/build/src/models/http-flows/steps/data/DeleteVariableStep.js +0 -45
  690. package/build/src/models/http-flows/steps/data/DeleteVariableStep.js.map +0 -1
  691. package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts +0 -54
  692. package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts.map +0 -1
  693. package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js +0 -60
  694. package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js.map +0 -1
  695. package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts +0 -68
  696. package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts.map +0 -1
  697. package/build/src/models/http-flows/steps/data/ReadDataStep.js +0 -78
  698. package/build/src/models/http-flows/steps/data/ReadDataStep.js.map +0 -1
  699. package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts +0 -46
  700. package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts.map +0 -1
  701. package/build/src/models/http-flows/steps/data/ReadValueStep.js +0 -53
  702. package/build/src/models/http-flows/steps/data/ReadValueStep.js.map +0 -1
  703. package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts +0 -102
  704. package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts.map +0 -1
  705. package/build/src/models/http-flows/steps/data/SetCookieStep.js +0 -139
  706. package/build/src/models/http-flows/steps/data/SetCookieStep.js.map +0 -1
  707. package/build/src/models/http-flows/steps/data/SetDataStep.d.ts +0 -78
  708. package/build/src/models/http-flows/steps/data/SetDataStep.d.ts.map +0 -1
  709. package/build/src/models/http-flows/steps/data/SetDataStep.js +0 -70
  710. package/build/src/models/http-flows/steps/data/SetDataStep.js.map +0 -1
  711. package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts +0 -41
  712. package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts.map +0 -1
  713. package/build/src/models/http-flows/steps/data/SetVariableStep.js +0 -45
  714. package/build/src/models/http-flows/steps/data/SetVariableStep.js.map +0 -1
  715. package/build/src/models/http-flows/steps/data/index.d.ts +0 -9
  716. package/build/src/models/http-flows/steps/data/index.d.ts.map +0 -1
  717. package/build/src/models/http-flows/steps/data/index.js +0 -9
  718. package/build/src/models/http-flows/steps/data/index.js.map +0 -1
  719. package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts +0 -19
  720. package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts.map +0 -1
  721. package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js +0 -29
  722. package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js.map +0 -1
  723. package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts +0 -19
  724. package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts.map +0 -1
  725. package/build/src/models/http-flows/steps/transformation/AsNumberStep.js +0 -29
  726. package/build/src/models/http-flows/steps/transformation/AsNumberStep.js.map +0 -1
  727. package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts +0 -19
  728. package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts.map +0 -1
  729. package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js +0 -29
  730. package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js.map +0 -1
  731. package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts +0 -44
  732. package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts.map +0 -1
  733. package/build/src/models/http-flows/steps/transformation/RoundStep.js +0 -53
  734. package/build/src/models/http-flows/steps/transformation/RoundStep.js.map +0 -1
  735. package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts +0 -41
  736. package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts.map +0 -1
  737. package/build/src/models/http-flows/steps/transformation/SubstringStep.js +0 -67
  738. package/build/src/models/http-flows/steps/transformation/SubstringStep.js.map +0 -1
  739. package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts +0 -21
  740. package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts.map +0 -1
  741. package/build/src/models/http-flows/steps/transformation/TrimStep.js +0 -30
  742. package/build/src/models/http-flows/steps/transformation/TrimStep.js.map +0 -1
  743. package/build/src/models/http-flows/steps/transformation/index.d.ts +0 -7
  744. package/build/src/models/http-flows/steps/transformation/index.d.ts.map +0 -1
  745. package/build/src/models/http-flows/steps/transformation/index.js +0 -7
  746. package/build/src/models/http-flows/steps/transformation/index.js.map +0 -1
  747. package/build/src/models/legacy/DataExport.d.ts +0 -243
  748. package/build/src/models/legacy/DataExport.d.ts.map +0 -1
  749. package/build/src/models/legacy/DataExport.js +0 -2
  750. package/build/src/models/legacy/DataExport.js.map +0 -1
  751. package/build/src/models/legacy/Normalizer.d.ts +0 -12
  752. package/build/src/models/legacy/Normalizer.d.ts.map +0 -1
  753. package/build/src/models/legacy/Normalizer.js +0 -98
  754. package/build/src/models/legacy/Normalizer.js.map +0 -1
  755. package/build/src/models/legacy/actions/Actions.d.ts +0 -259
  756. package/build/src/models/legacy/actions/Actions.d.ts.map +0 -1
  757. package/build/src/models/legacy/actions/Actions.js +0 -2
  758. package/build/src/models/legacy/actions/Actions.js.map +0 -1
  759. package/build/src/models/legacy/authorization/Authorization.d.ts +0 -542
  760. package/build/src/models/legacy/authorization/Authorization.d.ts.map +0 -1
  761. package/build/src/models/legacy/authorization/Authorization.js +0 -2
  762. package/build/src/models/legacy/authorization/Authorization.js.map +0 -1
  763. package/build/src/models/legacy/models/ApiTypes.d.ts +0 -193
  764. package/build/src/models/legacy/models/ApiTypes.d.ts.map +0 -1
  765. package/build/src/models/legacy/models/ApiTypes.js +0 -2
  766. package/build/src/models/legacy/models/ApiTypes.js.map +0 -1
  767. package/build/src/models/legacy/models/ArcLegacyProject.d.ts +0 -38
  768. package/build/src/models/legacy/models/ArcLegacyProject.d.ts.map +0 -1
  769. package/build/src/models/legacy/models/ArcLegacyProject.js +0 -2
  770. package/build/src/models/legacy/models/ArcLegacyProject.js.map +0 -1
  771. package/build/src/models/legacy/models/AuthData.d.ts +0 -15
  772. package/build/src/models/legacy/models/AuthData.d.ts.map +0 -1
  773. package/build/src/models/legacy/models/AuthData.js +0 -2
  774. package/build/src/models/legacy/models/AuthData.js.map +0 -1
  775. package/build/src/models/legacy/models/ClientCertificate.d.ts +0 -90
  776. package/build/src/models/legacy/models/ClientCertificate.d.ts.map +0 -1
  777. package/build/src/models/legacy/models/ClientCertificate.js +0 -2
  778. package/build/src/models/legacy/models/ClientCertificate.js.map +0 -1
  779. package/build/src/models/legacy/models/Cookies.d.ts +0 -53
  780. package/build/src/models/legacy/models/Cookies.d.ts.map +0 -1
  781. package/build/src/models/legacy/models/Cookies.js +0 -2
  782. package/build/src/models/legacy/models/Cookies.js.map +0 -1
  783. package/build/src/models/legacy/models/HostRule.d.ts +0 -34
  784. package/build/src/models/legacy/models/HostRule.d.ts.map +0 -1
  785. package/build/src/models/legacy/models/HostRule.js +0 -2
  786. package/build/src/models/legacy/models/HostRule.js.map +0 -1
  787. package/build/src/models/legacy/models/RestApi.d.ts +0 -48
  788. package/build/src/models/legacy/models/RestApi.d.ts.map +0 -1
  789. package/build/src/models/legacy/models/RestApi.js +0 -2
  790. package/build/src/models/legacy/models/RestApi.js.map +0 -1
  791. package/build/src/models/legacy/models/UrlHistory.d.ts +0 -33
  792. package/build/src/models/legacy/models/UrlHistory.d.ts.map +0 -1
  793. package/build/src/models/legacy/models/UrlHistory.js +0 -2
  794. package/build/src/models/legacy/models/UrlHistory.js.map +0 -1
  795. package/build/src/models/legacy/models/Variable.d.ts +0 -37
  796. package/build/src/models/legacy/models/Variable.d.ts.map +0 -1
  797. package/build/src/models/legacy/models/Variable.js +0 -2
  798. package/build/src/models/legacy/models/Variable.js.map +0 -1
  799. package/build/src/models/legacy/models/base.d.ts +0 -91
  800. package/build/src/models/legacy/models/base.d.ts.map +0 -1
  801. package/build/src/models/legacy/models/base.js +0 -2
  802. package/build/src/models/legacy/models/base.js.map +0 -1
  803. package/build/src/models/legacy/request/ArcRequest.d.ts +0 -387
  804. package/build/src/models/legacy/request/ArcRequest.d.ts.map +0 -1
  805. package/build/src/models/legacy/request/ArcRequest.js +0 -2
  806. package/build/src/models/legacy/request/ArcRequest.js.map +0 -1
  807. package/build/src/models/legacy/request/ArcResponse.d.ts +0 -166
  808. package/build/src/models/legacy/request/ArcResponse.d.ts.map +0 -1
  809. package/build/src/models/legacy/request/ArcResponse.js +0 -2
  810. package/build/src/models/legacy/request/ArcResponse.js.map +0 -1
  811. package/build/src/models/legacy/request/HistoryData.d.ts +0 -45
  812. package/build/src/models/legacy/request/HistoryData.d.ts.map +0 -1
  813. package/build/src/models/legacy/request/HistoryData.js +0 -2
  814. package/build/src/models/legacy/request/HistoryData.js.map +0 -1
  815. package/build/src/models/legacy/request/Legacy.d.ts +0 -43
  816. package/build/src/models/legacy/request/Legacy.d.ts.map +0 -1
  817. package/build/src/models/legacy/request/Legacy.js +0 -2
  818. package/build/src/models/legacy/request/Legacy.js.map +0 -1
  819. package/build/src/models/legacy/request/RequestBody.d.ts +0 -83
  820. package/build/src/models/legacy/request/RequestBody.d.ts.map +0 -1
  821. package/build/src/models/legacy/request/RequestBody.js +0 -2
  822. package/build/src/models/legacy/request/RequestBody.js.map +0 -1
  823. package/build/src/models/transformers/ArcDexieTransformer.d.ts +0 -109
  824. package/build/src/models/transformers/ArcDexieTransformer.d.ts.map +0 -1
  825. package/build/src/models/transformers/ArcDexieTransformer.js +0 -249
  826. package/build/src/models/transformers/ArcDexieTransformer.js.map +0 -1
  827. package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +0 -43
  828. package/build/src/models/transformers/ArcLegacyNormalizer.d.ts.map +0 -1
  829. package/build/src/models/transformers/ArcLegacyNormalizer.js +0 -79
  830. package/build/src/models/transformers/ArcLegacyNormalizer.js.map +0 -1
  831. package/build/src/models/transformers/ArcLegacyTransformer.d.ts +0 -86
  832. package/build/src/models/transformers/ArcLegacyTransformer.d.ts.map +0 -1
  833. package/build/src/models/transformers/ArcLegacyTransformer.js +0 -151
  834. package/build/src/models/transformers/ArcLegacyTransformer.js.map +0 -1
  835. package/build/src/models/transformers/ArcPouchTransformer.d.ts +0 -46
  836. package/build/src/models/transformers/ArcPouchTransformer.d.ts.map +0 -1
  837. package/build/src/models/transformers/ArcPouchTransformer.js +0 -170
  838. package/build/src/models/transformers/ArcPouchTransformer.js.map +0 -1
  839. package/build/src/models/transformers/BaseTransformer.d.ts +0 -49
  840. package/build/src/models/transformers/BaseTransformer.d.ts.map +0 -1
  841. package/build/src/models/transformers/BaseTransformer.js +0 -104
  842. package/build/src/models/transformers/BaseTransformer.js.map +0 -1
  843. package/build/src/models/transformers/ImportUtils.d.ts +0 -45
  844. package/build/src/models/transformers/ImportUtils.d.ts.map +0 -1
  845. package/build/src/models/transformers/ImportUtils.js +0 -131
  846. package/build/src/models/transformers/ImportUtils.js.map +0 -1
  847. package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +0 -16
  848. package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts.map +0 -1
  849. package/build/src/models/transformers/LegacyDataExportToApiProject.js +0 -70
  850. package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +0 -1
  851. package/build/src/models/transformers/LegacyExportProcessor.d.ts +0 -48
  852. package/build/src/models/transformers/LegacyExportProcessor.d.ts.map +0 -1
  853. package/build/src/models/transformers/LegacyExportProcessor.js +0 -214
  854. package/build/src/models/transformers/LegacyExportProcessor.js.map +0 -1
  855. package/build/src/models/transformers/PostmanBackupTransformer.d.ts +0 -97
  856. package/build/src/models/transformers/PostmanBackupTransformer.d.ts.map +0 -1
  857. package/build/src/models/transformers/PostmanBackupTransformer.js +0 -185
  858. package/build/src/models/transformers/PostmanBackupTransformer.js.map +0 -1
  859. package/build/src/models/transformers/PostmanDataTransformer.d.ts +0 -10
  860. package/build/src/models/transformers/PostmanDataTransformer.d.ts.map +0 -1
  861. package/build/src/models/transformers/PostmanDataTransformer.js +0 -50
  862. package/build/src/models/transformers/PostmanDataTransformer.js.map +0 -1
  863. package/build/src/models/transformers/PostmanTransformer.d.ts +0 -50
  864. package/build/src/models/transformers/PostmanTransformer.d.ts.map +0 -1
  865. package/build/src/models/transformers/PostmanTransformer.js +0 -90
  866. package/build/src/models/transformers/PostmanTransformer.js.map +0 -1
  867. package/build/src/models/transformers/PostmanV21Transformer.d.ts +0 -129
  868. package/build/src/models/transformers/PostmanV21Transformer.d.ts.map +0 -1
  869. package/build/src/models/transformers/PostmanV21Transformer.js +0 -196
  870. package/build/src/models/transformers/PostmanV21Transformer.js.map +0 -1
  871. package/build/src/models/transformers/PostmanV2Transformer.d.ts +0 -129
  872. package/build/src/models/transformers/PostmanV2Transformer.d.ts.map +0 -1
  873. package/build/src/models/transformers/PostmanV2Transformer.js +0 -196
  874. package/build/src/models/transformers/PostmanV2Transformer.js.map +0 -1
  875. package/build/src/models/transformers/har.d.ts +0 -858
  876. package/build/src/models/transformers/har.d.ts.map +0 -1
  877. package/build/src/models/transformers/har.js +0 -2
  878. package/build/src/models/transformers/har.js.map +0 -1
  879. package/build/src/proxy/HttpProjectProxy.d.ts +0 -42
  880. package/build/src/proxy/HttpProjectProxy.d.ts.map +0 -1
  881. package/build/src/proxy/HttpProjectProxy.js +0 -132
  882. package/build/src/proxy/HttpProjectProxy.js.map +0 -1
  883. package/build/src/proxy/Proxy.d.ts +0 -27
  884. package/build/src/proxy/Proxy.d.ts.map +0 -1
  885. package/build/src/proxy/Proxy.js +0 -7
  886. package/build/src/proxy/Proxy.js.map +0 -1
  887. package/build/src/proxy/ProxyService.d.ts +0 -24
  888. package/build/src/proxy/ProxyService.d.ts.map +0 -1
  889. package/build/src/proxy/ProxyService.js +0 -29
  890. package/build/src/proxy/ProxyService.js.map +0 -1
  891. package/build/src/proxy/RequestProxy.d.ts +0 -52
  892. package/build/src/proxy/RequestProxy.d.ts.map +0 -1
  893. package/build/src/proxy/RequestProxy.js +0 -56
  894. package/build/src/proxy/RequestProxy.js.map +0 -1
  895. package/build/src/runtime/http-engine/CoreEngine.d.ts +0 -299
  896. package/build/src/runtime/http-engine/CoreEngine.d.ts.map +0 -1
  897. package/build/src/runtime/http-engine/CoreEngine.js +0 -928
  898. package/build/src/runtime/http-engine/CoreEngine.js.map +0 -1
  899. package/build/src/runtime/http-engine/CoreEngine2.d.ts +0 -2
  900. package/build/src/runtime/http-engine/CoreEngine2.d.ts.map +0 -1
  901. package/build/src/runtime/http-engine/CoreEngine2.js +0 -2
  902. package/build/src/runtime/http-engine/CoreEngine2.js.map +0 -1
  903. package/build/src/runtime/http-engine/FormData.d.ts +0 -50
  904. package/build/src/runtime/http-engine/FormData.d.ts.map +0 -1
  905. package/build/src/runtime/http-engine/FormData.js +0 -167
  906. package/build/src/runtime/http-engine/FormData.js.map +0 -1
  907. package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +0 -4
  908. package/build/src/runtime/http-engine/HttpErrorCodes.d.ts.map +0 -1
  909. package/build/src/runtime/http-engine/HttpErrorCodes.js +0 -166
  910. package/build/src/runtime/http-engine/HttpErrorCodes.js.map +0 -1
  911. package/build/src/runtime/http-engine/PayloadSupport.d.ts +0 -19
  912. package/build/src/runtime/http-engine/PayloadSupport.d.ts.map +0 -1
  913. package/build/src/runtime/http-engine/PayloadSupport.js +0 -80
  914. package/build/src/runtime/http-engine/PayloadSupport.js.map +0 -1
  915. package/build/src/runtime/http-engine/RequestUtils.d.ts +0 -66
  916. package/build/src/runtime/http-engine/RequestUtils.d.ts.map +0 -1
  917. package/build/src/runtime/http-engine/RequestUtils.js +0 -143
  918. package/build/src/runtime/http-engine/RequestUtils.js.map +0 -1
  919. package/build/src/runtime/http-engine/auth/AuthManager.d.ts +0 -73
  920. package/build/src/runtime/http-engine/auth/AuthManager.d.ts.map +0 -1
  921. package/build/src/runtime/http-engine/auth/AuthManager.js +0 -186
  922. package/build/src/runtime/http-engine/auth/AuthManager.js.map +0 -1
  923. package/build/src/runtime/http-engine/auth/index.d.ts +0 -2
  924. package/build/src/runtime/http-engine/auth/index.d.ts.map +0 -1
  925. package/build/src/runtime/http-engine/auth/index.js +0 -2
  926. package/build/src/runtime/http-engine/auth/index.js.map +0 -1
  927. package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts +0 -11
  928. package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts.map +0 -1
  929. package/build/src/runtime/http-engine/certificates/CertificateManager.js +0 -76
  930. package/build/src/runtime/http-engine/certificates/CertificateManager.js.map +0 -1
  931. package/build/src/runtime/http-engine/certificates/index.d.ts +0 -2
  932. package/build/src/runtime/http-engine/certificates/index.d.ts.map +0 -1
  933. package/build/src/runtime/http-engine/certificates/index.js +0 -2
  934. package/build/src/runtime/http-engine/certificates/index.js.map +0 -1
  935. package/build/src/runtime/http-engine/compression/CompressionManager.d.ts +0 -25
  936. package/build/src/runtime/http-engine/compression/CompressionManager.d.ts.map +0 -1
  937. package/build/src/runtime/http-engine/compression/CompressionManager.js +0 -89
  938. package/build/src/runtime/http-engine/compression/CompressionManager.js.map +0 -1
  939. package/build/src/runtime/http-engine/compression/index.d.ts +0 -2
  940. package/build/src/runtime/http-engine/compression/index.d.ts.map +0 -1
  941. package/build/src/runtime/http-engine/compression/index.js +0 -2
  942. package/build/src/runtime/http-engine/compression/index.js.map +0 -1
  943. package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts +0 -57
  944. package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts.map +0 -1
  945. package/build/src/runtime/http-engine/connections/ConnectionManager.js +0 -78
  946. package/build/src/runtime/http-engine/connections/ConnectionManager.js.map +0 -1
  947. package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts +0 -70
  948. package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts.map +0 -1
  949. package/build/src/runtime/http-engine/connections/DigestAuthHandler.js +0 -184
  950. package/build/src/runtime/http-engine/connections/DigestAuthHandler.js.map +0 -1
  951. package/build/src/runtime/http-engine/connections/DirectConnection.d.ts +0 -22
  952. package/build/src/runtime/http-engine/connections/DirectConnection.d.ts.map +0 -1
  953. package/build/src/runtime/http-engine/connections/DirectConnection.js +0 -111
  954. package/build/src/runtime/http-engine/connections/DirectConnection.js.map +0 -1
  955. package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts +0 -60
  956. package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts.map +0 -1
  957. package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js +0 -138
  958. package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js.map +0 -1
  959. package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts +0 -14
  960. package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts.map +0 -1
  961. package/build/src/runtime/http-engine/connections/ProxyConnection.js +0 -47
  962. package/build/src/runtime/http-engine/connections/ProxyConnection.js.map +0 -1
  963. package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts +0 -13
  964. package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts.map +0 -1
  965. package/build/src/runtime/http-engine/connections/TunnelConnection.js +0 -175
  966. package/build/src/runtime/http-engine/connections/TunnelConnection.js.map +0 -1
  967. package/build/src/runtime/http-engine/connections/index.d.ts +0 -7
  968. package/build/src/runtime/http-engine/connections/index.d.ts.map +0 -1
  969. package/build/src/runtime/http-engine/connections/index.js +0 -7
  970. package/build/src/runtime/http-engine/connections/index.js.map +0 -1
  971. package/build/src/runtime/http-engine/constants.d.ts +0 -69
  972. package/build/src/runtime/http-engine/constants.d.ts.map +0 -1
  973. package/build/src/runtime/http-engine/constants.js +0 -90
  974. package/build/src/runtime/http-engine/constants.js.map +0 -1
  975. package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts +0 -5
  976. package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts.map +0 -1
  977. package/build/src/runtime/http-engine/cookies/CookieProcessor.js +0 -20
  978. package/build/src/runtime/http-engine/cookies/CookieProcessor.js.map +0 -1
  979. package/build/src/runtime/http-engine/cookies/index.d.ts +0 -2
  980. package/build/src/runtime/http-engine/cookies/index.d.ts.map +0 -1
  981. package/build/src/runtime/http-engine/cookies/index.js +0 -2
  982. package/build/src/runtime/http-engine/cookies/index.js.map +0 -1
  983. package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts +0 -156
  984. package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts.map +0 -1
  985. package/build/src/runtime/http-engine/errors/HttpEngineErrors.js +0 -227
  986. package/build/src/runtime/http-engine/errors/HttpEngineErrors.js.map +0 -1
  987. package/build/src/runtime/http-engine/errors/index.d.ts +0 -2
  988. package/build/src/runtime/http-engine/errors/index.d.ts.map +0 -1
  989. package/build/src/runtime/http-engine/errors/index.js +0 -2
  990. package/build/src/runtime/http-engine/errors/index.js.map +0 -1
  991. package/build/src/runtime/http-engine/message/MessageBuilder.d.ts +0 -66
  992. package/build/src/runtime/http-engine/message/MessageBuilder.d.ts.map +0 -1
  993. package/build/src/runtime/http-engine/message/MessageBuilder.js +0 -161
  994. package/build/src/runtime/http-engine/message/MessageBuilder.js.map +0 -1
  995. package/build/src/runtime/http-engine/message/MessageProcessor.d.ts +0 -27
  996. package/build/src/runtime/http-engine/message/MessageProcessor.d.ts.map +0 -1
  997. package/build/src/runtime/http-engine/message/MessageProcessor.js +0 -51
  998. package/build/src/runtime/http-engine/message/MessageProcessor.js.map +0 -1
  999. package/build/src/runtime/http-engine/message/index.d.ts +0 -3
  1000. package/build/src/runtime/http-engine/message/index.d.ts.map +0 -1
  1001. package/build/src/runtime/http-engine/message/index.js +0 -3
  1002. package/build/src/runtime/http-engine/message/index.js.map +0 -1
  1003. package/build/src/runtime/http-engine/ntlm/Des.d.ts +0 -5
  1004. package/build/src/runtime/http-engine/ntlm/Des.d.ts.map +0 -1
  1005. package/build/src/runtime/http-engine/ntlm/Des.js +0 -361
  1006. package/build/src/runtime/http-engine/ntlm/Des.js.map +0 -1
  1007. package/build/src/runtime/http-engine/ntlm/MD4.d.ts +0 -14
  1008. package/build/src/runtime/http-engine/ntlm/MD4.d.ts.map +0 -1
  1009. package/build/src/runtime/http-engine/ntlm/MD4.js +0 -122
  1010. package/build/src/runtime/http-engine/ntlm/MD4.js.map +0 -1
  1011. package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +0 -21
  1012. package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts.map +0 -1
  1013. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +0 -163
  1014. package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +0 -1
  1015. package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +0 -11
  1016. package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts.map +0 -1
  1017. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +0 -58
  1018. package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +0 -1
  1019. package/build/src/runtime/http-engine/parsers/BodyParser.d.ts +0 -39
  1020. package/build/src/runtime/http-engine/parsers/BodyParser.d.ts.map +0 -1
  1021. package/build/src/runtime/http-engine/parsers/BodyParser.js +0 -145
  1022. package/build/src/runtime/http-engine/parsers/BodyParser.js.map +0 -1
  1023. package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts +0 -29
  1024. package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts.map +0 -1
  1025. package/build/src/runtime/http-engine/parsers/HeadersParser.js +0 -88
  1026. package/build/src/runtime/http-engine/parsers/HeadersParser.js.map +0 -1
  1027. package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts +0 -91
  1028. package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts.map +0 -1
  1029. package/build/src/runtime/http-engine/parsers/HttpResponseParser.js +0 -236
  1030. package/build/src/runtime/http-engine/parsers/HttpResponseParser.js.map +0 -1
  1031. package/build/src/runtime/http-engine/parsers/StatusParser.d.ts +0 -20
  1032. package/build/src/runtime/http-engine/parsers/StatusParser.d.ts.map +0 -1
  1033. package/build/src/runtime/http-engine/parsers/StatusParser.js +0 -51
  1034. package/build/src/runtime/http-engine/parsers/StatusParser.js.map +0 -1
  1035. package/build/src/runtime/http-engine/parsers/index.d.ts +0 -5
  1036. package/build/src/runtime/http-engine/parsers/index.d.ts.map +0 -1
  1037. package/build/src/runtime/http-engine/parsers/index.js +0 -5
  1038. package/build/src/runtime/http-engine/parsers/index.js.map +0 -1
  1039. package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts +0 -22
  1040. package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts.map +0 -1
  1041. package/build/src/runtime/http-engine/response/ResponseProcessor.js +0 -25
  1042. package/build/src/runtime/http-engine/response/ResponseProcessor.js.map +0 -1
  1043. package/build/src/runtime/http-engine/response/index.d.ts +0 -2
  1044. package/build/src/runtime/http-engine/response/index.d.ts.map +0 -1
  1045. package/build/src/runtime/http-engine/response/index.js +0 -2
  1046. package/build/src/runtime/http-engine/response/index.js.map +0 -1
  1047. package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts +0 -7
  1048. package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts.map +0 -1
  1049. package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js +0 -40
  1050. package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js.map +0 -1
  1051. package/build/src/runtime/http-engine/statistics/index.d.ts +0 -2
  1052. package/build/src/runtime/http-engine/statistics/index.d.ts.map +0 -1
  1053. package/build/src/runtime/http-engine/statistics/index.js +0 -2
  1054. package/build/src/runtime/http-engine/statistics/index.js.map +0 -1
  1055. package/build/src/runtime/http-engine/url/UrlProcessor.d.ts +0 -24
  1056. package/build/src/runtime/http-engine/url/UrlProcessor.d.ts.map +0 -1
  1057. package/build/src/runtime/http-engine/url/UrlProcessor.js +0 -50
  1058. package/build/src/runtime/http-engine/url/UrlProcessor.js.map +0 -1
  1059. package/build/src/runtime/http-engine/url/index.d.ts +0 -2
  1060. package/build/src/runtime/http-engine/url/index.d.ts.map +0 -1
  1061. package/build/src/runtime/http-engine/url/index.js +0 -2
  1062. package/build/src/runtime/http-engine/url/index.js.map +0 -1
  1063. package/build/src/runtime/http-runner/ConditionCheck.d.ts +0 -75
  1064. package/build/src/runtime/http-runner/ConditionCheck.d.ts.map +0 -1
  1065. package/build/src/runtime/http-runner/ConditionCheck.js +0 -185
  1066. package/build/src/runtime/http-runner/ConditionCheck.js.map +0 -1
  1067. package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +0 -26
  1068. package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts.map +0 -1
  1069. package/build/src/runtime/http-runner/HttpAssertionRunner.js +0 -180
  1070. package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +0 -1
  1071. package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +0 -21
  1072. package/build/src/runtime/http-runner/HttpFlowRunner.d.ts.map +0 -1
  1073. package/build/src/runtime/http-runner/HttpFlowRunner.js +0 -74
  1074. package/build/src/runtime/http-runner/HttpFlowRunner.js.map +0 -1
  1075. package/build/src/runtime/http-runner/HttpFlows.d.ts +0 -120
  1076. package/build/src/runtime/http-runner/HttpFlows.d.ts.map +0 -1
  1077. package/build/src/runtime/http-runner/HttpFlows.js +0 -568
  1078. package/build/src/runtime/http-runner/HttpFlows.js.map +0 -1
  1079. package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +0 -148
  1080. package/build/src/runtime/http-runner/HttpRequestRunner.d.ts.map +0 -1
  1081. package/build/src/runtime/http-runner/HttpRequestRunner.js +0 -380
  1082. package/build/src/runtime/http-runner/HttpRequestRunner.js.map +0 -1
  1083. package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts +0 -26
  1084. package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts.map +0 -1
  1085. package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js +0 -2
  1086. package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js.map +0 -1
  1087. package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts +0 -26
  1088. package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts.map +0 -1
  1089. package/build/src/runtime/http-runner/RequestCookiesProcessor.js +0 -66
  1090. package/build/src/runtime/http-runner/RequestCookiesProcessor.js.map +0 -1
  1091. package/build/src/runtime/node/BaseRunner.d.ts +0 -21
  1092. package/build/src/runtime/node/BaseRunner.d.ts.map +0 -1
  1093. package/build/src/runtime/node/BaseRunner.js +0 -27
  1094. package/build/src/runtime/node/BaseRunner.js.map +0 -1
  1095. package/build/src/runtime/node/InteropInterfaces.d.ts +0 -136
  1096. package/build/src/runtime/node/InteropInterfaces.d.ts.map +0 -1
  1097. package/build/src/runtime/node/InteropInterfaces.js +0 -2
  1098. package/build/src/runtime/node/InteropInterfaces.js.map +0 -1
  1099. package/build/src/runtime/node/ProjectParallelRunner.d.ts +0 -96
  1100. package/build/src/runtime/node/ProjectParallelRunner.d.ts.map +0 -1
  1101. package/build/src/runtime/node/ProjectParallelRunner.js +0 -253
  1102. package/build/src/runtime/node/ProjectParallelRunner.js.map +0 -1
  1103. package/build/src/runtime/node/ProjectRequestRunner.d.ts +0 -109
  1104. package/build/src/runtime/node/ProjectRequestRunner.d.ts.map +0 -1
  1105. package/build/src/runtime/node/ProjectRequestRunner.js +0 -300
  1106. package/build/src/runtime/node/ProjectRequestRunner.js.map +0 -1
  1107. package/build/src/runtime/node/ProjectRunner.d.ts +0 -192
  1108. package/build/src/runtime/node/ProjectRunner.d.ts.map +0 -1
  1109. package/build/src/runtime/node/ProjectRunner.js +0 -304
  1110. package/build/src/runtime/node/ProjectRunner.js.map +0 -1
  1111. package/build/src/runtime/node/ProjectRunnerWorker.d.ts +0 -2
  1112. package/build/src/runtime/node/ProjectRunnerWorker.d.ts.map +0 -1
  1113. package/build/src/runtime/node/ProjectRunnerWorker.js +0 -77
  1114. package/build/src/runtime/node/ProjectRunnerWorker.js.map +0 -1
  1115. package/build/src/runtime/node/ProjectSerialRunner.d.ts +0 -12
  1116. package/build/src/runtime/node/ProjectSerialRunner.d.ts.map +0 -1
  1117. package/build/src/runtime/node/ProjectSerialRunner.js +0 -37
  1118. package/build/src/runtime/node/ProjectSerialRunner.js.map +0 -1
  1119. package/build/src/runtime/node/enums.d.ts +0 -9
  1120. package/build/src/runtime/node/enums.d.ts.map +0 -1
  1121. package/build/src/runtime/node/enums.js +0 -10
  1122. package/build/src/runtime/node/enums.js.map +0 -1
  1123. package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts +0 -8
  1124. package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts.map +0 -1
  1125. package/build/src/runtime/reporters/ProjectRunCliReporter.js +0 -75
  1126. package/build/src/runtime/reporters/ProjectRunCliReporter.js.map +0 -1
  1127. package/build/src/runtime/reporters/Reporter.d.ts +0 -36
  1128. package/build/src/runtime/reporters/Reporter.d.ts.map +0 -1
  1129. package/build/src/runtime/reporters/Reporter.js +0 -98
  1130. package/build/src/runtime/reporters/Reporter.js.map +0 -1
  1131. package/build/src/runtime/variables/Cache.d.ts +0 -24
  1132. package/build/src/runtime/variables/Cache.d.ts.map +0 -1
  1133. package/build/src/runtime/variables/Cache.js +0 -51
  1134. package/build/src/runtime/variables/Cache.js.map +0 -1
  1135. package/build/src/runtime/variables/EvalFunctions.d.ts +0 -59
  1136. package/build/src/runtime/variables/EvalFunctions.d.ts.map +0 -1
  1137. package/build/src/runtime/variables/EvalFunctions.js +0 -126
  1138. package/build/src/runtime/variables/EvalFunctions.js.map +0 -1
  1139. package/build/src/runtime/variables/ProjectVariables.d.ts +0 -6
  1140. package/build/src/runtime/variables/ProjectVariables.d.ts.map +0 -1
  1141. package/build/src/runtime/variables/ProjectVariables.js +0 -7
  1142. package/build/src/runtime/variables/ProjectVariables.js.map +0 -1
  1143. package/build/src/runtime/variables/VariablesProcessor.d.ts +0 -169
  1144. package/build/src/runtime/variables/VariablesProcessor.d.ts.map +0 -1
  1145. package/build/src/runtime/variables/VariablesProcessor.js +0 -518
  1146. package/build/src/runtime/variables/VariablesProcessor.js.map +0 -1
  1147. package/build/src/runtime/variables/VariablesTokenizer.d.ts +0 -27
  1148. package/build/src/runtime/variables/VariablesTokenizer.d.ts.map +0 -1
  1149. package/build/src/runtime/variables/VariablesTokenizer.js +0 -53
  1150. package/build/src/runtime/variables/VariablesTokenizer.js.map +0 -1
  1151. package/build/src/sdk/HistorySdk.d.ts +0 -60
  1152. package/build/src/sdk/HistorySdk.d.ts.map +0 -1
  1153. package/build/src/sdk/HistorySdk.js +0 -243
  1154. package/build/src/sdk/HistorySdk.js.map +0 -1
  1155. package/build/src/sdk/ProjectExecutionsSdk.d.ts +0 -56
  1156. package/build/src/sdk/ProjectExecutionsSdk.d.ts.map +0 -1
  1157. package/build/src/sdk/ProjectExecutionsSdk.js +0 -114
  1158. package/build/src/sdk/ProjectExecutionsSdk.js.map +0 -1
  1159. package/build/src/sdk/WsClient.d.ts +0 -25
  1160. package/build/src/sdk/WsClient.d.ts.map +0 -1
  1161. package/build/src/sdk/WsClient.js +0 -4
  1162. package/build/src/sdk/WsClient.js.map +0 -1
  1163. package/build/src/sdk/WsClientNode.d.ts +0 -25
  1164. package/build/src/sdk/WsClientNode.d.ts.map +0 -1
  1165. package/build/src/sdk/WsClientNode.js +0 -66
  1166. package/build/src/sdk/WsClientNode.js.map +0 -1
  1167. package/build/src/sdk/WsClientWeb.d.ts +0 -24
  1168. package/build/src/sdk/WsClientWeb.d.ts.map +0 -1
  1169. package/build/src/sdk/WsClientWeb.js +0 -73
  1170. package/build/src/sdk/WsClientWeb.js.map +0 -1
  1171. package/build/src/testing/TestCliHelper.d.ts +0 -30
  1172. package/build/src/testing/TestCliHelper.d.ts.map +0 -1
  1173. package/build/src/testing/TestCliHelper.js +0 -83
  1174. package/build/src/testing/TestCliHelper.js.map +0 -1
  1175. package/build/src/testing/getPort.d.ts +0 -52
  1176. package/build/src/testing/getPort.d.ts.map +0 -1
  1177. package/build/src/testing/getPort.js +0 -169
  1178. package/build/src/testing/getPort.js.map +0 -1
  1179. package/build/tsconfig.tsbuildinfo +0 -1
  1180. package/noop.ts +0 -3
  1181. package/oauth-popup.html +0 -33
  1182. package/skills-lock.json +0 -10
  1183. package/src/authorization/AuthorizationError.ts +0 -32
  1184. package/src/authorization/CustomParameters.ts +0 -66
  1185. package/src/authorization/OAuth2Authorization.ts +0 -1013
  1186. package/src/authorization/OidcAuthorization.ts +0 -158
  1187. package/src/authorization/Utils.ts +0 -136
  1188. package/src/authorization/lib/IframeAuthorization.ts +0 -127
  1189. package/src/authorization/lib/KnownGrants.ts +0 -6
  1190. package/src/authorization/lib/PopupAuthorization.ts +0 -80
  1191. package/src/authorization/lib/SecurityProcessor.ts +0 -294
  1192. package/src/authorization/lib/Tokens.ts +0 -135
  1193. package/src/authorization/lib/Utils.ts +0 -95
  1194. package/src/authorization/types.ts +0 -197
  1195. package/src/cookies/CookieJar.ts +0 -26
  1196. package/src/cookies/CookieParser.ts +0 -353
  1197. package/src/cookies/InMemoryCookieJar.ts +0 -70
  1198. package/src/cookies/Punycode.ts +0 -134
  1199. package/src/data/DataExtractor.ts +0 -200
  1200. package/src/data/DataReader.ts +0 -11
  1201. package/src/data/JmespathReader.ts +0 -26
  1202. package/src/data/Json2Xml.ts +0 -192
  1203. package/src/data/JsonReader.ts +0 -41
  1204. package/src/data/PayloadPointer.ts +0 -50
  1205. package/src/data/RequestDataExtractor.ts +0 -124
  1206. package/src/data/UrlEncodedReader.ts +0 -21
  1207. package/src/data/XmlReader.ts +0 -128
  1208. package/src/events/authorization/AuthorizationEventTypes.ts +0 -22
  1209. package/src/events/authorization/AuthorizationEvents.ts +0 -74
  1210. package/src/events/cookies/CookieEventTypes.ts +0 -13
  1211. package/src/events/cookies/CookieEvents.ts +0 -168
  1212. package/src/events/environment/EnvironmentEventTypes.ts +0 -3
  1213. package/src/events/environment/EnvironmentEvents.ts +0 -25
  1214. package/src/events/transport/TransportEventTypes.ts +0 -32
  1215. package/src/events/transport/TransportEvents.ts +0 -105
  1216. package/src/lib/Buffer.ts +0 -62
  1217. package/src/lib/definitions/HttpDefinitions.ts +0 -68
  1218. package/src/lib/fs/Fs.ts +0 -258
  1219. package/src/lib/headers/HeadersData.ts +0 -692
  1220. package/src/lib/parsers/UriTemplate.ts +0 -533
  1221. package/src/lib/parsers/UrlEncoder.ts +0 -129
  1222. package/src/lib/parsers/UrlParser.ts +0 -202
  1223. package/src/lib/parsers/UrlProcessor.ts +0 -882
  1224. package/src/lib/parsers/UrlValueParser.ts +0 -213
  1225. package/src/lib/timers/Timers.ts +0 -27
  1226. package/src/lib/transformers/PayloadSerializer.ts +0 -538
  1227. package/src/mocking/LegacyInterfaces.ts +0 -51
  1228. package/src/mocking/LegacyMock.ts +0 -37
  1229. package/src/mocking/ProjectMock.ts +0 -38
  1230. package/src/mocking/README.md +0 -40
  1231. package/src/mocking/legacy/Authorization.ts +0 -40
  1232. package/src/mocking/legacy/Certificates.ts +0 -148
  1233. package/src/mocking/legacy/Cookies.ts +0 -53
  1234. package/src/mocking/legacy/HostRules.ts +0 -45
  1235. package/src/mocking/legacy/Http.ts +0 -248
  1236. package/src/mocking/legacy/HttpResponse.ts +0 -107
  1237. package/src/mocking/legacy/RestApi.ts +0 -70
  1238. package/src/mocking/legacy/Urls.ts +0 -46
  1239. package/src/mocking/legacy/Variables.ts +0 -54
  1240. package/src/mocking/lib/Certificates.ts +0 -64
  1241. package/src/mocking/lib/History.ts +0 -187
  1242. package/src/mocking/lib/HostRules.ts +0 -45
  1243. package/src/mocking/lib/Request.ts +0 -100
  1244. package/src/mocking/lib/Response.ts +0 -121
  1245. package/src/mocking/lib/Url.ts +0 -45
  1246. package/src/models/Authorization.ts +0 -502
  1247. package/src/models/AuthorizationData.ts +0 -67
  1248. package/src/models/CertificateFile.ts +0 -79
  1249. package/src/models/ClientCertificate.ts +0 -328
  1250. package/src/models/Environment.ts +0 -309
  1251. package/src/models/ErrorResponse.ts +0 -115
  1252. package/src/models/HeadersArray.ts +0 -63
  1253. package/src/models/HostRule.ts +0 -178
  1254. package/src/models/HttpCookie.ts +0 -459
  1255. package/src/models/HttpHistory.ts +0 -256
  1256. package/src/models/HttpProject.ts +0 -1533
  1257. package/src/models/HttpRequest.ts +0 -166
  1258. package/src/models/HttpResponse.ts +0 -136
  1259. package/src/models/License.ts +0 -113
  1260. package/src/models/Project.ts +0 -93
  1261. package/src/models/ProjectDefinitionProperty.ts +0 -40
  1262. package/src/models/ProjectExecution.ts +0 -225
  1263. package/src/models/ProjectFolder.ts +0 -440
  1264. package/src/models/ProjectItem.ts +0 -158
  1265. package/src/models/ProjectParent.ts +0 -34
  1266. package/src/models/ProjectRequest.ts +0 -522
  1267. package/src/models/ProjectSchema.ts +0 -202
  1268. package/src/models/Property.ts +0 -517
  1269. package/src/models/Provider.ts +0 -99
  1270. package/src/models/Request.ts +0 -475
  1271. package/src/models/RequestAuthorization.ts +0 -122
  1272. package/src/models/RequestConfig.ts +0 -368
  1273. package/src/models/RequestLog.ts +0 -193
  1274. package/src/models/RequestTime.ts +0 -105
  1275. package/src/models/RequestUiMeta.ts +0 -248
  1276. package/src/models/RequestsSize.ts +0 -63
  1277. package/src/models/Response.ts +0 -163
  1278. package/src/models/ResponseAuthorization.ts +0 -104
  1279. package/src/models/ResponseRedirect.ts +0 -156
  1280. package/src/models/SentRequest.ts +0 -122
  1281. package/src/models/SerializablePayload.ts +0 -122
  1282. package/src/models/Server.ts +0 -183
  1283. package/src/models/Url.ts +0 -87
  1284. package/src/models/http-flows/AssertionError.ts +0 -57
  1285. package/src/models/http-flows/HttpAssertion.ts +0 -90
  1286. package/src/models/http-flows/HttpFlows.ts +0 -82
  1287. package/src/models/http-flows/HttpStep.ts +0 -50
  1288. package/src/models/http-flows/LegacyTranslator.ts +0 -303
  1289. package/src/models/http-flows/steps/assertion/EqualAssertion.ts +0 -124
  1290. package/src/models/http-flows/steps/assertion/GreaterThanAssertion.ts +0 -81
  1291. package/src/models/http-flows/steps/assertion/IncludesAssertion.ts +0 -62
  1292. package/src/models/http-flows/steps/assertion/IsEmptyAssertion.ts +0 -41
  1293. package/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.ts +0 -41
  1294. package/src/models/http-flows/steps/assertion/LengthOfAssertion.ts +0 -62
  1295. package/src/models/http-flows/steps/assertion/LessThanAssertion.ts +0 -81
  1296. package/src/models/http-flows/steps/assertion/MatchesAssertion.ts +0 -62
  1297. package/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.ts +0 -87
  1298. package/src/models/http-flows/steps/assertion/NotEqualAssertion.ts +0 -124
  1299. package/src/models/http-flows/steps/assertion/NotIncludesAssertion.ts +0 -62
  1300. package/src/models/http-flows/steps/assertion/NotOkAssertion.ts +0 -41
  1301. package/src/models/http-flows/steps/assertion/NotToBeAssertion.ts +0 -63
  1302. package/src/models/http-flows/steps/assertion/OkAssertion.ts +0 -41
  1303. package/src/models/http-flows/steps/assertion/ToBeAssertion.ts +0 -70
  1304. package/src/models/http-flows/steps/data/DeleteCookieStep.ts +0 -108
  1305. package/src/models/http-flows/steps/data/DeleteVariableStep.ts +0 -78
  1306. package/src/models/http-flows/steps/data/ReadDataSourceStep.ts +0 -104
  1307. package/src/models/http-flows/steps/data/ReadDataStep.ts +0 -133
  1308. package/src/models/http-flows/steps/data/ReadValueStep.ts +0 -89
  1309. package/src/models/http-flows/steps/data/SetCookieStep.ts +0 -208
  1310. package/src/models/http-flows/steps/data/SetDataStep.ts +0 -125
  1311. package/src/models/http-flows/steps/data/SetVariableStep.ts +0 -82
  1312. package/src/models/http-flows/steps/transformation/AsLowerCaseStep.ts +0 -41
  1313. package/src/models/http-flows/steps/transformation/AsNumberStep.ts +0 -41
  1314. package/src/models/http-flows/steps/transformation/AsUpperCaseStep.ts +0 -41
  1315. package/src/models/http-flows/steps/transformation/RoundStep.ts +0 -87
  1316. package/src/models/http-flows/steps/transformation/SubstringStep.ts +0 -96
  1317. package/src/models/http-flows/steps/transformation/TrimStep.ts +0 -43
  1318. package/src/models/legacy/DataExport.ts +0 -254
  1319. package/src/models/legacy/Normalizer.ts +0 -107
  1320. package/src/models/legacy/actions/Actions.ts +0 -277
  1321. package/src/models/legacy/authorization/Authorization.ts +0 -581
  1322. package/src/models/legacy/models/ApiTypes.ts +0 -202
  1323. package/src/models/legacy/models/ArcLegacyProject.ts +0 -38
  1324. package/src/models/legacy/models/AuthData.ts +0 -15
  1325. package/src/models/legacy/models/ClientCertificate.ts +0 -93
  1326. package/src/models/legacy/models/Cookies.ts +0 -52
  1327. package/src/models/legacy/models/HostRule.ts +0 -35
  1328. package/src/models/legacy/models/RestApi.ts +0 -49
  1329. package/src/models/legacy/models/UrlHistory.ts +0 -33
  1330. package/src/models/legacy/models/Variable.ts +0 -40
  1331. package/src/models/legacy/models/base.ts +0 -95
  1332. package/src/models/legacy/request/ArcRequest.ts +0 -405
  1333. package/src/models/legacy/request/ArcResponse.ts +0 -177
  1334. package/src/models/legacy/request/HistoryData.ts +0 -47
  1335. package/src/models/legacy/request/RequestBody.ts +0 -87
  1336. package/src/models/transformers/ArcDexieTransformer.ts +0 -323
  1337. package/src/models/transformers/ArcLegacyNormalizer.ts +0 -84
  1338. package/src/models/transformers/ArcLegacyTransformer.ts +0 -196
  1339. package/src/models/transformers/ArcPouchTransformer.ts +0 -184
  1340. package/src/models/transformers/BaseTransformer.ts +0 -113
  1341. package/src/models/transformers/ImportUtils.ts +0 -135
  1342. package/src/models/transformers/LegacyDataExportToApiProject.ts +0 -76
  1343. package/src/models/transformers/LegacyExportProcessor.ts +0 -248
  1344. package/src/models/transformers/PostmanBackupTransformer.ts +0 -303
  1345. package/src/models/transformers/PostmanDataTransformer.ts +0 -54
  1346. package/src/models/transformers/PostmanTransformer.ts +0 -113
  1347. package/src/models/transformers/PostmanV21Transformer.ts +0 -317
  1348. package/src/models/transformers/PostmanV2Transformer.ts +0 -317
  1349. package/src/models/transformers/har.ts +0 -865
  1350. package/src/proxy/HttpProjectProxy.ts +0 -169
  1351. package/src/proxy/Proxy.ts +0 -30
  1352. package/src/proxy/ProxyService.ts +0 -37
  1353. package/src/proxy/RequestProxy.ts +0 -101
  1354. package/src/proxy/readme.md +0 -8
  1355. package/src/runtime/http-engine/CoreEngine.ts +0 -1084
  1356. package/src/runtime/http-engine/CoreEngine2.ts +0 -0
  1357. package/src/runtime/http-engine/FormData.ts +0 -200
  1358. package/src/runtime/http-engine/HttpErrorCodes.ts +0 -176
  1359. package/src/runtime/http-engine/PayloadSupport.ts +0 -93
  1360. package/src/runtime/http-engine/RequestUtils.ts +0 -162
  1361. package/src/runtime/http-engine/auth/AuthManager.ts +0 -242
  1362. package/src/runtime/http-engine/certificates/CertificateManager.ts +0 -74
  1363. package/src/runtime/http-engine/compression/CompressionManager.ts +0 -99
  1364. package/src/runtime/http-engine/connections/ConnectionManager.ts +0 -123
  1365. package/src/runtime/http-engine/connections/DigestAuthHandler.ts +0 -238
  1366. package/src/runtime/http-engine/connections/DirectConnection.ts +0 -138
  1367. package/src/runtime/http-engine/connections/ProxyAuthHandler.ts +0 -179
  1368. package/src/runtime/http-engine/connections/ProxyConnection.ts +0 -55
  1369. package/src/runtime/http-engine/connections/TunnelConnection.ts +0 -192
  1370. package/src/runtime/http-engine/constants.ts +0 -103
  1371. package/src/runtime/http-engine/cookies/CookieProcessor.ts +0 -25
  1372. package/src/runtime/http-engine/errors/HttpEngineErrors.ts +0 -319
  1373. package/src/runtime/http-engine/message/MessageBuilder.ts +0 -201
  1374. package/src/runtime/http-engine/message/MessageProcessor.ts +0 -73
  1375. package/src/runtime/http-engine/ntlm/Des.ts +0 -372
  1376. package/src/runtime/http-engine/ntlm/MD4.ts +0 -137
  1377. package/src/runtime/http-engine/ntlm/NtlmAuth.ts +0 -187
  1378. package/src/runtime/http-engine/ntlm/NtlmMessage.ts +0 -64
  1379. package/src/runtime/http-engine/parsers/BodyParser.ts +0 -171
  1380. package/src/runtime/http-engine/parsers/HeadersParser.ts +0 -103
  1381. package/src/runtime/http-engine/parsers/HttpResponseParser.ts +0 -280
  1382. package/src/runtime/http-engine/parsers/StatusParser.ts +0 -69
  1383. package/src/runtime/http-engine/response/ResponseProcessor.ts +0 -46
  1384. package/src/runtime/http-engine/statistics/StatisticsProcessor.ts +0 -52
  1385. package/src/runtime/http-engine/url/UrlProcessor.ts +0 -55
  1386. package/src/runtime/http-runner/ConditionCheck.ts +0 -193
  1387. package/src/runtime/http-runner/HttpAssertionRunner.ts +0 -204
  1388. package/src/runtime/http-runner/HttpFlowRunner.ts +0 -105
  1389. package/src/runtime/http-runner/HttpFlows.ts +0 -649
  1390. package/src/runtime/http-runner/HttpRequestRunner.ts +0 -427
  1391. package/src/runtime/http-runner/HttpRuntimeEnvironment.ts +0 -27
  1392. package/src/runtime/http-runner/RequestCookiesProcessor.ts +0 -80
  1393. package/src/runtime/node/BaseRunner.ts +0 -29
  1394. package/src/runtime/node/InteropInterfaces.ts +0 -143
  1395. package/src/runtime/node/ProjectParallelRunner.ts +0 -321
  1396. package/src/runtime/node/ProjectRequestRunner.ts +0 -364
  1397. package/src/runtime/node/ProjectRunner.ts +0 -395
  1398. package/src/runtime/node/ProjectRunnerWorker.ts +0 -83
  1399. package/src/runtime/node/ProjectSerialRunner.ts +0 -37
  1400. package/src/runtime/node/enums.ts +0 -8
  1401. package/src/runtime/reporters/ProjectRunCliReporter.ts +0 -81
  1402. package/src/runtime/reporters/Reporter.ts +0 -113
  1403. package/src/runtime/variables/Cache.ts +0 -53
  1404. package/src/runtime/variables/EvalFunctions.ts +0 -135
  1405. package/src/runtime/variables/ProjectVariables.ts +0 -5
  1406. package/src/runtime/variables/VariablesProcessor.ts +0 -555
  1407. package/src/runtime/variables/VariablesTokenizer.ts +0 -55
  1408. package/src/sdk/HistorySdk.ts +0 -272
  1409. package/src/sdk/ProjectExecutionsSdk.ts +0 -135
  1410. package/src/sdk/WsClient.ts +0 -28
  1411. package/src/sdk/WsClientNode.ts +0 -68
  1412. package/src/sdk/WsClientWeb.ts +0 -75
  1413. package/src/testing/TestCliHelper.ts +0 -93
  1414. package/src/testing/getPort.ts +0 -215
  1415. package/tests/resources/http/drive-list.ts +0 -575
  1416. package/tests/resources/http/html.html +0 -317
  1417. package/tests/resources/http/jpeg.jpg +0 -0
  1418. package/tests/resources/http/json.json +0 -187
  1419. package/tests/resources/http/png.png +0 -0
  1420. package/tests/resources/http/svg.svg +0 -3
  1421. package/tests/resources/http/webp.webp +0 -0
  1422. package/tests/resources/http/xml.xml +0 -211
  1423. package/tests/resources/ssl/cert-auth-server/alice-password.p12 +0 -0
  1424. package/tests/resources/ssl/cert-auth-server/alice-password.txt +0 -1
  1425. package/tests/resources/ssl/cert-auth-server/alice.p12 +0 -0
  1426. package/tests/resources/ssl/cert-auth-server/alice_cert.pem +0 -28
  1427. package/tests/resources/ssl/cert-auth-server/alice_csr.pem +0 -26
  1428. package/tests/resources/ssl/cert-auth-server/alice_key.pem +0 -52
  1429. package/tests/resources/ssl/cert-auth-server/bob-password.txt +0 -1
  1430. package/tests/resources/ssl/cert-auth-server/bob.p12 +0 -0
  1431. package/tests/resources/ssl/cert-auth-server/bob_cert.pem +0 -27
  1432. package/tests/resources/ssl/cert-auth-server/bob_csr.pem +0 -26
  1433. package/tests/resources/ssl/cert-auth-server/bob_key.pem +0 -52
  1434. package/tests/resources/ssl/cert-auth-server/create.sh +0 -17
  1435. package/tests/resources/ssl/cert-auth-server/server_cert.pem +0 -31
  1436. package/tests/resources/ssl/cert-auth-server/server_key.pem +0 -52
  1437. package/tests/resources/ssl/certs/ca.cert.pem +0 -23
  1438. package/tests/resources/ssl/certs/ca.privkey.pem +0 -27
  1439. package/tests/resources/ssl/certs/ca.srl +0 -1
  1440. package/tests/resources/ssl/certs/cert.pem +0 -20
  1441. package/tests/resources/ssl/certs/csr.pem +0 -17
  1442. package/tests/resources/ssl/certs/fullchain.pem +0 -43
  1443. package/tests/resources/ssl/certs/privkey.pem +0 -27
  1444. package/tests/resources/ssl/certs/root-ca.crt +0 -0
  1445. package/tests/servers/ExpressServer.ts +0 -124
  1446. package/tests/servers/ProxyServer.ts +0 -374
  1447. package/tests/servers/cert-helper.ts +0 -2
  1448. package/tests/servers/express-routes/ApiEndpoint.ts +0 -24
  1449. package/tests/servers/express-routes/BaseApi.ts +0 -106
  1450. package/tests/servers/express-routes/BasicAuthRoute.ts +0 -36
  1451. package/tests/servers/express-routes/BearerAuthRoute.ts +0 -35
  1452. package/tests/servers/express-routes/CertificatesApi.ts +0 -46
  1453. package/tests/servers/express-routes/CompressApi.ts +0 -71
  1454. package/tests/servers/express-routes/CookieApi.ts +0 -20
  1455. package/tests/servers/express-routes/DelayRoute.ts +0 -28
  1456. package/tests/servers/express-routes/GetApi.ts +0 -58
  1457. package/tests/servers/express-routes/HeadersApi.ts +0 -17
  1458. package/tests/servers/express-routes/ImagesApi.ts +0 -44
  1459. package/tests/servers/express-routes/NTLMRoute.ts +0 -29
  1460. package/tests/servers/express-routes/PostApi.ts +0 -31
  1461. package/tests/servers/express-routes/QueryParamsApi.ts +0 -17
  1462. package/tests/servers/express-routes/RedirectsApi.ts +0 -139
  1463. package/tests/servers/express-routes/ResponsesApi.ts +0 -68
  1464. package/tests/servers/express-routes/StatusCodeApi.ts +0 -38
  1465. package/tests/servers/express-routes/StreamApi.ts +0 -60
  1466. package/tests/servers/express-routes/TestsApi.ts +0 -47
  1467. package/tests/servers/oauth2mock/ServerMock.js +0 -454
  1468. package/tests/servers/ssl.ts +0 -93
  1469. package/tests/unit/authorization/SecurityProcessor.spec.ts +0 -538
  1470. package/tests/unit/cookies/CookieParser.spec.ts +0 -354
  1471. package/tests/unit/cookies/InMemoryCookieJar.spec.ts +0 -112
  1472. package/tests/unit/data/JmesparthReader.spec.ts +0 -36
  1473. package/tests/unit/data/Json2Xml.spec.ts +0 -178
  1474. package/tests/unit/data/JsonReader.spec.ts +0 -82
  1475. package/tests/unit/data/PayloadPointer.spec.ts +0 -56
  1476. package/tests/unit/data/RequestDataExtractor.spec.ts +0 -469
  1477. package/tests/unit/data/UrlEncodedReader.spec.ts +0 -12
  1478. package/tests/unit/data/XmlReader.spec.ts +0 -84
  1479. package/tests/unit/events/authorization.spec.ts +0 -150
  1480. package/tests/unit/events/cookie.spec.ts +0 -274
  1481. package/tests/unit/events/transport.spec.ts +0 -139
  1482. package/tests/unit/legacy-transformers/ARC-legacy-import.spec.ts +0 -150
  1483. package/tests/unit/legacy-transformers/ArcDexieTransformer.spec.ts +0 -194
  1484. package/tests/unit/legacy-transformers/ArcLegacyTransformer.spec.ts +0 -112
  1485. package/tests/unit/legacy-transformers/ArcPouchTransformer.spec.ts +0 -245
  1486. package/tests/unit/legacy-transformers/DataTestHelper.ts +0 -50
  1487. package/tests/unit/legacy-transformers/LegacyExportProcessor.spec.ts +0 -450
  1488. package/tests/unit/legacy-transformers/data/arc-pouchdb.json +0 -396
  1489. package/tests/unit/legacy-transformers/data/dexie-data-export.json +0 -890
  1490. package/tests/unit/legacy-transformers/data/dexie-history-export.json +0 -877
  1491. package/tests/unit/legacy-transformers/data/dexie-saved-export.json +0 -385
  1492. package/tests/unit/legacy-transformers/data/legacy-data-import.json +0 -51
  1493. package/tests/unit/legacy-transformers/data/legacy-request-import.json +0 -20
  1494. package/tests/unit/legacy-transformers/data/pouch-data-export.json +0 -242
  1495. package/tests/unit/lib/UriTemplate.spec.ts +0 -418
  1496. package/tests/unit/lib/UrlEncoder.spec.ts +0 -36
  1497. package/tests/unit/lib/UrlParser.spec.ts +0 -359
  1498. package/tests/unit/lib/UrlProcessor.spec.ts +0 -894
  1499. package/tests/unit/lib/buffer.spec.ts +0 -33
  1500. package/tests/unit/lib/payload_serializer.spec.ts +0 -171
  1501. package/tests/unit/mocking/current/Certificates.spec.ts +0 -96
  1502. package/tests/unit/mocking/current/HostRules.spec.ts +0 -59
  1503. package/tests/unit/mocking/current/Urls.spec.ts +0 -58
  1504. package/tests/unit/mocking/legacy/ArcMock.spec.ts +0 -16
  1505. package/tests/unit/mocking/legacy/Authorization.spec.ts +0 -57
  1506. package/tests/unit/mocking/legacy/Certificates.spec.ts +0 -185
  1507. package/tests/unit/mocking/legacy/Cookies.spec.ts +0 -67
  1508. package/tests/unit/mocking/legacy/HostRules.spec.ts +0 -59
  1509. package/tests/unit/mocking/legacy/Http.spec.ts +0 -533
  1510. package/tests/unit/mocking/legacy/RestApi.spec.ts +0 -132
  1511. package/tests/unit/mocking/legacy/Urls.spec.ts +0 -57
  1512. package/tests/unit/mocking/legacy/Variables.spec.ts +0 -73
  1513. package/tests/unit/models/Certificate/from_name.spec.ts +0 -21
  1514. package/tests/unit/models/Project/consume.spec.ts +0 -16
  1515. package/tests/unit/models/Project/create.spec.ts +0 -132
  1516. package/tests/unit/models/certificate.spec.ts +0 -257
  1517. package/tests/unit/models/environment.spec.ts +0 -574
  1518. package/tests/unit/models/error_response.spec.ts +0 -183
  1519. package/tests/unit/models/headers_array.spec.ts +0 -86
  1520. package/tests/unit/models/host_rule.spec.ts +0 -196
  1521. package/tests/unit/models/http-actions/assertion/equal_assertion.spec.ts +0 -103
  1522. package/tests/unit/models/http-actions/assertion/greater_than_assertion.spec.ts +0 -91
  1523. package/tests/unit/models/http-actions/assertion/includes_assertion.spec.ts +0 -71
  1524. package/tests/unit/models/http-actions/assertion/less_than_assertion.spec.ts +0 -91
  1525. package/tests/unit/models/http-actions/assertion/matches_assertion.spec.ts +0 -71
  1526. package/tests/unit/models/http-actions/assertion/matches_schema_assertion.spec.ts +0 -117
  1527. package/tests/unit/models/http-actions/assertion/not_equal_assertion.spec.ts +0 -103
  1528. package/tests/unit/models/http-actions/assertion/not_includes_assertion.spec.ts +0 -71
  1529. package/tests/unit/models/http-actions/assertion/not_ok_assertion.spec.ts +0 -47
  1530. package/tests/unit/models/http-actions/assertion/not_to_be_assertion.spec.ts +0 -72
  1531. package/tests/unit/models/http-actions/assertion/ok_assertion.spec.ts +0 -44
  1532. package/tests/unit/models/http-actions/assertion/to_be_assertion.spec.ts +0 -71
  1533. package/tests/unit/models/http-actions/transformation/as_lower_case_step.spec.ts +0 -47
  1534. package/tests/unit/models/http-actions/transformation/as_number_step.spec.ts +0 -47
  1535. package/tests/unit/models/http-actions/transformation/as_upper_case_step.spec.ts +0 -47
  1536. package/tests/unit/models/http-actions/transformation/round_step.spec.ts +0 -69
  1537. package/tests/unit/models/http-actions/transformation/substring_step.spec.ts +0 -85
  1538. package/tests/unit/models/http-actions/transformation/trim_step.spec.ts +0 -44
  1539. package/tests/unit/models/http_cookie.spec.ts +0 -516
  1540. package/tests/unit/models/http_history.spec.ts +0 -443
  1541. package/tests/unit/models/http_project.spec.ts +0 -2424
  1542. package/tests/unit/models/http_request.spec.ts +0 -365
  1543. package/tests/unit/models/http_response.spec.ts +0 -289
  1544. package/tests/unit/models/license.spec.ts +0 -108
  1545. package/tests/unit/models/project_folder.spec.ts +0 -926
  1546. package/tests/unit/models/project_item.spec.ts +0 -137
  1547. package/tests/unit/models/project_request.spec.ts +0 -1047
  1548. package/tests/unit/models/project_schema.spec.ts +0 -236
  1549. package/tests/unit/models/property.spec.ts +0 -625
  1550. package/tests/unit/models/provider.spec.ts +0 -102
  1551. package/tests/unit/models/request.spec.ts +0 -1206
  1552. package/tests/unit/models/request_log.spec.ts +0 -308
  1553. package/tests/unit/models/request_time.spec.ts +0 -138
  1554. package/tests/unit/models/response.spec.ts +0 -384
  1555. package/tests/unit/models/response_redirect.spec.ts +0 -303
  1556. package/tests/unit/models/sent_request.spec.ts +0 -206
  1557. package/tests/unit/models/server.spec.ts +0 -195
  1558. package/tests/unit/postman-transformers/PostmanTransformer.spec.ts +0 -418
  1559. package/tests/unit/postman-transformers/data/Backup.postman_dump.json +0 -750
  1560. package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.0.json +0 -508
  1561. package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.1.json +0 -542
  1562. package/tests/unit/runtime/http-engine/HttpResponseParser.spec.ts +0 -337
  1563. package/tests/unit/runtime/http-engine/abort.spec.ts +0 -83
  1564. package/tests/unit/runtime/http-engine/auth.spec.ts +0 -52
  1565. package/tests/unit/runtime/http-engine/certificates/CertificateManager.spec.ts +0 -482
  1566. package/tests/unit/runtime/http-engine/certificates.spec.ts +0 -180
  1567. package/tests/unit/runtime/http-engine/cleanup.spec.ts +0 -44
  1568. package/tests/unit/runtime/http-engine/compression/CompressionManager.spec.ts +0 -498
  1569. package/tests/unit/runtime/http-engine/compression.spec.ts +0 -114
  1570. package/tests/unit/runtime/http-engine/connections/ConnectionManager.spec.ts +0 -379
  1571. package/tests/unit/runtime/http-engine/connections/DigestAuthHandler.spec.ts +0 -164
  1572. package/tests/unit/runtime/http-engine/core_engine.spec.ts +0 -560
  1573. package/tests/unit/runtime/http-engine/engine_statuses.spec.ts +0 -58
  1574. package/tests/unit/runtime/http-engine/events.spec.ts +0 -50
  1575. package/tests/unit/runtime/http-engine/form_data.spec.ts +0 -112
  1576. package/tests/unit/runtime/http-engine/headers.spec.ts +0 -149
  1577. package/tests/unit/runtime/http-engine/hosts.spec.ts +0 -29
  1578. package/tests/unit/runtime/http-engine/http-get.spec.ts +0 -36
  1579. package/tests/unit/runtime/http-engine/http-post.spec.ts +0 -72
  1580. package/tests/unit/runtime/http-engine/logger.spec.ts +0 -24
  1581. package/tests/unit/runtime/http-engine/message.spec.ts +0 -184
  1582. package/tests/unit/runtime/http-engine/params.spec.ts +0 -388
  1583. package/tests/unit/runtime/http-engine/payload_support.spec.ts +0 -127
  1584. package/tests/unit/runtime/http-engine/proxy.spec.ts +0 -522
  1585. package/tests/unit/runtime/http-engine/redirects.spec.ts +0 -217
  1586. package/tests/unit/runtime/http-engine/request_utils.spec.ts +0 -176
  1587. package/tests/unit/runtime/http-engine/responses.spec.ts +0 -272
  1588. package/tests/unit/runtime/http-engine/timeout.spec.ts +0 -33
  1589. package/tests/unit/runtime/http-engine/timings.spec.ts +0 -50
  1590. package/tests/unit/runtime/proxy/HttpProjectProxy.spec.ts +0 -241
  1591. package/tests/unit/runtime/proxy/RequestProxy.spec.ts +0 -130
  1592. package/tests/unit/runtime/reporters/project_run_cli_reporter.spec.ts +0 -62
  1593. package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +0 -1303
  1594. package/tests/unit/runtime/runners/http_flow_runner.spec.ts +0 -1174
  1595. package/tests/unit/runtime/runners/parallel_runner.spec.ts +0 -365
  1596. package/tests/unit/runtime/runners/project_runner.spec.ts +0 -839
  1597. package/tests/unit/runtime/runners/request_runner.spec.ts +0 -933
  1598. package/tests/unit/runtime/runners/serial_runner.spec.ts +0 -629
  1599. package/tests/unit/runtime/variables/cache.spec.ts +0 -95
  1600. package/tests/unit/runtime/variables/eval_functions.spec.ts +0 -66
  1601. package/tests/unit/runtime/variables/variables_processor.spec.ts +0 -563
  1602. package/tests/unit/src/Platform.spec.ts +0 -24
  1603. package/tsconfig.browser.json +0 -33
  1604. package/tsconfig.node.json +0 -34
  1605. /package/{API_MODELING_EXPLAINER.md → architecture/API_MODELING_EXPLAINER.md} +0 -0
  1606. /package/{DATA_MODELING_EXPLAINER.md → architecture/DATA_MODELING_EXPLAINER.md} +0 -0
@@ -1,1533 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-empty-object-type */
2
- /* eslint-disable @typescript-eslint/no-explicit-any */
3
- /* eslint-disable @typescript-eslint/no-this-alias */
4
- import { ProjectParent } from './ProjectParent.js'
5
- import { IProjectDefinitionProperty } from './ProjectDefinitionProperty.js'
6
- import { Environment, IEnvironment, Kind as EnvironmentKind } from './Environment.js'
7
- import { License, ILicense } from './License.js'
8
- import { Provider, IProvider } from './Provider.js'
9
- import { ThingSchema, Thing } from './Thing.js'
10
- import { ProjectItem, IProjectItem } from './ProjectItem.js'
11
- import { IProjectFolder, ProjectFolder } from './ProjectFolder.js'
12
- import { IProjectRequest, ProjectRequest, Kind as ProjectRequestKind } from './ProjectRequest.js'
13
- import { ProjectSchema, IProjectSchema } from './ProjectSchema.js'
14
- import { Request } from './Request.js'
15
- import { nanoid } from '../nanoid.js'
16
- import { ARCSavedRequest, ARCHistoryRequest } from './legacy/request/ArcRequest.js'
17
- import { ArcLegacyProject, ARCProject } from './legacy/models/ArcLegacyProject.js'
18
- import { PostmanDataTransformer } from './transformers/PostmanDataTransformer.js'
19
- import { Certificate, HttpCertificate } from './ClientCertificate.js'
20
- import { ICCAuthorization } from './Authorization.js'
21
- import { ProjectFolderKind } from './kinds.js'
22
-
23
- export const Kind = 'Core#HttpProject'
24
-
25
- export interface IItemOptions {
26
- /**
27
- * The parent folder of the item to.
28
- */
29
- parent?: string
30
- }
31
-
32
- export interface IItemCreateOptions extends IItemOptions {
33
- /**
34
- * The position at which to add the item.
35
- */
36
- index?: number
37
- }
38
-
39
- export interface IEnvironmentCreateOptions extends IItemCreateOptions {}
40
-
41
- /**
42
- * A list of options to initialize a project in various situations.
43
- */
44
- export interface IProjectInitOptions {
45
- /**
46
- * The name of the project.
47
- */
48
- name: string
49
- }
50
-
51
- export interface IFolderCreateOptions {
52
- /**
53
- * Ignores the operation when the folder with the same name already exists.
54
- * This command can be used used to ensure that the folder exists.
55
- */
56
- skipExisting?: boolean
57
- /**
58
- * The id of the parent folder. When not set it adds the folder to the project root.
59
- */
60
- parent?: string
61
- /**
62
- * Optionally the position at which to add the folder into the list of items.
63
- */
64
- index?: number
65
- }
66
-
67
- export interface IFolderSearchOptions {
68
- /**
69
- * When set it searches for a folder using keys only.
70
- * By default it searches for a key and the name.
71
- */
72
- keyOnly?: boolean
73
- }
74
-
75
- export interface IFolderDeleteOptions {
76
- /**
77
- * When set it won't throw an error when the folder is not found in the project.
78
- */
79
- safe?: boolean
80
- }
81
-
82
- export interface IRequestAddOptions {
83
- /**
84
- * The id of the parent folder. When not set it adds the request to the project root.
85
- */
86
- parent?: string
87
- /**
88
- * Optionally the position at which to add the request into the list of items.
89
- */
90
- index?: number
91
- }
92
-
93
- export interface IRequestSearchOptions {
94
- /**
95
- * When set it searches for a request using keys only.
96
- * By default it searches for a key and the name.
97
- */
98
- keyOnly?: boolean
99
- }
100
-
101
- export interface IRequestDeleteOptions {
102
- /**
103
- * When set it won't throw an error when the request is not found in the project.
104
- */
105
- safe?: boolean
106
- }
107
-
108
- export interface IProjectMoveOptions {
109
- /**
110
- * The position at which to insert the object in the destination. BY default it adds the object at the end.
111
- */
112
- index?: number
113
- /**
114
- * The name or the key of the parent folder to move the item into.
115
- * When not set it moves the item to the project's root.
116
- */
117
- parent?: string
118
- }
119
-
120
- export interface IReadEnvironmentOptions extends IItemOptions {
121
- /**
122
- * The name or the key of the environment to select.
123
- *
124
- * When the name is not specified it selects:
125
- * - the first environment from the project, if any
126
- * - any parent folder's first environment to the requested folder, if any (if parent is set)
127
- * - the requested folder's first environment, if any (if parent is set)
128
- */
129
- nameOrKey?: string
130
- }
131
-
132
- /**
133
- * The object stored as a list index for the projects.
134
- * This is used to list projects in the store and in the UI.
135
- */
136
- export interface IHttpProjectIndex {
137
- key: string
138
- name: string
139
- version?: string
140
- }
141
-
142
- export interface IProjectCloneOptions {
143
- /**
144
- * By default it revalidates (re-creates) keys in the request.
145
- * Set this to true to not make any changes to the keys.
146
- */
147
- withoutRevalidate?: boolean
148
- }
149
-
150
- export interface IFolderListOptions {
151
- /**
152
- * Folder name or key to list folders for.
153
- */
154
- folder?: string
155
- }
156
-
157
- export interface ISchemaAddOptions {
158
- /**
159
- * Optionally the position at which to add the schema into the list of schemas.
160
- */
161
- index?: number
162
- }
163
-
164
- export interface IProjectRequestIterator {
165
- /**
166
- * The parent folder key or name. Sets the starting point to iterate over the requests.
167
- */
168
- parent?: string
169
- /**
170
- * When set it includes requests in the current folder and sub-folder according to the order
171
- * defined in the folder.
172
- */
173
- recursive?: boolean
174
- /**
175
- * Limits the number of requests to include in the iterator.
176
- * It is an array of request keys or names.
177
- */
178
- requests?: string[]
179
- /**
180
- * The opposite of the `requests`. The list of names or keys of requests or folders to ignore.
181
- * Note, ignore is tested before the `requests`.
182
- */
183
- ignore?: string[]
184
- }
185
-
186
- export interface IProjectFolderIterator {
187
- /**
188
- * The parent folder key or name. Sets the starting point to iterate over the folder.
189
- */
190
- parent?: string
191
- /**
192
- * When set it includes folders in the current folder and sub-folder according to the order
193
- * defined in the folder.
194
- */
195
- recursive?: boolean
196
- /**
197
- * The list of names or keys to ignore.
198
- */
199
- ignore?: string[]
200
- }
201
-
202
- export interface IProjectFolderIteratorResult {
203
- /**
204
- * The folder.
205
- */
206
- folder: ProjectFolder
207
- /**
208
- * Optional parent key.
209
- */
210
- parent?: string
211
- /**
212
- * How deep in the structure the folder is located.
213
- * The indent is relative to the `parent`.
214
- */
215
- indent: number
216
- }
217
-
218
- /**
219
- * The new definition of a project in API Client.
220
- * Note, this is not the same as future `ApiProject` which is reserved for building APIs
221
- * using RAML or OAS.
222
- */
223
- export interface IHttpProject extends IProjectDefinitionProperty {
224
- kind: typeof Kind
225
- /**
226
- * The license information for this HTTP project.
227
- */
228
- license?: ILicense
229
- /**
230
- * The basic information about the project.
231
- */
232
- info: ThingSchema
233
- /**
234
- * Information about project provider.
235
- */
236
- provider?: IProvider
237
- /**
238
- * The ordered list of HTTP requests / folders in the projects.
239
- * The UI uses this to manipulate the view without changing the definitions.
240
- */
241
- items: IProjectItem[]
242
- /**
243
- * The project definitions.
244
- * This is where all the data are stored.
245
- */
246
- definitions: IHttpProjectDefinitions
247
- }
248
-
249
- export interface IHttpProjectDefinitions {
250
- requests?: IProjectRequest[]
251
- folders?: IProjectFolder[]
252
- schemas?: IProjectSchema[]
253
- environments?: IEnvironment[]
254
- certificates?: HttpCertificate[]
255
- }
256
-
257
- interface HttpProjectDefinitions {
258
- requests: ProjectRequest[]
259
- folders: ProjectFolder[]
260
- schemas: ProjectSchema[]
261
- environments: Environment[]
262
- certificates: Certificate[]
263
- }
264
-
265
- /**
266
- * An instance of an HttpProject.
267
- */
268
- export class HttpProject extends ProjectParent {
269
- override kind = Kind
270
- private initEnvironments?: Environment[]
271
- /**
272
- * The license information for this HTTP project.
273
- */
274
- license?: License
275
- /**
276
- * Information about project provider.
277
- */
278
- provider?: Provider
279
- /**
280
- * The list of all requests stored in this project.
281
- * Note, this is not used to visualized the request in the UI.
282
- * This is just the source of data.
283
- * The `items` property is used to build the view.
284
- */
285
- definitions: HttpProjectDefinitions = HttpProject.defaultDefinitions()
286
-
287
- static defaultDefinitions(): HttpProjectDefinitions {
288
- return { environments: [], folders: [], requests: [], schemas: [], certificates: [] }
289
- }
290
-
291
- /**
292
- * Creates a new HTTP project from a name.
293
- * @param {string} name The name to set.
294
- */
295
- static fromName(name: string): HttpProject {
296
- const project = new HttpProject()
297
- const info = Thing.fromName(name)
298
- project.info = info
299
- return project
300
- }
301
-
302
- /**
303
- * Creates an HTTP project instance from ARC's legacy project definition.
304
- */
305
- static async fromLegacy(project: ArcLegacyProject, requests: ARCSavedRequest[]): Promise<HttpProject> {
306
- const { name = 'Unnamed project', description, requests: ids } = project
307
- const typedLegacyDb = project as ARCProject
308
- const result = HttpProject.fromName(name)
309
- if (typedLegacyDb._id) {
310
- result.key = typedLegacyDb._id
311
- }
312
- if (description) {
313
- result.info.description = description
314
- }
315
- if (Array.isArray(ids) && ids.length) {
316
- const promises = ids.map(async (id) => {
317
- const old = requests.find((item) => item._id === id)
318
- if (!old) {
319
- return
320
- }
321
- const request = await Request.fromLegacy(old)
322
- const projectRequest = ProjectRequest.fromRequest(request.toJSON(), result)
323
- if (old._id) {
324
- projectRequest.key = old._id
325
- }
326
- result.addRequest(projectRequest)
327
- })
328
- await Promise.allSettled(promises)
329
- }
330
- return result
331
- }
332
-
333
- /**
334
- * Creates an HTTP project from a Postman collection
335
- * @param init The postman collection object or a string that can be parsed to one.
336
- */
337
- static async fromPostman(init: any): Promise<HttpProject> {
338
- const result = await PostmanDataTransformer.transform(init)
339
- if (Array.isArray(result) && result.length > 1) {
340
- throw new Error(`Unable to process postman data. It contains multiple collections.`)
341
- }
342
- const project = Array.isArray(result) ? result[0] : result
343
- return project
344
- }
345
-
346
- /**
347
- * Creates a new project from a set of options.
348
- */
349
- static fromInitOptions(init: IProjectInitOptions): HttpProject {
350
- const { name = 'Unnamed project' } = init
351
- return HttpProject.fromName(name)
352
- }
353
-
354
- /**
355
- * @param input The project definition used to restore the state.
356
- * @param environments Optional list of environments to use with this project. It overrides
357
- * environments stored in the project definition.
358
- */
359
- constructor(input?: string | IHttpProject, environments?: IEnvironment[]) {
360
- super()
361
- if (Array.isArray(environments)) {
362
- this.initEnvironments = environments.map((i) => new Environment(i))
363
- }
364
- let init: IHttpProject
365
- if (typeof input === 'string') {
366
- init = JSON.parse(input)
367
- } else if (typeof input === 'object') {
368
- init = input
369
- if (!init.kind) {
370
- init.kind = Kind
371
- }
372
- } else {
373
- init = {
374
- kind: Kind,
375
- key: nanoid(),
376
- definitions: {},
377
- items: [],
378
- info: Thing.fromName('').toJSON(),
379
- }
380
- }
381
- this.new(init)
382
- }
383
-
384
- /**
385
- * Creates a new project definition clearing anything that is so far defined.
386
- *
387
- * Note, this throws an error when the project is not an API Client project.
388
- */
389
- new(init: IHttpProject): void {
390
- if (!init || !init.definitions || !init.items) {
391
- throw new Error(`Not a project.`)
392
- }
393
- const { key = nanoid(), definitions = {}, items, info, license, provider } = init
394
- this.key = key
395
- if (license) {
396
- this.license = new License(license)
397
- } else {
398
- this.license = undefined
399
- }
400
- if (provider) {
401
- this.provider = new Provider(provider)
402
- } else {
403
- this.provider = undefined
404
- }
405
- if (info) {
406
- this.info = new Thing(info)
407
- } else {
408
- this.info = Thing.fromName('')
409
- }
410
- this.items = []
411
- if (Array.isArray(items)) {
412
- this.items = items.map((i) => new ProjectItem(this, i))
413
- }
414
- this.definitions = HttpProject.defaultDefinitions()
415
- if (Array.isArray(definitions.environments)) {
416
- this.definitions.environments = definitions.environments.map((i) => new Environment(i))
417
- }
418
- if (Array.isArray(definitions.requests)) {
419
- this.definitions.requests = definitions.requests.map((i) => {
420
- const instance = new ProjectRequest(this, i)
421
- instance.attachedCallback()
422
- return instance
423
- })
424
- }
425
- if (Array.isArray(definitions.folders)) {
426
- this.definitions.folders = definitions.folders.map((i) => {
427
- const instance = new ProjectFolder(this, i)
428
- instance.attachedCallback()
429
- return instance
430
- })
431
- }
432
- if (Array.isArray(definitions.schemas)) {
433
- this.definitions.schemas = definitions.schemas.map((i) => new ProjectSchema(i))
434
- }
435
- if (Array.isArray(definitions.certificates)) {
436
- this.definitions.certificates = definitions.certificates.map((i) => new Certificate(i))
437
- }
438
- }
439
-
440
- toJSON(): IHttpProject {
441
- const result: IHttpProject = {
442
- kind: Kind,
443
- key: this.key,
444
- definitions: {},
445
- items: [],
446
- info: this.info.toJSON(),
447
- }
448
- if (Array.isArray(this.definitions.environments) && this.definitions.environments.length) {
449
- result.definitions.environments = this.definitions.environments.map((i) => i.toJSON())
450
- }
451
- if (Array.isArray(this.definitions.requests) && this.definitions.requests.length) {
452
- result.definitions.requests = this.definitions.requests.map((i) => i.toJSON())
453
- }
454
- if (Array.isArray(this.definitions.folders) && this.definitions.folders.length) {
455
- result.definitions.folders = this.definitions.folders.map((i) => i.toJSON())
456
- }
457
- if (Array.isArray(this.definitions.schemas) && this.definitions.schemas.length) {
458
- result.definitions.schemas = this.definitions.schemas.map((i) => i.toJSON())
459
- }
460
- if (Array.isArray(this.definitions.certificates) && this.definitions.certificates.length) {
461
- result.definitions.certificates = this.definitions.certificates.map((i) => i.toJSON())
462
- }
463
- if (Array.isArray(this.items) && this.items.length) {
464
- result.items = this.items.map((i) => i.toJSON())
465
- }
466
- if (this.provider) {
467
- result.provider = this.provider.toJSON()
468
- }
469
- if (this.license) {
470
- result.license = this.license.toJSON()
471
- }
472
- return result
473
- }
474
-
475
- /**
476
- * @returns JSON representation of the project
477
- */
478
- override toString(): string {
479
- return JSON.stringify(this)
480
- }
481
-
482
- /**
483
- * Finds a parent of a definition.
484
- *
485
- * @param key The key of the definition.
486
- * @returns The parent or undefine when not found.
487
- */
488
- findParent(key: string): ProjectFolder | HttpProject | undefined {
489
- const { definitions, items = [] } = this
490
- const projectItemsIndex = items.findIndex((i) => i.key === key)
491
- if (projectItemsIndex > -1) {
492
- return this
493
- }
494
- const definition = definitions.folders.find((i) => i.items.some((item) => item.key === key))
495
- if (definition) {
496
- return definition
497
- }
498
- return undefined
499
- }
500
-
501
- /**
502
- * Appends a new folder to the project or a sub-folder.
503
- *
504
- * Passing the folder schema as the fist argument is primarily used to insert a folder on the client side
505
- * after a folder was created in the store.
506
- *
507
- * @param init The name or a folder schema. When not set a default name is assumed.
508
- * @param opts Folder create options.
509
- * @returns The newly inserted folder. If the folder already existed it returns its instance.
510
- */
511
- addFolder(
512
- init: string | IProjectFolder | ProjectFolder = ProjectFolder.defaultName,
513
- opts: IFolderCreateOptions = {}
514
- ): ProjectFolder {
515
- if (!Array.isArray(this.items)) {
516
- this.items = []
517
- }
518
- if (!Array.isArray(this.definitions.folders)) {
519
- this.definitions.folders = []
520
- }
521
- const { skipExisting, parent } = opts
522
- let root: ProjectFolder | HttpProject
523
- if (parent) {
524
- const rootCandidate = this.findFolder(parent)
525
- if (!rootCandidate) {
526
- throw new Error(`Unable to find the parent folder ${parent}`)
527
- }
528
- root = rootCandidate
529
- } else {
530
- root = this
531
- }
532
- let definition: ProjectFolder
533
- if (typeof init === 'string') {
534
- definition = ProjectFolder.fromName(this, init)
535
- } else if (init instanceof ProjectFolder) {
536
- definition = init
537
- } else {
538
- definition = new ProjectFolder(this, init)
539
- }
540
- if (skipExisting) {
541
- const folders = root.listFolderItems()
542
- for (const item of folders) {
543
- const existing = this.findFolder(item.key, { keyOnly: true })
544
- if (existing && existing.info.name === definition.info.name) {
545
- return existing
546
- }
547
- }
548
- }
549
-
550
- this.definitions.folders.push(definition)
551
- const item = ProjectItem.projectFolder(this, definition.key)
552
- if (!Array.isArray(root.items)) {
553
- root.items = []
554
- }
555
- if (typeof opts.index === 'number') {
556
- root.items.splice(opts.index, 0, item)
557
- } else {
558
- root.items.push(item)
559
- }
560
- definition.attachedCallback()
561
- return definition
562
- }
563
-
564
- /**
565
- * Searches for a folder in the structure.
566
- *
567
- * @param nameOrKey The name or the key of the folder.
568
- * @param opts Optional search options.
569
- * @returns Found project folder or undefined.
570
- */
571
- findFolder(nameOrKey: string, opts: IFolderSearchOptions = {}): ProjectFolder | undefined {
572
- const { definitions } = this
573
- const item = definitions.folders.find((i) => {
574
- if (i.kind !== ProjectFolderKind) {
575
- return false
576
- }
577
- const folder = i as ProjectFolder
578
- if (folder.key === nameOrKey) {
579
- return true
580
- }
581
- if (opts.keyOnly) {
582
- return false
583
- }
584
- return !!folder.info && folder.info.name === nameOrKey
585
- })
586
- if (item) {
587
- return item as ProjectFolder
588
- }
589
- }
590
-
591
- /**
592
- * Removes a folder from the project.
593
- * @param key The folder key. It ignores the name when searching to the folder to avoid ambiguity.
594
- * @param opts Folder remove options.
595
- * @returns The removed folder definition or undefined when not removed.
596
- */
597
- removeFolder(key: string, opts: IFolderDeleteOptions = {}): ProjectFolder | undefined {
598
- const { definitions } = this
599
- const folder = this.findFolder(key, { keyOnly: true })
600
- if (!folder) {
601
- if (opts.safe) {
602
- return undefined
603
- }
604
- throw new Error(`Unable to find the folder ${key}`)
605
- }
606
- const parent = this.findParent(key)
607
- if (!parent) {
608
- if (opts.safe) {
609
- return undefined
610
- }
611
- throw new Error(`Unable to find a parent of the folder ${key}`)
612
- }
613
-
614
- const requests = folder.listRequests()
615
- requests.forEach((r) => r.remove())
616
- const folders = folder.listFolders()
617
- folders.forEach((f) => f.remove())
618
-
619
- const itemIndex = parent.items.findIndex((i) => i.key === key)
620
- const definitionIndex = definitions.folders.findIndex((i) => i.key === key)
621
- definitions.folders.splice(definitionIndex, 1)
622
- folder.detachedCallback()
623
- if (itemIndex >= 0) {
624
- parent.items.splice(itemIndex, 1)
625
- }
626
- return folder
627
- }
628
-
629
- /**
630
- * Moves a folder between folders and the project or between items inside a folder or a project
631
- *
632
- * Note, when the `parent` option is not specified it moved the folder to the project's root.
633
- *
634
- * @param key The key of the request to move.
635
- * @param opts The moving options.
636
- */
637
- moveFolder(key: string, opts: IProjectMoveOptions = {}): void {
638
- const { index, parent } = opts
639
- const movedFolder = this.findFolder(key)
640
- if (!movedFolder) {
641
- throw new Error(`Unable to locate the folder ${key}`)
642
- }
643
- const parentFolder = this.findParent(key)
644
- if (!parentFolder) {
645
- throw new Error(`Unable to locate a parent of the folder ${key}`)
646
- }
647
- if (parent) {
648
- // check if moving a folder into another folder that is a child of the moved folder.
649
- if (this.hasChild(parent, key)) {
650
- throw new RangeError(`Unable to move a folder to its child.`)
651
- }
652
- }
653
- const target = parent ? this.findFolder(parent) : this
654
- if (!target) {
655
- throw new Error(`Unable to locate the new parent folder ${parent}`)
656
- }
657
- const hasIndex = typeof index === 'number'
658
- if (hasIndex) {
659
- // comparing to the `.length` and not `.length - 1` in case we are adding at the end.
660
- const maxIndex = Math.max(target.items.length, 0)
661
- if (index > maxIndex) {
662
- throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`)
663
- }
664
- }
665
-
666
- const itemIndex = parentFolder.items.findIndex((i) => i.key === key)
667
- const item = parentFolder.items.splice(itemIndex, 1)[0]
668
- movedFolder.detachedCallback()
669
-
670
- if (hasIndex && target.items.length > index) {
671
- target.items.splice(index, 0, item)
672
- } else {
673
- target.items.push(item)
674
- }
675
- movedFolder.attachedCallback()
676
- }
677
-
678
- /**
679
- * Checks whether a folder has a child (anywhere down the structure).
680
- *
681
- * @param child The **key** of the child.
682
- * @param folder The **key** of the folder. When not set it searches from the project root.
683
- * @returns True when the child is located somewhere down the structure.
684
- */
685
- hasChild(child: string, folder?: string): boolean {
686
- const target = folder ? this.findFolder(folder) : this
687
- if (!target) {
688
- throw new Error(`Unable to locate the folder ${folder}`)
689
- }
690
- const { items = [] } = target
691
- for (const item of items) {
692
- if (item.key === child) {
693
- return true
694
- }
695
- if (item.kind === ProjectFolderKind) {
696
- const hasChild = this.hasChild(child, item.key)
697
- if (hasChild) {
698
- return true
699
- }
700
- }
701
- }
702
- return false
703
- }
704
-
705
- /**
706
- * Adds a request to the project or a sub-folder.
707
- * @param request The request to add.
708
- * @param opts Thew request add options.
709
- * @returns The inserted into the definitions request.
710
- */
711
- addRequest(request: IProjectRequest | ProjectRequest | string, opts: IRequestAddOptions = {}): ProjectRequest {
712
- if (!Array.isArray(this.definitions.requests)) {
713
- this.definitions.requests = []
714
- }
715
-
716
- // the request can be already added to the project as the same method is used to refresh a request after
717
- // a store update. From the system perspective it is the same event.
718
-
719
- if (typeof request === 'object' && request.key) {
720
- const existing = this.definitions.requests.find((i) => i.key === request.key)
721
- if (existing) {
722
- existing.new(request as IProjectRequest)
723
- return existing
724
- }
725
- }
726
-
727
- // if we got here, it means that we are adding a new request object to the project.
728
-
729
- let finalRequest
730
- if (typeof request === 'string') {
731
- finalRequest = ProjectRequest.fromUrl(request, this)
732
- } else if (request instanceof ProjectRequest) {
733
- finalRequest = request
734
- if (finalRequest.project && finalRequest.project !== this) {
735
- finalRequest.detachedCallback()
736
- }
737
- finalRequest.project = this
738
- } else {
739
- finalRequest = new ProjectRequest(this, request)
740
- }
741
- if (!finalRequest.key) {
742
- finalRequest.key = nanoid()
743
- }
744
-
745
- let root: ProjectFolder | HttpProject
746
- if (opts.parent) {
747
- const rootCandidate = this.findFolder(opts.parent)
748
- if (!rootCandidate) {
749
- throw new Error(`Unable to find the parent folder ${opts.parent}.`)
750
- }
751
- root = rootCandidate
752
- } else {
753
- root = this
754
- }
755
-
756
- if (!Array.isArray(root.items)) {
757
- root.items = []
758
- }
759
-
760
- if (typeof opts.index === 'number') {
761
- const maxIndex = Math.max(root.items.length - 1, 0)
762
- if (opts.index > maxIndex) {
763
- throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`)
764
- }
765
- }
766
-
767
- this.definitions.requests.push(finalRequest)
768
- const item = ProjectItem.projectRequest(this, finalRequest.key)
769
-
770
- if (typeof opts.index === 'number') {
771
- root.items.splice(opts.index, 0, item)
772
- } else {
773
- root.items.push(item)
774
- }
775
- finalRequest.attachedCallback()
776
- return finalRequest
777
- }
778
-
779
- /**
780
- * Adds a request to the project that has been created for a previous version of ARC.
781
- *
782
- * @param legacy The legacy request definition.
783
- * @returns The created project request.
784
- */
785
- async addLegacyRequest(legacy: ARCSavedRequest | ARCHistoryRequest): Promise<ProjectRequest> {
786
- const request = await Request.fromLegacy(legacy)
787
- const projectRequest = ProjectRequest.fromRequest(request.toJSON(), this)
788
- return this.addRequest(projectRequest)
789
- }
790
-
791
- /**
792
- * Searches for a request in the project.
793
- *
794
- * @param nameOrKey The name or the key of the request.
795
- * @param opts Optional search options.
796
- * @returns Found project request or undefined.
797
- */
798
- findRequest(nameOrKey: string, opts: IRequestSearchOptions = {}): ProjectRequest | undefined {
799
- const { definitions } = this
800
- const item = definitions.requests.find((request) => {
801
- if (request.key === nameOrKey) {
802
- return true
803
- }
804
- if (opts.keyOnly) {
805
- return false
806
- }
807
- return !!request.info && request.info.name === nameOrKey
808
- })
809
- if (item) {
810
- return item as ProjectRequest
811
- }
812
- return undefined
813
- }
814
-
815
- /**
816
- * Removes a request from the project.
817
- *
818
- * @param key The request key. It ignores the name when searching to the request to avoid ambiguity.
819
- * @param opts Request remove options.
820
- * @returns The removed request definition or undefined when not removed.
821
- */
822
- removeRequest(key: string, opts: IRequestDeleteOptions = {}): ProjectRequest | undefined {
823
- const { definitions } = this
824
- const request = this.findRequest(key, { keyOnly: true })
825
- if (!request) {
826
- if (opts.safe) {
827
- return undefined
828
- }
829
- throw new Error(`Unable to find the request ${key}`)
830
- }
831
- const parent = this.findParent(key)
832
- if (!parent) {
833
- if (opts.safe) {
834
- return undefined
835
- }
836
- throw new Error(`Unable to find a parent of the request ${key}`)
837
- }
838
- const itemIndex = parent.items.findIndex((i) => i.key === key)
839
- const definitionIndex = definitions.requests.findIndex((i) => i.key === key)
840
- definitions.requests.splice(definitionIndex, 1)
841
- request.detachedCallback()
842
- if (itemIndex >= 0) {
843
- parent.items.splice(itemIndex, 1)
844
- }
845
- return request
846
- }
847
-
848
- /**
849
- * Moves a request between folders and the project or between items inside a folder or a project.
850
- *
851
- * Note, when the `parent` option is not specified it moved the request to the project's root.
852
- *
853
- * @param key The key of the request to move.
854
- * @param opts The moving options.
855
- */
856
- moveRequest(key: string, opts: IProjectMoveOptions = {}): void {
857
- const { index, parent } = opts
858
- const request = this.findRequest(key)
859
- if (!request) {
860
- throw new Error(`Unable to locate the request ${key}`)
861
- }
862
- const parentFolder = this.findParent(key)
863
- if (!parentFolder) {
864
- throw new Error(`Unable to locate a parent of the request ${key}`)
865
- }
866
- const target = parent ? this.findFolder(parent) : this
867
- if (!target) {
868
- throw new Error(`Unable to locate the new parent folder ${parent}`)
869
- }
870
- const hasIndex = typeof index === 'number'
871
- if (hasIndex) {
872
- // comparing to the `.length` and not `.length - 1` in case we are adding at the end.
873
- const maxIndex = Math.max(target.items.length, 0)
874
- if (index > maxIndex) {
875
- throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`)
876
- }
877
- }
878
-
879
- const itemIndex = parentFolder.items.findIndex((i) => i.key === key)
880
- const item = parentFolder.items.splice(itemIndex, 1)[0]
881
- request.detachedCallback()
882
-
883
- if (hasIndex && target.items.length > index) {
884
- target.items.splice(index, 0, item)
885
- } else {
886
- target.items.push(item)
887
- }
888
- request.attachedCallback()
889
- }
890
-
891
- /**
892
- * Lists items (not the actual definitions!) that are folders.
893
- */
894
- listFolderItems(): ProjectItem[] {
895
- const { items = [] } = this
896
- return items.filter((i) => i.kind === ProjectFolderKind)
897
- }
898
-
899
- /**
900
- * Lists items (not the actual definitions!) that are requests.
901
- */
902
- listRequestItems(): ProjectItem[] {
903
- const { items = [] } = this
904
- return items.filter((i) => i.kind === ProjectRequestKind)
905
- }
906
-
907
- /**
908
- * Lists folders from the project or a sub-folder.
909
- * @param opts Folder listing options.
910
- */
911
- listFolders(opts: IFolderListOptions = {}): ProjectFolder[] {
912
- let root
913
- if (opts.folder) {
914
- const parent = this.findFolder(opts.folder)
915
- if (!parent) {
916
- throw new Error(`Unable to find the folder ${opts.folder}.`)
917
- }
918
- root = parent
919
- } else {
920
- root = this
921
- }
922
- const items = root.listFolderItems()
923
- const result: ProjectFolder[] = []
924
- const { definitions } = this
925
- items.forEach((i) => {
926
- const definition = definitions.folders.find((d) => i.key === d.key)
927
- if (definition) {
928
- result.push(definition)
929
- }
930
- })
931
- return result
932
- }
933
-
934
- /**
935
- * Lists requests in this project or a sub-folder.
936
- * @param folder The optional folder name or the key to list requests for.
937
- */
938
- listRequests(folder?: string): ProjectRequest[] {
939
- let root
940
- if (folder) {
941
- const parent = this.findFolder(folder)
942
- if (!parent) {
943
- throw new Error(`Unable to find the folder ${folder}.`)
944
- }
945
- root = parent
946
- } else {
947
- root = this
948
- }
949
- const items = root.listRequestItems()
950
- const result: ProjectRequest[] = []
951
- const { definitions } = this
952
- items.forEach((i) => {
953
- const definition = definitions.requests.find((d) => i.key === d.key)
954
- if (definition) {
955
- result.push(definition)
956
- }
957
- })
958
- return result
959
- }
960
-
961
- /**
962
- * Lists definitions for the `items` of the project or a folder.
963
- * @param folder Optionally the folder name to list the definitions for.
964
- */
965
- listDefinitions(folder?: string): (ProjectFolder | ProjectRequest | Environment)[] {
966
- let root
967
- if (folder) {
968
- const parent = this.findFolder(folder)
969
- if (!parent) {
970
- throw new Error(`Unable to find the folder ${folder}`)
971
- }
972
- root = parent
973
- } else {
974
- root = this
975
- }
976
- const result: (ProjectFolder | ProjectRequest | Environment)[] = []
977
- const { items = [] } = root
978
- const { definitions } = this
979
- items.forEach((item) => {
980
- let definition: ProjectFolder | ProjectRequest | Environment | undefined
981
- if (item.kind === ProjectFolderKind) {
982
- definition = definitions.folders.find((d) => item.key === d.key)
983
- } else if (item.kind === ProjectRequestKind) {
984
- definition = definitions.requests.find((d) => item.key === d.key)
985
- } else if (item.kind === EnvironmentKind) {
986
- definition = definitions.environments.find((d) => item.key === d.key)
987
- }
988
- if (definition) {
989
- result.push(definition)
990
- }
991
- })
992
- return result
993
- }
994
-
995
- /**
996
- * Makes sure the license information exists.
997
- * @returns The set license.
998
- */
999
- ensureLicense(): License {
1000
- if (!this.license) {
1001
- this.license = new License()
1002
- }
1003
- return this.license
1004
- }
1005
-
1006
- /**
1007
- * Makes sure the Provider information exists.
1008
- * @returns The set provider.
1009
- */
1010
- ensureProvider(): Provider {
1011
- if (!this.provider) {
1012
- this.provider = new Provider()
1013
- }
1014
- return this.provider
1015
- }
1016
-
1017
- /**
1018
- * @returns On the project level this always returns undefined.
1019
- */
1020
- getParent(): ProjectFolder | HttpProject | undefined {
1021
- return undefined
1022
- }
1023
-
1024
- attachedCallback(): void {
1025
- // ...
1026
- }
1027
-
1028
- detachedCallback(): void {
1029
- // ...
1030
- }
1031
-
1032
- getProject(): HttpProject {
1033
- return this
1034
- }
1035
-
1036
- /**
1037
- * Makes a copy of this project.
1038
- */
1039
- clone(opts: IProjectCloneOptions = {}): HttpProject {
1040
- const copy = new HttpProject(this.toJSON())
1041
- if (!opts.withoutRevalidate) {
1042
- copy.key = nanoid()
1043
- HttpProject.regenerateKeys(copy)
1044
- }
1045
- return copy
1046
- }
1047
-
1048
- static clone(project: IHttpProject, opts: IProjectCloneOptions = {}): HttpProject {
1049
- const obj = new HttpProject(project)
1050
- return obj.clone(opts)
1051
- }
1052
-
1053
- /**
1054
- * Re-generates keys in the project, taking care of the references.
1055
- *
1056
- * Note, this changes the project properties. Make a copy of the project before calling this.
1057
- *
1058
- * @param src The project instance to re-generate keys for.
1059
- */
1060
- static regenerateKeys(src: HttpProject): void {
1061
- const { items = [], definitions } = src
1062
- // create a flat list of all "items" in the project and all folders.
1063
- let flatItems = [...items]
1064
- ;(definitions.folders || []).forEach((folder) => {
1065
- if (Array.isArray(folder.items) && folder.items.length) {
1066
- flatItems = flatItems.concat(folder.items)
1067
- }
1068
- })
1069
- ;(definitions.folders || []).forEach((folder) => {
1070
- const oldKey = folder.key
1071
- const indexObject = flatItems.find((i) => i.key === oldKey)
1072
- if (!indexObject) {
1073
- return
1074
- }
1075
- const newKey = nanoid()
1076
- indexObject.key = newKey
1077
- folder.key = newKey
1078
- })
1079
- ;(definitions.requests || []).forEach((request) => {
1080
- const oldKey = request.key
1081
- const indexObject = flatItems.find((i) => i.key === oldKey)
1082
- if (!indexObject) {
1083
- return
1084
- }
1085
- const newKey = nanoid()
1086
- indexObject.key = newKey
1087
- request.key = newKey
1088
- })
1089
- ;(definitions.schemas || []).forEach((schema) => {
1090
- schema.key = nanoid()
1091
- })
1092
- ;(definitions.certificates || []).forEach((cert) => {
1093
- cert.key = nanoid()
1094
- })
1095
- ;(definitions.environments || []).forEach((environment) => {
1096
- const oldKey = environment.key
1097
- const indexObject = flatItems.find((i) => i.key === oldKey)
1098
- if (!indexObject) {
1099
- return
1100
- }
1101
- const newKey = nanoid()
1102
- indexObject.key = newKey
1103
- environment.key = newKey
1104
- })
1105
- }
1106
-
1107
- /**
1108
- * Adds a request to the project or a sub-folder.
1109
- * @param schema The schema to add or a name of the schema.
1110
- * @param opts Thew schema add options.
1111
- * @returns The inserted into the schemas schema.
1112
- */
1113
- addSchema(schema: IProjectSchema | ProjectSchema | string, opts: ISchemaAddOptions = {}): ProjectSchema {
1114
- if (!Array.isArray(this.definitions.schemas)) {
1115
- this.definitions.schemas = []
1116
- }
1117
-
1118
- // this renews existing schema
1119
- if (typeof schema === 'object' && schema.key) {
1120
- const existing = this.definitions.schemas.find((i) => i.key === schema.key) as ProjectSchema | undefined
1121
- if (existing) {
1122
- existing.new(schema as IProjectSchema)
1123
- return existing
1124
- }
1125
- }
1126
-
1127
- let finalSchema: ProjectSchema
1128
- if (typeof schema === 'string') {
1129
- finalSchema = ProjectSchema.fromName(schema)
1130
- } else if (schema instanceof ProjectSchema) {
1131
- finalSchema = schema
1132
- } else {
1133
- finalSchema = new ProjectSchema(schema)
1134
- }
1135
- if (!finalSchema.key) {
1136
- finalSchema.key = nanoid()
1137
- }
1138
- const { index } = opts
1139
- const hasIndex = typeof index === 'number'
1140
- if (hasIndex && this.definitions.schemas.length > index) {
1141
- // comparing to the `.length` and not `.length - 1` in case we are adding at the end.
1142
- const maxIndex = Math.max(this.definitions.schemas.length, 0)
1143
- if (index > maxIndex) {
1144
- throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`)
1145
- }
1146
- this.definitions.schemas.splice(index, 0, finalSchema)
1147
- } else {
1148
- this.definitions.schemas.push(finalSchema)
1149
- }
1150
- return finalSchema
1151
- }
1152
-
1153
- /**
1154
- * @returns The current list of schemas in the project.
1155
- */
1156
- listSchemas(): ProjectSchema[] {
1157
- if (!Array.isArray(this.definitions.schemas)) {
1158
- return []
1159
- }
1160
- return this.definitions.schemas
1161
- }
1162
-
1163
- /**
1164
- * Iterates over requests in the project.
1165
- */
1166
- *requestIterator(opts: IProjectRequestIterator = {}): Generator<ProjectRequest> {
1167
- const { definitions } = this
1168
- const { ignore = [], parent, recursive, requests = [] } = opts
1169
- const root = parent ? this.findFolder(parent) : this
1170
- if (!root) {
1171
- throw new Error(`The parent folder not found: ${parent}.`)
1172
- }
1173
- const items = root.items
1174
- if (!items || !items.length) {
1175
- return
1176
- }
1177
- for (const item of items) {
1178
- if (ignore.includes(item.key)) {
1179
- continue
1180
- }
1181
- if (item.kind === ProjectRequestKind) {
1182
- const request = definitions.requests.find((i) => i.key === item.key)
1183
- if (!request) {
1184
- continue
1185
- }
1186
- const name = request.info.name || ''
1187
- if (ignore.includes(name)) {
1188
- continue
1189
- }
1190
- if (requests.length && !requests.includes(item.key) && !requests.includes(name)) {
1191
- continue
1192
- }
1193
- yield request
1194
- } else if (recursive && item.kind === ProjectFolderKind) {
1195
- const folder = definitions.folders.find((i) => i.key === item.key)
1196
- if (!folder) {
1197
- continue
1198
- }
1199
- const name = folder.info.name || ''
1200
- if (ignore.includes(name)) {
1201
- continue
1202
- }
1203
- const it = this.requestIterator({
1204
- parent: item.key,
1205
- recursive,
1206
- ignore,
1207
- requests,
1208
- })
1209
- for (const request of it) {
1210
- yield request
1211
- }
1212
- }
1213
- }
1214
- }
1215
-
1216
- /**
1217
- * Iterates over folders in the project.
1218
- *
1219
- * @param opts Iterator configuration options
1220
- * @param indent Used internally to add `indent` to the result
1221
- * @returns Iterator that yields when a folder is found, including all sub-folders (if configured).
1222
- */
1223
- *folderIterator(opts: IProjectFolderIterator = {}, indent = 0): Generator<IProjectFolderIteratorResult> {
1224
- const { definitions } = this
1225
- const { ignore = [], parent, recursive } = opts
1226
- const root = parent ? this.findFolder(parent) : this
1227
- if (!root) {
1228
- throw new Error(`The parent folder not found: ${parent}.`)
1229
- }
1230
- const items = root.items
1231
- if (!items || !items.length) {
1232
- return
1233
- }
1234
- for (const item of items) {
1235
- if (item.kind !== ProjectFolderKind) {
1236
- continue
1237
- }
1238
- const folder = definitions.folders.find((i) => i.key === item.key)
1239
- if (!folder) {
1240
- // missing definition.
1241
- continue
1242
- }
1243
- if (ignore.includes(folder.key) || (folder.info.name && ignore.includes(folder.info.name))) {
1244
- continue
1245
- }
1246
- const result: IProjectFolderIteratorResult = {
1247
- folder,
1248
- indent,
1249
- }
1250
- if (parent) {
1251
- result.parent = parent
1252
- }
1253
- yield result
1254
- if (recursive) {
1255
- const it = this.folderIterator(
1256
- {
1257
- parent: folder.key,
1258
- recursive,
1259
- ignore,
1260
- },
1261
- indent + 1
1262
- )
1263
- for (const f of it) {
1264
- yield f
1265
- }
1266
- }
1267
- }
1268
- }
1269
-
1270
- [Symbol.iterator](): Generator<ProjectRequest> {
1271
- return this.requestIterator({
1272
- recursive: true,
1273
- })
1274
- }
1275
-
1276
- /**
1277
- * Depending on the options returns a project or a folder.
1278
- * It throws when parent folder cannot ber found.
1279
- */
1280
- protected _getRoot(opts: IItemOptions): ProjectFolder | HttpProject {
1281
- const project = this.getProject()
1282
- if (opts.parent) {
1283
- const parent = project.findFolder(opts.parent)
1284
- if (!parent) {
1285
- throw new Error(`Unable to find the parent folder ${opts.parent}.`)
1286
- }
1287
- return parent
1288
- }
1289
- return project
1290
- }
1291
-
1292
- protected _insertItem(item: ProjectItem, root: ProjectFolder | HttpProject, opts: IItemCreateOptions): void {
1293
- if (!Array.isArray(root.items)) {
1294
- root.items = []
1295
- }
1296
- if (typeof opts.index === 'number') {
1297
- root.items.splice(opts.index, 0, item)
1298
- } else {
1299
- root.items.push(item)
1300
- }
1301
- }
1302
-
1303
- /**
1304
- * Adds an environment to the project.
1305
- * @param env The name of the environment to create or its schema
1306
- * @returns The same or created environment.
1307
- */
1308
- addEnvironment(env: IEnvironment | Environment | string, opts: IEnvironmentCreateOptions = {}): Environment {
1309
- const environment = this._createEnv(env)
1310
- const root = this._getRoot(opts)
1311
- const project = this.getProject()
1312
- if (!project.definitions.environments) {
1313
- project.definitions.environments = []
1314
- }
1315
- project.definitions.environments.push(environment)
1316
- const item = ProjectItem.projectEnvironment(project, environment.key)
1317
- this._insertItem(item, root, opts)
1318
- return environment
1319
- }
1320
-
1321
- protected _createEnv(env: IEnvironment | Environment | string): Environment {
1322
- let finalEnv: Environment
1323
- if (env instanceof Environment) {
1324
- finalEnv = env
1325
- } else if (typeof env === 'string') {
1326
- finalEnv = Environment.fromName(env)
1327
- } else {
1328
- finalEnv = new Environment(env)
1329
- }
1330
- if (!finalEnv.key) {
1331
- finalEnv.key = nanoid()
1332
- }
1333
- return finalEnv
1334
- }
1335
-
1336
- /**
1337
- * This is different to `readEnvironments()`. While the `readEnvironments()`
1338
- * function generate a list of all environments that apply to a folder, this method
1339
- * just lists this folder's environments.
1340
- *
1341
- * @returns The list of environments defined in this folder
1342
- */
1343
- getEnvironments(opts: IItemOptions = {}): Environment[] {
1344
- if (Array.isArray(this.initEnvironments)) {
1345
- return this.initEnvironments
1346
- }
1347
- return this.listEnvironments(opts)
1348
- }
1349
-
1350
- /**
1351
- * @param key The environment key to read.
1352
- */
1353
- getEnvironment(key: string, opts: IItemOptions = {}): Environment | undefined {
1354
- const root = this._getRoot(opts)
1355
- const item = root.items.find((i) => i.key === key)
1356
- if (!item) {
1357
- return undefined
1358
- }
1359
- const project = this.getProject()
1360
- if (!Array.isArray(project.definitions.environments)) {
1361
- project.definitions.environments = []
1362
- }
1363
- return project.definitions.environments.find((e) => e.key === key)
1364
- }
1365
-
1366
- /**
1367
- * Removes an environment from the folder or a sub-folder.
1368
- *
1369
- * @param key the key of the environment to remove
1370
- * @returns The removed environment, if any.
1371
- */
1372
- removeEnvironment(key: string, opts: IItemOptions = {}): Environment | undefined {
1373
- const root = this._getRoot(opts)
1374
- const itemIndex = root.items.findIndex((i) => i.key === key)
1375
- if (itemIndex < 0) {
1376
- return undefined
1377
- }
1378
- root.items.splice(itemIndex, 1)
1379
- const project = this.getProject()
1380
- if (!Array.isArray(project.definitions.environments)) {
1381
- project.definitions.environments = []
1382
- }
1383
- const defIndex = project.definitions.environments.findIndex((i) => i.key === key)
1384
- if (defIndex < 0) {
1385
- return undefined
1386
- }
1387
- const env = project.definitions.environments[defIndex]
1388
- project.definitions.environments.splice(defIndex, 1)
1389
- return env
1390
- }
1391
-
1392
- /**
1393
- * This is a link to the `getEnvironments()`. The difference is that on the
1394
- * project level it won't return environments defined with the class initialization.
1395
- */
1396
- listEnvironments(opts: IItemOptions = {}): Environment[] {
1397
- const root = this._getRoot(opts)
1398
- const items = root.items.filter((i) => i.kind === EnvironmentKind).map((i) => i.key)
1399
- const project = this.getProject()
1400
- if (!Array.isArray(project.definitions.environments)) {
1401
- project.definitions.environments = []
1402
- }
1403
- return project.definitions.environments.filter((e) => items.includes(e.key))
1404
- }
1405
-
1406
- /**
1407
- * Reads the list of environments from then selected folder up to the project root.
1408
- * It stops going up in the project structure when selected environment has the `encapsulated`
1409
- * property set to true.
1410
- * The environments are ordered from the top-most level to the selected folder.
1411
- *
1412
- * @param opts The environment read options
1413
- */
1414
- readEnvironments(opts: IReadEnvironmentOptions = {}): Environment[] {
1415
- const result: Environment[] = []
1416
- const { parent, nameOrKey } = opts
1417
-
1418
- const root = parent ? this.findFolder(parent, { keyOnly: true }) : this
1419
- if (!root) {
1420
- return result
1421
- }
1422
-
1423
- let current: HttpProject | ProjectFolder | undefined = root
1424
- while (current) {
1425
- const environments = current.getEnvironments()
1426
- if (environments.length) {
1427
- if (nameOrKey) {
1428
- const selected = environments.find((i) => i.key === nameOrKey || i.info.name === nameOrKey)
1429
- if (selected) {
1430
- result.push(selected)
1431
- if (selected.encapsulated) {
1432
- break
1433
- }
1434
- }
1435
- } else {
1436
- let finished = false
1437
- for (const item of environments) {
1438
- result.push(item)
1439
- if (item.encapsulated) {
1440
- finished = true
1441
- break
1442
- }
1443
- }
1444
- if (finished) {
1445
- break
1446
- }
1447
- }
1448
- }
1449
- current = current.getParent()
1450
- }
1451
-
1452
- return result.reverse()
1453
- }
1454
-
1455
- /**
1456
- * Finds a definition for an environment regardless of its parent.
1457
- *
1458
- * @param key The Key of the environment to find.
1459
- * @returns The environment definition or undefined if not found.
1460
- */
1461
- findEnvironment(key: string): Environment | undefined {
1462
- return this.definitions.environments.find((i) => i.key === key)
1463
- }
1464
-
1465
- /**
1466
- * Finds a definition for a certificate.
1467
- *
1468
- * @param key The key of the certificate to find.
1469
- * @returns The certificate definition or undefined if not found.
1470
- */
1471
- findCertificate(key: string): Certificate | undefined {
1472
- return this.definitions.certificates.find((i) => i.key === key)
1473
- }
1474
-
1475
- /**
1476
- * Adds a certificate to the project.
1477
- *
1478
- * @param init Either an instance of a certificate or its definition.
1479
- * @returns The inserted certificate.
1480
- */
1481
- addCertificate(init: Certificate | HttpCertificate): Certificate {
1482
- let finalCert: Certificate
1483
- if (init instanceof Certificate) {
1484
- finalCert = init
1485
- } else {
1486
- finalCert = new Certificate(init)
1487
- }
1488
- if (!this.definitions.certificates) {
1489
- this.definitions.certificates = []
1490
- }
1491
- this.definitions.certificates.push(finalCert)
1492
- return finalCert
1493
- }
1494
-
1495
- /**
1496
- * Removes a certificate from the project.
1497
- *
1498
- * @param key the key of the certificate to remove
1499
- * @returns The removed certificate, if any.
1500
- */
1501
- removeCertificate(key: string): Certificate | undefined {
1502
- if (!Array.isArray(this.definitions.certificates)) {
1503
- return undefined
1504
- }
1505
- const defIndex = this.definitions.certificates.findIndex((i) => i.key === key)
1506
- if (defIndex < 0) {
1507
- return undefined
1508
- }
1509
- const cert = this.definitions.certificates[defIndex]
1510
- this.definitions.certificates.splice(defIndex, 1)
1511
- return cert
1512
- }
1513
-
1514
- /**
1515
- * Finds the requests that are using the certificate identified by the key.
1516
- *
1517
- * @param key The key of the certificate to find the usage for.
1518
- * @returns The list of requests that use this certificate.
1519
- */
1520
- findCertificateRequests(key: string): ProjectRequest[] {
1521
- return this.definitions.requests.filter((request) => {
1522
- if (!Array.isArray(request.authorization)) {
1523
- return false
1524
- }
1525
- const ccAuth = request.authorization.find((auth) => auth.type === 'client certificate')
1526
- if (!ccAuth) {
1527
- return false
1528
- }
1529
- const cnf = ccAuth.config as ICCAuthorization
1530
- return !!cnf && !!cnf.certificate && cnf.certificate.key === key
1531
- })
1532
- }
1533
- }