@codiac.io/codiac-cli 1.2.174 → 1.2.202

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 (1276) hide show
  1. package/README.md +4696 -4634
  2. package/bin/dev +16 -16
  3. package/bin/dev.cmd +2 -2
  4. package/bin/run +3 -3
  5. package/bin/run.cmd +3 -3
  6. package/codiac.json +1 -1
  7. package/dist/apis/codiac-api/common/api-client-base.d.ts +165 -0
  8. package/dist/apis/codiac-api/common/api-client-base.js +548 -0
  9. package/dist/apis/codiac-api/common/api-client-base.js.map +1 -0
  10. package/dist/apis/codiac-api/common/api-user-creds.d.ts +7 -0
  11. package/dist/apis/codiac-api/common/api-user-creds.js +19 -0
  12. package/dist/apis/codiac-api/common/api-user-creds.js.map +1 -0
  13. package/dist/apis/codiac-api/common/config-loader.d.ts +6 -0
  14. package/dist/apis/codiac-api/common/config-loader.js +19 -0
  15. package/dist/apis/codiac-api/common/endpoint-spec.d.ts +17 -0
  16. package/dist/apis/codiac-api/common/endpoint-spec.js +28 -0
  17. package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.d.ts +87 -0
  18. package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.js +368 -0
  19. package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.js.map +1 -0
  20. package/dist/apis/codiac-api/common/security/auth-constants.d.ts +15 -0
  21. package/dist/apis/codiac-api/common/security/auth-constants.js +22 -0
  22. package/dist/apis/codiac-api/common/security/i-auth-client.d.ts +44 -0
  23. package/dist/apis/codiac-api/common/security/i-auth-client.js +3 -0
  24. package/dist/apis/codiac-api/common/security/token-holder.d.ts +13 -0
  25. package/dist/apis/codiac-api/common/security/token-holder.js +18 -0
  26. package/dist/apis/codiac-api/common/utils.d.ts +23 -0
  27. package/dist/apis/codiac-api/common/utils.js +83 -0
  28. package/dist/apis/codiac-api/contracts/index.d.ts +1 -0
  29. package/dist/apis/codiac-api/contracts/index.js +5 -0
  30. package/dist/apis/codiac-api/gen/client-config.d.ts +10 -0
  31. package/dist/apis/codiac-api/gen/client-config.js +29 -0
  32. package/dist/apis/codiac-api/gen/client-config.js.map +1 -0
  33. package/dist/apis/codiac-api/gen/client.d.ts +1663 -0
  34. package/dist/apis/codiac-api/gen/client.js +15630 -0
  35. package/dist/apis/codiac-api/gen/client.js.map +1 -0
  36. package/dist/apis/codiac-api/gen/contracts.d.ts +2722 -0
  37. package/dist/apis/codiac-api/gen/contracts.js +403 -0
  38. package/dist/apis/codiac-api/index.d.ts +3 -0
  39. package/dist/apis/codiac-api/index.js +9 -0
  40. package/dist/apis/codiac-relay/common/api-client-base.d.ts +165 -0
  41. package/dist/apis/codiac-relay/common/api-client-base.js +548 -0
  42. package/dist/apis/codiac-relay/common/api-client-base.js.map +1 -0
  43. package/dist/apis/codiac-relay/common/api-user-creds.d.ts +7 -0
  44. package/dist/apis/codiac-relay/common/api-user-creds.js +19 -0
  45. package/dist/apis/codiac-relay/common/api-user-creds.js.map +1 -0
  46. package/dist/apis/codiac-relay/common/config-loader.d.ts +6 -0
  47. package/dist/apis/codiac-relay/common/config-loader.js +19 -0
  48. package/dist/apis/codiac-relay/common/endpoint-spec.d.ts +17 -0
  49. package/dist/apis/codiac-relay/common/endpoint-spec.js +28 -0
  50. package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.d.ts +87 -0
  51. package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.js +368 -0
  52. package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.js.map +1 -0
  53. package/dist/apis/codiac-relay/common/security/auth-constants.d.ts +15 -0
  54. package/dist/apis/codiac-relay/common/security/auth-constants.js +22 -0
  55. package/dist/apis/codiac-relay/common/security/i-auth-client.d.ts +44 -0
  56. package/dist/apis/codiac-relay/common/security/i-auth-client.js +3 -0
  57. package/dist/apis/codiac-relay/common/security/token-holder.d.ts +13 -0
  58. package/dist/apis/codiac-relay/common/security/token-holder.js +18 -0
  59. package/dist/apis/codiac-relay/common/utils.d.ts +23 -0
  60. package/dist/apis/codiac-relay/common/utils.js +83 -0
  61. package/dist/apis/codiac-relay/contracts/index.d.ts +1 -0
  62. package/dist/apis/codiac-relay/contracts/index.js +5 -0
  63. package/dist/apis/codiac-relay/gen/client-config.d.ts +10 -0
  64. package/dist/apis/codiac-relay/gen/client-config.js +29 -0
  65. package/dist/apis/codiac-relay/gen/client-config.js.map +1 -0
  66. package/dist/apis/codiac-relay/gen/client.d.ts +244 -0
  67. package/dist/apis/codiac-relay/gen/client.js +1863 -0
  68. package/dist/apis/codiac-relay/gen/client.js.map +1 -0
  69. package/dist/apis/codiac-relay/gen/contracts.d.ts +3111 -0
  70. package/dist/apis/codiac-relay/gen/contracts.js +435 -0
  71. package/dist/apis/codiac-relay/index.d.ts +3 -0
  72. package/dist/apis/codiac-relay/index.js +9 -0
  73. package/dist/cli-common/ImagesList.js +67 -0
  74. package/dist/cli-common/argument-manager.d.ts +28 -0
  75. package/dist/cli-common/argument-manager.js +195 -0
  76. package/dist/cli-common/built-in-cli-user-input.d.ts +18 -0
  77. package/dist/cli-common/built-in-cli-user-input.js +310 -0
  78. package/dist/cli-common/built-in-cli-user-input.js.map +1 -0
  79. package/dist/cli-common/cli-interfaces.js +7 -0
  80. package/dist/cli-common/command-base.d.ts +72 -0
  81. package/dist/cli-common/command-base.js +182 -0
  82. package/dist/cli-common/entities/index.d.ts +1 -0
  83. package/dist/cli-common/entities/index.js +5 -0
  84. package/dist/cli-common/entities/prompt-choice.d.ts +7 -0
  85. package/dist/cli-common/entities/prompt-choice.js +3 -0
  86. package/dist/cli-common/file-selector.d.ts +48 -0
  87. package/dist/cli-common/file-selector.js +187 -0
  88. package/dist/cli-common/i-user-input-provider.js +19 -0
  89. package/dist/cli-common/index.d.ts +4 -0
  90. package/dist/cli-common/index.js +11 -0
  91. package/dist/cli-common/mock-ui.d.ts +27 -0
  92. package/dist/cli-common/mock-ui.js +83 -0
  93. package/dist/cli-common/prompt-select-fuzzy.d.ts +19 -0
  94. package/dist/cli-common/prompt-select-fuzzy.js +119 -0
  95. package/dist/cli-common/prompt-select-fuzzy.js.map +1 -0
  96. package/dist/cli-common/tenant-contextualizer.js +436 -0
  97. package/dist/cli-common/test/tenant-contextualizer.spec.js +143 -0
  98. package/dist/cli-entities/output-format-enum.d.ts +7 -0
  99. package/dist/cli-entities/output-format-enum.js +12 -0
  100. package/dist/cli-entities/prompt-choice.js +6 -0
  101. package/dist/codiac-constants.d.ts +35 -0
  102. package/dist/codiac-constants.js +41 -0
  103. package/dist/codiac-entities/asset-binding.d.ts +12 -0
  104. package/dist/codiac-entities/asset-binding.js +18 -0
  105. package/dist/codiac-entities/azure-container-registry.d.ts +4 -0
  106. package/dist/codiac-entities/azure-container-registry.js +3 -0
  107. package/dist/codiac-entities/azure-service-principal.d.ts +23 -0
  108. package/dist/codiac-entities/azure-service-principal.js +24 -0
  109. package/dist/codiac-entities/cloud-account-ref.d.ts +28 -0
  110. package/dist/codiac-entities/cloud-account-ref.js +37 -0
  111. package/dist/codiac-entities/deployment-temp.js +133 -0
  112. package/dist/codiac-entities/i-cloud-account-ref.d.ts +5 -0
  113. package/dist/codiac-entities/i-cloud-account-ref.js +3 -0
  114. package/dist/command-base-enterprise.d.ts +121 -0
  115. package/dist/command-base-enterprise.js +524 -0
  116. package/dist/command-base-tenantless.d.ts +44 -0
  117. package/dist/command-base-tenantless.js +180 -0
  118. package/dist/commands/asset/create.d.ts +42 -0
  119. package/dist/commands/asset/create.js +467 -0
  120. package/dist/commands/asset/destroy.d.ts +20 -0
  121. package/dist/commands/asset/destroy.js +129 -0
  122. package/dist/commands/asset/helm.d.ts +23 -0
  123. package/dist/commands/asset/helm.js +153 -0
  124. package/dist/commands/asset/list.d.ts +28 -0
  125. package/dist/commands/asset/list.js +172 -0
  126. package/dist/commands/asset/probe/create.d.ts +38 -0
  127. package/dist/commands/asset/probe/create.js +187 -0
  128. package/dist/commands/asset/recycle.d.ts +23 -0
  129. package/dist/commands/asset/recycle.js +175 -0
  130. package/dist/commands/asset/view.d.ts +188 -0
  131. package/dist/commands/asset/view.js +1365 -0
  132. package/dist/commands/asset/volume/create.d.ts +23 -0
  133. package/dist/commands/asset/volume/create.js +176 -0
  134. package/dist/commands/asset/volume/delete.d.ts +19 -0
  135. package/dist/commands/asset/volume/delete.js +112 -0
  136. package/dist/commands/asset/volume/list.d.ts +19 -0
  137. package/dist/commands/asset/volume/list.js +70 -0
  138. package/dist/commands/branch/current.d.ts +10 -0
  139. package/dist/commands/branch/current.js +34 -0
  140. package/dist/commands/branch/list.d.ts +15 -0
  141. package/dist/commands/branch/list.js +56 -0
  142. package/dist/commands/branch.d.ts +12 -0
  143. package/dist/commands/branch.js +42 -0
  144. package/dist/commands/build.d.ts +38 -0
  145. package/dist/commands/build.js +120 -0
  146. package/dist/commands/cabinet/create.d.ts +21 -0
  147. package/dist/commands/cabinet/create.js +108 -0
  148. package/dist/commands/cabinet/list.d.ts +23 -0
  149. package/dist/commands/cabinet/list.js +134 -0
  150. package/dist/commands/cabinet/obliterate.d.ts +20 -0
  151. package/dist/commands/cabinet/obliterate.js +83 -0
  152. package/dist/commands/cli.d.ts +10 -0
  153. package/dist/commands/cli.js +100 -0
  154. package/dist/commands/commit.d.ts +11 -0
  155. package/dist/commands/commit.js +40 -0
  156. package/dist/commands/config/add.d.ts +78 -0
  157. package/dist/commands/config/add.js +560 -0
  158. package/dist/commands/config/delete.d.ts +18 -0
  159. package/dist/commands/config/delete.js +119 -0
  160. package/dist/commands/config/deploy.d.ts +22 -0
  161. package/dist/commands/config/deploy.js +125 -0
  162. package/dist/commands/config/import.d.ts +27 -0
  163. package/dist/commands/config/import.js +196 -0
  164. package/dist/commands/config/view.d.ts +25 -0
  165. package/dist/commands/config/view.js +121 -0
  166. package/dist/commands/csp/login.d.ts +18 -0
  167. package/dist/commands/csp/login.js +123 -0
  168. package/dist/commands/csp/login.js.map +1 -0
  169. package/dist/commands/csp/logout.d.ts +15 -0
  170. package/dist/commands/csp/logout.js +74 -0
  171. package/dist/commands/dep/create.d.ts +13 -0
  172. package/dist/commands/dep/create.js +41 -0
  173. package/dist/commands/dep/install.d.ts +9 -0
  174. package/dist/commands/dep/install.js +30 -0
  175. package/dist/commands/dep/list.d.ts +55 -0
  176. package/dist/commands/dep/list.js +98 -0
  177. package/dist/commands/dep/remove.d.ts +12 -0
  178. package/dist/commands/dep/remove.js +62 -0
  179. package/dist/commands/dep/source.d.ts +13 -0
  180. package/dist/commands/dep/source.js +83 -0
  181. package/dist/commands/dep/syncup.d.ts +11 -0
  182. package/dist/commands/dep/syncup.js +54 -0
  183. package/dist/commands/dep/unsource.d.ts +14 -0
  184. package/dist/commands/dep/unsource.js +68 -0
  185. package/dist/commands/dep/upgrade.d.ts +44 -0
  186. package/dist/commands/dep/upgrade.js +244 -0
  187. package/dist/commands/dep.d.ts +12 -0
  188. package/dist/commands/dep.js +51 -0
  189. package/dist/commands/deploy.d.ts +38 -0
  190. package/dist/commands/deploy.js +386 -0
  191. package/dist/commands/deploy.js.map +1 -0
  192. package/dist/commands/enterprise/create.d.ts +20 -0
  193. package/dist/commands/enterprise/create.js +98 -0
  194. package/dist/commands/enterprise/list.d.ts +14 -0
  195. package/dist/commands/enterprise/list.js +84 -0
  196. package/dist/commands/env/add.d.ts +22 -0
  197. package/dist/commands/env/add.js +200 -0
  198. package/dist/commands/environment/create.d.ts +19 -0
  199. package/dist/commands/environment/create.js +89 -0
  200. package/dist/commands/environment/list.d.ts +25 -0
  201. package/dist/commands/environment/list.js +158 -0
  202. package/dist/commands/filestore/capture.d.ts +31 -0
  203. package/dist/commands/filestore/capture.js +342 -0
  204. package/dist/commands/host/map.d.ts +33 -0
  205. package/dist/commands/host/map.js +347 -0
  206. package/dist/commands/identity/delete.d.ts +15 -0
  207. package/dist/commands/identity/delete.js +83 -0
  208. package/dist/commands/identity/list.d.ts +11 -0
  209. package/dist/commands/identity/list.js +43 -0
  210. package/dist/commands/identity.d.ts +22 -0
  211. package/dist/commands/identity.js +77 -0
  212. package/dist/commands/imageRegistry/capture.d.ts +27 -0
  213. package/dist/commands/imageRegistry/capture.js +160 -0
  214. package/dist/commands/imageRegistry/forget.d.ts +23 -0
  215. package/dist/commands/imageRegistry/forget.js +161 -0
  216. package/dist/commands/imageRegistry/pullSecret/set.d.ts +27 -0
  217. package/dist/commands/imageRegistry/pullSecret/set.js +300 -0
  218. package/dist/commands/imageRegistry/pullSecret/unset.d.ts +24 -0
  219. package/dist/commands/imageRegistry/pullSecret/unset.js +243 -0
  220. package/dist/commands/images/add.d.ts +25 -0
  221. package/dist/commands/images/add.js +76 -0
  222. package/dist/commands/images/list.d.ts +14 -0
  223. package/dist/commands/images/list.js +72 -0
  224. package/dist/commands/images/patch.d.ts +14 -0
  225. package/dist/commands/images/patch.js +93 -0
  226. package/dist/commands/images/remove.d.ts +12 -0
  227. package/dist/commands/images/remove.js +38 -0
  228. package/dist/commands/images/version/bump.d.ts +18 -0
  229. package/dist/commands/images/version/bump.js +61 -0
  230. package/dist/commands/images/version.d.ts +16 -0
  231. package/dist/commands/images/version.js +65 -0
  232. package/dist/commands/init.d.ts +17 -0
  233. package/dist/commands/init.js +131 -0
  234. package/dist/commands/kit/create.d.ts +25 -0
  235. package/dist/commands/kit/create.js +142 -0
  236. package/dist/commands/login.d.ts +22 -0
  237. package/dist/commands/login.js +93 -0
  238. package/dist/commands/logout.d.ts +8 -0
  239. package/dist/commands/logout.js +37 -0
  240. package/dist/commands/merge.d.ts +12 -0
  241. package/dist/commands/merge.js +43 -0
  242. package/dist/commands/noc/cluster/create.d.ts +28 -0
  243. package/dist/commands/noc/cluster/create.js +133 -0
  244. package/dist/commands/noc/cluster/deinit.d.ts +17 -0
  245. package/dist/commands/noc/cluster/deinit.js +117 -0
  246. package/dist/commands/noc/cluster/destroy.d.ts +20 -0
  247. package/dist/commands/noc/cluster/destroy.js +138 -0
  248. package/dist/commands/noc/cluster/forget.d.ts +16 -0
  249. package/dist/commands/noc/cluster/forget.js +137 -0
  250. package/dist/commands/noc/cluster/grant.d.ts +24 -0
  251. package/dist/commands/noc/cluster/grant.js +160 -0
  252. package/dist/commands/noc/cluster/init.d.ts +17 -0
  253. package/dist/commands/noc/cluster/init.js +117 -0
  254. package/dist/commands/noc/cluster/list.d.ts +21 -0
  255. package/dist/commands/noc/cluster/list.js +84 -0
  256. package/dist/commands/noc/cluster/recreate.d.ts +28 -0
  257. package/dist/commands/noc/cluster/recreate.js +186 -0
  258. package/dist/commands/pkg/add.d.ts +15 -0
  259. package/dist/commands/pkg/add.js +43 -0
  260. package/dist/commands/pkg/list.d.ts +9 -0
  261. package/dist/commands/pkg/list.js +33 -0
  262. package/dist/commands/pkg/patch.d.ts +13 -0
  263. package/dist/commands/pkg/patch.js +79 -0
  264. package/dist/commands/pkg/remove.d.ts +12 -0
  265. package/dist/commands/pkg/remove.js +70 -0
  266. package/dist/commands/portal.d.ts +11 -0
  267. package/dist/commands/portal.js +82 -0
  268. package/dist/commands/publish.d.ts +21 -0
  269. package/dist/commands/publish.js +52 -0
  270. package/dist/commands/pull.d.ts +13 -0
  271. package/dist/commands/pull.js +30 -0
  272. package/dist/commands/push.d.ts +13 -0
  273. package/dist/commands/push.js +30 -0
  274. package/dist/commands/run.d.ts +35 -0
  275. package/dist/commands/run.js +194 -0
  276. package/dist/commands/secretStore/capture.d.ts +27 -0
  277. package/dist/commands/secretStore/capture.js +175 -0
  278. package/dist/commands/secretStore/forget.d.ts +20 -0
  279. package/dist/commands/secretStore/forget.js +147 -0
  280. package/dist/commands/stage.d.ts +13 -0
  281. package/dist/commands/stage.js +65 -0
  282. package/dist/commands/stash.d.ts +13 -0
  283. package/dist/commands/stash.js +31 -0
  284. package/dist/commands/status.d.ts +12 -0
  285. package/dist/commands/status.js +49 -0
  286. package/dist/commands/stop.d.ts +10 -0
  287. package/dist/commands/stop.js +52 -0
  288. package/dist/commands/switch.d.ts +11 -0
  289. package/dist/commands/switch.js +42 -0
  290. package/dist/commands/sync.d.ts +14 -0
  291. package/dist/commands/sync.js +21 -0
  292. package/dist/commands/tenant/create.d.ts +27 -0
  293. package/dist/commands/tenant/create.js +120 -0
  294. package/dist/commands/tenant/switch.d.ts +24 -0
  295. package/dist/commands/tenant/switch.js +109 -0
  296. package/dist/commands/test.d.ts +13 -0
  297. package/dist/commands/test.js +32 -0
  298. package/dist/commands/test.js.map +1 -0
  299. package/dist/commands/testent.d.ts +13 -0
  300. package/dist/commands/testent.js +33 -0
  301. package/dist/commands/testent.js.map +1 -0
  302. package/dist/commands/unstage.d.ts +12 -0
  303. package/dist/commands/unstage.js +58 -0
  304. package/dist/commands/whereami.d.ts +15 -0
  305. package/dist/commands/whereami.js +123 -0
  306. package/dist/commands/whoami.d.ts +8 -0
  307. package/dist/commands/whoami.js +40 -0
  308. package/dist/errors/NoMembershipError.d.ts +8 -0
  309. package/dist/errors/NoMembershipError.js +15 -0
  310. package/dist/index.d.ts +1 -0
  311. package/dist/index.js +17 -0
  312. package/dist/log-update-wrapper.d.ts +24 -0
  313. package/dist/log-update-wrapper.js +29 -0
  314. package/dist/log4js-logger.d.ts +26 -0
  315. package/dist/log4js-logger.js +138 -0
  316. package/dist/log4js-logger.js.map +1 -0
  317. package/dist/ops/INTERFACES_CLI.d.ts +3 -0
  318. package/dist/ops/INTERFACES_CLI.js +8 -0
  319. package/dist/ops/LocalOps.d.ts +417 -0
  320. package/dist/ops/LocalOps.js +3122 -0
  321. package/dist/ops/LocalOps.js.map +1 -0
  322. package/dist/ops/azure-container-registry-client/azure-container-registry-client.js +148 -0
  323. package/dist/ops/cli-path-walker.js +55 -0
  324. package/dist/ops/codiac-entities/dependency.d.ts +5 -0
  325. package/dist/ops/codiac-entities/dependency.js +11 -0
  326. package/dist/ops/codiac-entities/index.d.ts +1 -0
  327. package/dist/ops/codiac-entities/index.js +5 -0
  328. package/dist/ops/composite-image-registry-client.js +74 -0
  329. package/dist/ops/data/cli-context-repo.d.ts +61 -0
  330. package/dist/ops/data/cli-context-repo.js +270 -0
  331. package/dist/ops/data/cli-context-repo.js.map +1 -0
  332. package/dist/ops/data/index.d.ts +2 -0
  333. package/dist/ops/data/index.js +6 -0
  334. package/dist/ops/data/npm-config-repo.d.ts +13 -0
  335. package/dist/ops/data/npm-config-repo.js +65 -0
  336. package/dist/ops/docker-config.js +131 -0
  337. package/dist/ops/docker-constants.js +22 -0
  338. package/dist/ops/docker-credentials-store.js +238 -0
  339. package/dist/ops/docker-registry-api-client/docker-registry-api-client.js +289 -0
  340. package/dist/ops/docker-registry-api-client/entities/blob-sum.d.ts +7 -0
  341. package/dist/ops/docker-registry-api-client/entities/blob-sum.js +13 -0
  342. package/dist/ops/docker-registry-api-client/entities/docker-access-actions-enum.d.ts +5 -0
  343. package/dist/ops/docker-registry-api-client/entities/docker-access-actions-enum.js +10 -0
  344. package/dist/ops/docker-registry-api-client/entities/docker-auth-token-criteria.d.ts +30 -0
  345. package/dist/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js +36 -0
  346. package/dist/ops/docker-registry-api-client/entities/i-docker-error-response.d.ts +55 -0
  347. package/dist/ops/docker-registry-api-client/entities/i-docker-error-response.js +52 -0
  348. package/dist/ops/docker-registry-api-client/entities/i-docker-list-response.d.ts +7 -0
  349. package/dist/ops/docker-registry-api-client/entities/i-docker-list-response.js +3 -0
  350. package/dist/ops/docker-registry-api-client/entities/image-repository.d.ts +31 -0
  351. package/dist/ops/docker-registry-api-client/entities/image-repository.js +30 -0
  352. package/dist/ops/docker-registry-api-client/entities/image-tag-criteria.d.ts +8 -0
  353. package/dist/ops/docker-registry-api-client/entities/image-tag-criteria.js +14 -0
  354. package/dist/ops/docker-registry-api-client/entities/image-tag-list.d.ts +7 -0
  355. package/dist/ops/docker-registry-api-client/entities/image-tag-list.js +13 -0
  356. package/dist/ops/docker-registry-api-client/entities/manifest-criteria.d.ts +9 -0
  357. package/dist/ops/docker-registry-api-client/entities/manifest-criteria.js +15 -0
  358. package/dist/ops/docker-registry-api-client/entities/manifest.d.ts +15 -0
  359. package/dist/ops/docker-registry-api-client/entities/manifest.js +21 -0
  360. package/dist/ops/docker-registry-api-client/entities/repository-criteria.d.ts +16 -0
  361. package/dist/ops/docker-registry-api-client/entities/repository-criteria.js +24 -0
  362. package/dist/ops/docker-registry-api-client/entities/token-response.d.ts +15 -0
  363. package/dist/ops/docker-registry-api-client/entities/token-response.js +15 -0
  364. package/dist/ops/docker-registry-api-client/entities/token.d.ts +17 -0
  365. package/dist/ops/docker-registry-api-client/entities/token.js +22 -0
  366. package/dist/ops/docker-registry-api-client/entities/version-check-criteria.d.ts +4 -0
  367. package/dist/ops/docker-registry-api-client/entities/version-check-criteria.js +10 -0
  368. package/dist/ops/dx-constants.d.ts +26 -0
  369. package/dist/ops/dx-constants.js +43 -0
  370. package/dist/ops/entities/ImageBuildContext.d.ts +12 -0
  371. package/dist/ops/entities/ImageBuildContext.js +19 -0
  372. package/dist/ops/entities/PipelineContext.d.ts +21 -0
  373. package/dist/ops/entities/PipelineContext.js +23 -0
  374. package/dist/ops/entities/TenantContext.d.ts +10 -0
  375. package/dist/ops/entities/TenantContext.js +16 -0
  376. package/dist/ops/entities/ThaulConfig.js +30 -0
  377. package/dist/ops/entities/azure-service-principal.d.ts +23 -0
  378. package/dist/ops/entities/azure-service-principal.js +24 -0
  379. package/dist/ops/entities/better-logger.js +2 -0
  380. package/dist/ops/entities/branch.d.ts +13 -0
  381. package/dist/ops/entities/branch.js +16 -0
  382. package/dist/ops/entities/cli-config.d.ts +48 -0
  383. package/dist/ops/entities/cli-config.js +61 -0
  384. package/dist/ops/entities/cli-config.js.map +1 -0
  385. package/dist/ops/entities/docker-image.d.ts +60 -0
  386. package/dist/ops/entities/docker-image.js +3 -0
  387. package/dist/ops/entities/helm-spec.d.ts +15 -0
  388. package/dist/ops/entities/helm-spec.js +23 -0
  389. package/dist/ops/entities/index.d.ts +4 -0
  390. package/dist/ops/entities/index.js +12 -0
  391. package/dist/ops/entities/operation-meta.d.ts +8 -0
  392. package/dist/ops/entities/operation-meta.js +19 -0
  393. package/dist/ops/entities/operation-meta.js.map +1 -0
  394. package/dist/ops/entities/scaffolding.d.ts +19 -0
  395. package/dist/ops/entities/scaffolding.js +21 -0
  396. package/dist/ops/extensions/azart-identity-adapter.d.ts +19 -0
  397. package/dist/ops/extensions/azart-identity-adapter.js +97 -0
  398. package/dist/ops/extensions/npm-identity-adapter-base.d.ts +13 -0
  399. package/dist/ops/extensions/npm-identity-adapter-base.js +3 -0
  400. package/dist/ops/extensions/npmjs-identity-adapter.d.ts +13 -0
  401. package/dist/ops/extensions/npmjs-identity-adapter.js +64 -0
  402. package/dist/ops/git-ops.d.ts +8 -0
  403. package/dist/ops/git-ops.js +14 -0
  404. package/dist/ops/i-client-for-image-registry.js +17 -0
  405. package/dist/ops/i-identity-handler.d.ts +33 -0
  406. package/dist/ops/i-identity-handler.js +165 -0
  407. package/dist/ops/i-output-styler.js +17 -0
  408. package/dist/ops/index.d.ts +12 -0
  409. package/dist/ops/index.js +15 -0
  410. package/dist/ops/json-utils.js +59 -0
  411. package/dist/ops/no-style-output-styler.js +30 -0
  412. package/dist/ops/oauth2-client.ts/oauth2-client.d.ts +23 -0
  413. package/dist/ops/oauth2-client.ts/oauth2-client.js +64 -0
  414. package/dist/ops/oauth2-client.ts/oauth2-client.js.map +1 -0
  415. package/dist/ops/project-initializer.d.ts +36 -0
  416. package/dist/ops/project-initializer.js +219 -0
  417. package/dist/ops/scaffolding/base-scaffolding.d.ts +7 -0
  418. package/dist/ops/scaffolding/base-scaffolding.js +21 -0
  419. package/dist/ops/scaffolding/base-scaffolding.js.map +1 -0
  420. package/dist/ops/scaffolding/codiac-api-scaffolding.d.ts +7 -0
  421. package/dist/ops/scaffolding/codiac-api-scaffolding.js +64 -0
  422. package/dist/ops/scaffolding/codiac-api-scaffolding.js.map +1 -0
  423. package/dist/ops/scaffolding/typescript-scaffolding.d.ts +15 -0
  424. package/dist/ops/scaffolding/typescript-scaffolding.js +163 -0
  425. package/dist/ops/scaffolding/typescript-scaffolding.js.map +1 -0
  426. package/dist/ops/test/mock-ui.d.ts +26 -0
  427. package/dist/ops/test/mock-ui.js +88 -0
  428. package/dist/ops/test/test-extensions.d.ts +13 -0
  429. package/dist/ops/test/test-extensions.js +71 -0
  430. package/dist/ops/test/when-a-recursive-file-search-is-run.spec.d.ts +2 -0
  431. package/dist/ops/test/when-a-recursive-file-search-is-run.spec.js +55 -0
  432. package/dist/ops/test/when-git-branchline-is-attempted.spec.d.ts +2 -0
  433. package/dist/ops/test/when-git-branchline-is-attempted.spec.js +38 -0
  434. package/dist/ops/test/when-versions-are-parsed.spec.d.ts +2 -0
  435. package/dist/ops/test/when-versions-are-parsed.spec.js +62 -0
  436. package/dist/ops/throwing-user-input-provider.js +37 -0
  437. package/dist/ops/workspace-versioner.d.ts +122 -0
  438. package/dist/ops/workspace-versioner.js +292 -0
  439. package/dist/ops/workspace-versioner.js.map +1 -0
  440. package/dist/prettify.d.ts +7 -0
  441. package/dist/prettify.js +24 -0
  442. package/dist/read-stdin.d.ts +2 -0
  443. package/dist/read-stdin.js +29 -0
  444. package/dist/relay/contracts/contracts.d.ts +207 -0
  445. package/dist/relay/contracts/contracts.js +230 -0
  446. package/dist/relay/extended-relay-client.d.ts +27 -0
  447. package/dist/relay/extended-relay-client.js +28 -0
  448. package/dist/relay/relay-container.d.ts +41 -0
  449. package/dist/relay/relay-container.js +298 -0
  450. package/dist/relay/relay-container.js.map +1 -0
  451. package/dist/relay/wsclient/relay-socket-listener.d.ts +68 -0
  452. package/dist/relay/wsclient/relay-socket-listener.js +165 -0
  453. package/dist/relay/wsclient/relay-socket-listener.js.map +1 -0
  454. package/dist/relay/wsclient/relay-websocket-client.d.ts +33 -0
  455. package/dist/relay/wsclient/relay-websocket-client.js +179 -0
  456. package/dist/relay/wsclient/relay-websocket-client.js.map +1 -0
  457. package/dist/relay/wsclient/rx-websocket-subject.d.ts +25 -0
  458. package/dist/relay/wsclient/rx-websocket-subject.js +134 -0
  459. package/dist/relay/wsclient/rx-websocket-subject.js.map +1 -0
  460. package/dist/relay/wsclient/socket-contracts.d.ts +22 -0
  461. package/dist/relay/wsclient/socket-contracts.js +3 -0
  462. package/dist/standard-probes.d.ts +5 -0
  463. package/dist/standard-probes.js +22 -0
  464. package/dist/uilogic/build-configurator.d.ts +21 -0
  465. package/dist/uilogic/build-configurator.js +111 -0
  466. package/dist/uilogic/cloud-provider-contextualizer.d.ts +46 -0
  467. package/dist/uilogic/cloud-provider-contextualizer.js +194 -0
  468. package/dist/uilogic/cloud-provider-contextualizer.js.map +1 -0
  469. package/dist/uilogic/cloud-resource-configurator-factory.d.ts +41 -0
  470. package/dist/uilogic/cloud-resource-configurator-factory.js +158 -0
  471. package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -0
  472. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +38 -0
  473. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +348 -0
  474. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -0
  475. package/dist/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +78 -0
  476. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.d.ts +42 -0
  477. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js +248 -0
  478. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js.map +1 -0
  479. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +110 -0
  480. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +782 -0
  481. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -0
  482. package/dist/uilogic/cloud-resource-configurators/azure-types.js +10 -0
  483. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +24 -0
  484. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +106 -0
  485. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +1 -0
  486. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.d.ts +16 -0
  487. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js +45 -0
  488. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js.map +1 -0
  489. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +18 -0
  490. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +62 -0
  491. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +1 -0
  492. package/dist/uilogic/enterprise-contextualizer.d.ts +76 -0
  493. package/dist/uilogic/enterprise-contextualizer.js +671 -0
  494. package/dist/uilogic/environment-contextualizer.d.ts +15 -0
  495. package/dist/uilogic/environment-contextualizer.js +43 -0
  496. package/dist/uilogic/i-cluster-configurator.d.ts +9 -0
  497. package/dist/uilogic/i-cluster-configurator.js +3 -0
  498. package/dist/uilogic/i-login-configurator.d.ts +6 -0
  499. package/dist/uilogic/i-login-configurator.js +3 -0
  500. package/dist/uilogic/i-registry-configurator.d.ts +6 -0
  501. package/dist/uilogic/i-registry-configurator.js +3 -0
  502. package/dist/uilogic/i-secret-store-configurator.d.ts +7 -0
  503. package/dist/uilogic/i-secret-store-configurator.js +3 -0
  504. package/dist/uilogic/image-configurator.d.ts +133 -0
  505. package/dist/uilogic/image-configurator.js +578 -0
  506. package/dist/uilogic/image-configurator.js.map +1 -0
  507. package/dist/uilogic/image-contextualizer.d.ts +24 -0
  508. package/dist/uilogic/image-contextualizer.js +90 -0
  509. package/dist/uilogic/image-contextualizer.js.map +1 -0
  510. package/dist/uilogic/image-registry-contextualizer.d.ts +28 -0
  511. package/dist/uilogic/image-registry-contextualizer.js +127 -0
  512. package/dist/uilogic/image-registry-contextualizer.js.map +1 -0
  513. package/dist/uilogic/index.d.ts +9 -0
  514. package/dist/uilogic/index.js +14 -0
  515. package/dist/uilogic/prompt-select-fuzzy.js +139 -0
  516. package/dist/uilogic/render-methods.d.ts +12 -0
  517. package/dist/uilogic/render-methods.js +65 -0
  518. package/dist/uilogic/tenant-contextualizer.d.ts +79 -0
  519. package/dist/uilogic/tenant-contextualizer.js +578 -0
  520. package/dist/user-context-loader.d.ts +60 -0
  521. package/dist/user-context-loader.js +184 -0
  522. package/oclif.manifest.json +67 -1
  523. package/package.json +149 -150
  524. package/scaffolding/api/.gitignore-scaffolding +68 -68
  525. package/scaffolding/api/.vscode/launch.json +16 -16
  526. package/scaffolding/api/.vscode/settings.json +7 -7
  527. package/scaffolding/api/.vscode/tasks.json +15 -15
  528. package/scaffolding/api/src/app-config.json +2 -2
  529. package/scaffolding/api/src/index.ts-scaffolding +13 -13
  530. package/scaffolding/api/src/myApiDef.ts-scaffolding +25 -25
  531. package/scaffolding/default/.gitignore-scaffolding +2 -2
  532. package/scaffolding/typescript/.gitignore-scaffolding +69 -69
  533. package/scaffolding/typescript/.vscode/launch.json +16 -16
  534. package/scaffolding/typescript/.vscode/settings.json +7 -7
  535. package/scaffolding/typescript/.vscode/tasks.json +15 -15
  536. package/lib/apis/codiac-api/common/api-client-base.d.ts +0 -165
  537. package/lib/apis/codiac-api/common/api-client-base.js +0 -548
  538. package/lib/apis/codiac-api/common/api-client-base.js.map +0 -1
  539. package/lib/apis/codiac-api/common/api-user-creds.d.ts +0 -7
  540. package/lib/apis/codiac-api/common/api-user-creds.js +0 -19
  541. package/lib/apis/codiac-api/common/api-user-creds.js.map +0 -1
  542. package/lib/apis/codiac-api/common/config-loader.d.ts +0 -6
  543. package/lib/apis/codiac-api/common/config-loader.js +0 -19
  544. package/lib/apis/codiac-api/common/endpoint-spec.d.ts +0 -17
  545. package/lib/apis/codiac-api/common/endpoint-spec.js +0 -28
  546. package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.d.ts +0 -87
  547. package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.js +0 -368
  548. package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.js.map +0 -1
  549. package/lib/apis/codiac-api/common/security/auth-constants.d.ts +0 -15
  550. package/lib/apis/codiac-api/common/security/auth-constants.js +0 -22
  551. package/lib/apis/codiac-api/common/security/i-auth-client.d.ts +0 -44
  552. package/lib/apis/codiac-api/common/security/i-auth-client.js +0 -3
  553. package/lib/apis/codiac-api/common/security/token-holder.d.ts +0 -13
  554. package/lib/apis/codiac-api/common/security/token-holder.js +0 -18
  555. package/lib/apis/codiac-api/common/utils.d.ts +0 -23
  556. package/lib/apis/codiac-api/common/utils.js +0 -83
  557. package/lib/apis/codiac-api/contracts/index.d.ts +0 -1
  558. package/lib/apis/codiac-api/contracts/index.js +0 -5
  559. package/lib/apis/codiac-api/gen/client-config.d.ts +0 -10
  560. package/lib/apis/codiac-api/gen/client-config.js +0 -29
  561. package/lib/apis/codiac-api/gen/client-config.js.map +0 -1
  562. package/lib/apis/codiac-api/gen/client.d.ts +0 -1663
  563. package/lib/apis/codiac-api/gen/client.js +0 -15630
  564. package/lib/apis/codiac-api/gen/client.js.map +0 -1
  565. package/lib/apis/codiac-api/gen/contracts.d.ts +0 -2722
  566. package/lib/apis/codiac-api/gen/contracts.js +0 -403
  567. package/lib/apis/codiac-api/index.d.ts +0 -3
  568. package/lib/apis/codiac-api/index.js +0 -9
  569. package/lib/apis/codiac-relay/common/api-client-base.d.ts +0 -165
  570. package/lib/apis/codiac-relay/common/api-client-base.js +0 -548
  571. package/lib/apis/codiac-relay/common/api-client-base.js.map +0 -1
  572. package/lib/apis/codiac-relay/common/api-user-creds.d.ts +0 -7
  573. package/lib/apis/codiac-relay/common/api-user-creds.js +0 -19
  574. package/lib/apis/codiac-relay/common/api-user-creds.js.map +0 -1
  575. package/lib/apis/codiac-relay/common/config-loader.d.ts +0 -6
  576. package/lib/apis/codiac-relay/common/config-loader.js +0 -19
  577. package/lib/apis/codiac-relay/common/endpoint-spec.d.ts +0 -17
  578. package/lib/apis/codiac-relay/common/endpoint-spec.js +0 -28
  579. package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.d.ts +0 -87
  580. package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.js +0 -368
  581. package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.js.map +0 -1
  582. package/lib/apis/codiac-relay/common/security/auth-constants.d.ts +0 -15
  583. package/lib/apis/codiac-relay/common/security/auth-constants.js +0 -22
  584. package/lib/apis/codiac-relay/common/security/i-auth-client.d.ts +0 -44
  585. package/lib/apis/codiac-relay/common/security/i-auth-client.js +0 -3
  586. package/lib/apis/codiac-relay/common/security/token-holder.d.ts +0 -13
  587. package/lib/apis/codiac-relay/common/security/token-holder.js +0 -18
  588. package/lib/apis/codiac-relay/common/utils.d.ts +0 -23
  589. package/lib/apis/codiac-relay/common/utils.js +0 -83
  590. package/lib/apis/codiac-relay/contracts/index.d.ts +0 -1
  591. package/lib/apis/codiac-relay/contracts/index.js +0 -5
  592. package/lib/apis/codiac-relay/gen/client-config.d.ts +0 -10
  593. package/lib/apis/codiac-relay/gen/client-config.js +0 -29
  594. package/lib/apis/codiac-relay/gen/client-config.js.map +0 -1
  595. package/lib/apis/codiac-relay/gen/client.d.ts +0 -244
  596. package/lib/apis/codiac-relay/gen/client.js +0 -1863
  597. package/lib/apis/codiac-relay/gen/client.js.map +0 -1
  598. package/lib/apis/codiac-relay/gen/contracts.d.ts +0 -3111
  599. package/lib/apis/codiac-relay/gen/contracts.js +0 -435
  600. package/lib/apis/codiac-relay/index.d.ts +0 -3
  601. package/lib/apis/codiac-relay/index.js +0 -9
  602. package/lib/cli-common/ImagesList.js +0 -67
  603. package/lib/cli-common/argument-manager.d.ts +0 -28
  604. package/lib/cli-common/argument-manager.js +0 -195
  605. package/lib/cli-common/built-in-cli-user-input.d.ts +0 -18
  606. package/lib/cli-common/built-in-cli-user-input.js +0 -310
  607. package/lib/cli-common/built-in-cli-user-input.js.map +0 -1
  608. package/lib/cli-common/cli-interfaces.js +0 -7
  609. package/lib/cli-common/command-base.d.ts +0 -72
  610. package/lib/cli-common/command-base.js +0 -182
  611. package/lib/cli-common/entities/index.d.ts +0 -1
  612. package/lib/cli-common/entities/index.js +0 -5
  613. package/lib/cli-common/entities/prompt-choice.d.ts +0 -7
  614. package/lib/cli-common/entities/prompt-choice.js +0 -3
  615. package/lib/cli-common/file-selector.d.ts +0 -48
  616. package/lib/cli-common/file-selector.js +0 -187
  617. package/lib/cli-common/i-user-input-provider.js +0 -19
  618. package/lib/cli-common/index.d.ts +0 -4
  619. package/lib/cli-common/index.js +0 -11
  620. package/lib/cli-common/mock-ui.d.ts +0 -27
  621. package/lib/cli-common/mock-ui.js +0 -83
  622. package/lib/cli-common/prompt-select-fuzzy.d.ts +0 -19
  623. package/lib/cli-common/prompt-select-fuzzy.js +0 -119
  624. package/lib/cli-common/prompt-select-fuzzy.js.map +0 -1
  625. package/lib/cli-common/tenant-contextualizer.js +0 -436
  626. package/lib/cli-common/test/tenant-contextualizer.spec.js +0 -143
  627. package/lib/cli-entities/output-format-enum.d.ts +0 -7
  628. package/lib/cli-entities/output-format-enum.js +0 -12
  629. package/lib/cli-entities/prompt-choice.js +0 -6
  630. package/lib/codiac-constants.d.ts +0 -35
  631. package/lib/codiac-constants.js +0 -41
  632. package/lib/codiac-entities/asset-binding.d.ts +0 -12
  633. package/lib/codiac-entities/asset-binding.js +0 -18
  634. package/lib/codiac-entities/azure-container-registry.d.ts +0 -4
  635. package/lib/codiac-entities/azure-container-registry.js +0 -3
  636. package/lib/codiac-entities/azure-service-principal.d.ts +0 -23
  637. package/lib/codiac-entities/azure-service-principal.js +0 -24
  638. package/lib/codiac-entities/cloud-account-ref.d.ts +0 -28
  639. package/lib/codiac-entities/cloud-account-ref.js +0 -37
  640. package/lib/codiac-entities/deployment-temp.js +0 -133
  641. package/lib/codiac-entities/i-cloud-account-ref.d.ts +0 -5
  642. package/lib/codiac-entities/i-cloud-account-ref.js +0 -3
  643. package/lib/command-base-enterprise.d.ts +0 -121
  644. package/lib/command-base-enterprise.js +0 -524
  645. package/lib/command-base-tenantless.d.ts +0 -44
  646. package/lib/command-base-tenantless.js +0 -180
  647. package/lib/commands/asset/create.d.ts +0 -42
  648. package/lib/commands/asset/create.js +0 -467
  649. package/lib/commands/asset/destroy.d.ts +0 -20
  650. package/lib/commands/asset/destroy.js +0 -129
  651. package/lib/commands/asset/helm.d.ts +0 -23
  652. package/lib/commands/asset/helm.js +0 -153
  653. package/lib/commands/asset/list.d.ts +0 -28
  654. package/lib/commands/asset/list.js +0 -172
  655. package/lib/commands/asset/probe/create.d.ts +0 -38
  656. package/lib/commands/asset/probe/create.js +0 -187
  657. package/lib/commands/asset/recycle.d.ts +0 -23
  658. package/lib/commands/asset/recycle.js +0 -175
  659. package/lib/commands/asset/view.d.ts +0 -188
  660. package/lib/commands/asset/view.js +0 -1365
  661. package/lib/commands/asset/volume/create.d.ts +0 -23
  662. package/lib/commands/asset/volume/create.js +0 -176
  663. package/lib/commands/asset/volume/delete.d.ts +0 -19
  664. package/lib/commands/asset/volume/delete.js +0 -112
  665. package/lib/commands/asset/volume/list.d.ts +0 -19
  666. package/lib/commands/asset/volume/list.js +0 -70
  667. package/lib/commands/branch/current.d.ts +0 -10
  668. package/lib/commands/branch/current.js +0 -34
  669. package/lib/commands/branch/list.d.ts +0 -15
  670. package/lib/commands/branch/list.js +0 -56
  671. package/lib/commands/branch.d.ts +0 -12
  672. package/lib/commands/branch.js +0 -42
  673. package/lib/commands/build.d.ts +0 -38
  674. package/lib/commands/build.js +0 -120
  675. package/lib/commands/cabinet/create.d.ts +0 -21
  676. package/lib/commands/cabinet/create.js +0 -108
  677. package/lib/commands/cabinet/list.d.ts +0 -23
  678. package/lib/commands/cabinet/list.js +0 -134
  679. package/lib/commands/cabinet/obliterate.d.ts +0 -20
  680. package/lib/commands/cabinet/obliterate.js +0 -83
  681. package/lib/commands/cli.d.ts +0 -10
  682. package/lib/commands/cli.js +0 -100
  683. package/lib/commands/commit.d.ts +0 -11
  684. package/lib/commands/commit.js +0 -40
  685. package/lib/commands/config/add.d.ts +0 -78
  686. package/lib/commands/config/add.js +0 -560
  687. package/lib/commands/config/delete.d.ts +0 -18
  688. package/lib/commands/config/delete.js +0 -119
  689. package/lib/commands/config/deploy.d.ts +0 -22
  690. package/lib/commands/config/deploy.js +0 -125
  691. package/lib/commands/config/import.d.ts +0 -27
  692. package/lib/commands/config/import.js +0 -196
  693. package/lib/commands/config/view.d.ts +0 -25
  694. package/lib/commands/config/view.js +0 -121
  695. package/lib/commands/csp/login.d.ts +0 -18
  696. package/lib/commands/csp/login.js +0 -120
  697. package/lib/commands/csp/login.js.map +0 -1
  698. package/lib/commands/csp/logout.d.ts +0 -15
  699. package/lib/commands/csp/logout.js +0 -74
  700. package/lib/commands/dep/create.d.ts +0 -13
  701. package/lib/commands/dep/create.js +0 -41
  702. package/lib/commands/dep/install.d.ts +0 -9
  703. package/lib/commands/dep/install.js +0 -30
  704. package/lib/commands/dep/list.d.ts +0 -55
  705. package/lib/commands/dep/list.js +0 -98
  706. package/lib/commands/dep/remove.d.ts +0 -12
  707. package/lib/commands/dep/remove.js +0 -62
  708. package/lib/commands/dep/source.d.ts +0 -13
  709. package/lib/commands/dep/source.js +0 -83
  710. package/lib/commands/dep/syncup.d.ts +0 -11
  711. package/lib/commands/dep/syncup.js +0 -54
  712. package/lib/commands/dep/unsource.d.ts +0 -14
  713. package/lib/commands/dep/unsource.js +0 -68
  714. package/lib/commands/dep/upgrade.d.ts +0 -44
  715. package/lib/commands/dep/upgrade.js +0 -244
  716. package/lib/commands/dep.d.ts +0 -12
  717. package/lib/commands/dep.js +0 -51
  718. package/lib/commands/deploy.d.ts +0 -38
  719. package/lib/commands/deploy.js +0 -383
  720. package/lib/commands/deploy.js.map +0 -1
  721. package/lib/commands/enterprise/create.d.ts +0 -20
  722. package/lib/commands/enterprise/create.js +0 -98
  723. package/lib/commands/enterprise/list.d.ts +0 -14
  724. package/lib/commands/enterprise/list.js +0 -84
  725. package/lib/commands/env/add.d.ts +0 -22
  726. package/lib/commands/env/add.js +0 -200
  727. package/lib/commands/environment/create.d.ts +0 -19
  728. package/lib/commands/environment/create.js +0 -89
  729. package/lib/commands/environment/list.d.ts +0 -25
  730. package/lib/commands/environment/list.js +0 -158
  731. package/lib/commands/filestore/capture.d.ts +0 -31
  732. package/lib/commands/filestore/capture.js +0 -342
  733. package/lib/commands/host/map.d.ts +0 -33
  734. package/lib/commands/host/map.js +0 -347
  735. package/lib/commands/identity/delete.d.ts +0 -15
  736. package/lib/commands/identity/delete.js +0 -83
  737. package/lib/commands/identity/list.d.ts +0 -11
  738. package/lib/commands/identity/list.js +0 -43
  739. package/lib/commands/identity.d.ts +0 -22
  740. package/lib/commands/identity.js +0 -77
  741. package/lib/commands/imageRegistry/capture.d.ts +0 -27
  742. package/lib/commands/imageRegistry/capture.js +0 -160
  743. package/lib/commands/imageRegistry/forget.d.ts +0 -23
  744. package/lib/commands/imageRegistry/forget.js +0 -161
  745. package/lib/commands/imageRegistry/pullSecret/set.d.ts +0 -27
  746. package/lib/commands/imageRegistry/pullSecret/set.js +0 -300
  747. package/lib/commands/imageRegistry/pullSecret/unset.d.ts +0 -24
  748. package/lib/commands/imageRegistry/pullSecret/unset.js +0 -243
  749. package/lib/commands/images/add.d.ts +0 -25
  750. package/lib/commands/images/add.js +0 -76
  751. package/lib/commands/images/list.d.ts +0 -14
  752. package/lib/commands/images/list.js +0 -72
  753. package/lib/commands/images/patch.d.ts +0 -14
  754. package/lib/commands/images/patch.js +0 -93
  755. package/lib/commands/images/remove.d.ts +0 -12
  756. package/lib/commands/images/remove.js +0 -38
  757. package/lib/commands/images/version/bump.d.ts +0 -18
  758. package/lib/commands/images/version/bump.js +0 -61
  759. package/lib/commands/images/version.d.ts +0 -16
  760. package/lib/commands/images/version.js +0 -65
  761. package/lib/commands/init.d.ts +0 -17
  762. package/lib/commands/init.js +0 -131
  763. package/lib/commands/kit/create.d.ts +0 -25
  764. package/lib/commands/kit/create.js +0 -142
  765. package/lib/commands/login.d.ts +0 -22
  766. package/lib/commands/login.js +0 -93
  767. package/lib/commands/logout.d.ts +0 -8
  768. package/lib/commands/logout.js +0 -37
  769. package/lib/commands/merge.d.ts +0 -12
  770. package/lib/commands/merge.js +0 -43
  771. package/lib/commands/noc/cluster/create.d.ts +0 -28
  772. package/lib/commands/noc/cluster/create.js +0 -133
  773. package/lib/commands/noc/cluster/deinit.d.ts +0 -17
  774. package/lib/commands/noc/cluster/deinit.js +0 -117
  775. package/lib/commands/noc/cluster/destroy.d.ts +0 -20
  776. package/lib/commands/noc/cluster/destroy.js +0 -138
  777. package/lib/commands/noc/cluster/forget.d.ts +0 -16
  778. package/lib/commands/noc/cluster/forget.js +0 -137
  779. package/lib/commands/noc/cluster/grant.d.ts +0 -24
  780. package/lib/commands/noc/cluster/grant.js +0 -160
  781. package/lib/commands/noc/cluster/init.d.ts +0 -17
  782. package/lib/commands/noc/cluster/init.js +0 -117
  783. package/lib/commands/noc/cluster/list.d.ts +0 -21
  784. package/lib/commands/noc/cluster/list.js +0 -84
  785. package/lib/commands/noc/cluster/recreate.d.ts +0 -28
  786. package/lib/commands/noc/cluster/recreate.js +0 -186
  787. package/lib/commands/pkg/add.d.ts +0 -15
  788. package/lib/commands/pkg/add.js +0 -43
  789. package/lib/commands/pkg/list.d.ts +0 -9
  790. package/lib/commands/pkg/list.js +0 -33
  791. package/lib/commands/pkg/patch.d.ts +0 -13
  792. package/lib/commands/pkg/patch.js +0 -79
  793. package/lib/commands/pkg/remove.d.ts +0 -12
  794. package/lib/commands/pkg/remove.js +0 -70
  795. package/lib/commands/portal.d.ts +0 -11
  796. package/lib/commands/portal.js +0 -82
  797. package/lib/commands/publish.d.ts +0 -21
  798. package/lib/commands/publish.js +0 -52
  799. package/lib/commands/pull.d.ts +0 -13
  800. package/lib/commands/pull.js +0 -30
  801. package/lib/commands/push.d.ts +0 -13
  802. package/lib/commands/push.js +0 -30
  803. package/lib/commands/run.d.ts +0 -35
  804. package/lib/commands/run.js +0 -194
  805. package/lib/commands/secretStore/capture.d.ts +0 -27
  806. package/lib/commands/secretStore/capture.js +0 -175
  807. package/lib/commands/secretStore/forget.d.ts +0 -20
  808. package/lib/commands/secretStore/forget.js +0 -147
  809. package/lib/commands/stage.d.ts +0 -13
  810. package/lib/commands/stage.js +0 -65
  811. package/lib/commands/stash.d.ts +0 -13
  812. package/lib/commands/stash.js +0 -31
  813. package/lib/commands/status.d.ts +0 -12
  814. package/lib/commands/status.js +0 -49
  815. package/lib/commands/stop.d.ts +0 -10
  816. package/lib/commands/stop.js +0 -52
  817. package/lib/commands/switch.d.ts +0 -11
  818. package/lib/commands/switch.js +0 -42
  819. package/lib/commands/sync.d.ts +0 -14
  820. package/lib/commands/sync.js +0 -21
  821. package/lib/commands/tenant/create.d.ts +0 -27
  822. package/lib/commands/tenant/create.js +0 -120
  823. package/lib/commands/tenant/switch.d.ts +0 -24
  824. package/lib/commands/tenant/switch.js +0 -109
  825. package/lib/commands/unstage.d.ts +0 -12
  826. package/lib/commands/unstage.js +0 -58
  827. package/lib/commands/whereami.d.ts +0 -15
  828. package/lib/commands/whereami.js +0 -123
  829. package/lib/commands/whoami.d.ts +0 -8
  830. package/lib/commands/whoami.js +0 -40
  831. package/lib/errors/NoMembershipError.d.ts +0 -8
  832. package/lib/errors/NoMembershipError.js +0 -15
  833. package/lib/index.d.ts +0 -1
  834. package/lib/index.js +0 -17
  835. package/lib/log-update-wrapper.d.ts +0 -24
  836. package/lib/log-update-wrapper.js +0 -29
  837. package/lib/log4js-logger.d.ts +0 -26
  838. package/lib/log4js-logger.js +0 -138
  839. package/lib/log4js-logger.js.map +0 -1
  840. package/lib/ops/INTERFACES_CLI.d.ts +0 -3
  841. package/lib/ops/INTERFACES_CLI.js +0 -8
  842. package/lib/ops/LocalOps.d.ts +0 -417
  843. package/lib/ops/LocalOps.js +0 -3122
  844. package/lib/ops/LocalOps.js.map +0 -1
  845. package/lib/ops/azure-container-registry-client/azure-container-registry-client.js +0 -148
  846. package/lib/ops/cli-path-walker.js +0 -55
  847. package/lib/ops/codiac-entities/dependency.d.ts +0 -5
  848. package/lib/ops/codiac-entities/dependency.js +0 -11
  849. package/lib/ops/codiac-entities/index.d.ts +0 -1
  850. package/lib/ops/codiac-entities/index.js +0 -5
  851. package/lib/ops/composite-image-registry-client.js +0 -74
  852. package/lib/ops/data/cli-context-repo.d.ts +0 -61
  853. package/lib/ops/data/cli-context-repo.js +0 -270
  854. package/lib/ops/data/cli-context-repo.js.map +0 -1
  855. package/lib/ops/data/index.d.ts +0 -2
  856. package/lib/ops/data/index.js +0 -6
  857. package/lib/ops/data/npm-config-repo.d.ts +0 -13
  858. package/lib/ops/data/npm-config-repo.js +0 -65
  859. package/lib/ops/docker-config.js +0 -131
  860. package/lib/ops/docker-constants.js +0 -22
  861. package/lib/ops/docker-credentials-store.js +0 -238
  862. package/lib/ops/docker-registry-api-client/docker-registry-api-client.js +0 -289
  863. package/lib/ops/docker-registry-api-client/entities/blob-sum.d.ts +0 -7
  864. package/lib/ops/docker-registry-api-client/entities/blob-sum.js +0 -13
  865. package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.d.ts +0 -5
  866. package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.js +0 -10
  867. package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.d.ts +0 -30
  868. package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js +0 -36
  869. package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.d.ts +0 -55
  870. package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.js +0 -52
  871. package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.d.ts +0 -7
  872. package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.js +0 -3
  873. package/lib/ops/docker-registry-api-client/entities/image-repository.d.ts +0 -31
  874. package/lib/ops/docker-registry-api-client/entities/image-repository.js +0 -30
  875. package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.d.ts +0 -8
  876. package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.js +0 -14
  877. package/lib/ops/docker-registry-api-client/entities/image-tag-list.d.ts +0 -7
  878. package/lib/ops/docker-registry-api-client/entities/image-tag-list.js +0 -13
  879. package/lib/ops/docker-registry-api-client/entities/manifest-criteria.d.ts +0 -9
  880. package/lib/ops/docker-registry-api-client/entities/manifest-criteria.js +0 -15
  881. package/lib/ops/docker-registry-api-client/entities/manifest.d.ts +0 -15
  882. package/lib/ops/docker-registry-api-client/entities/manifest.js +0 -21
  883. package/lib/ops/docker-registry-api-client/entities/repository-criteria.d.ts +0 -16
  884. package/lib/ops/docker-registry-api-client/entities/repository-criteria.js +0 -24
  885. package/lib/ops/docker-registry-api-client/entities/token-response.d.ts +0 -15
  886. package/lib/ops/docker-registry-api-client/entities/token-response.js +0 -15
  887. package/lib/ops/docker-registry-api-client/entities/token.d.ts +0 -17
  888. package/lib/ops/docker-registry-api-client/entities/token.js +0 -22
  889. package/lib/ops/docker-registry-api-client/entities/version-check-criteria.d.ts +0 -4
  890. package/lib/ops/docker-registry-api-client/entities/version-check-criteria.js +0 -10
  891. package/lib/ops/dx-constants.d.ts +0 -26
  892. package/lib/ops/dx-constants.js +0 -43
  893. package/lib/ops/entities/ImageBuildContext.d.ts +0 -12
  894. package/lib/ops/entities/ImageBuildContext.js +0 -19
  895. package/lib/ops/entities/PipelineContext.d.ts +0 -21
  896. package/lib/ops/entities/PipelineContext.js +0 -23
  897. package/lib/ops/entities/TenantContext.d.ts +0 -10
  898. package/lib/ops/entities/TenantContext.js +0 -16
  899. package/lib/ops/entities/ThaulConfig.js +0 -30
  900. package/lib/ops/entities/azure-service-principal.d.ts +0 -23
  901. package/lib/ops/entities/azure-service-principal.js +0 -24
  902. package/lib/ops/entities/better-logger.js +0 -2
  903. package/lib/ops/entities/branch.d.ts +0 -13
  904. package/lib/ops/entities/branch.js +0 -16
  905. package/lib/ops/entities/cli-config.d.ts +0 -48
  906. package/lib/ops/entities/cli-config.js +0 -61
  907. package/lib/ops/entities/cli-config.js.map +0 -1
  908. package/lib/ops/entities/docker-image.d.ts +0 -60
  909. package/lib/ops/entities/docker-image.js +0 -3
  910. package/lib/ops/entities/helm-spec.d.ts +0 -15
  911. package/lib/ops/entities/helm-spec.js +0 -23
  912. package/lib/ops/entities/index.d.ts +0 -4
  913. package/lib/ops/entities/index.js +0 -12
  914. package/lib/ops/entities/operation-meta.d.ts +0 -8
  915. package/lib/ops/entities/operation-meta.js +0 -19
  916. package/lib/ops/entities/operation-meta.js.map +0 -1
  917. package/lib/ops/entities/scaffolding.d.ts +0 -19
  918. package/lib/ops/entities/scaffolding.js +0 -21
  919. package/lib/ops/extensions/azart-identity-adapter.d.ts +0 -19
  920. package/lib/ops/extensions/azart-identity-adapter.js +0 -97
  921. package/lib/ops/extensions/npm-identity-adapter-base.d.ts +0 -13
  922. package/lib/ops/extensions/npm-identity-adapter-base.js +0 -3
  923. package/lib/ops/extensions/npmjs-identity-adapter.d.ts +0 -13
  924. package/lib/ops/extensions/npmjs-identity-adapter.js +0 -64
  925. package/lib/ops/git-ops.d.ts +0 -8
  926. package/lib/ops/git-ops.js +0 -14
  927. package/lib/ops/i-client-for-image-registry.js +0 -17
  928. package/lib/ops/i-identity-handler.d.ts +0 -33
  929. package/lib/ops/i-identity-handler.js +0 -165
  930. package/lib/ops/i-output-styler.js +0 -17
  931. package/lib/ops/index.d.ts +0 -12
  932. package/lib/ops/index.js +0 -15
  933. package/lib/ops/json-utils.js +0 -59
  934. package/lib/ops/no-style-output-styler.js +0 -30
  935. package/lib/ops/oauth2-client.ts/oauth2-client.d.ts +0 -23
  936. package/lib/ops/oauth2-client.ts/oauth2-client.js +0 -64
  937. package/lib/ops/oauth2-client.ts/oauth2-client.js.map +0 -1
  938. package/lib/ops/project-initializer.d.ts +0 -36
  939. package/lib/ops/project-initializer.js +0 -219
  940. package/lib/ops/scaffolding/base-scaffolding.d.ts +0 -7
  941. package/lib/ops/scaffolding/base-scaffolding.js +0 -21
  942. package/lib/ops/scaffolding/base-scaffolding.js.map +0 -1
  943. package/lib/ops/scaffolding/codiac-api-scaffolding.d.ts +0 -7
  944. package/lib/ops/scaffolding/codiac-api-scaffolding.js +0 -64
  945. package/lib/ops/scaffolding/codiac-api-scaffolding.js.map +0 -1
  946. package/lib/ops/scaffolding/typescript-scaffolding.d.ts +0 -15
  947. package/lib/ops/scaffolding/typescript-scaffolding.js +0 -163
  948. package/lib/ops/scaffolding/typescript-scaffolding.js.map +0 -1
  949. package/lib/ops/test/mock-ui.d.ts +0 -26
  950. package/lib/ops/test/mock-ui.js +0 -88
  951. package/lib/ops/test/test-extensions.d.ts +0 -13
  952. package/lib/ops/test/test-extensions.js +0 -71
  953. package/lib/ops/test/when-a-recursive-file-search-is-run.spec.d.ts +0 -2
  954. package/lib/ops/test/when-a-recursive-file-search-is-run.spec.js +0 -55
  955. package/lib/ops/test/when-git-branchline-is-attempted.spec.d.ts +0 -2
  956. package/lib/ops/test/when-git-branchline-is-attempted.spec.js +0 -38
  957. package/lib/ops/test/when-versions-are-parsed.spec.d.ts +0 -2
  958. package/lib/ops/test/when-versions-are-parsed.spec.js +0 -62
  959. package/lib/ops/throwing-user-input-provider.js +0 -37
  960. package/lib/ops/workspace-versioner.d.ts +0 -122
  961. package/lib/ops/workspace-versioner.js +0 -292
  962. package/lib/ops/workspace-versioner.js.map +0 -1
  963. package/lib/prettify.d.ts +0 -7
  964. package/lib/prettify.js +0 -24
  965. package/lib/read-stdin.d.ts +0 -2
  966. package/lib/read-stdin.js +0 -29
  967. package/lib/relay/contracts/contracts.d.ts +0 -207
  968. package/lib/relay/contracts/contracts.js +0 -230
  969. package/lib/relay/extended-relay-client.d.ts +0 -27
  970. package/lib/relay/extended-relay-client.js +0 -28
  971. package/lib/relay/relay-container.d.ts +0 -41
  972. package/lib/relay/relay-container.js +0 -298
  973. package/lib/relay/relay-container.js.map +0 -1
  974. package/lib/relay/wsclient/relay-socket-listener.d.ts +0 -68
  975. package/lib/relay/wsclient/relay-socket-listener.js +0 -165
  976. package/lib/relay/wsclient/relay-socket-listener.js.map +0 -1
  977. package/lib/relay/wsclient/relay-websocket-client.d.ts +0 -33
  978. package/lib/relay/wsclient/relay-websocket-client.js +0 -179
  979. package/lib/relay/wsclient/relay-websocket-client.js.map +0 -1
  980. package/lib/relay/wsclient/rx-websocket-subject.d.ts +0 -25
  981. package/lib/relay/wsclient/rx-websocket-subject.js +0 -134
  982. package/lib/relay/wsclient/rx-websocket-subject.js.map +0 -1
  983. package/lib/relay/wsclient/socket-contracts.d.ts +0 -22
  984. package/lib/relay/wsclient/socket-contracts.js +0 -3
  985. package/lib/standard-probes.d.ts +0 -5
  986. package/lib/standard-probes.js +0 -22
  987. package/lib/uilogic/build-configurator.d.ts +0 -21
  988. package/lib/uilogic/build-configurator.js +0 -111
  989. package/lib/uilogic/cloud-provider-contextualizer.d.ts +0 -46
  990. package/lib/uilogic/cloud-provider-contextualizer.js +0 -194
  991. package/lib/uilogic/cloud-provider-contextualizer.js.map +0 -1
  992. package/lib/uilogic/cloud-resource-configurator-factory.d.ts +0 -41
  993. package/lib/uilogic/cloud-resource-configurator-factory.js +0 -158
  994. package/lib/uilogic/cloud-resource-configurator-factory.js.map +0 -1
  995. package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +0 -38
  996. package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js +0 -348
  997. package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +0 -1
  998. package/lib/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +0 -78
  999. package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.d.ts +0 -42
  1000. package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js +0 -248
  1001. package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js.map +0 -1
  1002. package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +0 -110
  1003. package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js +0 -782
  1004. package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +0 -1
  1005. package/lib/uilogic/cloud-resource-configurators/azure-types.js +0 -10
  1006. package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +0 -24
  1007. package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +0 -106
  1008. package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +0 -1
  1009. package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.d.ts +0 -16
  1010. package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.js +0 -45
  1011. package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.js.map +0 -1
  1012. package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +0 -18
  1013. package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +0 -62
  1014. package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +0 -1
  1015. package/lib/uilogic/enterprise-contextualizer.d.ts +0 -76
  1016. package/lib/uilogic/enterprise-contextualizer.js +0 -671
  1017. package/lib/uilogic/environment-contextualizer.d.ts +0 -15
  1018. package/lib/uilogic/environment-contextualizer.js +0 -43
  1019. package/lib/uilogic/i-cluster-configurator.d.ts +0 -9
  1020. package/lib/uilogic/i-cluster-configurator.js +0 -3
  1021. package/lib/uilogic/i-login-configurator.d.ts +0 -6
  1022. package/lib/uilogic/i-login-configurator.js +0 -3
  1023. package/lib/uilogic/i-registry-configurator.d.ts +0 -6
  1024. package/lib/uilogic/i-registry-configurator.js +0 -3
  1025. package/lib/uilogic/i-secret-store-configurator.d.ts +0 -7
  1026. package/lib/uilogic/i-secret-store-configurator.js +0 -3
  1027. package/lib/uilogic/image-configurator.d.ts +0 -133
  1028. package/lib/uilogic/image-configurator.js +0 -578
  1029. package/lib/uilogic/image-configurator.js.map +0 -1
  1030. package/lib/uilogic/image-contextualizer.d.ts +0 -24
  1031. package/lib/uilogic/image-contextualizer.js +0 -90
  1032. package/lib/uilogic/image-contextualizer.js.map +0 -1
  1033. package/lib/uilogic/image-registry-contextualizer.d.ts +0 -28
  1034. package/lib/uilogic/image-registry-contextualizer.js +0 -127
  1035. package/lib/uilogic/image-registry-contextualizer.js.map +0 -1
  1036. package/lib/uilogic/index.d.ts +0 -9
  1037. package/lib/uilogic/index.js +0 -14
  1038. package/lib/uilogic/prompt-select-fuzzy.js +0 -139
  1039. package/lib/uilogic/render-methods.d.ts +0 -12
  1040. package/lib/uilogic/render-methods.js +0 -65
  1041. package/lib/uilogic/tenant-contextualizer.d.ts +0 -79
  1042. package/lib/uilogic/tenant-contextualizer.js +0 -578
  1043. package/lib/user-context-loader.d.ts +0 -60
  1044. package/lib/user-context-loader.js +0 -184
  1045. /package/{lib → dist}/apis/codiac-api/common/config-loader.js.map +0 -0
  1046. /package/{lib → dist}/apis/codiac-api/common/endpoint-spec.js.map +0 -0
  1047. /package/{lib → dist}/apis/codiac-api/common/security/auth-constants.js.map +0 -0
  1048. /package/{lib → dist}/apis/codiac-api/common/security/i-auth-client.js.map +0 -0
  1049. /package/{lib → dist}/apis/codiac-api/common/security/token-holder.js.map +0 -0
  1050. /package/{lib → dist}/apis/codiac-api/common/utils.js.map +0 -0
  1051. /package/{lib → dist}/apis/codiac-api/contracts/index.js.map +0 -0
  1052. /package/{lib → dist}/apis/codiac-api/gen/contracts.js.map +0 -0
  1053. /package/{lib → dist}/apis/codiac-api/index.js.map +0 -0
  1054. /package/{lib → dist}/apis/codiac-relay/common/config-loader.js.map +0 -0
  1055. /package/{lib → dist}/apis/codiac-relay/common/endpoint-spec.js.map +0 -0
  1056. /package/{lib → dist}/apis/codiac-relay/common/security/auth-constants.js.map +0 -0
  1057. /package/{lib → dist}/apis/codiac-relay/common/security/i-auth-client.js.map +0 -0
  1058. /package/{lib → dist}/apis/codiac-relay/common/security/token-holder.js.map +0 -0
  1059. /package/{lib → dist}/apis/codiac-relay/common/utils.js.map +0 -0
  1060. /package/{lib → dist}/apis/codiac-relay/contracts/index.js.map +0 -0
  1061. /package/{lib → dist}/apis/codiac-relay/gen/contracts.js.map +0 -0
  1062. /package/{lib → dist}/apis/codiac-relay/index.js.map +0 -0
  1063. /package/{lib → dist}/cli-common/ImagesList.d.ts +0 -0
  1064. /package/{lib → dist}/cli-common/ImagesList.js.map +0 -0
  1065. /package/{lib → dist}/cli-common/argument-manager.js.map +0 -0
  1066. /package/{lib → dist}/cli-common/cli-interfaces.d.ts +0 -0
  1067. /package/{lib → dist}/cli-common/cli-interfaces.js.map +0 -0
  1068. /package/{lib → dist}/cli-common/command-base.js.map +0 -0
  1069. /package/{lib → dist}/cli-common/entities/index.js.map +0 -0
  1070. /package/{lib → dist}/cli-common/entities/prompt-choice.js.map +0 -0
  1071. /package/{lib → dist}/cli-common/file-selector.js.map +0 -0
  1072. /package/{lib → dist}/cli-common/i-user-input-provider.d.ts +0 -0
  1073. /package/{lib → dist}/cli-common/i-user-input-provider.js.map +0 -0
  1074. /package/{lib → dist}/cli-common/index.js.map +0 -0
  1075. /package/{lib → dist}/cli-common/mock-ui.js.map +0 -0
  1076. /package/{lib → dist}/cli-common/tenant-contextualizer.d.ts +0 -0
  1077. /package/{lib → dist}/cli-common/tenant-contextualizer.js.map +0 -0
  1078. /package/{lib → dist}/cli-common/test/tenant-contextualizer.spec.d.ts +0 -0
  1079. /package/{lib → dist}/cli-common/test/tenant-contextualizer.spec.js.map +0 -0
  1080. /package/{lib → dist}/cli-entities/output-format-enum.js.map +0 -0
  1081. /package/{lib → dist}/cli-entities/prompt-choice.d.ts +0 -0
  1082. /package/{lib → dist}/cli-entities/prompt-choice.js.map +0 -0
  1083. /package/{lib → dist}/codiac-constants.js.map +0 -0
  1084. /package/{lib → dist}/codiac-entities/asset-binding.js.map +0 -0
  1085. /package/{lib → dist}/codiac-entities/azure-container-registry.js.map +0 -0
  1086. /package/{lib → dist}/codiac-entities/azure-service-principal.js.map +0 -0
  1087. /package/{lib → dist}/codiac-entities/cloud-account-ref.js.map +0 -0
  1088. /package/{lib → dist}/codiac-entities/deployment-temp.d.ts +0 -0
  1089. /package/{lib → dist}/codiac-entities/deployment-temp.js.map +0 -0
  1090. /package/{lib → dist}/codiac-entities/i-cloud-account-ref.js.map +0 -0
  1091. /package/{lib → dist}/command-base-enterprise.js.map +0 -0
  1092. /package/{lib → dist}/command-base-tenantless.js.map +0 -0
  1093. /package/{lib → dist}/commands/asset/create.js.map +0 -0
  1094. /package/{lib → dist}/commands/asset/destroy.js.map +0 -0
  1095. /package/{lib → dist}/commands/asset/helm.js.map +0 -0
  1096. /package/{lib → dist}/commands/asset/list.js.map +0 -0
  1097. /package/{lib → dist}/commands/asset/probe/create.js.map +0 -0
  1098. /package/{lib → dist}/commands/asset/recycle.js.map +0 -0
  1099. /package/{lib → dist}/commands/asset/view.js.map +0 -0
  1100. /package/{lib → dist}/commands/asset/volume/create.js.map +0 -0
  1101. /package/{lib → dist}/commands/asset/volume/delete.js.map +0 -0
  1102. /package/{lib → dist}/commands/asset/volume/list.js.map +0 -0
  1103. /package/{lib → dist}/commands/branch/current.js.map +0 -0
  1104. /package/{lib → dist}/commands/branch/list.js.map +0 -0
  1105. /package/{lib → dist}/commands/branch.js.map +0 -0
  1106. /package/{lib → dist}/commands/build.js.map +0 -0
  1107. /package/{lib → dist}/commands/cabinet/create.js.map +0 -0
  1108. /package/{lib → dist}/commands/cabinet/list.js.map +0 -0
  1109. /package/{lib → dist}/commands/cabinet/obliterate.js.map +0 -0
  1110. /package/{lib → dist}/commands/cli.js.map +0 -0
  1111. /package/{lib → dist}/commands/commit.js.map +0 -0
  1112. /package/{lib → dist}/commands/config/add.js.map +0 -0
  1113. /package/{lib → dist}/commands/config/delete.js.map +0 -0
  1114. /package/{lib → dist}/commands/config/deploy.js.map +0 -0
  1115. /package/{lib → dist}/commands/config/import.js.map +0 -0
  1116. /package/{lib → dist}/commands/config/view.js.map +0 -0
  1117. /package/{lib → dist}/commands/csp/logout.js.map +0 -0
  1118. /package/{lib → dist}/commands/dep/create.js.map +0 -0
  1119. /package/{lib → dist}/commands/dep/install.js.map +0 -0
  1120. /package/{lib → dist}/commands/dep/list.js.map +0 -0
  1121. /package/{lib → dist}/commands/dep/remove.js.map +0 -0
  1122. /package/{lib → dist}/commands/dep/source.js.map +0 -0
  1123. /package/{lib → dist}/commands/dep/syncup.js.map +0 -0
  1124. /package/{lib → dist}/commands/dep/unsource.js.map +0 -0
  1125. /package/{lib → dist}/commands/dep/upgrade.js.map +0 -0
  1126. /package/{lib → dist}/commands/dep.js.map +0 -0
  1127. /package/{lib → dist}/commands/enterprise/create.js.map +0 -0
  1128. /package/{lib → dist}/commands/enterprise/list.js.map +0 -0
  1129. /package/{lib → dist}/commands/env/add.js.map +0 -0
  1130. /package/{lib → dist}/commands/environment/create.js.map +0 -0
  1131. /package/{lib → dist}/commands/environment/list.js.map +0 -0
  1132. /package/{lib → dist}/commands/filestore/capture.js.map +0 -0
  1133. /package/{lib → dist}/commands/host/map.js.map +0 -0
  1134. /package/{lib → dist}/commands/identity/delete.js.map +0 -0
  1135. /package/{lib → dist}/commands/identity/list.js.map +0 -0
  1136. /package/{lib → dist}/commands/identity.js.map +0 -0
  1137. /package/{lib → dist}/commands/imageRegistry/capture.js.map +0 -0
  1138. /package/{lib → dist}/commands/imageRegistry/forget.js.map +0 -0
  1139. /package/{lib → dist}/commands/imageRegistry/pullSecret/set.js.map +0 -0
  1140. /package/{lib → dist}/commands/imageRegistry/pullSecret/unset.js.map +0 -0
  1141. /package/{lib → dist}/commands/images/add.js.map +0 -0
  1142. /package/{lib → dist}/commands/images/list.js.map +0 -0
  1143. /package/{lib → dist}/commands/images/patch.js.map +0 -0
  1144. /package/{lib → dist}/commands/images/remove.js.map +0 -0
  1145. /package/{lib → dist}/commands/images/version/bump.js.map +0 -0
  1146. /package/{lib → dist}/commands/images/version.js.map +0 -0
  1147. /package/{lib → dist}/commands/init.js.map +0 -0
  1148. /package/{lib → dist}/commands/kit/create.js.map +0 -0
  1149. /package/{lib → dist}/commands/login.js.map +0 -0
  1150. /package/{lib → dist}/commands/logout.js.map +0 -0
  1151. /package/{lib → dist}/commands/merge.js.map +0 -0
  1152. /package/{lib → dist}/commands/noc/cluster/create.js.map +0 -0
  1153. /package/{lib → dist}/commands/noc/cluster/deinit.js.map +0 -0
  1154. /package/{lib → dist}/commands/noc/cluster/destroy.js.map +0 -0
  1155. /package/{lib → dist}/commands/noc/cluster/forget.js.map +0 -0
  1156. /package/{lib → dist}/commands/noc/cluster/grant.js.map +0 -0
  1157. /package/{lib → dist}/commands/noc/cluster/init.js.map +0 -0
  1158. /package/{lib → dist}/commands/noc/cluster/list.js.map +0 -0
  1159. /package/{lib → dist}/commands/noc/cluster/recreate.js.map +0 -0
  1160. /package/{lib → dist}/commands/pkg/add.js.map +0 -0
  1161. /package/{lib → dist}/commands/pkg/list.js.map +0 -0
  1162. /package/{lib → dist}/commands/pkg/patch.js.map +0 -0
  1163. /package/{lib → dist}/commands/pkg/remove.js.map +0 -0
  1164. /package/{lib → dist}/commands/portal.js.map +0 -0
  1165. /package/{lib → dist}/commands/publish.js.map +0 -0
  1166. /package/{lib → dist}/commands/pull.js.map +0 -0
  1167. /package/{lib → dist}/commands/push.js.map +0 -0
  1168. /package/{lib → dist}/commands/run.js.map +0 -0
  1169. /package/{lib → dist}/commands/secretStore/capture.js.map +0 -0
  1170. /package/{lib → dist}/commands/secretStore/forget.js.map +0 -0
  1171. /package/{lib → dist}/commands/stage.js.map +0 -0
  1172. /package/{lib → dist}/commands/stash.js.map +0 -0
  1173. /package/{lib → dist}/commands/status.js.map +0 -0
  1174. /package/{lib → dist}/commands/stop.js.map +0 -0
  1175. /package/{lib → dist}/commands/switch.js.map +0 -0
  1176. /package/{lib → dist}/commands/sync.js.map +0 -0
  1177. /package/{lib → dist}/commands/tenant/create.js.map +0 -0
  1178. /package/{lib → dist}/commands/tenant/switch.js.map +0 -0
  1179. /package/{lib → dist}/commands/unstage.js.map +0 -0
  1180. /package/{lib → dist}/commands/whereami.js.map +0 -0
  1181. /package/{lib → dist}/commands/whoami.js.map +0 -0
  1182. /package/{lib → dist}/errors/NoMembershipError.js.map +0 -0
  1183. /package/{lib → dist}/index.js.map +0 -0
  1184. /package/{lib → dist}/log-update-wrapper.js.map +0 -0
  1185. /package/{lib → dist}/ops/INTERFACES_CLI.js.map +0 -0
  1186. /package/{lib → dist}/ops/azure-container-registry-client/azure-container-registry-client.d.ts +0 -0
  1187. /package/{lib → dist}/ops/azure-container-registry-client/azure-container-registry-client.js.map +0 -0
  1188. /package/{lib → dist}/ops/cli-path-walker.d.ts +0 -0
  1189. /package/{lib → dist}/ops/cli-path-walker.js.map +0 -0
  1190. /package/{lib → dist}/ops/codiac-entities/dependency.js.map +0 -0
  1191. /package/{lib → dist}/ops/codiac-entities/index.js.map +0 -0
  1192. /package/{lib → dist}/ops/composite-image-registry-client.d.ts +0 -0
  1193. /package/{lib → dist}/ops/composite-image-registry-client.js.map +0 -0
  1194. /package/{lib → dist}/ops/data/index.js.map +0 -0
  1195. /package/{lib → dist}/ops/data/npm-config-repo.js.map +0 -0
  1196. /package/{lib → dist}/ops/docker-config.d.ts +0 -0
  1197. /package/{lib → dist}/ops/docker-config.js.map +0 -0
  1198. /package/{lib → dist}/ops/docker-constants.d.ts +0 -0
  1199. /package/{lib → dist}/ops/docker-constants.js.map +0 -0
  1200. /package/{lib → dist}/ops/docker-credentials-store.d.ts +0 -0
  1201. /package/{lib → dist}/ops/docker-credentials-store.js.map +0 -0
  1202. /package/{lib → dist}/ops/docker-registry-api-client/docker-registry-api-client.d.ts +0 -0
  1203. /package/{lib → dist}/ops/docker-registry-api-client/docker-registry-api-client.js.map +0 -0
  1204. /package/{lib → dist}/ops/docker-registry-api-client/entities/blob-sum.js.map +0 -0
  1205. /package/{lib → dist}/ops/docker-registry-api-client/entities/docker-access-actions-enum.js.map +0 -0
  1206. /package/{lib → dist}/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js.map +0 -0
  1207. /package/{lib → dist}/ops/docker-registry-api-client/entities/i-docker-error-response.js.map +0 -0
  1208. /package/{lib → dist}/ops/docker-registry-api-client/entities/i-docker-list-response.js.map +0 -0
  1209. /package/{lib → dist}/ops/docker-registry-api-client/entities/image-repository.js.map +0 -0
  1210. /package/{lib → dist}/ops/docker-registry-api-client/entities/image-tag-criteria.js.map +0 -0
  1211. /package/{lib → dist}/ops/docker-registry-api-client/entities/image-tag-list.js.map +0 -0
  1212. /package/{lib → dist}/ops/docker-registry-api-client/entities/manifest-criteria.js.map +0 -0
  1213. /package/{lib → dist}/ops/docker-registry-api-client/entities/manifest.js.map +0 -0
  1214. /package/{lib → dist}/ops/docker-registry-api-client/entities/repository-criteria.js.map +0 -0
  1215. /package/{lib → dist}/ops/docker-registry-api-client/entities/token-response.js.map +0 -0
  1216. /package/{lib → dist}/ops/docker-registry-api-client/entities/token.js.map +0 -0
  1217. /package/{lib → dist}/ops/docker-registry-api-client/entities/version-check-criteria.js.map +0 -0
  1218. /package/{lib → dist}/ops/dx-constants.js.map +0 -0
  1219. /package/{lib → dist}/ops/entities/ImageBuildContext.js.map +0 -0
  1220. /package/{lib → dist}/ops/entities/PipelineContext.js.map +0 -0
  1221. /package/{lib → dist}/ops/entities/TenantContext.js.map +0 -0
  1222. /package/{lib → dist}/ops/entities/ThaulConfig.d.ts +0 -0
  1223. /package/{lib → dist}/ops/entities/ThaulConfig.js.map +0 -0
  1224. /package/{lib → dist}/ops/entities/azure-service-principal.js.map +0 -0
  1225. /package/{lib → dist}/ops/entities/better-logger.d.ts +0 -0
  1226. /package/{lib → dist}/ops/entities/better-logger.js.map +0 -0
  1227. /package/{lib → dist}/ops/entities/branch.js.map +0 -0
  1228. /package/{lib → dist}/ops/entities/docker-image.js.map +0 -0
  1229. /package/{lib → dist}/ops/entities/helm-spec.js.map +0 -0
  1230. /package/{lib → dist}/ops/entities/index.js.map +0 -0
  1231. /package/{lib → dist}/ops/entities/scaffolding.js.map +0 -0
  1232. /package/{lib → dist}/ops/extensions/azart-identity-adapter.js.map +0 -0
  1233. /package/{lib → dist}/ops/extensions/npm-identity-adapter-base.js.map +0 -0
  1234. /package/{lib → dist}/ops/extensions/npmjs-identity-adapter.js.map +0 -0
  1235. /package/{lib → dist}/ops/git-ops.js.map +0 -0
  1236. /package/{lib → dist}/ops/i-client-for-image-registry.d.ts +0 -0
  1237. /package/{lib → dist}/ops/i-client-for-image-registry.js.map +0 -0
  1238. /package/{lib → dist}/ops/i-identity-handler.js.map +0 -0
  1239. /package/{lib → dist}/ops/i-output-styler.d.ts +0 -0
  1240. /package/{lib → dist}/ops/i-output-styler.js.map +0 -0
  1241. /package/{lib → dist}/ops/index.js.map +0 -0
  1242. /package/{lib → dist}/ops/json-utils.d.ts +0 -0
  1243. /package/{lib → dist}/ops/json-utils.js.map +0 -0
  1244. /package/{lib → dist}/ops/no-style-output-styler.d.ts +0 -0
  1245. /package/{lib → dist}/ops/no-style-output-styler.js.map +0 -0
  1246. /package/{lib → dist}/ops/project-initializer.js.map +0 -0
  1247. /package/{lib → dist}/ops/test/mock-ui.js.map +0 -0
  1248. /package/{lib → dist}/ops/test/test-extensions.js.map +0 -0
  1249. /package/{lib → dist}/ops/test/when-a-recursive-file-search-is-run.spec.js.map +0 -0
  1250. /package/{lib → dist}/ops/test/when-git-branchline-is-attempted.spec.js.map +0 -0
  1251. /package/{lib → dist}/ops/test/when-versions-are-parsed.spec.js.map +0 -0
  1252. /package/{lib → dist}/ops/throwing-user-input-provider.d.ts +0 -0
  1253. /package/{lib → dist}/ops/throwing-user-input-provider.js.map +0 -0
  1254. /package/{lib → dist}/prettify.js.map +0 -0
  1255. /package/{lib → dist}/read-stdin.js.map +0 -0
  1256. /package/{lib → dist}/relay/contracts/contracts.js.map +0 -0
  1257. /package/{lib → dist}/relay/extended-relay-client.js.map +0 -0
  1258. /package/{lib → dist}/relay/wsclient/socket-contracts.js.map +0 -0
  1259. /package/{lib → dist}/standard-probes.js.map +0 -0
  1260. /package/{lib → dist}/uilogic/build-configurator.js.map +0 -0
  1261. /package/{lib → dist}/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.d.ts +0 -0
  1262. /package/{lib → dist}/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js.map +0 -0
  1263. /package/{lib → dist}/uilogic/cloud-resource-configurators/azure-types.d.ts +0 -0
  1264. /package/{lib → dist}/uilogic/cloud-resource-configurators/azure-types.js.map +0 -0
  1265. /package/{lib → dist}/uilogic/enterprise-contextualizer.js.map +0 -0
  1266. /package/{lib → dist}/uilogic/environment-contextualizer.js.map +0 -0
  1267. /package/{lib → dist}/uilogic/i-cluster-configurator.js.map +0 -0
  1268. /package/{lib → dist}/uilogic/i-login-configurator.js.map +0 -0
  1269. /package/{lib → dist}/uilogic/i-registry-configurator.js.map +0 -0
  1270. /package/{lib → dist}/uilogic/i-secret-store-configurator.js.map +0 -0
  1271. /package/{lib → dist}/uilogic/index.js.map +0 -0
  1272. /package/{lib → dist}/uilogic/prompt-select-fuzzy.d.ts +0 -0
  1273. /package/{lib → dist}/uilogic/prompt-select-fuzzy.js.map +0 -0
  1274. /package/{lib → dist}/uilogic/render-methods.js.map +0 -0
  1275. /package/{lib → dist}/uilogic/tenant-contextualizer.js.map +0 -0
  1276. /package/{lib → dist}/user-context-loader.js.map +0 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.endpointSpec = void 0;
4
+ // export interface IEndpointSpec {
5
+ // entityType: typeRef; // this requires that TRequest extends Object. It prob should. Not sure where that breaks down - what is the scenario that we are passing in a contract that doesnt extend Object?
6
+ // httpMethod: httpRestVerb;
7
+ // route: string;
8
+ // serializerMap?: stringDictionary;
9
+ // }
10
+ class endpointSpec {
11
+ /**
12
+ *
13
+ * @param entityType
14
+ * @param httpMethod
15
+ * @param route
16
+ * @param baseUrl Overrides the api base url.
17
+ * @param serializerMap
18
+ */
19
+ constructor(entityType, httpMethod, route, baseUrl, serializerMap) {
20
+ this.entityType = entityType;
21
+ this.httpMethod = httpMethod;
22
+ this.route = route;
23
+ this.baseUrl = baseUrl;
24
+ this.serializerMap = serializerMap;
25
+ }
26
+ }
27
+ exports.endpointSpec = endpointSpec;
28
+ //# sourceMappingURL=endpoint-spec.js.map
@@ -0,0 +1,87 @@
1
+ import { AxiosRequestConfig } from "axios";
2
+ import * as contracts from "@codiac.io/codiac-common/contracts";
3
+ import { classDef, httpRestVerb, IBetterLogger } from "@codiac.io/codiac-common";
4
+ import { TenantUser, AuthTenant } from "@codiac.io/codiac-common/security";
5
+ import { ApiClientBase } from "../api-client-base";
6
+ import { IAuthClient } from "./i-auth-client";
7
+ import { AuthConstants } from "./auth-constants";
8
+ import { TokenHolder } from "./token-holder";
9
+ /** Contains hard-coded Codiac Auth methods.
10
+ * It is considered legacy because it is to be replaced by methods generated from an openApi spec. */
11
+ export declare class ApiAuthMethodsLegacy implements IAuthClient {
12
+ private core;
13
+ private logger;
14
+ /** Hardcoded to match the current setting on the server.
15
+ * TODO: Get this from a config that is copied from the server project to the client project on build.
16
+ */
17
+ static TOKEN_HEADER_PARAM: string;
18
+ constructor(core: ApiClientBase, logger: IBetterLogger);
19
+ /** The name of the http request header that declares the authentication token for the request.
20
+ * NOTE: This gets set to DEFAULT_TOKEN_HEADER_NAME in the ctor of ApiClientBase,
21
+ * so child classes can override it in their own ctor AFTER calling super(). */
22
+ protected tokenHeaderName: string;
23
+ protected authConstants: AuthConstants;
24
+ /** Logs in remotely with the given credentials.
25
+ * Returns a valid token in the headers of the response
26
+ * and the user info in the body of the response.
27
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
28
+ * @param login The human readable unique identifier for the user.
29
+ * @param password the secret held for this particular user.
30
+ * @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
31
+ */
32
+ authenticate(login: string, password: string, tenantCode?: string): Promise<contracts.SingleResult<TokenHolder>>;
33
+ /** Traps the errors thrown by axios on non-200 statuses. */
34
+ protected executeAxiosRequest<TRequest, TResponse extends contracts.Result>(verb: httpRestVerb, responseType: classDef<TResponse>, url: string, request?: TRequest, options?: AxiosRequestConfig): Promise<{
35
+ data: TResponse;
36
+ headers?: any;
37
+ status: number;
38
+ statusText: string;
39
+ }>;
40
+ /** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
41
+ * throws if the axios response does not contain a data property. */
42
+ private convertToTokenHolderResult;
43
+ /** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
44
+ * throws if the axios response does not contain a data property.
45
+ * @deprecated Use `convertToTokenHolderResult()` instead.*/
46
+ private convertToTokenHolderResponse;
47
+ /** Determines whether the given token is expired.
48
+ * @param throwOnError throws any encountered errors, including token parsing errors.
49
+ */
50
+ isExpired(token: string, throwOnError?: boolean): boolean;
51
+ extractTokenExpiration(token: string): Date | undefined;
52
+ /** Provides the ability to extend an existing token.
53
+ * Returns failure for invalid or revoked tokens.
54
+ * Returns any errors encountered refreshing.
55
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
56
+ * @param currentToken The JWT token returned in a prior request.
57
+ * */
58
+ refreshToken(currentToken: string): Promise<contracts.SingleResult<TokenHolder>>;
59
+ /** Retrieves the full account info for the current user (minus any passwords),
60
+ * including all tenant profiles.
61
+ * Returns failure for invalid or revoked tokens.
62
+ * Returns any errors encountered refreshing.
63
+ * NOTE: keeps the returned auth token in scope for this client instance.
64
+ * @param currentToken (optional if the client instance has already authenticated) The JWT token returned in a prior request.
65
+ */
66
+ whoAmI(currentToken?: string): Promise<contracts.SingleResult<TenantUser>>;
67
+ /** Provides the ability to extend an existing token.
68
+ * Returns failure for invalid or revoked tokens.
69
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
70
+ * @param currentToken The JWT token returned in a prior request.
71
+ * @param tenantCode Unique identifier of the tenant being switched to.
72
+ * Returns any errors encountered refreshing. */
73
+ switchTenant(currentToken: string, tenantCode: string): Promise<contracts.SingleResult<TokenHolder>>;
74
+ /** Declares a new organization in the toyhauler system.
75
+ * The given user account is made the administrator for that organization,
76
+ * and if the new user flag is given,
77
+ * the user account will get created.
78
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
79
+ * @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
80
+ * @param newUser Flag to create a new user account with the given credentials.
81
+ * @param userName User to be the adminstrator for the new tenant.
82
+ * @param password Password for the given user (desired password if the newuser flag is set).
83
+ * @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
84
+ * @param currentToken The JWT token returned in a prior request.
85
+ * */
86
+ registerTenant(tenantName: string, newUser: boolean, userName: string, password: string, tenantCode?: string, currentToken?: string): Promise<contracts.SingleResult<AuthTenant>>;
87
+ }
@@ -0,0 +1,368 @@
1
+ "use strict";
2
+ var ApiAuthMethodsLegacy_1;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ApiAuthMethodsLegacy = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const path = require("path");
7
+ const inversify_1 = require("inversify");
8
+ const axios_1 = require("axios");
9
+ const contracts = require("@codiac.io/codiac-common/contracts");
10
+ const codiac_common_1 = require("@codiac.io/codiac-common");
11
+ const jwt_lib_1 = require("@codiac.io/jwt-lib");
12
+ const api_client_base_1 = require("../api-client-base");
13
+ const auth_constants_1 = require("./auth-constants");
14
+ const token_holder_1 = require("./token-holder");
15
+ /** Contains hard-coded Codiac Auth methods.
16
+ * It is considered legacy because it is to be replaced by methods generated from an openApi spec. */
17
+ let ApiAuthMethodsLegacy = ApiAuthMethodsLegacy_1 = class ApiAuthMethodsLegacy {
18
+ // /**
19
+ // * @param apiRootUrl The base url of the api. That is, prepending it to any individual endpoint route will yield the fully qualified url for that endpoint.
20
+ // * @param authToken Either a Principal or TenantUser token for the api this client is targeting. NOTE: Also gets hydrated on successful attempts of authenticate / switchTenant / refreshToken / registerTenant.
21
+ // */
22
+ // constructor(logger: IBetterLogger, apiRootUrl?: string, authToken?: string) {
23
+ // super(logger, apiRootUrl, authToken);
24
+ // this.tokenHeaderName = ApiClientBaseWithAuth.TOKEN_HEADER_PARAM; // Right now this is redundant bc this class and the apiClientBase have the same value for tokenHeaderName. But it's here bc the auth client should explicitly declare it anyway and the base is just a default.
25
+ // }
26
+ constructor(core, logger) {
27
+ this.core = core;
28
+ this.logger = logger;
29
+ this.authConstants = new auth_constants_1.AuthConstants();
30
+ this.tokenHeaderName = ApiAuthMethodsLegacy_1.TOKEN_HEADER_PARAM; // Right now this is redundant bc this class and the apiClientBase have the same value for tokenHeaderName. But it's here bc this auth client should explicitly declare it anyway and the base is just a default.
31
+ }
32
+ ;
33
+ /** Logs in remotely with the given credentials.
34
+ * Returns a valid token in the headers of the response
35
+ * and the user info in the body of the response.
36
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
37
+ * @param login The human readable unique identifier for the user.
38
+ * @param password the secret held for this particular user.
39
+ * @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
40
+ */
41
+ authenticate(login, password, tenantCode) {
42
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
+ return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
44
+ var _a, _b, _c, _d, _e;
45
+ try {
46
+ let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_LOGIN);
47
+ let req = { login: login, password: password.trim(), tenantCode: tenantCode };
48
+ let options = {
49
+ "baseURL": this.core.apiRootUrl,
50
+ "headers": { "content-type": "application/json" }
51
+ };
52
+ // let apiResponse = await axios.post<contracts.SingleResult<TenantUser>>(url, req, options);
53
+ // let result = this.convertToTokenHolderResponse(apiResponse);
54
+ let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
55
+ if (httpResp.data === undefined) {
56
+ throw new Error(`Authentication request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
57
+ }
58
+ let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
59
+ if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
60
+ this.core.authToken = result.output.token;
61
+ }
62
+ resolve(result);
63
+ }
64
+ catch (err) {
65
+ let output = new contracts.SingleResult(false, `Error during authenticate: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
66
+ this.logger.debug(output.message);
67
+ resolve(output);
68
+ }
69
+ }));
70
+ });
71
+ }
72
+ /** Traps the errors thrown by axios on non-200 statuses. */
73
+ executeAxiosRequest(verb, responseType, url, request, options) {
74
+ var _a, _b, _c, _d, _e, _f, _g, _h;
75
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
76
+ try {
77
+ let axr;
78
+ switch (verb) {
79
+ case codiac_common_1.httpRestVerb.POST:
80
+ axr = yield axios_1.default.post(url, request, options);
81
+ break;
82
+ case codiac_common_1.httpRestVerb.PUT:
83
+ axr = yield axios_1.default.put(url, request, options);
84
+ break;
85
+ case codiac_common_1.httpRestVerb.PATCH:
86
+ axr = yield axios_1.default.patch(url, request, options);
87
+ break;
88
+ case codiac_common_1.httpRestVerb.DELETE:
89
+ axr = yield axios_1.default.delete(url, options);
90
+ break;
91
+ default: // GET
92
+ axr = yield axios_1.default.get(url, options);
93
+ break;
94
+ }
95
+ let expected = responseType; // <-- just to satisfy TS (we want to infer the generics, dont want the caller to have to explicitly type them)
96
+ return axr; // { data: axr.data, headers: axr.headers, status: axr.status, statusText: axr.statusText };
97
+ }
98
+ catch (err) {
99
+ if (err.isAxiosError === true && err.response) {
100
+ let axErrResponse = (err.response);
101
+ this.logger.debug(`Remote api returned failure http status: ${axErrResponse.status || ""} ${axErrResponse.statusText || ""}.`); // , stringify(axr); // need json-safe-stringify
102
+ return { data: axErrResponse.data, headers: axErrResponse.headers, status: axErrResponse.status, statusText: axErrResponse.statusText };
103
+ }
104
+ else {
105
+ let result = new contracts.Result(false, `Error communicating with remote api: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : "unspecified error."}`, err);
106
+ return { data: result, headers: (_d = (_c = err.response) === null || _c === void 0 ? void 0 : _c.headers) !== null && _d !== void 0 ? _d : {}, status: (_f = (_e = err.response) === null || _e === void 0 ? void 0 : _e.status) !== null && _f !== void 0 ? _f : -1, statusText: (_h = (_g = err.response) === null || _g === void 0 ? void 0 : _g.statusText) !== null && _h !== void 0 ? _h : "" };
107
+ }
108
+ }
109
+ });
110
+ }
111
+ /** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
112
+ * throws if the axios response does not contain a data property. */
113
+ convertToTokenHolderResult(apiResponse, headers) {
114
+ let result = new contracts.SingleResult(apiResponse.success, apiResponse.message, apiResponse.error, undefined, apiResponse.validation);
115
+ if (apiResponse.output) {
116
+ let token = headers[this.tokenHeaderName];
117
+ if (!token)
118
+ throw new Error(`Authentication service did not provide a user token.`);
119
+ let exp = this.extractTokenExpiration(token);
120
+ result.output = new token_holder_1.TokenHolder(apiResponse.output, token, exp);
121
+ }
122
+ return result;
123
+ }
124
+ /** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
125
+ * throws if the axios response does not contain a data property.
126
+ * @deprecated Use `convertToTokenHolderResult()` instead.*/
127
+ convertToTokenHolderResponse(apiResponse) {
128
+ if (apiResponse.data) {
129
+ // TODO: Dont construct new - just cast or ducktype and replace the output property.
130
+ let result = new contracts.SingleResult(apiResponse.data.success, apiResponse.data.message, apiResponse.data.error, undefined, apiResponse.data.validation);
131
+ if (apiResponse.data.output) {
132
+ let token = apiResponse.headers[this.tokenHeaderName];
133
+ if (!token)
134
+ throw new Error(`Authentication service did not provide a user token.`);
135
+ let exp = this.extractTokenExpiration(token);
136
+ result.output = new token_holder_1.TokenHolder(apiResponse.data.output, token, exp);
137
+ }
138
+ return result;
139
+ }
140
+ else {
141
+ throw new Error(`Authentication request did not return an output object. HttpStatus: ${apiResponse.status} ${apiResponse.statusText}`);
142
+ }
143
+ }
144
+ /** Determines whether the given token is expired.
145
+ * @param throwOnError throws any encountered errors, including token parsing errors.
146
+ */
147
+ isExpired(token, throwOnError = false) {
148
+ try {
149
+ const exp = this.extractTokenExpiration(token);
150
+ return (exp == undefined) || !(0, codiac_common_1.isFuture)(exp);
151
+ }
152
+ catch (err) {
153
+ let newErr = new contracts.CodiacError(`Error determining expiry status: ${err.message || ""}`, err);
154
+ this.logger.detail(newErr.message);
155
+ if (throwOnError) {
156
+ throw newErr;
157
+ }
158
+ else {
159
+ return true;
160
+ }
161
+ }
162
+ }
163
+ extractTokenExpiration(token) {
164
+ let exp;
165
+ try {
166
+ const encoder = new jwt_lib_1.JwtEncoder();
167
+ const tokenObj = encoder.tryDecode(token);
168
+ const CLAIM_KEY_FOR_EXPIRATION = "exp"; // this is just a standard claim so it ought to come from the jwt lib
169
+ const rawExp = tokenObj === null || tokenObj === void 0 ? void 0 : tokenObj.payload[CLAIM_KEY_FOR_EXPIRATION];
170
+ if (rawExp) {
171
+ try {
172
+ exp = new Date(rawExp);
173
+ this.logger.trace(`Exracted token expiration (utc): ${(exp === null || exp === void 0 ? void 0 : exp.toUTCString()) || "undefined"}`);
174
+ }
175
+ catch (_a) {
176
+ this.logger.trace(`Invalid date format in token expiration: [${rawExp}]`);
177
+ }
178
+ }
179
+ return exp;
180
+ }
181
+ catch (err) {
182
+ throw new Error(`Error parsing expiration from token: ${err.message}`);
183
+ }
184
+ }
185
+ /** Provides the ability to extend an existing token.
186
+ * Returns failure for invalid or revoked tokens.
187
+ * Returns any errors encountered refreshing.
188
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
189
+ * @param currentToken The JWT token returned in a prior request.
190
+ * */
191
+ refreshToken(currentToken) {
192
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
193
+ return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
194
+ var _a, _b, _c, _d, _e;
195
+ try {
196
+ let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TOKEN_REFRESH);
197
+ let req = {};
198
+ let options = {
199
+ "baseURL": this.core.apiRootUrl,
200
+ "headers": {
201
+ "content-type": "application/json",
202
+ [this.tokenHeaderName]: currentToken
203
+ }
204
+ };
205
+ // let apiResponse = await axios.post<contracts.SingleResult<TenantUser>>(url, req, options);
206
+ // let result = this.convertToTokenHolderResponse(apiResponse);
207
+ let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
208
+ if (httpResp.data === undefined) {
209
+ throw new Error(`refreshToken request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
210
+ }
211
+ let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
212
+ if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
213
+ this.core.authToken = result.output.token;
214
+ }
215
+ resolve(result);
216
+ }
217
+ catch (err) {
218
+ let output = new contracts.SingleResult(false, `Error during refreshToken: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
219
+ this.logger.debug(output.message);
220
+ resolve(output);
221
+ }
222
+ }));
223
+ });
224
+ }
225
+ /** Retrieves the full account info for the current user (minus any passwords),
226
+ * including all tenant profiles.
227
+ * Returns failure for invalid or revoked tokens.
228
+ * Returns any errors encountered refreshing.
229
+ * NOTE: keeps the returned auth token in scope for this client instance.
230
+ * @param currentToken (optional if the client instance has already authenticated) The JWT token returned in a prior request.
231
+ */
232
+ whoAmI(currentToken) {
233
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
234
+ return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
235
+ var _a, _b, _c, _d, _e;
236
+ try {
237
+ let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TOKEN_WHOAMI);
238
+ let options = {
239
+ "baseURL": this.core.apiRootUrl,
240
+ "headers": {
241
+ "content-type": "application/json"
242
+ }
243
+ };
244
+ if (currentToken || this.core.authToken)
245
+ options.headers[this.tokenHeaderName] = currentToken || this.core.authToken;
246
+ // let apiResponse = await axios.get<contracts.SingleResult<TenantUser>>(url, options);
247
+ // let result = apiResponse.data;
248
+ // if (apiResponse.headers[RestClientBaseWithAuth.TOKEN_HEADER_PARAM]) {
249
+ // this.core.authToken = apiResponse.headers[RestClientBaseWithAuth.TOKEN_HEADER_PARAM];
250
+ // }
251
+ let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.GET, (contracts.SingleResult), url, undefined, options);
252
+ if (httpResp.data === undefined) {
253
+ throw new Error(`whoAmI request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
254
+ }
255
+ let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
256
+ if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
257
+ this.core.authToken = result.output.token;
258
+ }
259
+ resolve(httpResp.data); // result); // this method should have returned a tokenHolder, not a tenantUser.
260
+ }
261
+ catch (err) {
262
+ let output = new contracts.SingleResult(false, `Error during whoAmI: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
263
+ this.logger.debug(output.message);
264
+ resolve(output);
265
+ }
266
+ }));
267
+ });
268
+ }
269
+ /** Provides the ability to extend an existing token.
270
+ * Returns failure for invalid or revoked tokens.
271
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
272
+ * @param currentToken The JWT token returned in a prior request.
273
+ * @param tenantCode Unique identifier of the tenant being switched to.
274
+ * Returns any errors encountered refreshing. */
275
+ switchTenant(currentToken, tenantCode) {
276
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
277
+ return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
278
+ var _a, _b, _c, _d, _e;
279
+ try {
280
+ let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_SWITCH_TENANT);
281
+ let req = { newTenantCode: tenantCode };
282
+ let options = {
283
+ "baseURL": this.core.apiRootUrl,
284
+ "headers": {
285
+ "content-type": "application/json",
286
+ [this.tokenHeaderName]: currentToken
287
+ }
288
+ };
289
+ let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
290
+ if (httpResp.data === undefined) {
291
+ throw new Error(`switchTenant request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
292
+ }
293
+ let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
294
+ if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
295
+ this.core.authToken = result.output.token;
296
+ }
297
+ resolve(result);
298
+ }
299
+ catch (err) {
300
+ let output = new contracts.SingleResult(false, `Error during switchTenant: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
301
+ this.logger.debug(output.message);
302
+ resolve(output);
303
+ }
304
+ }));
305
+ });
306
+ }
307
+ /** Declares a new organization in the toyhauler system.
308
+ * The given user account is made the administrator for that organization,
309
+ * and if the new user flag is given,
310
+ * the user account will get created.
311
+ * NOTE: If successful, keeps the returned auth token in scope for this client instance.
312
+ * @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
313
+ * @param newUser Flag to create a new user account with the given credentials.
314
+ * @param userName User to be the adminstrator for the new tenant.
315
+ * @param password Password for the given user (desired password if the newuser flag is set).
316
+ * @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
317
+ * @param currentToken The JWT token returned in a prior request.
318
+ * */
319
+ registerTenant(tenantName, newUser, userName, password, tenantCode, currentToken) {
320
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
321
+ return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
322
+ var _a, _b, _c, _d;
323
+ try {
324
+ let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TENANT_REGISTER);
325
+ let req = { tenantName: tenantName, newUser: newUser, userName: userName, password: password, tenantCode: tenantCode };
326
+ let options = {
327
+ "baseURL": this.core.apiRootUrl,
328
+ "headers": {
329
+ "content-type": "application/json"
330
+ }
331
+ };
332
+ if (currentToken)
333
+ options.headers[this.tokenHeaderName] = currentToken;
334
+ // let response = await axios.post<contracts.SingleResult<AuthTenant>>(url, req, options);
335
+ // let opResult = response.data;
336
+ // if (opResult && opResult.success && response.headers[this.tokenHeaderName]) {
337
+ // this.core.authToken = response.headers[this.tokenHeaderName];
338
+ // }
339
+ // resolve(response.data);
340
+ let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
341
+ if (httpResp.data === undefined) {
342
+ throw new Error(`registerTenant request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
343
+ }
344
+ let result = httpResp.data;
345
+ if (result.success && httpResp.headers[this.tokenHeaderName]) {
346
+ this.core.authToken = httpResp.headers[this.tokenHeaderName];
347
+ }
348
+ resolve(result); // this should have been a tokenHolder result instead of an AuthTenant.
349
+ }
350
+ catch (err) {
351
+ let output = new contracts.SingleResult(false, `Error during registerTenant: ${(_c = err.name) !== null && _c !== void 0 ? _c : ""} ${(_d = err.message) !== null && _d !== void 0 ? _d : "(no error message available)"}`, err);
352
+ this.logger.debug(output.message);
353
+ resolve(output);
354
+ }
355
+ }));
356
+ });
357
+ }
358
+ };
359
+ /** Hardcoded to match the current setting on the server.
360
+ * TODO: Get this from a config that is copied from the server project to the client project on build.
361
+ */
362
+ ApiAuthMethodsLegacy.TOKEN_HEADER_PARAM = "authorization";
363
+ ApiAuthMethodsLegacy = ApiAuthMethodsLegacy_1 = tslib_1.__decorate([
364
+ (0, inversify_1.injectable)(),
365
+ tslib_1.__metadata("design:paramtypes", [api_client_base_1.ApiClientBase, Object])
366
+ ], ApiAuthMethodsLegacy);
367
+ exports.ApiAuthMethodsLegacy = ApiAuthMethodsLegacy;
368
+ //# sourceMappingURL=api-auth-methods-legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-auth-methods-legacy.js","sourceRoot":"","sources":["../../../../../src/apis/codiac-api/common/security/api-auth-methods-legacy.ts"],"names":[],"mappings":";;;;;AAAA,6BAA6B;AAC7B,yCAAuC;AACvC,iCAAiE;AAEjE,gEAAgE;AAChE,4DAA2F;AAE3F,gDAAgD;AAEhD,wDAAmD;AAEnD,qDAAiD;AACjD,iDAA6C;AAI7C;qGACqG;AAErG,IAAa,oBAAoB,4BAAjC,MAAa,oBAAoB;IAO/B,MAAM;IACN,+JAA+J;IAC/J,qNAAqN;IACrN,MAAM;IACN,gFAAgF;IAChF,0CAA0C;IAC1C,wRAAwR;IACxR,IAAI;IAEJ,YAAoB,IAAmB,EAAU,MAAqB;QAAlD,SAAI,GAAJ,IAAI,CAAe;QAAU,WAAM,GAAN,MAAM,CAAe;QAS5D,kBAAa,GAAkB,IAAI,8BAAa,EAAE,CAAC;QAR3D,IAAI,CAAC,eAAe,GAAG,sBAAoB,CAAC,kBAAkB,CAAC,CAAE,kNAAkN;IACrR,CAAC;IAAA,CAAC;IAWF;;;;;;;OAOG;IACU,YAAY,CAAC,KAAa,EAAE,QAAgB,EAAE,UAAmB;;YAC5E,OAAO,IAAI,OAAO,CAAsC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;;gBAChF,IAAI;oBACF,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;oBAC5F,IAAI,GAAG,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;oBAC9E,IAAI,OAAO,GAAG;wBACZ,SAAS,EAAE,IAAI,CAAC,IAAI,CAA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CAAgC,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE,IAAI,MAAA,GAAG,CAAC,OAAO,mCAAI,8BAA8B,EAAE,EAAE,GAAG,CAAC,CAAC;oBACnK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAQ,CAAC,CAAA;oBAClC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjB;YACH,CAAC,CAAA,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAA;AA/VC;;GAEG;AACI,uCAAkB,GAAG,eAAe,CAAC;AALjC,oBAAoB;IADhC,IAAA,sBAAU,GAAE;6CAiBe,+BAAa;GAhB5B,oBAAoB,CAiWhC;AAjWY,oDAAoB"}
@@ -0,0 +1,15 @@
1
+ /** THIS IS A REDUNDANT COPY of the one in: auth-sdk/authentication-plugin.ts. */
2
+ export declare class AuthConstants {
3
+ /** The url segments prepended to all the auth endpoint routes. */
4
+ readonly ROUTE_PREFIX = "auth";
5
+ /** The default route for the login endpoint (unprefixed). */
6
+ readonly ROUTE_SUBPATH_LOGIN = "login";
7
+ /** The default route for the tenant registration endpoint (unprefixed). */
8
+ readonly ROUTE_SUBPATH_TENANT_REGISTER = "tenants";
9
+ /** The default route for the switch tenant endpoint (unprefixed). */
10
+ readonly ROUTE_SUBPATH_SWITCH_TENANT = "switch";
11
+ /** The default route for the token refresh endpoint (unprefixed). */
12
+ readonly ROUTE_SUBPATH_TOKEN_REFRESH = "refresh";
13
+ /** The default route for the WhoAmI endpoint (unprefixed). */
14
+ readonly ROUTE_SUBPATH_TOKEN_WHOAMI = "whoami";
15
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthConstants = void 0;
4
+ /** THIS IS A REDUNDANT COPY of the one in: auth-sdk/authentication-plugin.ts. */
5
+ class AuthConstants {
6
+ constructor() {
7
+ /** The url segments prepended to all the auth endpoint routes. */
8
+ this.ROUTE_PREFIX = "auth";
9
+ /** The default route for the login endpoint (unprefixed). */
10
+ this.ROUTE_SUBPATH_LOGIN = "login";
11
+ /** The default route for the tenant registration endpoint (unprefixed). */
12
+ this.ROUTE_SUBPATH_TENANT_REGISTER = "tenants";
13
+ /** The default route for the switch tenant endpoint (unprefixed). */
14
+ this.ROUTE_SUBPATH_SWITCH_TENANT = "switch";
15
+ /** The default route for the token refresh endpoint (unprefixed). */
16
+ this.ROUTE_SUBPATH_TOKEN_REFRESH = "refresh";
17
+ /** The default route for the WhoAmI endpoint (unprefixed). */
18
+ this.ROUTE_SUBPATH_TOKEN_WHOAMI = "whoami";
19
+ }
20
+ }
21
+ exports.AuthConstants = AuthConstants;
22
+ //# sourceMappingURL=auth-constants.js.map
@@ -0,0 +1,44 @@
1
+ import * as contracts from "@codiac.io/codiac-common/contracts";
2
+ import { AuthTenant, TenantUser } from "@codiac.io/codiac-common/security";
3
+ import { TokenHolder } from "./token-holder";
4
+ export interface IAuthClient {
5
+ /** Logs in remotely with the given credentials.
6
+ * Returns a valid token in the headers of the response
7
+ * and the user info in the body of the response.
8
+ * @param login The human readable unique identifier for the user.
9
+ * @param password the secret held for this particular user.
10
+ * @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
11
+ */
12
+ authenticate(login: string, password: string, tenantCode?: string): Promise<contracts.SingleResult<TokenHolder>>;
13
+ /** Provides the ability to extend an existing token.
14
+ * Returns failure for invalid or revoked tokens.
15
+ * Returns any errors encountered refreshing.
16
+ * @param currentToken The JWT token returned in a prior request.
17
+ * */
18
+ refreshToken(currentToken: string): Promise<contracts.SingleResult<TokenHolder>>;
19
+ /** Retrieves the full account info for the current user (minus any passwords),
20
+ * including all tenant profiles.
21
+ * Returns failure for invalid or revoked tokens.
22
+ * Returns any errors encountered refreshing.
23
+ * NOTE: keeps the returned auth token in scope for this client instance.
24
+ * @param currentToken The JWT token returned in a prior request. */
25
+ whoAmI(currentToken: string): Promise<contracts.SingleResult<TenantUser>>;
26
+ /** Provides the ability to extend an existing token.
27
+ * Returns failure for invalid or revoked tokens.
28
+ * @param currentToken The JWT token returned in a prior request.
29
+ * @param tenantCode Unique identifier of the tenant being switched to.
30
+ * Returns any errors encountered refreshing. */
31
+ switchTenant(currentToken: string, tenantCode: string): Promise<contracts.SingleResult<TokenHolder>>;
32
+ /** Declares a new organization in the toyhauler system.
33
+ * The given user account is made the administrator for that organization,
34
+ * and if the new user flag is given,
35
+ * the user account will get created.
36
+ * @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
37
+ * @param newUser Flag to create a new user account with the given credentials.
38
+ * @param userName User to be the adminstrator for the new tenant.
39
+ * @param password Password for the given user (desired password if the newuser flag is set).
40
+ * @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
41
+ * @param currentToken The JWT token returned in a prior request.
42
+ * */
43
+ registerTenant(tenantName: string, newUser: boolean, userName: string, password: string, tenantCode?: string, currentToken?: string): Promise<contracts.SingleResult<AuthTenant>>;
44
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-auth-client.js.map
@@ -0,0 +1,13 @@
1
+ import { TenantUser } from "@codiac.io/codiac-common/security";
2
+ export declare class TokenHolder {
3
+ user: TenantUser;
4
+ token: string;
5
+ expiration: Date | undefined;
6
+ /**
7
+ * @param user A user or principal (ie: tenantCode is optional)
8
+ * @param token The JWT returned by the auth api. If there's a tenantCode,
9
+ * then the token is a tenant-user token. Otherwise just a user token.
10
+ * @param expiration in GMT
11
+ */
12
+ constructor(user: TenantUser, token: string, expiration: Date | undefined);
13
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenHolder = void 0;
4
+ class TokenHolder {
5
+ /**
6
+ * @param user A user or principal (ie: tenantCode is optional)
7
+ * @param token The JWT returned by the auth api. If there's a tenantCode,
8
+ * then the token is a tenant-user token. Otherwise just a user token.
9
+ * @param expiration in GMT
10
+ */
11
+ constructor(user, token, expiration) {
12
+ this.user = user;
13
+ this.token = token;
14
+ this.expiration = expiration;
15
+ }
16
+ }
17
+ exports.TokenHolder = TokenHolder;
18
+ //# sourceMappingURL=token-holder.js.map