@ttctl/cli 0.0.0 → 0.1.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/README.md +44 -9
  2. package/dist/commands/applications/index.d.ts +21 -0
  3. package/dist/commands/applications/index.d.ts.map +1 -0
  4. package/dist/commands/applications/index.js +87 -0
  5. package/dist/commands/applications/index.js.map +1 -0
  6. package/dist/commands/applications/list.d.ts +55 -0
  7. package/dist/commands/applications/list.d.ts.map +1 -0
  8. package/dist/commands/applications/list.js +106 -0
  9. package/dist/commands/applications/list.js.map +1 -0
  10. package/dist/commands/applications/shared.d.ts +14 -0
  11. package/dist/commands/applications/shared.d.ts.map +1 -0
  12. package/dist/commands/applications/shared.js +19 -0
  13. package/dist/commands/applications/shared.js.map +1 -0
  14. package/dist/commands/applications/show.d.ts +51 -0
  15. package/dist/commands/applications/show.d.ts.map +1 -0
  16. package/dist/commands/applications/show.js +154 -0
  17. package/dist/commands/applications/show.js.map +1 -0
  18. package/dist/commands/applications/stats.d.ts +42 -0
  19. package/dist/commands/applications/stats.d.ts.map +1 -0
  20. package/dist/commands/applications/stats.js +69 -0
  21. package/dist/commands/applications/stats.js.map +1 -0
  22. package/dist/commands/auth/index.d.ts +17 -0
  23. package/dist/commands/auth/index.d.ts.map +1 -0
  24. package/dist/commands/auth/index.js +69 -0
  25. package/dist/commands/auth/index.js.map +1 -0
  26. package/dist/commands/auth/init.d.ts +98 -0
  27. package/dist/commands/auth/init.d.ts.map +1 -0
  28. package/dist/commands/auth/init.js +387 -0
  29. package/dist/commands/auth/init.js.map +1 -0
  30. package/dist/commands/auth/signin.d.ts +81 -0
  31. package/dist/commands/auth/signin.d.ts.map +1 -0
  32. package/dist/commands/auth/signin.js +145 -0
  33. package/dist/commands/auth/signin.js.map +1 -0
  34. package/dist/commands/auth/signout.d.ts +133 -0
  35. package/dist/commands/auth/signout.d.ts.map +1 -0
  36. package/dist/commands/auth/signout.js +172 -0
  37. package/dist/commands/auth/signout.js.map +1 -0
  38. package/dist/commands/auth/status.d.ts +62 -0
  39. package/dist/commands/auth/status.d.ts.map +1 -0
  40. package/dist/commands/auth/status.js +98 -0
  41. package/dist/commands/auth/status.js.map +1 -0
  42. package/dist/commands/availability/allocated-hours.d.ts +27 -0
  43. package/dist/commands/availability/allocated-hours.d.ts.map +1 -0
  44. package/dist/commands/availability/allocated-hours.js +61 -0
  45. package/dist/commands/availability/allocated-hours.js.map +1 -0
  46. package/dist/commands/availability/index.d.ts +30 -0
  47. package/dist/commands/availability/index.d.ts.map +1 -0
  48. package/dist/commands/availability/index.js +124 -0
  49. package/dist/commands/availability/index.js.map +1 -0
  50. package/dist/commands/availability/shared.d.ts +11 -0
  51. package/dist/commands/availability/shared.d.ts.map +1 -0
  52. package/dist/commands/availability/shared.js +30 -0
  53. package/dist/commands/availability/shared.js.map +1 -0
  54. package/dist/commands/availability/show.d.ts +32 -0
  55. package/dist/commands/availability/show.d.ts.map +1 -0
  56. package/dist/commands/availability/show.js +86 -0
  57. package/dist/commands/availability/show.js.map +1 -0
  58. package/dist/commands/availability/working-hours.d.ts +53 -0
  59. package/dist/commands/availability/working-hours.d.ts.map +1 -0
  60. package/dist/commands/availability/working-hours.js +151 -0
  61. package/dist/commands/availability/working-hours.js.map +1 -0
  62. package/dist/commands/contracts/index.d.ts +69 -0
  63. package/dist/commands/contracts/index.d.ts.map +1 -0
  64. package/dist/commands/contracts/index.js +198 -0
  65. package/dist/commands/contracts/index.js.map +1 -0
  66. package/dist/commands/engagements/breaks.d.ts +81 -0
  67. package/dist/commands/engagements/breaks.d.ts.map +1 -0
  68. package/dist/commands/engagements/breaks.js +229 -0
  69. package/dist/commands/engagements/breaks.js.map +1 -0
  70. package/dist/commands/engagements/index.d.ts +29 -0
  71. package/dist/commands/engagements/index.d.ts.map +1 -0
  72. package/dist/commands/engagements/index.js +172 -0
  73. package/dist/commands/engagements/index.js.map +1 -0
  74. package/dist/commands/engagements/list.d.ts +49 -0
  75. package/dist/commands/engagements/list.d.ts.map +1 -0
  76. package/dist/commands/engagements/list.js +95 -0
  77. package/dist/commands/engagements/list.js.map +1 -0
  78. package/dist/commands/engagements/shared.d.ts +10 -0
  79. package/dist/commands/engagements/shared.d.ts.map +1 -0
  80. package/dist/commands/engagements/shared.js +31 -0
  81. package/dist/commands/engagements/shared.js.map +1 -0
  82. package/dist/commands/engagements/show.d.ts +19 -0
  83. package/dist/commands/engagements/show.d.ts.map +1 -0
  84. package/dist/commands/engagements/show.js +150 -0
  85. package/dist/commands/engagements/show.js.map +1 -0
  86. package/dist/commands/engagements/stats.d.ts +24 -0
  87. package/dist/commands/engagements/stats.d.ts.map +1 -0
  88. package/dist/commands/engagements/stats.js +51 -0
  89. package/dist/commands/engagements/stats.js.map +1 -0
  90. package/dist/commands/jobs/index.d.ts +49 -0
  91. package/dist/commands/jobs/index.d.ts.map +1 -0
  92. package/dist/commands/jobs/index.js +304 -0
  93. package/dist/commands/jobs/index.js.map +1 -0
  94. package/dist/commands/jobs/interest.d.ts +65 -0
  95. package/dist/commands/jobs/interest.d.ts.map +1 -0
  96. package/dist/commands/jobs/interest.js +172 -0
  97. package/dist/commands/jobs/interest.js.map +1 -0
  98. package/dist/commands/jobs/list.d.ts +81 -0
  99. package/dist/commands/jobs/list.d.ts.map +1 -0
  100. package/dist/commands/jobs/list.js +157 -0
  101. package/dist/commands/jobs/list.js.map +1 -0
  102. package/dist/commands/jobs/search.d.ts +71 -0
  103. package/dist/commands/jobs/search.d.ts.map +1 -0
  104. package/dist/commands/jobs/search.js +163 -0
  105. package/dist/commands/jobs/search.js.map +1 -0
  106. package/dist/commands/jobs/shared.d.ts +79 -0
  107. package/dist/commands/jobs/shared.d.ts.map +1 -0
  108. package/dist/commands/jobs/shared.js +133 -0
  109. package/dist/commands/jobs/shared.js.map +1 -0
  110. package/dist/commands/jobs/show.d.ts +20 -0
  111. package/dist/commands/jobs/show.d.ts.map +1 -0
  112. package/dist/commands/jobs/show.js +135 -0
  113. package/dist/commands/jobs/show.js.map +1 -0
  114. package/dist/commands/payments/index.d.ts +34 -0
  115. package/dist/commands/payments/index.d.ts.map +1 -0
  116. package/dist/commands/payments/index.js +160 -0
  117. package/dist/commands/payments/index.js.map +1 -0
  118. package/dist/commands/payments/methods.d.ts +17 -0
  119. package/dist/commands/payments/methods.d.ts.map +1 -0
  120. package/dist/commands/payments/methods.js +79 -0
  121. package/dist/commands/payments/methods.js.map +1 -0
  122. package/dist/commands/payments/payouts.d.ts +44 -0
  123. package/dist/commands/payments/payouts.d.ts.map +1 -0
  124. package/dist/commands/payments/payouts.js +147 -0
  125. package/dist/commands/payments/payouts.js.map +1 -0
  126. package/dist/commands/payments/rate.d.ts +48 -0
  127. package/dist/commands/payments/rate.d.ts.map +1 -0
  128. package/dist/commands/payments/rate.js +229 -0
  129. package/dist/commands/payments/rate.js.map +1 -0
  130. package/dist/commands/payments/shared.d.ts +10 -0
  131. package/dist/commands/payments/shared.d.ts.map +1 -0
  132. package/dist/commands/payments/shared.js +27 -0
  133. package/dist/commands/payments/shared.js.map +1 -0
  134. package/dist/commands/profile/basic/index.d.ts +18 -0
  135. package/dist/commands/profile/basic/index.d.ts.map +1 -0
  136. package/dist/commands/profile/basic/index.js +79 -0
  137. package/dist/commands/profile/basic/index.js.map +1 -0
  138. package/dist/commands/profile/basic/photo-show.d.ts +28 -0
  139. package/dist/commands/profile/basic/photo-show.d.ts.map +1 -0
  140. package/dist/commands/profile/basic/photo-show.js +112 -0
  141. package/dist/commands/profile/basic/photo-show.js.map +1 -0
  142. package/dist/commands/profile/basic/photo-upload.d.ts +10 -0
  143. package/dist/commands/profile/basic/photo-upload.d.ts.map +1 -0
  144. package/dist/commands/profile/basic/photo-upload.js +61 -0
  145. package/dist/commands/profile/basic/photo-upload.js.map +1 -0
  146. package/dist/commands/profile/basic/set.d.ts +54 -0
  147. package/dist/commands/profile/basic/set.d.ts.map +1 -0
  148. package/dist/commands/profile/basic/set.js +174 -0
  149. package/dist/commands/profile/basic/set.js.map +1 -0
  150. package/dist/commands/profile/basic/show.d.ts +95 -0
  151. package/dist/commands/profile/basic/show.d.ts.map +1 -0
  152. package/dist/commands/profile/basic/show.js +310 -0
  153. package/dist/commands/profile/basic/show.js.map +1 -0
  154. package/dist/commands/profile/certifications/index.d.ts +40 -0
  155. package/dist/commands/profile/certifications/index.d.ts.map +1 -0
  156. package/dist/commands/profile/certifications/index.js +350 -0
  157. package/dist/commands/profile/certifications/index.js.map +1 -0
  158. package/dist/commands/profile/education/index.d.ts +37 -0
  159. package/dist/commands/profile/education/index.d.ts.map +1 -0
  160. package/dist/commands/profile/education/index.js +331 -0
  161. package/dist/commands/profile/education/index.js.map +1 -0
  162. package/dist/commands/profile/employment/index.d.ts +49 -0
  163. package/dist/commands/profile/employment/index.d.ts.map +1 -0
  164. package/dist/commands/profile/employment/index.js +425 -0
  165. package/dist/commands/profile/employment/index.js.map +1 -0
  166. package/dist/commands/profile/external/_shared.d.ts +35 -0
  167. package/dist/commands/profile/external/_shared.d.ts.map +1 -0
  168. package/dist/commands/profile/external/_shared.js +59 -0
  169. package/dist/commands/profile/external/_shared.js.map +1 -0
  170. package/dist/commands/profile/external/advanced-wizard-show.d.ts +15 -0
  171. package/dist/commands/profile/external/advanced-wizard-show.d.ts.map +1 -0
  172. package/dist/commands/profile/external/advanced-wizard-show.js +82 -0
  173. package/dist/commands/profile/external/advanced-wizard-show.js.map +1 -0
  174. package/dist/commands/profile/external/custom-requirements-set.d.ts +32 -0
  175. package/dist/commands/profile/external/custom-requirements-set.d.ts.map +1 -0
  176. package/dist/commands/profile/external/custom-requirements-set.js +116 -0
  177. package/dist/commands/profile/external/custom-requirements-set.js.map +1 -0
  178. package/dist/commands/profile/external/custom-requirements-show.d.ts +16 -0
  179. package/dist/commands/profile/external/custom-requirements-show.d.ts.map +1 -0
  180. package/dist/commands/profile/external/custom-requirements-show.js +84 -0
  181. package/dist/commands/profile/external/custom-requirements-show.js.map +1 -0
  182. package/dist/commands/profile/external/index.d.ts +21 -0
  183. package/dist/commands/profile/external/index.d.ts.map +1 -0
  184. package/dist/commands/profile/external/index.js +113 -0
  185. package/dist/commands/profile/external/index.js.map +1 -0
  186. package/dist/commands/profile/external/readiness.d.ts +15 -0
  187. package/dist/commands/profile/external/readiness.d.ts.map +1 -0
  188. package/dist/commands/profile/external/readiness.js +104 -0
  189. package/dist/commands/profile/external/readiness.js.map +1 -0
  190. package/dist/commands/profile/external/recommendations.d.ts +17 -0
  191. package/dist/commands/profile/external/recommendations.d.ts.map +1 -0
  192. package/dist/commands/profile/external/recommendations.js +97 -0
  193. package/dist/commands/profile/external/recommendations.js.map +1 -0
  194. package/dist/commands/profile/external/show.d.ts +22 -0
  195. package/dist/commands/profile/external/show.d.ts.map +1 -0
  196. package/dist/commands/profile/external/show.js +83 -0
  197. package/dist/commands/profile/external/show.js.map +1 -0
  198. package/dist/commands/profile/external/update.d.ts +37 -0
  199. package/dist/commands/profile/external/update.d.ts.map +1 -0
  200. package/dist/commands/profile/external/update.js +125 -0
  201. package/dist/commands/profile/external/update.js.map +1 -0
  202. package/dist/commands/profile/index.d.ts +16 -0
  203. package/dist/commands/profile/index.d.ts.map +1 -0
  204. package/dist/commands/profile/index.js +81 -0
  205. package/dist/commands/profile/index.js.map +1 -0
  206. package/dist/commands/profile/industries/index.d.ts +43 -0
  207. package/dist/commands/profile/industries/index.d.ts.map +1 -0
  208. package/dist/commands/profile/industries/index.js +258 -0
  209. package/dist/commands/profile/industries/index.js.map +1 -0
  210. package/dist/commands/profile/portfolio/add.d.ts +43 -0
  211. package/dist/commands/profile/portfolio/add.d.ts.map +1 -0
  212. package/dist/commands/profile/portfolio/add.js +181 -0
  213. package/dist/commands/profile/portfolio/add.js.map +1 -0
  214. package/dist/commands/profile/portfolio/highlight.d.ts +11 -0
  215. package/dist/commands/profile/portfolio/highlight.d.ts.map +1 -0
  216. package/dist/commands/profile/portfolio/highlight.js +31 -0
  217. package/dist/commands/profile/portfolio/highlight.js.map +1 -0
  218. package/dist/commands/profile/portfolio/index.d.ts +16 -0
  219. package/dist/commands/profile/portfolio/index.d.ts.map +1 -0
  220. package/dist/commands/profile/portfolio/index.js +121 -0
  221. package/dist/commands/profile/portfolio/index.js.map +1 -0
  222. package/dist/commands/profile/portfolio/list.d.ts +83 -0
  223. package/dist/commands/profile/portfolio/list.d.ts.map +1 -0
  224. package/dist/commands/profile/portfolio/list.js +189 -0
  225. package/dist/commands/profile/portfolio/list.js.map +1 -0
  226. package/dist/commands/profile/portfolio/remove.d.ts +9 -0
  227. package/dist/commands/profile/portfolio/remove.d.ts.map +1 -0
  228. package/dist/commands/profile/portfolio/remove.js +24 -0
  229. package/dist/commands/profile/portfolio/remove.js.map +1 -0
  230. package/dist/commands/profile/portfolio/reorder.d.ts +17 -0
  231. package/dist/commands/profile/portfolio/reorder.d.ts.map +1 -0
  232. package/dist/commands/profile/portfolio/reorder.js +135 -0
  233. package/dist/commands/profile/portfolio/reorder.js.map +1 -0
  234. package/dist/commands/profile/portfolio/shared.d.ts +8 -0
  235. package/dist/commands/profile/portfolio/shared.d.ts.map +1 -0
  236. package/dist/commands/profile/portfolio/shared.js +10 -0
  237. package/dist/commands/profile/portfolio/shared.js.map +1 -0
  238. package/dist/commands/profile/portfolio/update.d.ts +18 -0
  239. package/dist/commands/profile/portfolio/update.d.ts.map +1 -0
  240. package/dist/commands/profile/portfolio/update.js +77 -0
  241. package/dist/commands/profile/portfolio/update.js.map +1 -0
  242. package/dist/commands/profile/portfolio/upload.d.ts +8 -0
  243. package/dist/commands/profile/portfolio/upload.d.ts.map +1 -0
  244. package/dist/commands/profile/portfolio/upload.js +131 -0
  245. package/dist/commands/profile/portfolio/upload.js.map +1 -0
  246. package/dist/commands/profile/resume/cancel-upload.d.ts +9 -0
  247. package/dist/commands/profile/resume/cancel-upload.d.ts.map +1 -0
  248. package/dist/commands/profile/resume/cancel-upload.js +30 -0
  249. package/dist/commands/profile/resume/cancel-upload.js.map +1 -0
  250. package/dist/commands/profile/resume/index.d.ts +15 -0
  251. package/dist/commands/profile/resume/index.d.ts.map +1 -0
  252. package/dist/commands/profile/resume/index.js +42 -0
  253. package/dist/commands/profile/resume/index.js.map +1 -0
  254. package/dist/commands/profile/resume/upload.d.ts +16 -0
  255. package/dist/commands/profile/resume/upload.d.ts.map +1 -0
  256. package/dist/commands/profile/resume/upload.js +65 -0
  257. package/dist/commands/profile/resume/upload.js.map +1 -0
  258. package/dist/commands/profile/reviews/_shared.d.ts +9 -0
  259. package/dist/commands/profile/reviews/_shared.d.ts.map +1 -0
  260. package/dist/commands/profile/reviews/_shared.js +15 -0
  261. package/dist/commands/profile/reviews/_shared.js.map +1 -0
  262. package/dist/commands/profile/reviews/approve-item.d.ts +30 -0
  263. package/dist/commands/profile/reviews/approve-item.d.ts.map +1 -0
  264. package/dist/commands/profile/reviews/approve-item.js +82 -0
  265. package/dist/commands/profile/reviews/approve-item.js.map +1 -0
  266. package/dist/commands/profile/reviews/approve-section.d.ts +15 -0
  267. package/dist/commands/profile/reviews/approve-section.d.ts.map +1 -0
  268. package/dist/commands/profile/reviews/approve-section.js +67 -0
  269. package/dist/commands/profile/reviews/approve-section.js.map +1 -0
  270. package/dist/commands/profile/reviews/index.d.ts +19 -0
  271. package/dist/commands/profile/reviews/index.d.ts.map +1 -0
  272. package/dist/commands/profile/reviews/index.js +71 -0
  273. package/dist/commands/profile/reviews/index.js.map +1 -0
  274. package/dist/commands/profile/reviews/list.d.ts +17 -0
  275. package/dist/commands/profile/reviews/list.d.ts.map +1 -0
  276. package/dist/commands/profile/reviews/list.js +96 -0
  277. package/dist/commands/profile/reviews/list.js.map +1 -0
  278. package/dist/commands/profile/reviews/submit-for-review.d.ts +16 -0
  279. package/dist/commands/profile/reviews/submit-for-review.d.ts.map +1 -0
  280. package/dist/commands/profile/reviews/submit-for-review.js +65 -0
  281. package/dist/commands/profile/reviews/submit-for-review.js.map +1 -0
  282. package/dist/commands/profile/shared.d.ts +46 -0
  283. package/dist/commands/profile/shared.d.ts.map +1 -0
  284. package/dist/commands/profile/shared.js +111 -0
  285. package/dist/commands/profile/shared.js.map +1 -0
  286. package/dist/commands/profile/skills/index.d.ts +29 -0
  287. package/dist/commands/profile/skills/index.d.ts.map +1 -0
  288. package/dist/commands/profile/skills/index.js +475 -0
  289. package/dist/commands/profile/skills/index.js.map +1 -0
  290. package/dist/commands/profile/visas/add.d.ts +19 -0
  291. package/dist/commands/profile/visas/add.d.ts.map +1 -0
  292. package/dist/commands/profile/visas/add.js +37 -0
  293. package/dist/commands/profile/visas/add.js.map +1 -0
  294. package/dist/commands/profile/visas/index.d.ts +13 -0
  295. package/dist/commands/profile/visas/index.d.ts.map +1 -0
  296. package/dist/commands/profile/visas/index.js +69 -0
  297. package/dist/commands/profile/visas/index.js.map +1 -0
  298. package/dist/commands/profile/visas/list.d.ts +40 -0
  299. package/dist/commands/profile/visas/list.d.ts.map +1 -0
  300. package/dist/commands/profile/visas/list.js +115 -0
  301. package/dist/commands/profile/visas/list.js.map +1 -0
  302. package/dist/commands/profile/visas/remove.d.ts +8 -0
  303. package/dist/commands/profile/visas/remove.d.ts.map +1 -0
  304. package/dist/commands/profile/visas/remove.js +23 -0
  305. package/dist/commands/profile/visas/remove.js.map +1 -0
  306. package/dist/commands/profile/visas/shared.d.ts +11 -0
  307. package/dist/commands/profile/visas/shared.d.ts.map +1 -0
  308. package/dist/commands/profile/visas/shared.js +16 -0
  309. package/dist/commands/profile/visas/shared.js.map +1 -0
  310. package/dist/commands/profile/visas/update.d.ts +13 -0
  311. package/dist/commands/profile/visas/update.d.ts.map +1 -0
  312. package/dist/commands/profile/visas/update.js +44 -0
  313. package/dist/commands/profile/visas/update.js.map +1 -0
  314. package/dist/commands/timesheet/index.d.ts +24 -0
  315. package/dist/commands/timesheet/index.d.ts.map +1 -0
  316. package/dist/commands/timesheet/index.js +98 -0
  317. package/dist/commands/timesheet/index.js.map +1 -0
  318. package/dist/commands/timesheet/list.d.ts +40 -0
  319. package/dist/commands/timesheet/list.d.ts.map +1 -0
  320. package/dist/commands/timesheet/list.js +79 -0
  321. package/dist/commands/timesheet/list.js.map +1 -0
  322. package/dist/commands/timesheet/shared.d.ts +10 -0
  323. package/dist/commands/timesheet/shared.d.ts.map +1 -0
  324. package/dist/commands/timesheet/shared.js +35 -0
  325. package/dist/commands/timesheet/shared.js.map +1 -0
  326. package/dist/commands/timesheet/show.d.ts +19 -0
  327. package/dist/commands/timesheet/show.d.ts.map +1 -0
  328. package/dist/commands/timesheet/show.js +109 -0
  329. package/dist/commands/timesheet/show.js.map +1 -0
  330. package/dist/commands/timesheet/submit.d.ts +50 -0
  331. package/dist/commands/timesheet/submit.d.ts.map +1 -0
  332. package/dist/commands/timesheet/submit.js +151 -0
  333. package/dist/commands/timesheet/submit.js.map +1 -0
  334. package/dist/crash-handlers.d.ts +67 -0
  335. package/dist/crash-handlers.d.ts.map +1 -0
  336. package/dist/crash-handlers.js +78 -0
  337. package/dist/crash-handlers.js.map +1 -0
  338. package/dist/errors.d.ts +45 -0
  339. package/dist/errors.d.ts.map +1 -0
  340. package/dist/errors.js +57 -0
  341. package/dist/errors.js.map +1 -0
  342. package/dist/index.d.ts +8 -0
  343. package/dist/index.d.ts.map +1 -0
  344. package/dist/index.js +15 -0
  345. package/dist/index.js.map +1 -0
  346. package/dist/lib/config-context.d.ts +41 -0
  347. package/dist/lib/config-context.d.ts.map +1 -0
  348. package/dist/lib/config-context.js +74 -0
  349. package/dist/lib/config-context.js.map +1 -0
  350. package/dist/lib/dry-run.d.ts +70 -0
  351. package/dist/lib/dry-run.d.ts.map +1 -0
  352. package/dist/lib/dry-run.js +114 -0
  353. package/dist/lib/dry-run.js.map +1 -0
  354. package/dist/lib/empty-state-cta.d.ts +63 -0
  355. package/dist/lib/empty-state-cta.d.ts.map +1 -0
  356. package/dist/lib/empty-state-cta.js +88 -0
  357. package/dist/lib/empty-state-cta.js.map +1 -0
  358. package/dist/lib/envelopes.d.ts +540 -0
  359. package/dist/lib/envelopes.d.ts.map +1 -0
  360. package/dist/lib/envelopes.js +598 -0
  361. package/dist/lib/envelopes.js.map +1 -0
  362. package/dist/lib/error-routing.d.ts +49 -0
  363. package/dist/lib/error-routing.d.ts.map +1 -0
  364. package/dist/lib/error-routing.js +72 -0
  365. package/dist/lib/error-routing.js.map +1 -0
  366. package/dist/lib/format-helpers.d.ts +65 -0
  367. package/dist/lib/format-helpers.d.ts.map +1 -0
  368. package/dist/lib/format-helpers.js +79 -0
  369. package/dist/lib/format-helpers.js.map +1 -0
  370. package/dist/lib/format-overrides.d.ts +81 -0
  371. package/dist/lib/format-overrides.d.ts.map +1 -0
  372. package/dist/lib/format-overrides.js +55 -0
  373. package/dist/lib/format-overrides.js.map +1 -0
  374. package/dist/lib/freetext.d.ts +83 -0
  375. package/dist/lib/freetext.d.ts.map +1 -0
  376. package/dist/lib/freetext.js +182 -0
  377. package/dist/lib/freetext.js.map +1 -0
  378. package/dist/lib/kill-switch-hook.d.ts +49 -0
  379. package/dist/lib/kill-switch-hook.d.ts.map +1 -0
  380. package/dist/lib/kill-switch-hook.js +34 -0
  381. package/dist/lib/kill-switch-hook.js.map +1 -0
  382. package/dist/lib/output.d.ts +173 -0
  383. package/dist/lib/output.d.ts.map +1 -0
  384. package/dist/lib/output.js +177 -0
  385. package/dist/lib/output.js.map +1 -0
  386. package/dist/lib/pagination.d.ts +49 -0
  387. package/dist/lib/pagination.d.ts.map +1 -0
  388. package/dist/lib/pagination.js +36 -0
  389. package/dist/lib/pagination.js.map +1 -0
  390. package/dist/program.d.ts +80 -0
  391. package/dist/program.d.ts.map +1 -0
  392. package/dist/program.js +273 -0
  393. package/dist/program.js.map +1 -0
  394. package/package.json +35 -13
  395. package/index.js +0 -7
@@ -0,0 +1,350 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import Table from "cli-table3";
4
+ import { DateInputError, parseDateInput, profile } from "@ttctl/core";
5
+ import { Command, Option } from "commander";
6
+ import { emitAddSuccess, emitErrorAndExit, emitRemoveSuccess, emitUpdateSuccess, wrapListEnvelope, } from "../../../lib/envelopes.js";
7
+ import { OUTPUT_FORMATS, emitResult } from "../../../lib/output.js";
8
+ import { loadAuthTokenOrExit, presentSubDomainError } from "../shared.js";
9
+ /**
10
+ * Build the `ttctl profile certifications` command tree.
11
+ *
12
+ * The canonical sub-domain name is `certifications`; the CLI registers
13
+ * `certs` as a Commander.js alias so users can type either form. Per
14
+ * project policy (see issue #72), aliases are CLI-only — MCP tool names
15
+ * use ONLY the canonical name.
16
+ *
17
+ * Five leaves:
18
+ * - `add --name --issuer [--issued --expires]`
19
+ * - `update <id> [field-flags]`
20
+ * - `remove <id>`
21
+ * - `show <id> [-o text|json|table]`
22
+ * - `highlight <id>`
23
+ *
24
+ * Date input flags accept ISO-8601 (`2023-01-15`) or year-only (`2023`).
25
+ * Certifications store month + year (separate Int fields) so the helper
26
+ * preserves the month component and ignores any provided day.
27
+ */
28
+ export function buildProfileCertificationsCommand() {
29
+ const certs = new Command("certifications")
30
+ .alias("certs")
31
+ .description("View and update the certifications section of your profile");
32
+ certs
33
+ .command("add")
34
+ .description("Add a new certification entry to your profile")
35
+ .requiredOption("--name <text>", "certification name (mapped to certificate)")
36
+ .requiredOption("--issuer <text>", "issuing organization (mapped to institution)")
37
+ .option("--issued <date>", "issue date — ISO-8601 (YYYY-MM-DD) or year (YYYY)")
38
+ .option("--expires <date>", "expiration date — ISO-8601 or year")
39
+ .option("--link <url>", "credential URL (optional)")
40
+ .option("--number <text>", "credential ID / certificate number (optional)")
41
+ .addOption(new Option("-o, --output <format>", "output format")
42
+ .choices(OUTPUT_FORMATS)
43
+ .default("pretty"))
44
+ .action(async (options) => {
45
+ await runAdd(options);
46
+ });
47
+ certs
48
+ .command("update")
49
+ .description("Update an existing certification entry by id")
50
+ .argument("<id>", "certification id (V1-Certification-NNN)")
51
+ .option("--name <text>", "certification name")
52
+ .option("--issuer <text>", "issuing organization")
53
+ .option("--issued <date>", "issue date — ISO-8601 or year")
54
+ .option("--expires <date>", "expiration date — ISO-8601 or year")
55
+ .option("--link <url>", "credential URL")
56
+ .option("--number <text>", "credential ID / certificate number")
57
+ .option("--highlight <bool>", "set highlight flag (true|false)")
58
+ .addOption(new Option("-o, --output <format>", "output format")
59
+ .choices(OUTPUT_FORMATS)
60
+ .default("pretty"))
61
+ .action(async (id, options) => {
62
+ await runUpdate(id, options);
63
+ });
64
+ certs
65
+ .command("remove")
66
+ .description("Remove a certification entry by id")
67
+ .argument("<id>", "certification id")
68
+ .addOption(new Option("-o, --output <format>", "output format")
69
+ .choices(OUTPUT_FORMATS)
70
+ .default("pretty"))
71
+ .action(async (id, options) => {
72
+ await runRemove(id, options.output);
73
+ });
74
+ certs
75
+ .command("show")
76
+ .description("Show a single certification entry by id")
77
+ .argument("<id>", "certification id")
78
+ .addOption(new Option("-o, --output <format>", "output format")
79
+ .choices(OUTPUT_FORMATS)
80
+ .default("pretty"))
81
+ .action(async (id, options) => {
82
+ await runShow(id, options.output);
83
+ });
84
+ certs
85
+ .command("list")
86
+ .description("List every certification entry on your profile")
87
+ .addOption(new Option("-o, --output <format>", "output format")
88
+ .choices(OUTPUT_FORMATS)
89
+ .default("pretty"))
90
+ .action(async (options) => {
91
+ await runList(options.output);
92
+ });
93
+ certs
94
+ .command("highlight")
95
+ .description("Toggle highlight on a certification entry")
96
+ .argument("<id>", "certification id")
97
+ .option("--off", "un-highlight (default is to highlight)", false)
98
+ .addOption(new Option("-o, --output <format>", "output format")
99
+ .choices(OUTPUT_FORMATS)
100
+ .default("pretty"))
101
+ .action(async (id, options) => {
102
+ await runHighlight(id, !options.off, options.output);
103
+ });
104
+ return certs;
105
+ }
106
+ async function runAdd(options) {
107
+ const fields = {
108
+ certificate: options.name,
109
+ institution: options.issuer,
110
+ };
111
+ applyDateFlags(fields, options, "profile certifications add", options.output);
112
+ if (options.link !== undefined)
113
+ fields.link = options.link;
114
+ if (options.number !== undefined)
115
+ fields.number = options.number;
116
+ const token = await loadAuthTokenOrExit("profile certifications add", options.output);
117
+ let result;
118
+ try {
119
+ result = await profile.certifications.add(token, fields);
120
+ }
121
+ catch (err) {
122
+ presentSubDomainError("profile certifications add", err, options.output);
123
+ }
124
+ emitAddSuccess({
125
+ operation: "profile.certifications.add",
126
+ format: options.output,
127
+ created: result,
128
+ prettySummary: `${result.certificate} — ${result.institution} (id ${result.id})`,
129
+ prettyEntity: formatCertificationText,
130
+ });
131
+ }
132
+ async function runUpdate(id, options) {
133
+ const fields = {};
134
+ if (options.name !== undefined)
135
+ fields.certificate = options.name;
136
+ if (options.issuer !== undefined)
137
+ fields.institution = options.issuer;
138
+ if (options.link !== undefined)
139
+ fields.link = options.link;
140
+ if (options.number !== undefined)
141
+ fields.number = options.number;
142
+ if (options.highlight !== undefined) {
143
+ if (options.highlight !== "true" && options.highlight !== "false") {
144
+ emitErrorAndExit({
145
+ operation: "profile.certifications.update",
146
+ format: options.output,
147
+ errors: [
148
+ {
149
+ code: "VALIDATION_ERROR",
150
+ field: "highlight",
151
+ message: '--highlight expects "true" or "false"',
152
+ },
153
+ ],
154
+ prettySummary: 'profile certifications update failed (VALIDATION_ERROR): --highlight expects "true" or "false"',
155
+ });
156
+ }
157
+ fields.highlight = options.highlight === "true";
158
+ }
159
+ applyDateFlags(fields, options, "profile certifications update", options.output);
160
+ if (Object.keys(fields).length === 0) {
161
+ emitErrorAndExit({
162
+ operation: "profile.certifications.update",
163
+ format: options.output,
164
+ errors: [{ code: "VALIDATION_ERROR", message: "at least one field flag is required" }],
165
+ prettySummary: "profile certifications update failed (VALIDATION_ERROR): at least one field flag is required",
166
+ });
167
+ }
168
+ const token = await loadAuthTokenOrExit("profile certifications update", options.output);
169
+ let result;
170
+ try {
171
+ result = await profile.certifications.update(token, id, fields);
172
+ }
173
+ catch (err) {
174
+ presentSubDomainError("profile certifications update", err, options.output);
175
+ }
176
+ emitUpdateSuccess({
177
+ operation: "profile.certifications.update",
178
+ format: options.output,
179
+ updated: result,
180
+ prettySummary: `${result.certificate} — ${result.institution} (id ${result.id})`,
181
+ prettyEntity: formatCertificationText,
182
+ });
183
+ }
184
+ async function runRemove(id, format) {
185
+ const token = await loadAuthTokenOrExit("profile certifications remove", format);
186
+ let removedId;
187
+ try {
188
+ removedId = await profile.certifications.remove(token, id);
189
+ }
190
+ catch (err) {
191
+ presentSubDomainError("profile certifications remove", err, format);
192
+ }
193
+ emitRemoveSuccess({
194
+ operation: "profile.certifications.remove",
195
+ format,
196
+ id: removedId,
197
+ });
198
+ }
199
+ async function runShow(id, format) {
200
+ const token = await loadAuthTokenOrExit("profile certifications show", format);
201
+ let result;
202
+ try {
203
+ result = await profile.certifications.show(token, id);
204
+ }
205
+ catch (err) {
206
+ presentSubDomainError("profile certifications show", err, format);
207
+ }
208
+ emitResult(result, format, { pretty: formatCertificationText, table: formatCertificationTable });
209
+ }
210
+ async function runList(format) {
211
+ const token = await loadAuthTokenOrExit("profile certifications list", format);
212
+ let rows;
213
+ try {
214
+ rows = await profile.certifications.list(token);
215
+ }
216
+ catch (err) {
217
+ presentSubDomainError("profile certifications list", err, format);
218
+ }
219
+ emitResult(wrapListEnvelope(rows), format, {
220
+ pretty: (data) => formatCertificationListText(data.items),
221
+ table: (data) => formatCertificationListTable(data.items),
222
+ empty: { command: "profile.certifications.list" },
223
+ });
224
+ }
225
+ async function runHighlight(id, value, format) {
226
+ const token = await loadAuthTokenOrExit("profile certifications highlight", format);
227
+ let result;
228
+ try {
229
+ result = await profile.certifications.highlight(token, id, value);
230
+ }
231
+ catch (err) {
232
+ presentSubDomainError("profile certifications highlight", err, format);
233
+ }
234
+ emitUpdateSuccess({
235
+ operation: "profile.certifications.highlight",
236
+ format,
237
+ updated: result,
238
+ prettySummary: `${result.id} highlight set to ${result.highlight.toString()}`,
239
+ prettyEntity: (entity) => `highlight: ${entity.highlight.toString()}`,
240
+ });
241
+ }
242
+ /**
243
+ * Map `--issued` / `--expires` flag strings to `validFromMonth` /
244
+ * `validFromYear` / `validToMonth` / `validToYear` Ints. Year-only inputs
245
+ * default month to `1` per the issue's "January 1st" rule. ISO-8601
246
+ * inputs preserve the parsed month and ignore the day component.
247
+ *
248
+ * Routes errors through the envelope ABI (#128).
249
+ */
250
+ function applyDateFlags(fields, options, commandLabel, format) {
251
+ try {
252
+ if (options.issued !== undefined) {
253
+ const parsed = parseDateInput(options.issued, "issued");
254
+ fields.validFromMonth = parsed.month;
255
+ fields.validFromYear = parsed.year;
256
+ }
257
+ if (options.expires !== undefined) {
258
+ const parsed = parseDateInput(options.expires, "expires");
259
+ fields.validToMonth = parsed.month;
260
+ fields.validToYear = parsed.year;
261
+ }
262
+ }
263
+ catch (err) {
264
+ if (err instanceof DateInputError) {
265
+ emitErrorAndExit({
266
+ operation: commandLabel.replace(/ /g, "."),
267
+ format,
268
+ errors: [{ code: err.code, message: err.message }],
269
+ prettySummary: `${commandLabel} failed (${err.code}): ${err.message}`,
270
+ });
271
+ }
272
+ throw err;
273
+ }
274
+ }
275
+ /**
276
+ * Pretty-print a Certification row. Pure — no I/O.
277
+ */
278
+ export function formatCertificationText(c) {
279
+ const lines = [`${c.certificate} — ${c.institution}`];
280
+ lines.push(` ${formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear)}`);
281
+ if (c.number)
282
+ lines.push(` cred-id: ${c.number}`);
283
+ if (c.link)
284
+ lines.push(` ${c.link}`);
285
+ if (c.highlight)
286
+ lines.push(` highlighted`);
287
+ lines.push(` id: ${c.id}`);
288
+ return lines.join("\n");
289
+ }
290
+ /**
291
+ * Pretty-print a Certification row as a key/value table.
292
+ */
293
+ export function formatCertificationTable(c) {
294
+ const rows = [
295
+ ["id", c.id],
296
+ ["certificate", c.certificate],
297
+ ["institution", c.institution],
298
+ ["valid", formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear)],
299
+ ["number", c.number ?? ""],
300
+ ["link", c.link ?? ""],
301
+ ["highlight", c.highlight.toString()],
302
+ ];
303
+ return rows.map(([k, v]) => `${k}\t${v}`).join("\n");
304
+ }
305
+ function formatValidityRange(fromMonth, fromYear, toMonth, toYear) {
306
+ const fromStr = formatMonthYear(fromMonth, fromYear);
307
+ const toStr = formatMonthYear(toMonth, toYear);
308
+ if (fromStr === "—" && toStr === "—")
309
+ return "—";
310
+ if (toStr === "—")
311
+ return `${fromStr}–no expiry`;
312
+ if (fromStr === "—")
313
+ return `?–${toStr}`;
314
+ return `${fromStr}–${toStr}`;
315
+ }
316
+ function formatMonthYear(month, year) {
317
+ if (year === null)
318
+ return "—";
319
+ if (month === null)
320
+ return year.toString();
321
+ return `${month.toString().padStart(2, "0")}/${year.toString()}`;
322
+ }
323
+ /**
324
+ * Pretty-print a list of Certification rows. One row per line, tab-separated:
325
+ * certificate, institution, validity range, id.
326
+ */
327
+ export function formatCertificationListText(rows) {
328
+ if (rows.length === 0)
329
+ return "(no certifications on profile)";
330
+ return rows
331
+ .map((c) => `${c.certificate}\t${c.institution}\t${formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear)}\t${c.id}`)
332
+ .join("\n");
333
+ }
334
+ /**
335
+ * Pretty-print a list of Certification rows as a cli-table3 table.
336
+ */
337
+ export function formatCertificationListTable(rows) {
338
+ const table = new Table({ head: ["Certificate", "Issuer", "Valid", "Highlight", "Id"], wordWrap: true });
339
+ for (const c of rows) {
340
+ table.push([
341
+ c.certificate,
342
+ c.institution,
343
+ formatValidityRange(c.validFromMonth, c.validFromYear, c.validToMonth, c.validToYear),
344
+ c.highlight ? "yes" : "no",
345
+ c.id,
346
+ ]);
347
+ }
348
+ return table.toString();
349
+ }
350
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/profile/certifications/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MA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SACR,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,GAAG,CAAC,CAAC,WAAW,KAAK,CAAC,CAAC,WAAW,KAAK,mBAAmB,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAC1I;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,IAA4C;IACvF,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzG,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACrB,KAAK,CAAC,IAAI,CAAC;YACT,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,WAAW;YACb,mBAAmB,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,WAAW,CAAC;YACrF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YAC1B,CAAC,CAAC,EAAE;SACL,CAAC,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { profile } from "@ttctl/core";
2
+ import { Command } from "commander";
3
+ /**
4
+ * Build the `ttctl profile education` command tree.
5
+ *
6
+ * Five leaves:
7
+ * - `add --institution --degree [--from --to]`
8
+ * - `update <id> [field-flags]`
9
+ * - `remove <id>`
10
+ * - `show <id> [-o text|json|table]`
11
+ * - `highlight <id>`
12
+ *
13
+ * Date input flags (`--from`, `--to`) accept ISO-8601 (`2023-01-15`) or
14
+ * year-only (`2023`); the date helper at `core/src/lib/date.ts` enforces
15
+ * format and rejects impossible calendar dates. Education stores year
16
+ * only, so the month/day are dropped before sending to the API.
17
+ */
18
+ export declare function buildProfileEducationCommand(): Command;
19
+ /**
20
+ * Pretty-print an Education row. Pure — no I/O. Years render as "YYYY"
21
+ * or "YYYY–YYYY" or "YYYY–present"; missing years collapse to a hyphen.
22
+ */
23
+ export declare function formatEducationText(e: profile.education.Education): string;
24
+ /**
25
+ * Pretty-print an Education row as a key/value table.
26
+ */
27
+ export declare function formatEducationTable(e: profile.education.Education): string;
28
+ /**
29
+ * Pretty-print a list of Education rows. One row per line, tab-separated:
30
+ * degree, institution, years, id.
31
+ */
32
+ export declare function formatEducationListText(rows: profile.education.Education[]): string;
33
+ /**
34
+ * Pretty-print a list of Education rows as a cli-table3 table.
35
+ */
36
+ export declare function formatEducationListTable(rows: profile.education.Education[]): string;
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/profile/education/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkC,OAAO,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAa5C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAgGtD;AAoMD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG,MAAM,CAQ1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,GAAG,MAAM,CAY3E;AASD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,GAAG,MAAM,CAGnF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,GAAG,MAAM,CAMpF"}