@transcend-io/cli 10.23.7 → 10.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +4 -149
  2. package/dist/{app-BV8ug_1A.mjs → app-1gLg-ah3.mjs} +19 -19
  3. package/dist/{app-BV8ug_1A.mjs.map → app-1gLg-ah3.mjs.map} +1 -1
  4. package/dist/{approvePrivacyRequests-BQpI-RdX.mjs → approvePrivacyRequests-qaoxGH11.mjs} +2 -2
  5. package/dist/{approvePrivacyRequests-BQpI-RdX.mjs.map → approvePrivacyRequests-qaoxGH11.mjs.map} +1 -1
  6. package/dist/bin/bash-complete.mjs +1 -1
  7. package/dist/bin/cli.mjs +1 -1
  8. package/dist/bin/deprecated-command.mjs +1 -1
  9. package/dist/{buildExamples-BUaHx4F1.mjs → buildExamples-CDlFYuEg.mjs} +2 -2
  10. package/dist/{buildExamples-BUaHx4F1.mjs.map → buildExamples-CDlFYuEg.mjs.map} +1 -1
  11. package/dist/{buildXdiSyncEndpoint-CI91Blyp.mjs → buildXdiSyncEndpoint-Bmr-hWLk.mjs} +2 -2
  12. package/dist/{buildXdiSyncEndpoint-CI91Blyp.mjs.map → buildXdiSyncEndpoint-Bmr-hWLk.mjs.map} +1 -1
  13. package/dist/{bulkRestartRequests-0VBrEHER.mjs → bulkRestartRequests-n2_EwVEM.mjs} +2 -2
  14. package/dist/{bulkRestartRequests-0VBrEHER.mjs.map → bulkRestartRequests-n2_EwVEM.mjs.map} +1 -1
  15. package/dist/{bulkRetryEnrichers-D7t7iYbi.mjs → bulkRetryEnrichers-DDftLRtp.mjs} +2 -2
  16. package/dist/{bulkRetryEnrichers-D7t7iYbi.mjs.map → bulkRetryEnrichers-DDftLRtp.mjs.map} +1 -1
  17. package/dist/{cancelPrivacyRequests-DvQL3z2K.mjs → cancelPrivacyRequests-CunKdVs6.mjs} +2 -2
  18. package/dist/{cancelPrivacyRequests-DvQL3z2K.mjs.map → cancelPrivacyRequests-CunKdVs6.mjs.map} +1 -1
  19. package/dist/codecs-HQHBtqht.mjs +2 -0
  20. package/dist/codecs-HQHBtqht.mjs.map +1 -0
  21. package/dist/{command-Bq17gJPJ.mjs → command-DO9AWMvB.mjs} +2 -2
  22. package/dist/{command-Bq17gJPJ.mjs.map → command-DO9AWMvB.mjs.map} +1 -1
  23. package/dist/{constants-ykNINvFg.mjs → constants-C9xZJ9YW.mjs} +2 -2
  24. package/dist/{constants-ykNINvFg.mjs.map → constants-C9xZJ9YW.mjs.map} +1 -1
  25. package/dist/{constants-B44yUGaB.mjs → constants-DNF09zFX.mjs} +3 -3
  26. package/dist/{constants-B44yUGaB.mjs.map → constants-DNF09zFX.mjs.map} +1 -1
  27. package/dist/constants-DR-hU9Xj.mjs +2 -0
  28. package/dist/constants-DR-hU9Xj.mjs.map +1 -0
  29. package/dist/{createExtraKeyHandler-DHhGPEWE.mjs → createExtraKeyHandler-DTbSbhrp.mjs} +2 -2
  30. package/dist/{createExtraKeyHandler-DHhGPEWE.mjs.map → createExtraKeyHandler-DTbSbhrp.mjs.map} +1 -1
  31. package/dist/{downloadPrivacyRequestFiles-Dtnhb3v2.mjs → downloadPrivacyRequestFiles-AArYL4OL.mjs} +2 -2
  32. package/dist/{downloadPrivacyRequestFiles-Dtnhb3v2.mjs.map → downloadPrivacyRequestFiles-AArYL4OL.mjs.map} +1 -1
  33. package/dist/enums-UlIe_AeF.mjs +2 -0
  34. package/dist/enums-UlIe_AeF.mjs.map +1 -0
  35. package/dist/{fetchAllRequests-Bya6iwzL.mjs → fetchAllRequests-DP24WqrP.mjs} +2 -2
  36. package/dist/{fetchAllRequests-Bya6iwzL.mjs.map → fetchAllRequests-DP24WqrP.mjs.map} +1 -1
  37. package/dist/{fuzzyMatchColumns-Ds0TqtJ5.mjs → fuzzyMatchColumns-C1STZ_T1.mjs} +2 -2
  38. package/dist/{fuzzyMatchColumns-Ds0TqtJ5.mjs.map → fuzzyMatchColumns-C1STZ_T1.mjs.map} +1 -1
  39. package/dist/{generateCrossAccountApiKeys-CTVfbS9-.mjs → generateCrossAccountApiKeys-DfGJ8Svq.mjs} +2 -2
  40. package/dist/{generateCrossAccountApiKeys-CTVfbS9-.mjs.map → generateCrossAccountApiKeys-DfGJ8Svq.mjs.map} +1 -1
  41. package/dist/{impl-D1X9qygD2.mjs → impl-4heSgrC92.mjs} +2 -2
  42. package/dist/{impl-D1X9qygD2.mjs.map → impl-4heSgrC92.mjs.map} +1 -1
  43. package/dist/{impl-Wyz88FnA2.mjs → impl-4oiDSr3J2.mjs} +2 -2
  44. package/dist/{impl-Wyz88FnA2.mjs.map → impl-4oiDSr3J2.mjs.map} +1 -1
  45. package/dist/{impl-Bug3axux.mjs → impl-8gLOHK9a.mjs} +2 -2
  46. package/dist/{impl-Bug3axux.mjs.map → impl-8gLOHK9a.mjs.map} +1 -1
  47. package/dist/{impl-BPlwQGJw.mjs → impl-B6kpEx0X.mjs} +2 -2
  48. package/dist/{impl-BPlwQGJw.mjs.map → impl-B6kpEx0X.mjs.map} +1 -1
  49. package/dist/{impl-C5RWQxAV.mjs → impl-BF9Ekyjn.mjs} +2 -2
  50. package/dist/{impl-C5RWQxAV.mjs.map → impl-BF9Ekyjn.mjs.map} +1 -1
  51. package/dist/{impl-BfEBQCDY2.mjs → impl-BVh3JHAk2.mjs} +2 -2
  52. package/dist/{impl-BfEBQCDY2.mjs.map → impl-BVh3JHAk2.mjs.map} +1 -1
  53. package/dist/{impl-DJ37yGAw2.mjs → impl-BYtnm2cU2.mjs} +2 -2
  54. package/dist/{impl-DJ37yGAw2.mjs.map → impl-BYtnm2cU2.mjs.map} +1 -1
  55. package/dist/{impl-Ctagwhzp.mjs → impl-BZ-EmLtv.mjs} +2 -2
  56. package/dist/{impl-Ctagwhzp.mjs.map → impl-BZ-EmLtv.mjs.map} +1 -1
  57. package/dist/{impl-BjlpBG3U.mjs → impl-BZ4pxOP_.mjs} +2 -2
  58. package/dist/{impl-BjlpBG3U.mjs.map → impl-BZ4pxOP_.mjs.map} +1 -1
  59. package/dist/{impl-CdZ-nr1b.mjs → impl-Bgg6AZQS.mjs} +4 -4
  60. package/dist/{impl-CdZ-nr1b.mjs.map → impl-Bgg6AZQS.mjs.map} +1 -1
  61. package/dist/{impl-rOo6vhkj.mjs → impl-Bu7iHn-Z.mjs} +2 -2
  62. package/dist/{impl-rOo6vhkj.mjs.map → impl-Bu7iHn-Z.mjs.map} +1 -1
  63. package/dist/{impl-BbIP694E.mjs → impl-BvLjryD7.mjs} +2 -2
  64. package/dist/{impl-BbIP694E.mjs.map → impl-BvLjryD7.mjs.map} +1 -1
  65. package/dist/{impl-BBtHggqa2.mjs → impl-C3-twUUE2.mjs} +2 -2
  66. package/dist/{impl-BBtHggqa2.mjs.map → impl-C3-twUUE2.mjs.map} +1 -1
  67. package/dist/{impl-BXgq2IRf2.mjs → impl-C6eLQ_5o2.mjs} +2 -2
  68. package/dist/{impl-BXgq2IRf2.mjs.map → impl-C6eLQ_5o2.mjs.map} +1 -1
  69. package/dist/{impl-9b_P5Q4s.mjs → impl-C7-Z-9EZ.mjs} +2 -2
  70. package/dist/{impl-9b_P5Q4s.mjs.map → impl-C7-Z-9EZ.mjs.map} +1 -1
  71. package/dist/{impl-CiA-v1ol.mjs → impl-C8azdMaD.mjs} +2 -2
  72. package/dist/{impl-CiA-v1ol.mjs.map → impl-C8azdMaD.mjs.map} +1 -1
  73. package/dist/{impl-D-RKBMCp.mjs → impl-CIJjwRW4.mjs} +2 -2
  74. package/dist/{impl-D-RKBMCp.mjs.map → impl-CIJjwRW4.mjs.map} +1 -1
  75. package/dist/{impl-DqtLjqiN.mjs → impl-Cqruzptc.mjs} +2 -2
  76. package/dist/{impl-DqtLjqiN.mjs.map → impl-Cqruzptc.mjs.map} +1 -1
  77. package/dist/{impl-z5dBnPm5.mjs → impl-CtbuXbCF.mjs} +3 -3
  78. package/dist/{impl-z5dBnPm5.mjs.map → impl-CtbuXbCF.mjs.map} +1 -1
  79. package/dist/{impl-D1c3dsHI.mjs → impl-CymJoQ9l.mjs} +2 -2
  80. package/dist/{impl-D1c3dsHI.mjs.map → impl-CymJoQ9l.mjs.map} +1 -1
  81. package/dist/{impl-BWenu3QG.mjs → impl-D-JYZ74k.mjs} +6 -6
  82. package/dist/{impl-BWenu3QG.mjs.map → impl-D-JYZ74k.mjs.map} +1 -1
  83. package/dist/impl-D53J7hI_.mjs +2 -0
  84. package/dist/{impl-CyhHVprA.mjs.map → impl-D53J7hI_.mjs.map} +1 -1
  85. package/dist/{impl-C69Nh_YS.mjs → impl-D9VysVCe.mjs} +2 -2
  86. package/dist/{impl-C69Nh_YS.mjs.map → impl-D9VysVCe.mjs.map} +1 -1
  87. package/dist/{impl-DMtn2boK.mjs → impl-DUHcGmOB.mjs} +2 -2
  88. package/dist/{impl-DMtn2boK.mjs.map → impl-DUHcGmOB.mjs.map} +1 -1
  89. package/dist/impl-DgkExXp2.mjs +2 -0
  90. package/dist/{impl-DQ-kymSs.mjs.map → impl-DgkExXp2.mjs.map} +1 -1
  91. package/dist/{impl-B5-BwYN92.mjs → impl-DjgE9MBH2.mjs} +2 -2
  92. package/dist/{impl-B5-BwYN92.mjs.map → impl-DjgE9MBH2.mjs.map} +1 -1
  93. package/dist/{impl-veZF32mx2.mjs → impl-Dniv3dkB2.mjs} +2 -2
  94. package/dist/{impl-veZF32mx2.mjs.map → impl-Dniv3dkB2.mjs.map} +1 -1
  95. package/dist/{impl-B0bOfWq32.mjs → impl-DtJCihfL2.mjs} +2 -2
  96. package/dist/{impl-B0bOfWq32.mjs.map → impl-DtJCihfL2.mjs.map} +1 -1
  97. package/dist/{impl-DREUe83K2.mjs → impl-E2edQft02.mjs} +2 -2
  98. package/dist/{impl-DREUe83K2.mjs.map → impl-E2edQft02.mjs.map} +1 -1
  99. package/dist/{impl--vtVpVpr2.mjs → impl-GnoT1LmK2.mjs} +2 -2
  100. package/dist/{impl--vtVpVpr2.mjs.map → impl-GnoT1LmK2.mjs.map} +1 -1
  101. package/dist/{impl-B2LrNhxI2.mjs → impl-HaxoPgWV2.mjs} +2 -2
  102. package/dist/{impl-B2LrNhxI2.mjs.map → impl-HaxoPgWV2.mjs.map} +1 -1
  103. package/dist/{impl-CwQ9tdkG.mjs → impl-N_erRf2y.mjs} +2 -2
  104. package/dist/{impl-CwQ9tdkG.mjs.map → impl-N_erRf2y.mjs.map} +1 -1
  105. package/dist/{impl-DUn7OYtx.mjs → impl-SESkv0Uk.mjs} +2 -2
  106. package/dist/{impl-DUn7OYtx.mjs.map → impl-SESkv0Uk.mjs.map} +1 -1
  107. package/dist/{impl-C5cGjdOA2.mjs → impl-SauDltth2.mjs} +2 -2
  108. package/dist/{impl-C5cGjdOA2.mjs.map → impl-SauDltth2.mjs.map} +1 -1
  109. package/dist/{impl-Be7F4ZrH2.mjs → impl-T66dFrc42.mjs} +2 -2
  110. package/dist/{impl-Be7F4ZrH2.mjs.map → impl-T66dFrc42.mjs.map} +1 -1
  111. package/dist/{impl-Bvk9QYS0.mjs → impl-U_CtHEj5.mjs} +2 -2
  112. package/dist/{impl-Bvk9QYS0.mjs.map → impl-U_CtHEj5.mjs.map} +1 -1
  113. package/dist/{impl-BBx1Kx8M.mjs → impl-Y2Gge5Bd.mjs} +2 -2
  114. package/dist/{impl-BBx1Kx8M.mjs.map → impl-Y2Gge5Bd.mjs.map} +1 -1
  115. package/dist/{impl-BfVQRJEl2.mjs → impl-dcRplDpN2.mjs} +2 -2
  116. package/dist/{impl-BfVQRJEl2.mjs.map → impl-dcRplDpN2.mjs.map} +1 -1
  117. package/dist/{impl-BmoyPAJJ.mjs → impl-gfNcn8cd.mjs} +2 -2
  118. package/dist/{impl-BmoyPAJJ.mjs.map → impl-gfNcn8cd.mjs.map} +1 -1
  119. package/dist/{impl-C7ULQEpk2.mjs → impl-nikMH0CU2.mjs} +2 -2
  120. package/dist/{impl-C7ULQEpk2.mjs.map → impl-nikMH0CU2.mjs.map} +1 -1
  121. package/dist/{impl-Bj7Sb_7k2.mjs → impl-qSB65eS52.mjs} +2 -2
  122. package/dist/{impl-Bj7Sb_7k2.mjs.map → impl-qSB65eS52.mjs.map} +1 -1
  123. package/dist/{impl-BKMx2xOY.mjs → impl-vQQfP_hX.mjs} +2 -2
  124. package/dist/{impl-BKMx2xOY.mjs.map → impl-vQQfP_hX.mjs.map} +1 -1
  125. package/dist/{impl-DtlyH0Ku.mjs → impl-y9YssNt_.mjs} +2 -2
  126. package/dist/{impl-DtlyH0Ku.mjs.map → impl-y9YssNt_.mjs.map} +1 -1
  127. package/dist/index.d.mts +4 -562
  128. package/dist/index.d.mts.map +1 -1
  129. package/dist/index.mjs +4 -4
  130. package/dist/index.mjs.map +1 -1
  131. package/dist/{inquirer-AEchly0b.mjs → inquirer-B0OF_nRe.mjs} +2 -2
  132. package/dist/{inquirer-AEchly0b.mjs.map → inquirer-B0OF_nRe.mjs.map} +1 -1
  133. package/dist/{markRequestDataSiloIdsCompleted-gl4RNpl7.mjs → markRequestDataSiloIdsCompleted-CklEg1h9.mjs} +2 -2
  134. package/dist/{markRequestDataSiloIdsCompleted-gl4RNpl7.mjs.map → markRequestDataSiloIdsCompleted-CklEg1h9.mjs.map} +1 -1
  135. package/dist/{markSilentPrivacyRequests-Bvcdqy0L.mjs → markSilentPrivacyRequests-C_Fc81_k.mjs} +2 -2
  136. package/dist/{markSilentPrivacyRequests-Bvcdqy0L.mjs.map → markSilentPrivacyRequests-C_Fc81_k.mjs.map} +1 -1
  137. package/dist/{notifyPrivacyRequestsAdditionalTime-D8YT0K-a.mjs → notifyPrivacyRequestsAdditionalTime-DEb7lcKx.mjs} +2 -2
  138. package/dist/{notifyPrivacyRequestsAdditionalTime-D8YT0K-a.mjs.map → notifyPrivacyRequestsAdditionalTime-DEb7lcKx.mjs.map} +1 -1
  139. package/dist/parseVariablesFromString-6ZwJyWSu.mjs +3 -0
  140. package/dist/parseVariablesFromString-6ZwJyWSu.mjs.map +1 -0
  141. package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-MuvYnFIK.mjs → pullChunkedCustomSiloOutstandingIdentifiers-DcSSx712.mjs} +2 -2
  142. package/dist/{pullChunkedCustomSiloOutstandingIdentifiers-MuvYnFIK.mjs.map → pullChunkedCustomSiloOutstandingIdentifiers-DcSSx712.mjs.map} +1 -1
  143. package/dist/{pullManualEnrichmentIdentifiersToCsv-HQSnLyVf.mjs → pullManualEnrichmentIdentifiersToCsv-CEtJleqX.mjs} +2 -2
  144. package/dist/{pullManualEnrichmentIdentifiersToCsv-HQSnLyVf.mjs.map → pullManualEnrichmentIdentifiersToCsv-CEtJleqX.mjs.map} +1 -1
  145. package/dist/pullTranscendConfiguration-C21Yq51h.mjs +58 -0
  146. package/dist/pullTranscendConfiguration-C21Yq51h.mjs.map +1 -0
  147. package/dist/{pushCronIdentifiersFromCsv-C4QfGxME.mjs → pushCronIdentifiersFromCsv-dCDnCM6Y.mjs} +2 -2
  148. package/dist/{pushCronIdentifiersFromCsv-C4QfGxME.mjs.map → pushCronIdentifiersFromCsv-dCDnCM6Y.mjs.map} +1 -1
  149. package/dist/{pushManualEnrichmentIdentifiersFromCsv-NqWFouaI.mjs → pushManualEnrichmentIdentifiersFromCsv-D6tsUf6k.mjs} +2 -2
  150. package/dist/{pushManualEnrichmentIdentifiersFromCsv-NqWFouaI.mjs.map → pushManualEnrichmentIdentifiersFromCsv-D6tsUf6k.mjs.map} +1 -1
  151. package/dist/readCsv--FfP8n-H.mjs +2 -0
  152. package/dist/{readCsv-C84Jhrzx.mjs.map → readCsv--FfP8n-H.mjs.map} +1 -1
  153. package/dist/{readTranscendYaml-dI3G3Og9.mjs → readTranscendYaml-CWIS9ki1.mjs} +3 -3
  154. package/dist/{readTranscendYaml-dI3G3Og9.mjs.map → readTranscendYaml-CWIS9ki1.mjs.map} +1 -1
  155. package/dist/{removeUnverifiedRequestIdentifiers-C4G6EUc9.mjs → removeUnverifiedRequestIdentifiers-kGR-7H8G.mjs} +2 -2
  156. package/dist/{removeUnverifiedRequestIdentifiers-C4G6EUc9.mjs.map → removeUnverifiedRequestIdentifiers-kGR-7H8G.mjs.map} +1 -1
  157. package/dist/{retryRequestDataSilos-B4h0Efcq.mjs → retryRequestDataSilos-d8gzmd-2.mjs} +2 -2
  158. package/dist/{retryRequestDataSilos-B4h0Efcq.mjs.map → retryRequestDataSilos-d8gzmd-2.mjs.map} +1 -1
  159. package/dist/{skipPreflightJobs-D9eKsCzH.mjs → skipPreflightJobs-B7C-mjSV.mjs} +2 -2
  160. package/dist/{skipPreflightJobs-D9eKsCzH.mjs.map → skipPreflightJobs-B7C-mjSV.mjs.map} +1 -1
  161. package/dist/{skipRequestDataSilos-4shablHf.mjs → skipRequestDataSilos-B5m8luWz.mjs} +2 -2
  162. package/dist/{skipRequestDataSilos-4shablHf.mjs.map → skipRequestDataSilos-B5m8luWz.mjs.map} +1 -1
  163. package/dist/{streamPrivacyRequestsToCsv-5Lv4Vchx.mjs → streamPrivacyRequestsToCsv-HwUKG1kF.mjs} +2 -2
  164. package/dist/{streamPrivacyRequestsToCsv-5Lv4Vchx.mjs.map → streamPrivacyRequestsToCsv-HwUKG1kF.mjs.map} +1 -1
  165. package/dist/{updateConsentManagerVersionToLatest-CeEs3OJT.mjs → updateConsentManagerVersionToLatest-B9RIn1o-.mjs} +2 -2
  166. package/dist/{updateConsentManagerVersionToLatest-CeEs3OJT.mjs.map → updateConsentManagerVersionToLatest-B9RIn1o-.mjs.map} +1 -1
  167. package/dist/{uploadConsents-Z0N-ULVA.mjs → uploadConsents-Cbn0O4fM.mjs} +2 -2
  168. package/dist/{uploadConsents-Z0N-ULVA.mjs.map → uploadConsents-Cbn0O4fM.mjs.map} +1 -1
  169. package/dist/{uploadCookiesFromCsv-DZSP7M-u.mjs → uploadCookiesFromCsv-r8mTeMe9.mjs} +2 -2
  170. package/dist/{uploadCookiesFromCsv-DZSP7M-u.mjs.map → uploadCookiesFromCsv-r8mTeMe9.mjs.map} +1 -1
  171. package/dist/{uploadDataFlowsFromCsv-vaN5DwL4.mjs → uploadDataFlowsFromCsv-BsBay5Vi.mjs} +2 -2
  172. package/dist/{uploadDataFlowsFromCsv-vaN5DwL4.mjs.map → uploadDataFlowsFromCsv-BsBay5Vi.mjs.map} +1 -1
  173. package/dist/{uploadPrivacyRequestsFromCsv-ByRf-2jO.mjs → uploadPrivacyRequestsFromCsv-B0hRYldF.mjs} +2 -2
  174. package/dist/{uploadPrivacyRequestsFromCsv-ByRf-2jO.mjs.map → uploadPrivacyRequestsFromCsv-B0hRYldF.mjs.map} +1 -1
  175. package/dist/validateTranscendAuth-CbYKgCP5.mjs +2 -0
  176. package/dist/{validateTranscendAuth-DhzCBA3F.mjs.map → validateTranscendAuth-CbYKgCP5.mjs.map} +1 -1
  177. package/package.json +5 -7
  178. package/dist/codecs-Dch3sv5m.mjs +0 -2
  179. package/dist/codecs-Dch3sv5m.mjs.map +0 -1
  180. package/dist/constants-Btn1yJ8a.mjs +0 -2
  181. package/dist/constants-Btn1yJ8a.mjs.map +0 -1
  182. package/dist/enums-BymyVyqr.mjs +0 -2
  183. package/dist/enums-BymyVyqr.mjs.map +0 -1
  184. package/dist/impl-CyhHVprA.mjs +0 -2
  185. package/dist/impl-DQ-kymSs.mjs +0 -2
  186. package/dist/parseVariablesFromString-RM3zV9Av.mjs +0 -3
  187. package/dist/parseVariablesFromString-RM3zV9Av.mjs.map +0 -1
  188. package/dist/pullTranscendConfiguration-C2LAOKG4.mjs +0 -58
  189. package/dist/pullTranscendConfiguration-C2LAOKG4.mjs.map +0 -1
  190. package/dist/readCsv-C84Jhrzx.mjs +0 -2
  191. package/dist/validateTranscendAuth-DhzCBA3F.mjs +0 -2
package/dist/index.d.mts CHANGED
@@ -1,19 +1,17 @@
1
1
  import { CommandContext } from "@stricli/core";
2
2
  import { StricliAutoCompleteContext } from "@stricli/auto-complete";
3
- import { AssessmentFormTemplateSource, AssessmentFormTemplateStatus, CodePackageType, ConsentBundleType, ConsentManagerMetricBin, ConsentTrackerStatus, DataCategoryType, IdentifierType, LargeLanguageModelClient, LogicOperator, RequestAction, RequestDataSiloStatus, RequestEnricherStatus, RequestOrigin, RequestStatus, RestartIdentifierStrategy, ScopeDefinition, ScopeName, SubDataPointDataSubCategoryGuessStatus, UnstructuredSubDataPointRecommendationStatus } from "@transcend-io/privacy-types";
4
- import { ObjByString, Optionalize, Requirize } from "@transcend-io/type-utils";
3
+ import { AssessmentFormTemplateSource, AssessmentFormTemplateStatus, CodePackageType, ConsentBundleType, ConsentManagerMetricBin, ConsentTrackerStatus, DataCategoryType, IdentifierType, LogicOperator, RequestAction, RequestDataSiloStatus, RequestEnricherStatus, RequestOrigin, RequestStatus, RestartIdentifierStrategy, ScopeDefinition, ScopeName, SubDataPointDataSubCategoryGuessStatus, UnstructuredSubDataPointRecommendationStatus } from "@transcend-io/privacy-types";
5
4
  import { Got } from "got";
5
+ import { ObjByString } from "@transcend-io/type-utils";
6
6
  import * as t from "io-ts";
7
- import { Agent, AgentFile, AgentFileFilterBy, ApiKey, AssessmentSection, AttributeKey, CodePackage, ConsentManagerMetric, DataSiloAttributeValue, DataSubject, LargeLanguageModel, PromptThread, ReportPromptRunInput, RequestEnricher, RequestIdentifier, RetentionSchedule, TranscendPromptTemplated, TranscendPromptsAndVariables, UserPreview } from "@transcend-io/sdk";
7
+ import { ApiKey, AssessmentSection, AttributeKey, CodePackage, ConsentManagerMetric, DataSiloAttributeValue, DataSubject, RequestEnricher, RequestIdentifier, RetentionSchedule, UserPreview } from "@transcend-io/sdk";
8
8
  import { Logger, SyncResult } from "@transcend-io/utils";
9
9
  import inquirer from "inquirer";
10
10
  import { GraphQLClient } from "graphql-request";
11
11
  import * as _$io_ts_types0 from "io-ts-types";
12
12
  import { PersistedState } from "@transcend-io/persisted-state";
13
- import { Handlebars, HandlebarsInput } from "@transcend-io/handlebars-utils";
14
13
  import { Options } from "csv-parse";
15
14
  import { DuckDBInstance } from "@duckdb/node-api";
16
- import { Secret } from "@transcend-io/secret-value";
17
15
 
18
16
  //#region src/codecs.d.ts
19
17
  /**
@@ -137,8 +135,6 @@ declare const TeamInput: t.IntersectionC<[t.TypeC<{
137
135
  executeAuditor: unknown;
138
136
  viewCodeScanning: unknown;
139
137
  manageCodeScanning: unknown;
140
- viewPathfinder: unknown;
141
- managePathfinder: unknown;
142
138
  viewContractScanning: unknown;
143
139
  manageContractScanning: unknown;
144
140
  viewAuditorRuns: unknown;
@@ -5851,84 +5847,6 @@ declare const AttributePreview: t.TypeC<{
5851
5847
  }>;
5852
5848
  /** Type override */
5853
5849
  type AttributePreview = t.TypeOf<typeof AttributePreview>;
5854
- /**
5855
- * Agent type definition.
5856
- */
5857
- declare const AgentInput: t.IntersectionC<[t.TypeC<{
5858
- /** The name of the agent. */name: t.StringC; /** The instructions of the agent. */
5859
- instructions: t.StringC; /** The ID of the agent */
5860
- agentId: t.StringC; /** Whether the agent has code interpreter enabled */
5861
- codeInterpreterEnabled: t.BooleanC; /** Whether the agent has retrieval enabled */
5862
- retrievalEnabled: t.BooleanC; /** Large language model powering the agent */
5863
- 'large-language-model': t.TypeC<{
5864
- /** Name of the model */name: t.StringC; /** Client of the model */
5865
- client: t.KeyofC<{
5866
- openai: unknown;
5867
- claude: unknown;
5868
- llama: unknown;
5869
- }>;
5870
- }>;
5871
- }>, t.PartialC<{
5872
- /** The description of the agent. */description: t.StringC; /** The title of the prompt that the agent is based on */
5873
- prompt: t.StringC;
5874
- /**
5875
- * The email addresses of the employees within your company that are the go-to individuals
5876
- * for managing this agent
5877
- */
5878
- owners: t.ArrayC<t.StringC>;
5879
- /**
5880
- * The names of teams within your Transcend instance that should be responsible
5881
- * for managing this agent
5882
- *
5883
- * @see https://docs.transcend.io/docs/security/access-control#teams
5884
- * for more information about how to create and manage teams
5885
- */
5886
- teams: t.ArrayC<t.StringC>;
5887
- /**
5888
- * The names of the functions that the agent has access to
5889
- */
5890
- 'agent-functions': t.ArrayC<t.StringC>;
5891
- /**
5892
- * The names of the files that the agent has access to for retrieval
5893
- */
5894
- 'agent-files': t.ArrayC<t.StringC>;
5895
- }>]>;
5896
- /**
5897
- * Type override
5898
- */
5899
- type AgentInput = t.TypeOf<typeof AgentInput>;
5900
- /**
5901
- * AgentFunction type definition.
5902
- */
5903
- declare const AgentFunctionInput: t.TypeC<{
5904
- /** Name of the agentFunction */name: t.StringC; /** Description of the agentFunction */
5905
- description: t.StringC; /** The JSON schema */
5906
- parameters: t.StringC;
5907
- }>;
5908
- /**
5909
- * Type override
5910
- */
5911
- type AgentFunctionInput = t.TypeOf<typeof AgentFunctionInput>;
5912
- /**
5913
- * AgentFile type definition.
5914
- */
5915
- declare const AgentFileInput: t.IntersectionC<[t.TypeC<{
5916
- /** Name of the agentFile */name: t.StringC; /** File ID */
5917
- fileId: t.StringC; /** File size */
5918
- size: t.NumberC; /** File purpose */
5919
- purpose: t.KeyofC<{
5920
- ASSISTANTS: unknown;
5921
- FINE_TUNE: unknown;
5922
- FINE_TUNE_RESULTS: unknown;
5923
- ASSISTANTS_OUTPUT: unknown;
5924
- }>;
5925
- }>, t.PartialC<{
5926
- /** Description of the agentFile */description: t.StringC;
5927
- }>]>;
5928
- /**
5929
- * Type override
5930
- */
5931
- type AgentFileInput = t.TypeOf<typeof AgentFileInput>;
5932
5850
  /**
5933
5851
  * Vendor type definition.
5934
5852
  */
@@ -63906,7 +63824,6 @@ declare const ActionItemCollectionInput: t.IntersectionC<[t.TypeC<{
63906
63824
  PRIVACY_CENTER: unknown;
63907
63825
  ADMINISTRATION: unknown;
63908
63826
  ASSESSMENTS: unknown;
63909
- PATHFINDER: unknown;
63910
63827
  PREFERENCE_MANAGEMENT: unknown;
63911
63828
  PROMPT_MANAGER: unknown;
63912
63829
  CONTRACT_SCANNING: unknown;
@@ -81543,7 +81460,6 @@ declare const TranscendInput: t.PartialC<{
81543
81460
  PRIVACY_CENTER: unknown;
81544
81461
  ADMINISTRATION: unknown;
81545
81462
  ASSESSMENTS: unknown;
81546
- PATHFINDER: unknown;
81547
81463
  PREFERENCE_MANAGEMENT: unknown;
81548
81464
  PROMPT_MANAGER: unknown;
81549
81465
  CONTRACT_SCANNING: unknown;
@@ -81649,8 +81565,6 @@ declare const TranscendInput: t.PartialC<{
81649
81565
  executeAuditor: unknown;
81650
81566
  viewCodeScanning: unknown;
81651
81567
  manageCodeScanning: unknown;
81652
- viewPathfinder: unknown;
81653
- managePathfinder: unknown;
81654
81568
  viewContractScanning: unknown;
81655
81569
  manageContractScanning: unknown;
81656
81570
  viewAuditorRuns: unknown;
@@ -121277,72 +121191,6 @@ declare const TranscendInput: t.PartialC<{
121277
121191
  description: t.StringC; /** The titles of the prompts included. */
121278
121192
  prompts: t.ArrayC<t.StringC>;
121279
121193
  }>>;
121280
- /**
121281
- * Agent definitions
121282
- */
121283
- agents: t.ArrayC<t.IntersectionC<[t.TypeC<{
121284
- /** The name of the agent. */name: t.StringC; /** The instructions of the agent. */
121285
- instructions: t.StringC; /** The ID of the agent */
121286
- agentId: t.StringC; /** Whether the agent has code interpreter enabled */
121287
- codeInterpreterEnabled: t.BooleanC; /** Whether the agent has retrieval enabled */
121288
- retrievalEnabled: t.BooleanC; /** Large language model powering the agent */
121289
- 'large-language-model': t.TypeC<{
121290
- /** Name of the model */name: t.StringC; /** Client of the model */
121291
- client: t.KeyofC<{
121292
- openai: unknown;
121293
- claude: unknown;
121294
- llama: unknown;
121295
- }>;
121296
- }>;
121297
- }>, t.PartialC<{
121298
- /** The description of the agent. */description: t.StringC; /** The title of the prompt that the agent is based on */
121299
- prompt: t.StringC;
121300
- /**
121301
- * The email addresses of the employees within your company that are the go-to individuals
121302
- * for managing this agent
121303
- */
121304
- owners: t.ArrayC<t.StringC>;
121305
- /**
121306
- * The names of teams within your Transcend instance that should be responsible
121307
- * for managing this agent
121308
- *
121309
- * @see https://docs.transcend.io/docs/security/access-control#teams
121310
- * for more information about how to create and manage teams
121311
- */
121312
- teams: t.ArrayC<t.StringC>;
121313
- /**
121314
- * The names of the functions that the agent has access to
121315
- */
121316
- 'agent-functions': t.ArrayC<t.StringC>;
121317
- /**
121318
- * The names of the files that the agent has access to for retrieval
121319
- */
121320
- 'agent-files': t.ArrayC<t.StringC>;
121321
- }>]>>;
121322
- /**
121323
- * Agent function definitions
121324
- */
121325
- 'agent-functions': t.ArrayC<t.TypeC<{
121326
- /** Name of the agentFunction */name: t.StringC; /** Description of the agentFunction */
121327
- description: t.StringC; /** The JSON schema */
121328
- parameters: t.StringC;
121329
- }>>;
121330
- /**
121331
- * Agent file definitions
121332
- */
121333
- 'agent-files': t.ArrayC<t.IntersectionC<[t.TypeC<{
121334
- /** Name of the agentFile */name: t.StringC; /** File ID */
121335
- fileId: t.StringC; /** File size */
121336
- size: t.NumberC; /** File purpose */
121337
- purpose: t.KeyofC<{
121338
- ASSISTANTS: unknown;
121339
- FINE_TUNE: unknown;
121340
- FINE_TUNE_RESULTS: unknown;
121341
- ASSISTANTS_OUTPUT: unknown;
121342
- }>;
121343
- }>, t.PartialC<{
121344
- /** Description of the agentFile */description: t.StringC;
121345
- }>]>>;
121346
121194
  /**
121347
121195
  * The privacy center configuration
121348
121196
  */
@@ -150117,121 +149965,6 @@ declare const ConsentManagerServiceMetadata: t.TypeC<{
150117
149965
  }>;
150118
149966
  /** Type override */
150119
149967
  type ConsentManagerServiceMetadata = t.TypeOf<typeof ConsentManagerServiceMetadata>;
150120
- declare const PathfinderPolicyNameC: t.KeyofC<{
150121
- redactEmail: unknown;
150122
- log: unknown;
150123
- logToTranscend: unknown;
150124
- applyTranscendPolicies: unknown;
150125
- }>;
150126
- /** the codec of a route enabled in an AI integration */
150127
- type EnabledRouteC<T extends t.Mixed> = t.TypeC<{
150128
- /** the name of the enabled route */routeName: T; /** the enabled policies */
150129
- enabledPolicies: t.ArrayC<typeof PathfinderPolicyNameC>;
150130
- }>;
150131
- /** the codec of routes enabled in an AI integration */
150132
- type EnabledRoutesC<T extends t.Mixed> = t.ArrayC<EnabledRouteC<T>>;
150133
- /** the codec of an AI Integration */
150134
- type AIIntegrationC<T extends t.Mixed> = t.TypeC<{
150135
- /** the routes enabled in the AI integration */enabledRoutes: EnabledRoutesC<T>;
150136
- }>;
150137
- declare const OpenAIEnabledRoute: EnabledRouteC<t.KeyofC<{
150138
- "/v1/chat/completions": unknown;
150139
- "/v1/embeddings": unknown;
150140
- "/v1/completions": unknown;
150141
- "/v1/assistants": unknown;
150142
- "/v1/assistants/:assistantId": unknown;
150143
- "/v1/threads": unknown;
150144
- "/v1/threads/:threadId": unknown;
150145
- "/v1/threads/:threadId/messages": unknown;
150146
- "/v1/threads/:threadId/messages/:messageId": unknown;
150147
- "/v1/threads/:threadId/runs": unknown;
150148
- "/v1/threads/:threadId/runs/:runId": unknown;
150149
- "/v1/files": unknown;
150150
- "/v1/files/:fileId": unknown;
150151
- }>>;
150152
- /** Type override */
150153
- type OpenAIEnabledRoute = t.TypeOf<typeof OpenAIEnabledRoute>;
150154
- declare const OpenAIRouteNameC: t.KeyofC<{
150155
- "/v1/chat/completions": unknown;
150156
- "/v1/embeddings": unknown;
150157
- "/v1/completions": unknown;
150158
- "/v1/assistants": unknown;
150159
- "/v1/assistants/:assistantId": unknown;
150160
- "/v1/threads": unknown;
150161
- "/v1/threads/:threadId": unknown;
150162
- "/v1/threads/:threadId/messages": unknown;
150163
- "/v1/threads/:threadId/messages/:messageId": unknown;
150164
- "/v1/threads/:threadId/runs": unknown;
150165
- "/v1/threads/:threadId/runs/:runId": unknown;
150166
- "/v1/files": unknown;
150167
- "/v1/files/:fileId": unknown;
150168
- }>;
150169
- /** The enabled routes for OpenAI */
150170
- declare const OpenAIEnabledRoutes: EnabledRoutesC<typeof OpenAIRouteNameC>;
150171
- /** Type override */
150172
- type OpenAIEnabledRoutes = t.TypeOf<typeof OpenAIEnabledRoutes>;
150173
- declare const OpenAIIntegration: AIIntegrationC<t.KeyofC<{
150174
- "/v1/chat/completions": unknown;
150175
- "/v1/embeddings": unknown;
150176
- "/v1/completions": unknown;
150177
- "/v1/assistants": unknown;
150178
- "/v1/assistants/:assistantId": unknown;
150179
- "/v1/threads": unknown;
150180
- "/v1/threads/:threadId": unknown;
150181
- "/v1/threads/:threadId/messages": unknown;
150182
- "/v1/threads/:threadId/messages/:messageId": unknown;
150183
- "/v1/threads/:threadId/runs": unknown;
150184
- "/v1/threads/:threadId/runs/:runId": unknown;
150185
- "/v1/files": unknown;
150186
- "/v1/files/:fileId": unknown;
150187
- }>>;
150188
- /** Type override */
150189
- type OpenAIIntegration = t.TypeOf<typeof OpenAIIntegration>;
150190
- declare const PathfinderPolicy: t.PartialC<{
150191
- enabledIntegrations: t.PartialC<{
150192
- openAI: AIIntegrationC<t.KeyofC<{
150193
- "/v1/chat/completions": unknown;
150194
- "/v1/embeddings": unknown;
150195
- "/v1/completions": unknown;
150196
- "/v1/assistants": unknown;
150197
- "/v1/assistants/:assistantId": unknown;
150198
- "/v1/threads": unknown;
150199
- "/v1/threads/:threadId": unknown;
150200
- "/v1/threads/:threadId/messages": unknown;
150201
- "/v1/threads/:threadId/messages/:messageId": unknown;
150202
- "/v1/threads/:threadId/runs": unknown;
150203
- "/v1/threads/:threadId/runs/:runId": unknown;
150204
- "/v1/files": unknown;
150205
- "/v1/files/:fileId": unknown;
150206
- }>>;
150207
- }>;
150208
- }>;
150209
- /** Type override */
150210
- type PathfinderPolicy = t.TypeOf<typeof PathfinderPolicy>;
150211
- /**
150212
- * Interface of metadata that can be passed for logging purposes
150213
- * via the Transcend Pathfinder
150214
- */
150215
- declare const PathfinderPromptRunMetadata: t.PartialC<{
150216
- /** Unique name for the current prompt run */promptRunName: t.StringC; /** ID of the Transcend prompt being reported */
150217
- promptId: t.StringC; /** Title of the prompt being reported on */
150218
- promptTitle: t.StringC; /** The ID of the prompt group being reported */
150219
- promptGroupId: t.StringC; /** The title of the prompt group being reported */
150220
- promptGroupTitle: t.StringC; /** Employee email that is executing the request */
150221
- runByEmployeeEmail: t.StringC; /** ID of the application calling pathfinder */
150222
- applicationId: t.StringC; /** Name of the application calling pathfinder */
150223
- applicationName: t.StringC; /** Name of the code package calling pathfinder */
150224
- codePackageName: t.StringC; /** Name of the repository calling pathfinder */
150225
- repositoryName: t.StringC; /** Core identifier of the application user being reported on */
150226
- applicationUserCoreIdentifier: t.StringC; /** Name of the application user being reported on */
150227
- applicationUserName: t.StringC; /** Slack message ts that is in context of the API call */
150228
- slackMessageTs: t.StringC; /** Slack team ID in context of the API call */
150229
- slackTeamId: t.StringC; /** Slack channel ID in context of the API call */
150230
- slackChannelId: t.StringC; /** Slack channel name in context of the API call */
150231
- slackChannelName: t.StringC;
150232
- }>;
150233
- /** Type override */
150234
- type PathfinderPromptRunMetadata = t.TypeOf<typeof PathfinderPromptRunMetadata>;
150235
149968
  /** Input for importing multiple OneTrust assessment forms into Transcend */
150236
149969
  declare const ImportOnetrustAssessmentsInput: t.PartialC<{
150237
149970
  /** 'The rows of the CSV file.' */rows: t.ArrayC<t.TypeC<{
@@ -150285,9 +150018,6 @@ declare enum TranscendPullResource {
150285
150018
  Prompts = "prompts",
150286
150019
  PromptPartials = "promptPartials",
150287
150020
  PromptGroups = "promptGroups",
150288
- Agents = "agents",
150289
- AgentFunctions = "agentFunctions",
150290
- AgentFiles = "agentFiles",
150291
150021
  Vendors = "vendors",
150292
150022
  DataCategories = "dataCategories",
150293
150023
  ProcessingPurposes = "processingPurposes",
@@ -150305,42 +150035,6 @@ declare enum TranscendPullResource {
150305
150035
  PreferenceWorkflowConfigs = "preferenceWorkflowConfigs",
150306
150036
  WorkflowConfigs = "workflowConfigs"
150307
150037
  }
150308
- /**
150309
- * Names of built in policies for pathfinder
150310
- */
150311
- declare const PathfinderPolicyName: {
150312
- RedactEmail: "redactEmail";
150313
- Log: "log";
150314
- LogToTranscend: "logToTranscend";
150315
- ApplyTranscendPolicies: "applyTranscendPolicies";
150316
- };
150317
- /**
150318
- * Type override
150319
- */
150320
- type PathfinderPolicyName = (typeof PathfinderPolicyName)[keyof typeof PathfinderPolicyName];
150321
- /**
150322
- * The names of the OpenAI routes that we support setting policies for
150323
- * reference: https://platform.openai.com/docs/api-reference/introduction
150324
- */
150325
- declare const OpenAIRouteName: {
150326
- ChatCompletion: "/v1/chat/completions";
150327
- Embeddings: "/v1/embeddings";
150328
- Completions: "/v1/completions";
150329
- Agents: "/v1/assistants";
150330
- Agent: "/v1/assistants/:assistantId";
150331
- Threads: "/v1/threads";
150332
- Thread: "/v1/threads/:threadId";
150333
- Messages: "/v1/threads/:threadId/messages";
150334
- Message: "/v1/threads/:threadId/messages/:messageId";
150335
- Runs: "/v1/threads/:threadId/runs";
150336
- Run: "/v1/threads/:threadId/runs/:runId";
150337
- Files: "/v1/files";
150338
- File: "/v1/files/:fileId";
150339
- };
150340
- /**
150341
- * Type override
150342
- */
150343
- type OpenAIRouteName = (typeof OpenAIRouteName)[keyof typeof OpenAIRouteName];
150344
150038
  //#endregion
150345
150039
  //#region src/lib/readTranscendYaml.d.ts
150346
150040
  declare const VARIABLE_PARAMETERS_REGEXP: RegExp;
@@ -174323,32 +174017,6 @@ declare function uploadConsents({
174323
174017
  concurrency?: number;
174324
174018
  }): Promise<void>;
174325
174019
  //#endregion
174326
- //#region src/lib/helpers/buildAIIntegrationType.d.ts
174327
- /**
174328
- * Helper to build a custom io-ts type representing an AIIntegration
174329
- *
174330
- * @param TEnabledRoutes - the type of the enabledRoutes for the AIIntegration type
174331
- * @returns an AIIntegration type
174332
- */
174333
- declare const buildAIIntegrationType: <T extends t.Mixed, P extends t.ArrayC<EnabledRouteC<T>>>({
174334
- TEnabledRoutes
174335
- }: {
174336
- /** the type of the enabledRoutes property */TEnabledRoutes: P;
174337
- }) => AIIntegrationC<T>;
174338
- //#endregion
174339
- //#region src/lib/helpers/buildEnabledRouteType.d.ts
174340
- /**
174341
- * Builds a custom io-ts type that represents a route allowed by the proxy
174342
- *
174343
- * @param TRouteName - the string with the name of the allowed route
174344
- * @returns custom io-ts AllowedRoute type
174345
- */
174346
- declare const buildEnabledRouteType: <T extends t.Mixed>({
174347
- TRouteName
174348
- }: {
174349
- /** the type of the routeName property */TRouteName: T;
174350
- }) => EnabledRouteC<T>;
174351
- //#endregion
174352
174020
  //#region src/lib/helpers/inquirer.d.ts
174353
174021
  /**
174354
174022
  * Inquirer confirm text
@@ -174795,232 +174463,6 @@ declare function listFiles(directory: string, validExtensions?: string[], remove
174795
174463
  */
174796
174464
  declare function listDirectories(startDir: string): string[];
174797
174465
  //#endregion
174798
- //#region src/lib/ai/TranscendPromptManager.d.ts
174799
- /**
174800
- * An LLM Prompt definition
174801
- */
174802
- type TranscendPrompt<TInputParams extends t.Any, TOutputCodec extends t.Any> = ({
174803
- /** ID of the prompt */id: string; /** Title of the prompt */
174804
- title?: string;
174805
- } | {
174806
- /** ID of the prompt */id?: string; /** Title of the prompt */
174807
- title: string;
174808
- }) & {
174809
- /** The names of the agents that should be loaded along with the prompt */agentNames?: string[]; /** Codec to validate runtime input shape */
174810
- paramCodec: TInputParams; /** Codec to validate output response */
174811
- outputCodec: TOutputCodec;
174812
- /**
174813
- * If the output that needs to be parsed is returned within a tag
174814
- * e.g. <tag> or <json> - this is the name of the tag
174815
- */
174816
- extractFromTag?: string;
174817
- };
174818
- interface PromptRunResult {
174819
- /** The ID of the prompt run created on Transcend */
174820
- promptRunId: string;
174821
- /** The URL of the prompt run on Transcend */
174822
- promptRunUrl: string;
174823
- }
174824
- /**
174825
- * Create a regex to extract data from a tag
174826
- *
174827
- * Input:
174828
- * "here is some data <tag>Data</tag>..."
174829
- *
174830
- * @param tagName - Name of tag
174831
- * @returns Data within the tag
174832
- */
174833
- declare function createRegexForTag(tagName: string): RegExp;
174834
- /**
174835
- * Helper function to declare prompts
174836
- *
174837
- * @param prompts - Prompt config
174838
- * @returns Prompts as identity function - but type enforced
174839
- */
174840
- declare function defineTranscendPrompts<TPromptNames extends string, TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> }>(prompts: TPrompts): TPrompts;
174841
- /**
174842
- * Helper to get the type of the parameter for a given prompt
174843
- */
174844
- type GetPromptParamType<TPromptName extends keyof TPrompts, TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> }> = t.TypeOf<TPrompts[TPromptName]['paramCodec']>;
174845
- /**
174846
- * Helper to get the type of the parameter for a given prompt
174847
- */
174848
- type GetPromptResponseType<TPromptName extends keyof TPrompts, TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> }> = t.TypeOf<TPrompts[TPromptName]['outputCodec']>;
174849
- /**
174850
- * Input for reporting a prompt run
174851
- */
174852
- interface ReportPromptRunOptions extends Optionalize<Omit<ReportPromptRunInput, 'status' | 'promptId' | 'largeLanguageModelId'>, 'name' | 'productArea'> {
174853
- /** The large language model being run. Either the ID of the LLM or the client/name pairing */
174854
- largeLanguageModel: string | {
174855
- /** Name of client */client: LargeLanguageModelClient; /** Name of the model */
174856
- name: string;
174857
- };
174858
- }
174859
- /**
174860
- * A class that is capable of loading and insert variables into prompts from
174861
- * Transcend's Prompt Manager
174862
- */
174863
- declare class TranscendPromptManager<TPromptNames extends string, TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> }> {
174864
- /** Prompt definitions */
174865
- prompts: TPrompts;
174866
- /** Options for configuring handlebars */
174867
- handlebarsOptions: HandlebarsInput;
174868
- /** Prompt name -> content map, populated by call to Transcend API */
174869
- promptContentMap?: { [k in TPromptNames]: TranscendPromptTemplated };
174870
- /** The large language models that are registered to this organization for reporting */
174871
- largeLanguageModels: LargeLanguageModel[];
174872
- /** The agent definitions registered to this organization */
174873
- private agentsByName;
174874
- /** The agent definitions registered to this organization */
174875
- private agentsByAgentId;
174876
- /** The GraphQL client that can be used to call Transcend */
174877
- graphQLClient: GraphQLClient;
174878
- /** The set of variables to expose in handlebars context specified at class initiation */
174879
- defaultVariables: { [k in string]: unknown };
174880
- /**
174881
- * The set of variables to expose in handlebars context,
174882
- * merges defaults with calculated variables from the inventory
174883
- */
174884
- variables: { [k in string]: unknown };
174885
- /** Handlebars compiler */
174886
- handlebars: typeof Handlebars;
174887
- /** The Transcend API key */
174888
- transcendApiKey: string | Secret<string>;
174889
- /** API of Transcend to call */
174890
- transcendUrl: string;
174891
- /** When true, throw an error if the prompt is not approved */
174892
- requireApproval: boolean;
174893
- /**
174894
- * The cache duration in ms for how long prompts and associated metadata should be cached
174895
- * When undefined - prompts are cached indefinitely unless explicitly re-requested
174896
- * When 0, prompts and metadata are fetched every time (not recommended)
174897
- * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date
174898
- */
174899
- cacheDuration?: number;
174900
- /**
174901
- * The last time the metadata was fetched
174902
- */
174903
- lastUpdatedAt?: Date;
174904
- /**
174905
- * Constructor
174906
- *
174907
- * @param options - Options
174908
- */
174909
- constructor({
174910
- prompts,
174911
- handlebarsOptions,
174912
- transcendUrl,
174913
- transcendApiKey,
174914
- requireApproval,
174915
- cacheDuration,
174916
- defaultVariables
174917
- }: {
174918
- /** Prompt definitions to load */prompts: TPrompts; /** Options for configuring handlebars */
174919
- handlebarsOptions?: HandlebarsInput; /** The Transcend API key */
174920
- transcendApiKey: string | Secret<string>; /** API of Transcend to call */
174921
- transcendUrl?: string; /** When true, throw an error if the prompt is not approved */
174922
- requireApproval?: boolean; /** The set of variables to expose in handlebars context specified at class initiation */
174923
- defaultVariables?: { [k in string]: unknown };
174924
- /**
174925
- * The cache duration in ms for how long prompts and associated metadata should be cached
174926
- * When undefined - prompts are cached indefinitely unless explicitly re-requested
174927
- * When 0, prompts and metadata are fetched every time (not recommended)
174928
- * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date
174929
- */
174930
- cacheDuration?: number;
174931
- });
174932
- /**
174933
- * Fetch prompt metadata from Transcend and cache to the class definition
174934
- *
174935
- * @returns A function that can be used to call the prompt
174936
- */
174937
- fetchPromptsAndMetadata(): Promise<TranscendPromptsAndVariables>;
174938
- /**
174939
- * Get an agent definition by name
174940
- *
174941
- * @param name - Name of the agent to grab
174942
- * @returns Large language model configuration
174943
- */
174944
- getAgentByName(name: string): Promise<Agent | undefined>;
174945
- /**
174946
- * Get a prompt thread by ts
174947
- *
174948
- * @param ts - the slack message timestamp to look up thread for
174949
- * @returns Large language model configuration
174950
- */
174951
- getPromptThreadBySlackTs(ts: string): Promise<PromptThread | undefined>;
174952
- /**
174953
- * Get a list of agent definitions by name.
174954
- * Pulls from cache and may return less agents
174955
- * than requested if some are not found
174956
- *
174957
- * @param names - Names of agents to fetch
174958
- * @returns The agents that were found matching the names
174959
- */
174960
- getAgentsByName(names: string[]): Promise<Agent[]>;
174961
- /**
174962
- * Fetch metadata on agent files
174963
- *
174964
- * @param filterBy - Filter by parameters
174965
- * @returns The files found matching the filter
174966
- */
174967
- getAgentFiles(filterBy: AgentFileFilterBy): Promise<AgentFile[]>;
174968
- /**
174969
- * Look up the large language model to report on
174970
- *
174971
- * @param largeLanguageModel - Input
174972
- * @returns Large language model configuration
174973
- */
174974
- getLargeLanguageModel(largeLanguageModel: ReportPromptRunOptions['largeLanguageModel']): LargeLanguageModel;
174975
- /**
174976
- * Get a prompt definition by name
174977
- *
174978
- * @param promptName - Prompt to compile
174979
- * @returns Parsed content
174980
- */
174981
- getPromptDefinition<TPromptName extends TPromptNames>(promptName: TPromptName): Promise<TranscendPromptTemplated>;
174982
- /**
174983
- * Validate the shape of the response from AI
174984
- *
174985
- * @param promptName - Prompt to compile
174986
- * @param params - Runtime parameters
174987
- * @returns Parsed content
174988
- */
174989
- compilePrompt<TPromptName extends TPromptNames>(promptName: TPromptName, params: t.TypeOf<TPrompts[TPromptName]['paramCodec']>): Promise<string>;
174990
- /**
174991
- * Validate the shape of the response from AI
174992
- *
174993
- * @param promptName - Prompt to parse
174994
- * @param response - AI response as string
174995
- * @returns Parsed content
174996
- */
174997
- parseAiResponse<TPromptName extends TPromptNames>(promptName: TPromptName, response: string): t.TypeOf<TPrompts[TPromptName]['outputCodec']>;
174998
- /**
174999
- * Parse the AI response and report back to Transcend
175000
- *
175001
- * @param promptName - Prompt to parse
175002
- * @param options - Options for reporting
175003
- * @returns Parsed content
175004
- */
175005
- reportAndParsePromptRun<TPromptName extends TPromptNames>(promptName: TPromptName, {
175006
- largeLanguageModel,
175007
- ...options
175008
- }: ReportPromptRunOptions): Promise<PromptRunResult & {
175009
- /** Resulting prompt run */result: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;
175010
- }>;
175011
- /**
175012
- * Report an error for a particular prompt
175013
- *
175014
- * @param promptName - Prompt to parse
175015
- * @param options - Options for reporting
175016
- * @returns Parsed content
175017
- */
175018
- reportPromptRunError<TPromptName extends TPromptNames>(promptName: TPromptName, {
175019
- largeLanguageModel,
175020
- ...options
175021
- }: Requirize<ReportPromptRunOptions, 'error'>): Promise<PromptRunResult>;
175022
- }
175023
- //#endregion
175024
174466
  //#region src/lib/ai/removeLinks.d.ts
175025
174467
  /**
175026
174468
  * Remove links from a string
@@ -175277,5 +174719,5 @@ declare function enrichPrivacyRequest(sombra: Got, {
175277
174719
  ...rest
175278
174720
  }: EnrichPrivacyRequest, enricherId: string, index?: number): Promise<boolean>;
175279
174721
  //#endregion
175280
- export { ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, AIIntegrationC, APPROVE_PRIVACY_REQUEST, ASSESSMENT_TEMPLATES, ActionInput, ActionItemCollectionInput, ActionItemInput, AgentFileInput, AgentFunctionInput, AgentInput, ApiKeyGenerateError, ApiKeyInput, AssessmentAnswerOptionInput, AssessmentDisplayLogicInput, AssessmentInput, AssessmentNestedRuleInput, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRuleInput, AssessmentSectionInput, AssessmentSectionQuestionInput, AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, AttributeInput, AttributeNameMap, AttributePreview, AttributeValueInput, BLANK, BULK_APPLY, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CachedFileState, CachedRequestState, ChunkedDateRange, CodePackageInput, CodePackageSdk, ColumnName, ColumnNameMap, ConsentManageExperienceInput, ConsentManagerInput, ConsentManagerServiceMetadata, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, CookieCsvInput, CookieInput, CronIdentifier, CronIdentifierPush, CronIdentifierWithAction, CronPartition, CsvFormattedIdentifier, CsvRow, DEBUG, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_API_KEY, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, DataFlowCsvInput, DataFlowInput, DataPointCsvPreview, DataSiloCsvPreview, DataSiloInput, DataSubjectInput, DatapointFilterOptions, DatapointInput, ENTRY_COUNT, EnabledRouteC, EnabledRoutesC, EnrichPrivacyRequest, EnricherInput, ExportedPrivacyRequest, FieldInput, GetPromptParamType, GetPromptResponseType, IDENTIFIER_BLOCK_LIST, IP_ADDRESS_REGEX, IS_REQUIRED, IdentifierInput, IdentifierNameMap, ImportOnetrustAssessmentsInput, IntlMessage, IntlMessageInput, NONE, NOTIFY_ADDITIONAL_TIME, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, OpenAIEnabledRoute, OpenAIEnabledRoutes, OpenAIIntegration, OpenAIRouteName, ParquetToCsvOneFileOptions, ParsedAttributeInput, PartitionInput, PathfinderPolicy, PathfinderPolicyName, PathfinderPolicyNameC, PathfinderPromptRunMetadata, PolicyInput, PreferenceWorkflowConfigInput, PreferenceWorkflowConfigPurposeInput, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, PrivacyRequestWithIdentifiers, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, PromptAVendorEmailSettings, PromptGroupInput, PromptInput, PromptPartialInput, PromptRunResult, PurposeMap, REQUESTS, REQUESTS_COUNT, RETRYABLE_BATCH_STATUSES, RegionInput, ReportPromptRunOptions, RepositoryInput, RequestFileMetadata, RequestFileMetadataResponse, RequestPurposeTrigger, RiskAssignmentInput, RiskLogicInput, SCOPES_BY_TITLE, SCOPE_TITLES, SiloDiscoveryResultInput, SoftwareDevelopmentKitInput, StoredApiKey, SubDataPointCsvPreview, SuccessfulRequest, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, TeamInput, TemplateInput, TranscendInput, TranscendPrompt, TranscendPromptManager, TranscendPullConfigurationInput, TranscendPullResource, UPDATE_PRIVACY_REQUEST, USP_STRING_REGEX, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VendorInput, WebhookHeader, WorkflowConfigInput, XdiSyncGroups, appendCsvRowsOrdered, appendCsvSync, approvePrivacyRequests, buildAIIntegrationType, buildEnabledRouteType, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, collectCsvFilesOrExit, collectParquetFilesOrExit, consentManagersToBusinessEntities, createCodePackage, createConsentToken, createRegexForTag, defineTranscendPrompts, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, fetchAllAssessmentTemplates, fetchAllRequests, fetchRequestDataSiloActiveCount, fetchRequestsTotalCount, filterNullishValuesFromObject, filterRows, formatRequestForCsv, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, initCsvFile, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, listDirectories, listFiles, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parquetToCsvOneFile, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readSafe, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, restartPrivacyRequest, retryRequestDataSilos, skipPreflightJobs, skipRequestDataSilos, splitDateRange, streamPrivacyRequestFiles, streamPrivacyRequestsToCsv, submitPrivacyRequest, syncCodePackages, syncConfigurationToTranscend, syncCookies, syncDataSilos, updateCodePackages, updateConsentManagerVersionToLatest, updateOrCreateCookies, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
174722
+ export { ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, APPROVE_PRIVACY_REQUEST, ASSESSMENT_TEMPLATES, ActionInput, ActionItemCollectionInput, ActionItemInput, ApiKeyGenerateError, ApiKeyInput, AssessmentAnswerOptionInput, AssessmentDisplayLogicInput, AssessmentInput, AssessmentNestedRuleInput, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRuleInput, AssessmentSectionInput, AssessmentSectionQuestionInput, AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, AttributeInput, AttributeNameMap, AttributePreview, AttributeValueInput, BLANK, BULK_APPLY, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CachedFileState, CachedRequestState, ChunkedDateRange, CodePackageInput, CodePackageSdk, ColumnName, ColumnNameMap, ConsentManageExperienceInput, ConsentManagerInput, ConsentManagerServiceMetadata, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, CookieCsvInput, CookieInput, CronIdentifier, CronIdentifierPush, CronIdentifierWithAction, CronPartition, CsvFormattedIdentifier, CsvRow, DEBUG, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_API_KEY, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, DataFlowCsvInput, DataFlowInput, DataPointCsvPreview, DataSiloCsvPreview, DataSiloInput, DataSubjectInput, DatapointFilterOptions, DatapointInput, ENTRY_COUNT, EnrichPrivacyRequest, EnricherInput, ExportedPrivacyRequest, FieldInput, IDENTIFIER_BLOCK_LIST, IP_ADDRESS_REGEX, IS_REQUIRED, IdentifierInput, IdentifierNameMap, ImportOnetrustAssessmentsInput, IntlMessage, IntlMessageInput, NONE, NOTIFY_ADDITIONAL_TIME, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, ParquetToCsvOneFileOptions, ParsedAttributeInput, PartitionInput, PolicyInput, PreferenceWorkflowConfigInput, PreferenceWorkflowConfigPurposeInput, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, PrivacyRequestWithIdentifiers, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, PromptAVendorEmailSettings, PromptGroupInput, PromptInput, PromptPartialInput, PurposeMap, REQUESTS, REQUESTS_COUNT, RETRYABLE_BATCH_STATUSES, RegionInput, RepositoryInput, RequestFileMetadata, RequestFileMetadataResponse, RequestPurposeTrigger, RiskAssignmentInput, RiskLogicInput, SCOPES_BY_TITLE, SCOPE_TITLES, SiloDiscoveryResultInput, SoftwareDevelopmentKitInput, StoredApiKey, SubDataPointCsvPreview, SuccessfulRequest, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, TeamInput, TemplateInput, TranscendInput, TranscendPullConfigurationInput, TranscendPullResource, UPDATE_PRIVACY_REQUEST, USP_STRING_REGEX, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VendorInput, WebhookHeader, WorkflowConfigInput, XdiSyncGroups, appendCsvRowsOrdered, appendCsvSync, approvePrivacyRequests, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, collectCsvFilesOrExit, collectParquetFilesOrExit, consentManagersToBusinessEntities, createCodePackage, createConsentToken, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, fetchAllAssessmentTemplates, fetchAllRequests, fetchRequestDataSiloActiveCount, fetchRequestsTotalCount, filterNullishValuesFromObject, filterRows, formatRequestForCsv, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, initCsvFile, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, listDirectories, listFiles, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parquetToCsvOneFile, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readSafe, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, restartPrivacyRequest, retryRequestDataSilos, skipPreflightJobs, skipRequestDataSilos, splitDateRange, streamPrivacyRequestFiles, streamPrivacyRequestsToCsv, submitPrivacyRequest, syncCodePackages, syncConfigurationToTranscend, syncCookies, syncDataSilos, updateCodePackages, updateConsentManagerVersionToLatest, updateOrCreateCookies, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
175281
174723
  //# sourceMappingURL=index.d.mts.map