@transcend-io/cli 8.1.8 → 8.20.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 (113) hide show
  1. package/README.md +20 -13
  2. package/dist/bin/bash-complete.cjs +1 -1
  3. package/dist/bin/cli.cjs +1 -1
  4. package/dist/bin/deprecated-command.cjs +2 -2
  5. package/dist/{chunk-WI7C7KDM.cjs → chunk-2IKWKGRE.cjs} +2 -2
  6. package/dist/{chunk-WI7C7KDM.cjs.map → chunk-2IKWKGRE.cjs.map} +1 -1
  7. package/dist/{chunk-UTU4F57H.cjs → chunk-CFAKXEZB.cjs} +51 -14
  8. package/dist/{chunk-UTU4F57H.cjs.map → chunk-CFAKXEZB.cjs.map} +1 -1
  9. package/dist/{chunk-TXG7TJLK.cjs → chunk-EXKPAUEP.cjs} +2 -2
  10. package/dist/{chunk-TXG7TJLK.cjs.map → chunk-EXKPAUEP.cjs.map} +1 -1
  11. package/dist/{chunk-FK7EPQ7K.cjs → chunk-G2PF2QFC.cjs} +2 -2
  12. package/dist/{chunk-FK7EPQ7K.cjs.map → chunk-G2PF2QFC.cjs.map} +1 -1
  13. package/dist/{chunk-K45V7WKN.cjs → chunk-GN4PQZTW.cjs} +2 -2
  14. package/dist/{chunk-K45V7WKN.cjs.map → chunk-GN4PQZTW.cjs.map} +1 -1
  15. package/dist/{chunk-6LMZMYBN.cjs → chunk-HZLUANIA.cjs} +2 -2
  16. package/dist/{chunk-6LMZMYBN.cjs.map → chunk-HZLUANIA.cjs.map} +1 -1
  17. package/dist/{chunk-XCTTKA6C.cjs → chunk-R6TAK6HM.cjs} +4 -4
  18. package/dist/{chunk-XCTTKA6C.cjs.map → chunk-R6TAK6HM.cjs.map} +1 -1
  19. package/dist/{chunk-22FMPHOU.cjs → chunk-VDPP6XH4.cjs} +2 -2
  20. package/dist/{chunk-22FMPHOU.cjs.map → chunk-VDPP6XH4.cjs.map} +1 -1
  21. package/dist/{chunk-L3GIP73U.cjs → chunk-W5G4MO4M.cjs} +20 -20
  22. package/dist/{chunk-L3GIP73U.cjs.map → chunk-W5G4MO4M.cjs.map} +1 -1
  23. package/dist/{chunk-2CCKVEWS.cjs → chunk-WP4MWWEU.cjs} +2 -2
  24. package/dist/{chunk-2CCKVEWS.cjs.map → chunk-WP4MWWEU.cjs.map} +1 -1
  25. package/dist/{chunk-IXOC4S5L.cjs → chunk-WRFKBQI7.cjs} +3 -3
  26. package/dist/{chunk-IXOC4S5L.cjs.map → chunk-WRFKBQI7.cjs.map} +1 -1
  27. package/dist/{chunk-VWFYPZ4Q.cjs → chunk-XAMXO4ZU.cjs} +2 -2
  28. package/dist/{chunk-VWFYPZ4Q.cjs.map → chunk-XAMXO4ZU.cjs.map} +1 -1
  29. package/dist/{impl-RD2RWVVR.cjs → impl-4OM2R3DU.cjs} +2 -2
  30. package/dist/{impl-RD2RWVVR.cjs.map → impl-4OM2R3DU.cjs.map} +1 -1
  31. package/dist/{impl-DOPOJXH2.cjs → impl-4ZMX6NI7.cjs} +2 -2
  32. package/dist/{impl-DOPOJXH2.cjs.map → impl-4ZMX6NI7.cjs.map} +1 -1
  33. package/dist/{impl-RCSSVIJF.cjs → impl-7725PBIW.cjs} +2 -2
  34. package/dist/{impl-RCSSVIJF.cjs.map → impl-7725PBIW.cjs.map} +1 -1
  35. package/dist/{impl-QTO2EWMC.cjs → impl-7HS5OXYP.cjs} +2 -2
  36. package/dist/{impl-QTO2EWMC.cjs.map → impl-7HS5OXYP.cjs.map} +1 -1
  37. package/dist/{impl-AYAPFSK5.cjs → impl-7NJTDC7N.cjs} +2 -2
  38. package/dist/{impl-AYAPFSK5.cjs.map → impl-7NJTDC7N.cjs.map} +1 -1
  39. package/dist/{impl-NNT5EBMK.cjs → impl-A4ARAZB5.cjs} +2 -2
  40. package/dist/{impl-NNT5EBMK.cjs.map → impl-A4ARAZB5.cjs.map} +1 -1
  41. package/dist/{impl-KFML3O7R.cjs → impl-B4AVWMTA.cjs} +2 -2
  42. package/dist/{impl-KFML3O7R.cjs.map → impl-B4AVWMTA.cjs.map} +1 -1
  43. package/dist/{impl-XGKSU4NG.cjs → impl-BYP6MSYN.cjs} +2 -2
  44. package/dist/{impl-XGKSU4NG.cjs.map → impl-BYP6MSYN.cjs.map} +1 -1
  45. package/dist/{impl-IP7IRDK3.cjs → impl-D47N3KS2.cjs} +2 -2
  46. package/dist/{impl-IP7IRDK3.cjs.map → impl-D47N3KS2.cjs.map} +1 -1
  47. package/dist/{impl-76RWHLA4.cjs → impl-DPAJCCCQ.cjs} +2 -2
  48. package/dist/{impl-76RWHLA4.cjs.map → impl-DPAJCCCQ.cjs.map} +1 -1
  49. package/dist/{impl-PFPN37IX.cjs → impl-EONKFIXB.cjs} +2 -2
  50. package/dist/{impl-PFPN37IX.cjs.map → impl-EONKFIXB.cjs.map} +1 -1
  51. package/dist/{impl-JLVAP3PH.cjs → impl-F67Z4Z5E.cjs} +2 -2
  52. package/dist/{impl-JLVAP3PH.cjs.map → impl-F67Z4Z5E.cjs.map} +1 -1
  53. package/dist/{impl-AA2S5XWZ.cjs → impl-FSORO3NH.cjs} +2 -2
  54. package/dist/{impl-AA2S5XWZ.cjs.map → impl-FSORO3NH.cjs.map} +1 -1
  55. package/dist/{impl-MCCYBIUO.cjs → impl-GM3LQMV6.cjs} +2 -2
  56. package/dist/{impl-MCCYBIUO.cjs.map → impl-GM3LQMV6.cjs.map} +1 -1
  57. package/dist/{impl-24WF6BP2.cjs → impl-IDCUHY36.cjs} +2 -2
  58. package/dist/{impl-24WF6BP2.cjs.map → impl-IDCUHY36.cjs.map} +1 -1
  59. package/dist/impl-IYXSGCMU.cjs +2 -0
  60. package/dist/{impl-XN2JRARB.cjs.map → impl-IYXSGCMU.cjs.map} +1 -1
  61. package/dist/{impl-FXYNZQL3.cjs → impl-JJHHECCC.cjs} +2 -2
  62. package/dist/{impl-FXYNZQL3.cjs.map → impl-JJHHECCC.cjs.map} +1 -1
  63. package/dist/{impl-RM5WL2FX.cjs → impl-KCVLYM46.cjs} +2 -2
  64. package/dist/{impl-RM5WL2FX.cjs.map → impl-KCVLYM46.cjs.map} +1 -1
  65. package/dist/{impl-NPNBU4L2.cjs → impl-KV2YRQHY.cjs} +2 -2
  66. package/dist/{impl-NPNBU4L2.cjs.map → impl-KV2YRQHY.cjs.map} +1 -1
  67. package/dist/{impl-U67PZO2U.cjs → impl-LHFUO3OY.cjs} +5 -5
  68. package/dist/{impl-U67PZO2U.cjs.map → impl-LHFUO3OY.cjs.map} +1 -1
  69. package/dist/{impl-MKEVOXWE.cjs → impl-LRGRDGET.cjs} +2 -2
  70. package/dist/{impl-MKEVOXWE.cjs.map → impl-LRGRDGET.cjs.map} +1 -1
  71. package/dist/{impl-QK22H5S4.cjs → impl-N2K7XLAG.cjs} +2 -2
  72. package/dist/{impl-QK22H5S4.cjs.map → impl-N2K7XLAG.cjs.map} +1 -1
  73. package/dist/{impl-2YFKUYD6.cjs → impl-N2TGS42T.cjs} +2 -2
  74. package/dist/{impl-2YFKUYD6.cjs.map → impl-N2TGS42T.cjs.map} +1 -1
  75. package/dist/{impl-KZATCJTP.cjs → impl-NI5AKEAP.cjs} +6 -6
  76. package/dist/{impl-KZATCJTP.cjs.map → impl-NI5AKEAP.cjs.map} +1 -1
  77. package/dist/{impl-NFM4JZLR.cjs → impl-NLJZGXP5.cjs} +2 -2
  78. package/dist/{impl-NFM4JZLR.cjs.map → impl-NLJZGXP5.cjs.map} +1 -1
  79. package/dist/{impl-YI6MEGDR.cjs → impl-NNJJETJZ.cjs} +4 -4
  80. package/dist/{impl-YI6MEGDR.cjs.map → impl-NNJJETJZ.cjs.map} +1 -1
  81. package/dist/{impl-PZBN6XCO.cjs → impl-PEZVAY6Y.cjs} +2 -2
  82. package/dist/{impl-PZBN6XCO.cjs.map → impl-PEZVAY6Y.cjs.map} +1 -1
  83. package/dist/{impl-GZ2ZIYWN.cjs → impl-POLVK5PD.cjs} +2 -2
  84. package/dist/{impl-GZ2ZIYWN.cjs.map → impl-POLVK5PD.cjs.map} +1 -1
  85. package/dist/{impl-6RCILBC5.cjs → impl-QJ6TMS77.cjs} +2 -2
  86. package/dist/{impl-6RCILBC5.cjs.map → impl-QJ6TMS77.cjs.map} +1 -1
  87. package/dist/{impl-N24QF4DA.cjs → impl-QM6PZE6N.cjs} +5 -5
  88. package/dist/{impl-N24QF4DA.cjs.map → impl-QM6PZE6N.cjs.map} +1 -1
  89. package/dist/{impl-RDXUUMXQ.cjs → impl-TA5EIWJS.cjs} +2 -2
  90. package/dist/{impl-RDXUUMXQ.cjs.map → impl-TA5EIWJS.cjs.map} +1 -1
  91. package/dist/{impl-NCKHD5HN.cjs → impl-TCQVLEKS.cjs} +3 -3
  92. package/dist/{impl-NCKHD5HN.cjs.map → impl-TCQVLEKS.cjs.map} +1 -1
  93. package/dist/{impl-SXGH7WAQ.cjs → impl-TMXKCYSF.cjs} +2 -2
  94. package/dist/{impl-SXGH7WAQ.cjs.map → impl-TMXKCYSF.cjs.map} +1 -1
  95. package/dist/{impl-RSPCWV5C.cjs → impl-TSRLBSVW.cjs} +2 -2
  96. package/dist/{impl-RSPCWV5C.cjs.map → impl-TSRLBSVW.cjs.map} +1 -1
  97. package/dist/impl-VEO2SBGG.cjs +2 -0
  98. package/dist/impl-VEO2SBGG.cjs.map +1 -0
  99. package/dist/{impl-VRKVDMBB.cjs → impl-VYR77UN4.cjs} +3 -3
  100. package/dist/{impl-VRKVDMBB.cjs.map → impl-VYR77UN4.cjs.map} +1 -1
  101. package/dist/{impl-T3XZ5262.cjs → impl-YZBWTEQH.cjs} +2 -2
  102. package/dist/{impl-T3XZ5262.cjs.map → impl-YZBWTEQH.cjs.map} +1 -1
  103. package/dist/{impl-57VL3VKK.cjs → impl-ZLI6YRLT.cjs} +2 -2
  104. package/dist/{impl-57VL3VKK.cjs.map → impl-ZLI6YRLT.cjs.map} +1 -1
  105. package/dist/{impl-T2FIEZLI.cjs → impl-ZN4UWQUU.cjs} +2 -2
  106. package/dist/{impl-T2FIEZLI.cjs.map → impl-ZN4UWQUU.cjs.map} +1 -1
  107. package/dist/index.cjs +3 -3
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.d.cts +74 -3
  110. package/package.json +1 -1
  111. package/dist/impl-DBWCR5EV.cjs +0 -2
  112. package/dist/impl-DBWCR5EV.cjs.map +0 -1
  113. package/dist/impl-XN2JRARB.cjs +0 -2
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkUTU4F57Hcjs = require('./chunk-UTU4F57H.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-WI7C7KDM.cjs');require('./chunk-Q7I37FJV.cjs');var _privacytypes = require('@transcend-io/privacy-types');async function g({auth:r,transcendUrl:a,folderPath:n,requestIds:s,statuses:i=[_privacytypes.RequestStatus.Approving,_privacytypes.RequestStatus.Downloadable],concurrency:l,createdAtBefore:d,createdAtAfter:m,approveAfterDownload:c}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkUTU4F57Hcjs.wf.call(void 0, {transcendUrl:a,auth:r,folderPath:n,requestIds:s,statuses:i,concurrency:l,createdAtBefore:d,createdAtAfter:m,approveAfterDownload:c})}exports.downloadFiles = g;
2
- //# sourceMappingURL=impl-RSPCWV5C.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');var _privacytypes = require('@transcend-io/privacy-types');async function g({auth:r,transcendUrl:a,folderPath:n,requestIds:s,statuses:i=[_privacytypes.RequestStatus.Approving,_privacytypes.RequestStatus.Downloadable],concurrency:l,createdAtBefore:d,createdAtAfter:m,approveAfterDownload:c}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkCFAKXEZBcjs.xf.call(void 0, {transcendUrl:a,auth:r,folderPath:n,requestIds:s,statuses:i,concurrency:l,createdAtBefore:d,createdAtAfter:m,approveAfterDownload:c})}exports.downloadFiles = g;
2
+ //# sourceMappingURL=impl-TSRLBSVW.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-RSPCWV5C.cjs","../src/commands/request/download-files/impl.ts"],"names":["downloadFiles","auth","transcendUrl","folderPath","requestIds","statuses","RequestStatus","concurrency","createdAtBefore","createdAtAfter","approveAfterDownload","doneInputValidation","downloadPrivacyRequestFiles"],"mappings":"AAAA,iIAAwC,wDAA0C,gCAA6B,gCAA6B,gCAA6B,gCAA6B,2DCExK,MAgB9B,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CAAW,CAACC,2BAAAA,CAAc,SAAA,CAAWA,2BAAAA,CAAc,YAAY,CAAA,CAC/D,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,kCAAAA,CACJ,YAAA,CAAAV,CAAAA,CACA,IAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAE,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,CACF,CAAC,CACH,CAAA,0BAAA","file":"/home/runner/work/cli/cli/dist/impl-RSPCWV5C.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { downloadPrivacyRequestFiles } from '../../../lib/requests';\nimport { RequestStatus } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface DownloadFilesCommandFlags {\n auth: string;\n sombraAuth?: string;\n concurrency: number;\n requestIds?: string[];\n statuses?: RequestStatus[];\n folderPath: string;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n approveAfterDownload: boolean;\n transcendUrl: string;\n}\n\nexport async function downloadFiles(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n folderPath,\n requestIds,\n statuses = [RequestStatus.Approving, RequestStatus.Downloadable],\n concurrency,\n createdAtBefore,\n createdAtAfter,\n approveAfterDownload,\n }: DownloadFilesCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await downloadPrivacyRequestFiles({\n transcendUrl,\n auth,\n folderPath,\n requestIds,\n statuses,\n concurrency,\n createdAtBefore,\n createdAtAfter,\n approveAfterDownload,\n });\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-TSRLBSVW.cjs","../src/commands/request/download-files/impl.ts"],"names":["downloadFiles","auth","transcendUrl","folderPath","requestIds","statuses","RequestStatus","concurrency","createdAtBefore","createdAtAfter","approveAfterDownload","doneInputValidation","downloadPrivacyRequestFiles"],"mappings":"AAAA,iIAAwC,wDAA0C,gCAA6B,gCAA6B,gCAA6B,gCAA6B,2DCExK,MAgB9B,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CAAW,CAACC,2BAAAA,CAAc,SAAA,CAAWA,2BAAAA,CAAc,YAAY,CAAA,CAC/D,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,kCAAAA,CACJ,YAAA,CAAAV,CAAAA,CACA,IAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAE,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,CACF,CAAC,CACH,CAAA,0BAAA","file":"/home/runner/work/cli/cli/dist/impl-TSRLBSVW.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { downloadPrivacyRequestFiles } from '../../../lib/requests';\nimport { RequestStatus } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface DownloadFilesCommandFlags {\n auth: string;\n sombraAuth?: string;\n concurrency: number;\n requestIds?: string[];\n statuses?: RequestStatus[];\n folderPath: string;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n approveAfterDownload: boolean;\n transcendUrl: string;\n}\n\nexport async function downloadFiles(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n folderPath,\n requestIds,\n statuses = [RequestStatus.Approving, RequestStatus.Downloadable],\n concurrency,\n createdAtBefore,\n createdAtAfter,\n approveAfterDownload,\n }: DownloadFilesCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await downloadPrivacyRequestFiles({\n transcendUrl,\n auth,\n folderPath,\n requestIds,\n statuses,\n concurrency,\n createdAtBefore,\n createdAtAfter,\n approveAfterDownload,\n });\n}\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-XAMXO4ZU.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk2IKWKGREcjs = require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function F({auth:a,transcendUrl:m,file:e,pageLimit:c,actions:p,sombraAuth:u,skipRequestIdentifiers:f,statuses:l,createdAtBefore:d,createdAtAfter:g,showTests:q}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let{requestsFormattedForCsv:t}=await _chunkCFAKXEZBcjs.Mf.call(void 0, {transcendUrl:m,pageLimit:c,actions:p,skipRequestIdentifiers:f,statuses:l,auth:a,sombraAuth:u,createdAtBefore:d,createdAtAfter:g,isTest:q}),x=_chunk2IKWKGREcjs.j.call(void 0, t.map(y=>Object.keys(y)).flat());_chunkLR3CPNDMcjs.c.call(void 0, e,t,x),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully wrote ${t.length} requests to file "${e}"`))}exports._export = F;
2
+ //# sourceMappingURL=impl-VEO2SBGG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-VEO2SBGG.cjs","../src/commands/request/export/impl.ts"],"names":["_export","auth","transcendUrl","file","pageLimit","actions","sombraAuth","skipRequestIdentifiers","statuses","createdAtBefore","createdAtAfter","showTests","doneInputValidation","requestsFormattedForCsv","pullPrivacyRequests","headers","uniq_default","d","writeCsv","logger","colors"],"mappings":"AAAA,yMAA4B,wDAAyC,wDAAyC,wDAA0C,gCAA6B,wDAAyC,wDAAyC,gCAA6B,gFCCjR,MA0BnB,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,GAAM,CAAE,uBAAA,CAAAC,CAAwB,CAAA,CAAI,MAAMC,kCAAAA,CACxC,YAAA,CAAAZ,CAAAA,CACA,SAAA,CAAAE,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAE,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAP,CAAAA,CACA,UAAA,CAAAK,CAAAA,CACA,eAAA,CAAAG,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,MAAA,CAAQC,CACV,CAAC,CAAA,CAGKI,CAAAA,CAAUC,iCAAAA,CACdH,CAAwB,GAAA,CAAKI,CAAAA,EAAM,MAAA,CAAO,IAAA,CAAKA,CAAC,CAAC,CAAA,CAAE,IAAA,CAAK,CAC1D,CAAA,CACAC,iCAAAA,CAASf,CAAMU,CAAAA,CAAyBE,CAAO,CAAA,CAC/CI,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,KAAA,CACL,CAAA,mBAAA,EAAsBP,CAAAA,CAAwB,MAAM,CAAA,mBAAA,EAAsBV,CAAI,CAAA,CAAA,CAChF,CACF,CACF,CAAA,oBAAA","file":"/home/runner/work/cli/cli/dist/impl-VEO2SBGG.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport colors from 'colors';\n\nimport { logger } from '../../../logger';\nimport { uniq } from 'lodash-es';\nimport { pullPrivacyRequests } from '../../../lib/requests';\nimport { writeCsv } from '../../../lib/cron';\nimport type { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface ExportCommandFlags {\n auth: string;\n sombraAuth?: string;\n actions?: RequestAction[];\n statuses?: RequestStatus[];\n transcendUrl: string;\n file: string;\n concurrency: number;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n showTests?: boolean;\n skipRequestIdentifiers?: boolean;\n pageLimit: number;\n}\n\n// `export` is a reserved keyword, so we need to prefix it with an underscore\n// eslint-disable-next-line no-underscore-dangle\nexport async function _export(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n pageLimit,\n actions,\n sombraAuth,\n skipRequestIdentifiers,\n statuses,\n createdAtBefore,\n createdAtAfter,\n showTests,\n }: ExportCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n const { requestsFormattedForCsv } = await pullPrivacyRequests({\n transcendUrl,\n pageLimit,\n actions,\n skipRequestIdentifiers,\n statuses,\n auth,\n sombraAuth,\n createdAtBefore,\n createdAtAfter,\n isTest: showTests,\n });\n\n // Write to CSV\n const headers = uniq(\n requestsFormattedForCsv.map((d) => Object.keys(d)).flat(),\n );\n writeCsv(file, requestsFormattedForCsv, headers);\n logger.info(\n colors.green(\n `Successfully wrote ${requestsFormattedForCsv.length} requests to file \"${file}\"`,\n ),\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkTXG7TJLKcjs = require('./chunk-TXG7TJLK.cjs');require('./chunk-QEM6S2W7.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkUTU4F57Hcjs = require('./chunk-UTU4F57H.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkWI7C7KDMcjs = require('./chunk-WI7C7KDM.cjs');require('./chunk-Q7I37FJV.cjs');var _bluebird = require('bluebird');var _fs = require('fs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function I({transcendUrl:i,auth:c,pageSize:h,publishToPrivacyCenter:y,contents:l,deleteExtraAttributeValues:m=!1,classifyService:f=!1}){let u=_chunkUTU4F57Hcjs.vc.call(void 0, i,c);try{return!await _chunkUTU4F57Hcjs.bg.call(void 0, l,u,{pageSize:h,publishToPrivacyCenter:y,classifyService:f,deleteExtraAttributeValues:m})}catch(o){return _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An unexpected error occurred syncing the schema: ${o.message}`)),!1}}async function U({file:i="./transcend.yml",transcendUrl:c,auth:h,variables:y,pageSize:l,publishToPrivacyCenter:m,classifyService:f,deleteExtraAttributeValues:u}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let o=await _chunkTXG7TJLKcjs.b.call(void 0, h),N=_chunkUTU4F57Hcjs.Rf.call(void 0, y),p;if(Array.isArray(o)&&_fs.lstatSync.call(void 0, i).isDirectory()?p=_chunkTXG7TJLKcjs.c.call(void 0, i).map(e=>_path.join.call(void 0, i,e)):p=i.split(","),p.length<1)throw new Error("No file specified!");let s=p.map(e=>{_fs.existsSync.call(void 0, e)?_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading file "${e}"...`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The file path does not exist on disk: ${e}. You can specify the filepath using --file=./examples/transcend.yml`)),this.process.exit(1));try{let r=_chunkSW5CIF5Dcjs.d.call(void 0, e,N);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully read in "${e}"`)),{content:r,name:e.split("/").pop().replace(".yml","")}}catch(r){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The shape of your yaml file is invalid with the following errors: ${r.message}`)),this.process.exit(1)}});if(typeof o=="string"){let[e,...r]=s.map(({content:d})=>d),$=_chunkIBTP5OXEcjs.a.call(void 0, e,...r);await I({transcendUrl:c,auth:o,contents:$,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,pageSize:l,classifyService:!!f})||(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors. View output above for more information, or check out ${_chunkWI7C7KDMcjs.p}`)),this.process.exit(1))}else{if(s.length!==1&&s.length!==o.length)throw new Error(`Expected list of yml files to be equal to the list of API keys.Got ${s.length} YML file${s.length===1?"":"s"} and ${o.length} API key${o.length===1?"":"s"}`);let e=[];await _bluebird.mapSeries.call(void 0, o,async(r,$)=>{let a=`[${$+1}/${o.length}][${r.organizationName}] `;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`~~~
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkEXKPAUEPcjs = require('./chunk-EXKPAUEP.cjs');require('./chunk-QEM6S2W7.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk2IKWKGREcjs = require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');var _bluebird = require('bluebird');var _fs = require('fs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function I({transcendUrl:i,auth:c,pageSize:h,publishToPrivacyCenter:y,contents:l,deleteExtraAttributeValues:m=!1,classifyService:f=!1}){let u=_chunkCFAKXEZBcjs.vc.call(void 0, i,c);try{return!await _chunkCFAKXEZBcjs.cg.call(void 0, l,u,{pageSize:h,publishToPrivacyCenter:y,classifyService:f,deleteExtraAttributeValues:m})}catch(o){return _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An unexpected error occurred syncing the schema: ${o.message}`)),!1}}async function U({file:i="./transcend.yml",transcendUrl:c,auth:h,variables:y,pageSize:l,publishToPrivacyCenter:m,classifyService:f,deleteExtraAttributeValues:u}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let o=await _chunkEXKPAUEPcjs.b.call(void 0, h),N=_chunkCFAKXEZBcjs.Sf.call(void 0, y),p;if(Array.isArray(o)&&_fs.lstatSync.call(void 0, i).isDirectory()?p=_chunkEXKPAUEPcjs.c.call(void 0, i).map(e=>_path.join.call(void 0, i,e)):p=i.split(","),p.length<1)throw new Error("No file specified!");let s=p.map(e=>{_fs.existsSync.call(void 0, e)?_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading file "${e}"...`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The file path does not exist on disk: ${e}. You can specify the filepath using --file=./examples/transcend.yml`)),this.process.exit(1));try{let r=_chunkSW5CIF5Dcjs.d.call(void 0, e,N);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully read in "${e}"`)),{content:r,name:e.split("/").pop().replace(".yml","")}}catch(r){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The shape of your yaml file is invalid with the following errors: ${r.message}`)),this.process.exit(1)}});if(typeof o=="string"){let[e,...r]=s.map(({content:d})=>d),$=_chunkIBTP5OXEcjs.a.call(void 0, e,...r);await I({transcendUrl:c,auth:o,contents:$,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,pageSize:l,classifyService:!!f})||(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors. View output above for more information, or check out ${_chunk2IKWKGREcjs.p}`)),this.process.exit(1))}else{if(s.length!==1&&s.length!==o.length)throw new Error(`Expected list of yml files to be equal to the list of API keys.Got ${s.length} YML file${s.length===1?"":"s"} and ${o.length} API key${o.length===1?"":"s"}`);let e=[];await _bluebird.mapSeries.call(void 0, o,async(r,$)=>{let a=`[${$+1}/${o.length}][${r.organizationName}] `;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`~~~
2
2
 
3
3
  ${a}Attempting to push configuration...
4
4
 
5
- ~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(E=>E.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await I({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${_chunkWI7C7KDMcjs.p}`)),this.process.exit(1))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced yaml file to Transcend! View at ${_chunkWI7C7KDMcjs.p}`))}exports.push = U;
6
- //# sourceMappingURL=impl-VRKVDMBB.cjs.map
5
+ ~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(E=>E.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await I({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${_chunk2IKWKGREcjs.p}`)),this.process.exit(1))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced yaml file to Transcend! View at ${_chunk2IKWKGREcjs.p}`))}exports.push = U;
6
+ //# sourceMappingURL=impl-VYR77UN4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-VRKVDMBB.cjs","../src/commands/inventory/push/impl.ts"],"names":["syncConfiguration","transcendUrl","auth","pageSize","publishToPrivacyCenter","contents","deleteExtraAttributeValues","classifyService","client","buildTranscendGraphQLClient","syncConfigurationToTranscend","err","logger","colors"],"mappings":"AAAA,quBAAwC,wDAAyC,wDAAgD,gCAA6B,wDAAyC,wDAA0D,gCAA6B,wDAAyC,wDAAyC,gCAA6B,oCCGnX,wBACY,4BACjB,gFAEF,MAmBnB,SAAeA,CAAAA,CAAkB,CAC/B,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,0BAAA,CAAAC,CAAAA,CAA6B,CAAA,CAAA,CAC7B,eAAA,CAAAC,CAAAA,CAAkB,CAAA,CACpB,CAAA,CAeqB,CACnB,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcC,CAAI,CAAA,CAG7D,GAAI,CAWF,MAAO,CAVkB,MAAMQ,kCAAAA,CAC7BL,CACAG,CAAAA,CACA,CACE,QAAA,CAAAL,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAG,CAAAA,CACA,0BAAA,CAAAD,CACF,CACF,CAEF,CAAA,KAAA,CAASK,CAAAA,CAAK,CACZ,OAAAC,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,iDAAA,EAAoDF,CAAAA,CAAI,OAAO,CAAA,CAAA;AAsI7D;AAAgB;AAAA;AA8D1B,GAAA","file":"/home/runner/work/cli/cli/dist/impl-VRKVDMBB.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\n\nimport { logger } from '../../../logger';\nimport { mapSeries } from 'bluebird';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { readTranscendYaml } from '../../../lib/readTranscendYaml';\nimport colors from 'colors';\nimport {\n buildTranscendGraphQLClient,\n syncConfigurationToTranscend,\n} from '../../../lib/graphql';\n\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants';\nimport { TranscendInput } from '../../../codecs';\nimport { validateTranscendAuth, listFiles } from '../../../lib/api-keys';\nimport { mergeTranscendInputs } from '../../../lib/mergeTranscendInputs';\nimport { parseVariablesFromString } from '../../../lib/helpers/parseVariablesFromString';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Sync configuration to Transcend\n *\n * @param options - Options\n * @returns True if synced successfully, false if error occurs\n */\nasync function syncConfiguration({\n transcendUrl,\n auth,\n pageSize,\n publishToPrivacyCenter,\n contents,\n deleteExtraAttributeValues = false,\n classifyService = false,\n}: {\n /** Transcend YAML */\n contents: TranscendInput;\n /** Transcend URL */\n transcendUrl: string;\n /** API key */\n auth: string;\n /** Page size */\n pageSize: number;\n /** Skip privacy center publish step */\n publishToPrivacyCenter: boolean;\n /** classify data flow service if missing */\n classifyService?: boolean;\n /** Delete attributes when syncing */\n deleteExtraAttributeValues?: boolean;\n}): Promise<boolean> {\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Sync to Transcend\n try {\n const encounteredError = await syncConfigurationToTranscend(\n contents,\n client,\n {\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n },\n );\n return !encounteredError;\n } catch (err) {\n logger.error(\n colors.red(\n `An unexpected error occurred syncing the schema: ${err.message}`,\n ),\n );\n return false;\n }\n}\n\nexport interface PushCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n pageSize: number;\n variables: string;\n publishToPrivacyCenter: boolean;\n classifyService: boolean;\n deleteExtraAttributeValues: boolean;\n}\n\nexport async function push(\n this: LocalContext,\n {\n file = './transcend.yml',\n transcendUrl,\n auth,\n variables,\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n }: PushCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\n\n // Parse out the variables\n const vars = parseVariablesFromString(variables);\n\n // check if we are being passed a list of API keys and a list of files\n let fileList: string[];\n if (Array.isArray(apiKeyOrList) && lstatSync(file).isDirectory()) {\n fileList = listFiles(file).map((filePath) => join(file, filePath));\n } else {\n fileList = file.split(',');\n }\n\n // Ensure at least one file is parsed\n if (fileList.length < 1) {\n throw new Error('No file specified!');\n }\n\n // eslint-disable-next-line array-callback-return,consistent-return\n const transcendInputs = fileList.map((filePath) => {\n // Ensure yaml file exists on disk\n if (!existsSync(filePath)) {\n logger.error(\n colors.red(\n `The file path does not exist on disk: ${filePath}. You can specify the filepath using --file=./examples/transcend.yml`,\n ),\n );\n this.process.exit(1);\n } else {\n logger.info(colors.magenta(`Reading file \"${filePath}\"...`));\n }\n\n try {\n // Read in the yaml file and validate it's shape\n const newContents = readTranscendYaml(filePath, vars);\n logger.info(colors.green(`Successfully read in \"${filePath}\"`));\n return {\n content: newContents,\n name: filePath.split('/').pop()!.replace('.yml', ''),\n };\n } catch (err) {\n logger.error(\n colors.red(\n `The shape of your yaml file is invalid with the following errors: ${err.message}`,\n ),\n );\n this.process.exit(1);\n }\n });\n\n // process a single API key\n if (typeof apiKeyOrList === 'string') {\n // if passed multiple inputs, merge them together\n const [base, ...rest] = transcendInputs.map(({ content }) => content);\n const contents = mergeTranscendInputs(base, ...rest);\n\n // sync the configuration\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKeyOrList,\n contents,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n pageSize,\n classifyService: !!classifyService,\n });\n\n // exist with error code\n if (!success) {\n logger.info(\n colors.red(\n `Sync encountered errors. View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n } else {\n // if passed multiple inputs, expect them to be one per instance\n if (\n transcendInputs.length !== 1 &&\n transcendInputs.length !== apiKeyOrList.length\n ) {\n throw new Error(\n 'Expected list of yml files to be equal to the list of API keys.' +\n `Got ${transcendInputs.length} YML file${\n transcendInputs.length === 1 ? '' : 's'\n } and ${apiKeyOrList.length} API key${\n apiKeyOrList.length === 1 ? '' : 's'\n }`,\n );\n }\n\n const encounteredErrors: string[] = [];\n await mapSeries(apiKeyOrList, async (apiKey, ind) => {\n const prefix = `[${ind + 1}/${apiKeyOrList.length}][${\n apiKey.organizationName\n }] `;\n logger.info(\n colors.magenta(\n `~~~\\n\\n${prefix}Attempting to push configuration...\\n\\n~~~`,\n ),\n );\n\n // use the merged contents if 1 yml passed, else use the contents that map to that organization\n const useContents =\n transcendInputs.length === 1\n ? transcendInputs[0].content\n : transcendInputs.find(\n (input) => input.name === apiKey.organizationName,\n )?.content;\n\n // Throw error if cannot find a yml file matching that organization name\n if (!useContents) {\n logger.error(\n colors.red(\n `${prefix}Failed to find transcend.yml file for organization: \"${apiKey.organizationName}\".`,\n ),\n );\n encounteredErrors.push(apiKey.organizationName);\n return;\n }\n\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKey.apiKey,\n contents: useContents,\n pageSize,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n classifyService,\n });\n\n if (success) {\n logger.info(\n colors.green(`${prefix}Successfully pushed configuration!`),\n );\n } else {\n logger.error(colors.red(`${prefix}Failed to sync configuration.`));\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n logger.info(\n colors.red(\n `Sync encountered errors for \"${encounteredErrors.join(\n ',',\n )}\". View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced yaml file to Transcend! View at ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-VYR77UN4.cjs","../src/commands/inventory/push/impl.ts"],"names":["syncConfiguration","transcendUrl","auth","pageSize","publishToPrivacyCenter","contents","deleteExtraAttributeValues","classifyService","client","buildTranscendGraphQLClient","syncConfigurationToTranscend","err","logger","colors"],"mappings":"AAAA,quBAAwC,wDAAyC,wDAAgD,gCAA6B,wDAAyC,wDAA0D,gCAA6B,wDAAyC,wDAAyC,gCAA6B,oCCGnX,wBACY,4BACjB,gFAEF,MAmBnB,SAAeA,CAAAA,CAAkB,CAC/B,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,0BAAA,CAAAC,CAAAA,CAA6B,CAAA,CAAA,CAC7B,eAAA,CAAAC,CAAAA,CAAkB,CAAA,CACpB,CAAA,CAeqB,CACnB,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcC,CAAI,CAAA,CAG7D,GAAI,CAWF,MAAO,CAVkB,MAAMQ,kCAAAA,CAC7BL,CACAG,CAAAA,CACA,CACE,QAAA,CAAAL,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAG,CAAAA,CACA,0BAAA,CAAAD,CACF,CACF,CAEF,CAAA,KAAA,CAASK,CAAAA,CAAK,CACZ,OAAAC,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,iDAAA,EAAoDF,CAAAA,CAAI,OAAO,CAAA,CAAA;AAsI7D;AAAgB;AAAA;AA8D1B,GAAA","file":"/home/runner/work/cli/cli/dist/impl-VYR77UN4.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\n\nimport { logger } from '../../../logger';\nimport { mapSeries } from 'bluebird';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { readTranscendYaml } from '../../../lib/readTranscendYaml';\nimport colors from 'colors';\nimport {\n buildTranscendGraphQLClient,\n syncConfigurationToTranscend,\n} from '../../../lib/graphql';\n\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants';\nimport { TranscendInput } from '../../../codecs';\nimport { validateTranscendAuth, listFiles } from '../../../lib/api-keys';\nimport { mergeTranscendInputs } from '../../../lib/mergeTranscendInputs';\nimport { parseVariablesFromString } from '../../../lib/helpers/parseVariablesFromString';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Sync configuration to Transcend\n *\n * @param options - Options\n * @returns True if synced successfully, false if error occurs\n */\nasync function syncConfiguration({\n transcendUrl,\n auth,\n pageSize,\n publishToPrivacyCenter,\n contents,\n deleteExtraAttributeValues = false,\n classifyService = false,\n}: {\n /** Transcend YAML */\n contents: TranscendInput;\n /** Transcend URL */\n transcendUrl: string;\n /** API key */\n auth: string;\n /** Page size */\n pageSize: number;\n /** Skip privacy center publish step */\n publishToPrivacyCenter: boolean;\n /** classify data flow service if missing */\n classifyService?: boolean;\n /** Delete attributes when syncing */\n deleteExtraAttributeValues?: boolean;\n}): Promise<boolean> {\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Sync to Transcend\n try {\n const encounteredError = await syncConfigurationToTranscend(\n contents,\n client,\n {\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n },\n );\n return !encounteredError;\n } catch (err) {\n logger.error(\n colors.red(\n `An unexpected error occurred syncing the schema: ${err.message}`,\n ),\n );\n return false;\n }\n}\n\nexport interface PushCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n pageSize: number;\n variables: string;\n publishToPrivacyCenter: boolean;\n classifyService: boolean;\n deleteExtraAttributeValues: boolean;\n}\n\nexport async function push(\n this: LocalContext,\n {\n file = './transcend.yml',\n transcendUrl,\n auth,\n variables,\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n }: PushCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\n\n // Parse out the variables\n const vars = parseVariablesFromString(variables);\n\n // check if we are being passed a list of API keys and a list of files\n let fileList: string[];\n if (Array.isArray(apiKeyOrList) && lstatSync(file).isDirectory()) {\n fileList = listFiles(file).map((filePath) => join(file, filePath));\n } else {\n fileList = file.split(',');\n }\n\n // Ensure at least one file is parsed\n if (fileList.length < 1) {\n throw new Error('No file specified!');\n }\n\n // eslint-disable-next-line array-callback-return,consistent-return\n const transcendInputs = fileList.map((filePath) => {\n // Ensure yaml file exists on disk\n if (!existsSync(filePath)) {\n logger.error(\n colors.red(\n `The file path does not exist on disk: ${filePath}. You can specify the filepath using --file=./examples/transcend.yml`,\n ),\n );\n this.process.exit(1);\n } else {\n logger.info(colors.magenta(`Reading file \"${filePath}\"...`));\n }\n\n try {\n // Read in the yaml file and validate it's shape\n const newContents = readTranscendYaml(filePath, vars);\n logger.info(colors.green(`Successfully read in \"${filePath}\"`));\n return {\n content: newContents,\n name: filePath.split('/').pop()!.replace('.yml', ''),\n };\n } catch (err) {\n logger.error(\n colors.red(\n `The shape of your yaml file is invalid with the following errors: ${err.message}`,\n ),\n );\n this.process.exit(1);\n }\n });\n\n // process a single API key\n if (typeof apiKeyOrList === 'string') {\n // if passed multiple inputs, merge them together\n const [base, ...rest] = transcendInputs.map(({ content }) => content);\n const contents = mergeTranscendInputs(base, ...rest);\n\n // sync the configuration\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKeyOrList,\n contents,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n pageSize,\n classifyService: !!classifyService,\n });\n\n // exist with error code\n if (!success) {\n logger.info(\n colors.red(\n `Sync encountered errors. View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n } else {\n // if passed multiple inputs, expect them to be one per instance\n if (\n transcendInputs.length !== 1 &&\n transcendInputs.length !== apiKeyOrList.length\n ) {\n throw new Error(\n 'Expected list of yml files to be equal to the list of API keys.' +\n `Got ${transcendInputs.length} YML file${\n transcendInputs.length === 1 ? '' : 's'\n } and ${apiKeyOrList.length} API key${\n apiKeyOrList.length === 1 ? '' : 's'\n }`,\n );\n }\n\n const encounteredErrors: string[] = [];\n await mapSeries(apiKeyOrList, async (apiKey, ind) => {\n const prefix = `[${ind + 1}/${apiKeyOrList.length}][${\n apiKey.organizationName\n }] `;\n logger.info(\n colors.magenta(\n `~~~\\n\\n${prefix}Attempting to push configuration...\\n\\n~~~`,\n ),\n );\n\n // use the merged contents if 1 yml passed, else use the contents that map to that organization\n const useContents =\n transcendInputs.length === 1\n ? transcendInputs[0].content\n : transcendInputs.find(\n (input) => input.name === apiKey.organizationName,\n )?.content;\n\n // Throw error if cannot find a yml file matching that organization name\n if (!useContents) {\n logger.error(\n colors.red(\n `${prefix}Failed to find transcend.yml file for organization: \"${apiKey.organizationName}\".`,\n ),\n );\n encounteredErrors.push(apiKey.organizationName);\n return;\n }\n\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKey.apiKey,\n contents: useContents,\n pageSize,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n classifyService,\n });\n\n if (success) {\n logger.info(\n colors.green(`${prefix}Successfully pushed configuration!`),\n );\n } else {\n logger.error(colors.red(`${prefix}Failed to sync configuration.`));\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n logger.info(\n colors.red(\n `Sync encountered errors for \"${encounteredErrors.join(\n ',',\n )}\". View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced yaml file to Transcend! View at ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2CCKVEWScjs = require('./chunk-2CCKVEWS.cjs');require('./chunk-LR3CPNDM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-UTU4F57H.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-WI7C7KDM.cjs');require('./chunk-Q7I37FJV.cjs');async function u({auth:r,transcendUrl:i,file:e,enricherId:o,concurrency:s,markSilent:a,sombraAuth:m}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunk2CCKVEWScjs.d.call(void 0, {file:e,transcendUrl:i,enricherId:o,concurrency:s,markSilent:a,auth:r,sombraAuth:m})}exports.pushIdentifiers = u;
2
- //# sourceMappingURL=impl-T3XZ5262.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWP4MWWEUcjs = require('./chunk-WP4MWWEU.cjs');require('./chunk-LR3CPNDM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');async function u({auth:r,transcendUrl:i,file:e,enricherId:o,concurrency:s,markSilent:a,sombraAuth:m}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkWP4MWWEUcjs.d.call(void 0, {file:e,transcendUrl:i,enricherId:o,concurrency:s,markSilent:a,auth:r,sombraAuth:m})}exports.pushIdentifiers = u;
2
+ //# sourceMappingURL=impl-YZBWTEQH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-T3XZ5262.cjs","../src/commands/request/preflight/push-identifiers/impl.ts"],"names":["pushIdentifiers","auth","transcendUrl","file","enricherId","concurrency","markSilent","sombraAuth","doneInputValidation","pushManualEnrichmentIdentifiersFromCsv"],"mappings":"AAAA,iIAAwC,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCc/P,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,iCAAAA,CACJ,IAAA,CAAAN,CAAAA,CACA,YAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,IAAA,CAAAL,CAAAA,CACA,UAAA,CAAAM,CACF,CAAC,CACH,CAAA,4BAAA","file":"/home/runner/work/cli/cli/dist/impl-T3XZ5262.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../../context';\nimport { pushManualEnrichmentIdentifiersFromCsv } from '../../../../lib/manual-enrichment';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation';\n\nexport interface PushIdentifiersCommandFlags {\n auth: string;\n enricherId: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n markSilent: boolean;\n concurrency: number;\n}\n\nexport async function pushIdentifiers(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n enricherId,\n concurrency,\n markSilent,\n sombraAuth,\n }: PushIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await pushManualEnrichmentIdentifiersFromCsv({\n file,\n transcendUrl,\n enricherId,\n concurrency,\n markSilent,\n auth,\n sombraAuth,\n });\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-YZBWTEQH.cjs","../src/commands/request/preflight/push-identifiers/impl.ts"],"names":["pushIdentifiers","auth","transcendUrl","file","enricherId","concurrency","markSilent","sombraAuth","doneInputValidation","pushManualEnrichmentIdentifiersFromCsv"],"mappings":"AAAA,iIAAwC,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCc/P,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,iCAAAA,CACJ,IAAA,CAAAN,CAAAA,CACA,YAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,IAAA,CAAAL,CAAAA,CACA,UAAA,CAAAM,CACF,CAAC,CACH,CAAA,4BAAA","file":"/home/runner/work/cli/cli/dist/impl-YZBWTEQH.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../../context';\nimport { pushManualEnrichmentIdentifiersFromCsv } from '../../../../lib/manual-enrichment';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation';\n\nexport interface PushIdentifiersCommandFlags {\n auth: string;\n enricherId: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n markSilent: boolean;\n concurrency: number;\n}\n\nexport async function pushIdentifiers(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n enricherId,\n concurrency,\n markSilent,\n sombraAuth,\n }: PushIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await pushManualEnrichmentIdentifiersFromCsv({\n file,\n transcendUrl,\n enricherId,\n concurrency,\n markSilent,\n auth,\n sombraAuth,\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkXCTTKA6Ccjs = require('./chunk-XCTTKA6C.cjs');require('./chunk-VWFYPZ4Q.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkUTU4F57Hcjs = require('./chunk-UTU4F57H.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkWI7C7KDMcjs = require('./chunk-WI7C7KDM.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function v({auth:y,file:a,transcendUrl:C,dataSiloIds:f,includeAttributes:D,includeGuessedCategories:P,parentCategories:b,subCategories:h=[]}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);try{let o=_chunkUTU4F57Hcjs.vc.call(void 0, C,y),$=await _chunkXCTTKA6Ccjs.a.call(void 0, o,{dataSiloIds:f,includeGuessedCategories:P,parentCategories:b,includeAttributes:D,subCategories:h});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing datapoints to file "${a}"...`));let s=[],j=$.map(t=>{let n={"Property ID":t.id,"Data Silo":t.dataSilo.title,Object:t.dataPoint.name,"Object Path":t.dataPoint.path.join("."),Property:t.name,"Property Description":t.description,"Data Categories":t.categories.map(e=>`${e.category}:${e.name}`).join(", "),"Guessed Category":_optionalChain([t, 'access', _ => _.pendingCategoryGuesses, 'optionalAccess', _2 => _2[0]])?`${t.pendingCategoryGuesses[0].category.category}:${t.pendingCategoryGuesses[0].category.name}`:"","Processing Purposes":t.purposes.map(e=>`${e.purpose}:${e.name}`).join(", "),...Object.entries(_chunkWI7C7KDMcjs.d.call(void 0, t.attributeValues||[],({attributeKey:e})=>e.name)).reduce((e,[x,A])=>(e[x]=A.map(G=>G.name).join(","),e),{})};return s=_chunkWI7C7KDMcjs.j.call(void 0, [...s,...Object.keys(n)]),n});_chunkLR3CPNDMcjs.c.call(void 0, a,j,s)}catch(o){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error occurred syncing the datapoints: ${o.message}`)),this.process.exit(1)}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced datapoints to disk at ${a}! View at ${_chunkWI7C7KDMcjs.q}`))}exports.pullDatapoints = v;
2
- //# sourceMappingURL=impl-57VL3VKK.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkR6TAK6HMcjs = require('./chunk-R6TAK6HM.cjs');require('./chunk-XAMXO4ZU.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk2IKWKGREcjs = require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function v({auth:y,file:a,transcendUrl:C,dataSiloIds:f,includeAttributes:D,includeGuessedCategories:P,parentCategories:b,subCategories:h=[]}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);try{let o=_chunkCFAKXEZBcjs.vc.call(void 0, C,y),$=await _chunkR6TAK6HMcjs.a.call(void 0, o,{dataSiloIds:f,includeGuessedCategories:P,parentCategories:b,includeAttributes:D,subCategories:h});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing datapoints to file "${a}"...`));let s=[],j=$.map(t=>{let n={"Property ID":t.id,"Data Silo":t.dataSilo.title,Object:t.dataPoint.name,"Object Path":t.dataPoint.path.join("."),Property:t.name,"Property Description":t.description,"Data Categories":t.categories.map(e=>`${e.category}:${e.name}`).join(", "),"Guessed Category":_optionalChain([t, 'access', _ => _.pendingCategoryGuesses, 'optionalAccess', _2 => _2[0]])?`${t.pendingCategoryGuesses[0].category.category}:${t.pendingCategoryGuesses[0].category.name}`:"","Processing Purposes":t.purposes.map(e=>`${e.purpose}:${e.name}`).join(", "),...Object.entries(_chunk2IKWKGREcjs.d.call(void 0, t.attributeValues||[],({attributeKey:e})=>e.name)).reduce((e,[x,A])=>(e[x]=A.map(G=>G.name).join(","),e),{})};return s=_chunk2IKWKGREcjs.j.call(void 0, [...s,...Object.keys(n)]),n});_chunkLR3CPNDMcjs.c.call(void 0, a,j,s)}catch(o){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error occurred syncing the datapoints: ${o.message}`)),this.process.exit(1)}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced datapoints to disk at ${a}! View at ${_chunk2IKWKGREcjs.q}`))}exports.pullDatapoints = v;
2
+ //# sourceMappingURL=impl-ZLI6YRLT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-57VL3VKK.cjs","../src/commands/inventory/pull-datapoints/impl.ts"],"names":["pullDatapoints","auth","file","transcendUrl","dataSiloIds","includeAttributes","includeGuessedCategories","parentCategories","subCategories","doneInputValidation","client","buildTranscendGraphQLClient","dataPoints","pullAllDatapoints","logger","colors","headers","inputs","point","result","category"],"mappings":"AAAA,quBAAwC,gCAA6B,wDAAyC,wDAAyC,wDAA0C,gCAA6B,wDAAyC,wDAAuD,gCAA6B,gFCIxU,MAmBnB,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CAAgB,CAAC,CACnB,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,GAAI,CAEF,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcF,CAAI,CAAA,CAEvDW,CAAAA,CAAa,MAAMC,iCAAAA,CAAkBH,CAAQ,CACjD,WAAA,CAAAN,CAAAA,CACA,wBAAA,CAAAE,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAF,CAAAA,CACA,aAAA,CAAAG,CACF,CAAC,CAAA,CAEDM,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,OAAA,CAAQ,CAAA,4BAAA,EAA+Bb,CAAI,CAAA,IAAA,CAAM,CAAC,CAAA,CACrE,IAAIc,CAAAA,CAAoB,CAAC,CAAA,CACnBC,CAAAA,CAASL,CAAAA,CAAW,GAAA,CAAKM,CAAAA,EAAU,CACvC,IAAMC,CAAAA,CAAS,CACb,aAAA,CAAeD,CAAAA,CAAM,EAAA,CACrB,WAAA,CAAaA,CAAAA,CAAM,QAAA,CAAS,KAAA,CAC5B,MAAA,CAAQA,CAAAA,CAAM,SAAA,CAAU,IAAA,CACxB,aAAA,CAAeA,CAAAA,CAAM,SAAA,CAAU,IAAA,CAAK,IAAA,CAAK,GAAG,CAAA,CAC5C,QAAA,CAAUA,CAAAA,CAAM,IAAA,CAChB,sBAAA,CAAwBA,CAAAA,CAAM,WAAA,CAC9B,iBAAA,CAAmBA,CAAAA,CAAM,UAAA,CACtB,GAAA,CAAKE,CAAAA,EAAa,CAAA,EAAA","file":"/home/runner/work/cli/cli/dist/impl-57VL3VKK.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { uniq, groupBy } from 'lodash-es';\n\nimport { logger } from '../../../logger';\nimport colors from 'colors';\nimport { buildTranscendGraphQLClient } from '../../../lib/graphql';\nimport { ADMIN_DASH_DATAPOINTS } from '../../../constants';\nimport { pullAllDatapoints } from '../../../lib/data-inventory';\nimport { writeCsv } from '../../../lib/cron';\nimport { DataCategoryType } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface PullDatapointsCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n dataSiloIds?: string[];\n includeAttributes: boolean;\n includeGuessedCategories: boolean;\n parentCategories?: DataCategoryType[];\n subCategories?: string[];\n}\n\nexport async function pullDatapoints(\n this: LocalContext,\n {\n auth,\n file,\n transcendUrl,\n dataSiloIds,\n includeAttributes,\n includeGuessedCategories,\n parentCategories,\n subCategories = [],\n }: PullDatapointsCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n try {\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n const dataPoints = await pullAllDatapoints(client, {\n dataSiloIds,\n includeGuessedCategories,\n parentCategories,\n includeAttributes,\n subCategories, // TODO: https://transcend.height.app/T-40482 - do by name not ID\n });\n\n logger.info(colors.magenta(`Writing datapoints to file \"${file}\"...`));\n let headers: string[] = [];\n const inputs = dataPoints.map((point) => {\n const result = {\n 'Property ID': point.id,\n 'Data Silo': point.dataSilo.title,\n Object: point.dataPoint.name,\n 'Object Path': point.dataPoint.path.join('.'),\n Property: point.name,\n 'Property Description': point.description,\n 'Data Categories': point.categories\n .map((category) => `${category.category}:${category.name}`)\n .join(', '),\n 'Guessed Category': point.pendingCategoryGuesses?.[0]\n ? `${point.pendingCategoryGuesses![0]!.category.category}:${\n point.pendingCategoryGuesses![0]!.category.name\n }`\n : '',\n 'Processing Purposes': point.purposes\n .map((purpose) => `${purpose.purpose}:${purpose.name}`)\n .join(', '),\n ...Object.entries(\n groupBy(\n point.attributeValues || [],\n ({ attributeKey }) => attributeKey.name,\n ),\n ).reduce((acc, [key, values]) => {\n acc[key] = values.map((value) => value.name).join(',');\n return acc;\n }, {} as Record<string, string>),\n };\n headers = uniq([...headers, ...Object.keys(result)]);\n return result;\n });\n writeCsv(file, inputs, headers);\n } catch (err) {\n logger.error(\n colors.red(`An error occurred syncing the datapoints: ${err.message}`),\n );\n this.process.exit(1);\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced datapoints to disk at ${file}! View at ${ADMIN_DASH_DATAPOINTS}`,\n ),\n );\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-ZLI6YRLT.cjs","../src/commands/inventory/pull-datapoints/impl.ts"],"names":["pullDatapoints","auth","file","transcendUrl","dataSiloIds","includeAttributes","includeGuessedCategories","parentCategories","subCategories","doneInputValidation","client","buildTranscendGraphQLClient","dataPoints","pullAllDatapoints","logger","colors","headers","inputs","point","result","category"],"mappings":"AAAA,quBAAwC,gCAA6B,wDAAyC,wDAAyC,wDAA0C,gCAA6B,wDAAyC,wDAAuD,gCAA6B,gFCIxU,MAmBnB,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CAAgB,CAAC,CACnB,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,GAAI,CAEF,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcF,CAAI,CAAA,CAEvDW,CAAAA,CAAa,MAAMC,iCAAAA,CAAkBH,CAAQ,CACjD,WAAA,CAAAN,CAAAA,CACA,wBAAA,CAAAE,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAF,CAAAA,CACA,aAAA,CAAAG,CACF,CAAC,CAAA,CAEDM,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,OAAA,CAAQ,CAAA,4BAAA,EAA+Bb,CAAI,CAAA,IAAA,CAAM,CAAC,CAAA,CACrE,IAAIc,CAAAA,CAAoB,CAAC,CAAA,CACnBC,CAAAA,CAASL,CAAAA,CAAW,GAAA,CAAKM,CAAAA,EAAU,CACvC,IAAMC,CAAAA,CAAS,CACb,aAAA,CAAeD,CAAAA,CAAM,EAAA,CACrB,WAAA,CAAaA,CAAAA,CAAM,QAAA,CAAS,KAAA,CAC5B,MAAA,CAAQA,CAAAA,CAAM,SAAA,CAAU,IAAA,CACxB,aAAA,CAAeA,CAAAA,CAAM,SAAA,CAAU,IAAA,CAAK,IAAA,CAAK,GAAG,CAAA,CAC5C,QAAA,CAAUA,CAAAA,CAAM,IAAA,CAChB,sBAAA,CAAwBA,CAAAA,CAAM,WAAA,CAC9B,iBAAA,CAAmBA,CAAAA,CAAM,UAAA,CACtB,GAAA,CAAKE,CAAAA,EAAa,CAAA,EAAA","file":"/home/runner/work/cli/cli/dist/impl-ZLI6YRLT.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { uniq, groupBy } from 'lodash-es';\n\nimport { logger } from '../../../logger';\nimport colors from 'colors';\nimport { buildTranscendGraphQLClient } from '../../../lib/graphql';\nimport { ADMIN_DASH_DATAPOINTS } from '../../../constants';\nimport { pullAllDatapoints } from '../../../lib/data-inventory';\nimport { writeCsv } from '../../../lib/cron';\nimport { DataCategoryType } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface PullDatapointsCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n dataSiloIds?: string[];\n includeAttributes: boolean;\n includeGuessedCategories: boolean;\n parentCategories?: DataCategoryType[];\n subCategories?: string[];\n}\n\nexport async function pullDatapoints(\n this: LocalContext,\n {\n auth,\n file,\n transcendUrl,\n dataSiloIds,\n includeAttributes,\n includeGuessedCategories,\n parentCategories,\n subCategories = [],\n }: PullDatapointsCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n try {\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n const dataPoints = await pullAllDatapoints(client, {\n dataSiloIds,\n includeGuessedCategories,\n parentCategories,\n includeAttributes,\n subCategories, // TODO: https://transcend.height.app/T-40482 - do by name not ID\n });\n\n logger.info(colors.magenta(`Writing datapoints to file \"${file}\"...`));\n let headers: string[] = [];\n const inputs = dataPoints.map((point) => {\n const result = {\n 'Property ID': point.id,\n 'Data Silo': point.dataSilo.title,\n Object: point.dataPoint.name,\n 'Object Path': point.dataPoint.path.join('.'),\n Property: point.name,\n 'Property Description': point.description,\n 'Data Categories': point.categories\n .map((category) => `${category.category}:${category.name}`)\n .join(', '),\n 'Guessed Category': point.pendingCategoryGuesses?.[0]\n ? `${point.pendingCategoryGuesses![0]!.category.category}:${\n point.pendingCategoryGuesses![0]!.category.name\n }`\n : '',\n 'Processing Purposes': point.purposes\n .map((purpose) => `${purpose.purpose}:${purpose.name}`)\n .join(', '),\n ...Object.entries(\n groupBy(\n point.attributeValues || [],\n ({ attributeKey }) => attributeKey.name,\n ),\n ).reduce((acc, [key, values]) => {\n acc[key] = values.map((value) => value.name).join(',');\n return acc;\n }, {} as Record<string, string>),\n };\n headers = uniq([...headers, ...Object.keys(result)]);\n return result;\n });\n writeCsv(file, inputs, headers);\n } catch (err) {\n logger.error(\n colors.red(`An error occurred syncing the datapoints: ${err.message}`),\n );\n this.process.exit(1);\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced datapoints to disk at ${file}! View at ${ADMIN_DASH_DATAPOINTS}`,\n ),\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkFK7EPQ7Kcjs = require('./chunk-FK7EPQ7K.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkTXG7TJLKcjs = require('./chunk-TXG7TJLK.cjs');require('./chunk-QEM6S2W7.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkUTU4F57Hcjs = require('./chunk-UTU4F57H.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-WI7C7KDM.cjs');require('./chunk-Q7I37FJV.cjs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _fs = require('fs');async function P({auth:S,dataFlowsYmlFolder:o,dataSilosYmlFolder:e,ignoreYmls:T=[],transcendUrl:v}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),(!_fs.existsSync.call(void 0, o)||!_fs.lstatSync.call(void 0, o).isDirectory())&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Folder does not exist: "${o}"`)),this.process.exit(1)),(!_fs.existsSync.call(void 0, e)||!_fs.lstatSync.call(void 0, e).isDirectory())&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Folder does not exist: "${e}"`)),this.process.exit(1));let u=_chunkUTU4F57Hcjs.vc.call(void 0, v,S),{serviceToTitle:w,serviceToSupportedIntegration:F}=await _chunkUTU4F57Hcjs.rd.call(void 0, u);_chunkTXG7TJLKcjs.c.call(void 0, o).forEach(i=>{let{"data-flows":C=[]}=_chunkSW5CIF5Dcjs.d.call(void 0, _path.join.call(void 0, o,i)),{adTechDataSilos:r,siteTechDataSilos:s}=_chunkFK7EPQ7Kcjs.a.call(void 0, C,{serviceToSupportedIntegration:F,serviceToTitle:w}),a=[...r,...s];_chunkZUNVPK23cjs.a.log(`Total Services: ${a.length}`),_chunkZUNVPK23cjs.a.log(`Ad Tech Services: ${r.length}`),_chunkZUNVPK23cjs.a.log(`Site Tech Services: ${s.length}`),_chunkSW5CIF5Dcjs.e.call(void 0, _path.join.call(void 0, e,i),{"data-silos":T.includes(i)?[]:a})})}exports.deriveDataSilosFromDataFlows = P;
2
- //# sourceMappingURL=impl-T2FIEZLI.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkG2PF2QFCcjs = require('./chunk-G2PF2QFC.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkEXKPAUEPcjs = require('./chunk-EXKPAUEP.cjs');require('./chunk-QEM6S2W7.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-2IKWKGRE.cjs');require('./chunk-Q7I37FJV.cjs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _fs = require('fs');async function P({auth:S,dataFlowsYmlFolder:o,dataSilosYmlFolder:e,ignoreYmls:T=[],transcendUrl:v}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),(!_fs.existsSync.call(void 0, o)||!_fs.lstatSync.call(void 0, o).isDirectory())&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Folder does not exist: "${o}"`)),this.process.exit(1)),(!_fs.existsSync.call(void 0, e)||!_fs.lstatSync.call(void 0, e).isDirectory())&&(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Folder does not exist: "${e}"`)),this.process.exit(1));let u=_chunkCFAKXEZBcjs.vc.call(void 0, v,S),{serviceToTitle:w,serviceToSupportedIntegration:F}=await _chunkCFAKXEZBcjs.sd.call(void 0, u);_chunkEXKPAUEPcjs.c.call(void 0, o).forEach(i=>{let{"data-flows":C=[]}=_chunkSW5CIF5Dcjs.d.call(void 0, _path.join.call(void 0, o,i)),{adTechDataSilos:r,siteTechDataSilos:s}=_chunkG2PF2QFCcjs.a.call(void 0, C,{serviceToSupportedIntegration:F,serviceToTitle:w}),a=[...r,...s];_chunkZUNVPK23cjs.a.log(`Total Services: ${a.length}`),_chunkZUNVPK23cjs.a.log(`Ad Tech Services: ${r.length}`),_chunkZUNVPK23cjs.a.log(`Site Tech Services: ${s.length}`),_chunkSW5CIF5Dcjs.e.call(void 0, _path.join.call(void 0, e,i),{"data-silos":T.includes(i)?[]:a})})}exports.deriveDataSilosFromDataFlows = P;
2
+ //# sourceMappingURL=impl-ZN4UWQUU.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-T2FIEZLI.cjs","../src/commands/inventory/derive-data-silos-from-data-flows/impl.ts"],"names":["deriveDataSilosFromDataFlows","auth","dataFlowsYmlFolder","dataSilosYmlFolder","ignoreYmls","transcendUrl","doneInputValidation","existsSync","lstatSync","logger","colors","client","buildTranscendGraphQLClient","serviceToTitle","serviceToSupportedIntegration","fetchAndIndexCatalogs","listFiles","directory","dataFlows","readTranscendYaml","join","adTechDataSilos","siteTechDataSilos","dataFlowsToDataSilos","dataSilos"],"mappings":"AAAA,iOAAwC,wDAAgD,wDAAyC,gCAA6B,wDAAyC,wDAAkD,gCAA6B,wDAAyC,gCAA6B,gCAA6B,4BCKpW,gFACF,wBAImB,MAgBtC,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAC,CAAA,CACd,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAAA,CAInC,CAACC,4BAAAA,CAA6B,CAAA,EAC9B,CAACC,2BAAAA,CAA4B,CAAA,CAAE,WAAA,CAAY,CAAA,CAAA,EAAA,CAE3CC,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,CAAA,wBAAA,EAA2BR,CAAkB,CAAA,CAAA,CAAG,CAAC,CAAA,CACzE,IAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAKnB,CAACK,4BAAAA,CAA6B,CAAA,EAC9B,CAACC,2BAAAA,CAA4B,CAAA,CAAE,WAAA,CAAY,CAAA,CAAA,EAAA,CAE3CC,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,CAAA,wBAAA,EAA2BP,CAAkB,CAAA,CAAA,CAAG,CAAC,CAAA,CACzE,IAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAIrB,IAAMQ,CAAAA,CAASC,kCAAAA,CAA4BP,CAAcJ,CAAI,CAAA,CACvD,CAAE,cAAA,CAAAY,CAAAA,CAAgB,6BAAA,CAAAC,CAA8B,CAAA,CACpD,MAAMC,kCAAAA,CAA4B,CAAA,CAGpCC,iCAAAA,CAA4B,CAAA,CAAE,OAAA,CAASC,CAAAA,EAAc,CAEnD,GAAM,CAAE,YAAA,CAAcC,CAAAA,CAAY,CAAC,CAAE,CAAA,CAAIC,iCAAAA,wBACvCC,CAAKlB,CAAoBe,CAAS,CACpC,CAAA,CAGM,CAAE,eAAA,CAAAI,CAAAA,CAAiB,iBAAA,CAAAC,CAAkB,CAAA,CAAIC,iCAAAA,CAC7CL,CACA,CACE,6BAAA,CAAAJ,CAAAA,CACA,cAAA,CAAAD,CACF,CACF,CAAA,CAGMW,CAAAA,CAAY,CAAC,GAAGH,CAAAA,CAAiB,GAAGC,CAAiB,CAAA,CAC3Db,mBAAAA,CAAO,GAAA,CAAI,CAAA,gBAAA,EAAmBe,CAAAA,CAAU,MAAM,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-T2FIEZLI.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport {\n fetchAndIndexCatalogs,\n buildTranscendGraphQLClient,\n} from '../../../lib/graphql';\nimport { join } from 'node:path';\nimport colors from 'colors';\nimport { logger } from '../../../logger';\nimport { dataFlowsToDataSilos } from '../../../lib/consent-manager/dataFlowsToDataSilos';\nimport { DataFlowInput } from '../../../codecs';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { listFiles } from '../../../lib/api-keys';\nimport {\n readTranscendYaml,\n writeTranscendYaml,\n} from '../../../lib/readTranscendYaml';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface DeriveDataSilosFromDataFlowsCommandFlags {\n auth: string;\n dataFlowsYmlFolder: string;\n dataSilosYmlFolder: string;\n ignoreYmls?: string[];\n transcendUrl: string;\n}\n\nexport async function deriveDataSilosFromDataFlows(\n this: LocalContext,\n {\n auth,\n dataFlowsYmlFolder,\n dataSilosYmlFolder,\n ignoreYmls = [],\n transcendUrl,\n }: DeriveDataSilosFromDataFlowsCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Ensure folder is passed\n if (\n !existsSync(dataFlowsYmlFolder) ||\n !lstatSync(dataFlowsYmlFolder).isDirectory()\n ) {\n logger.error(colors.red(`Folder does not exist: \"${dataFlowsYmlFolder}\"`));\n this.process.exit(1);\n }\n\n // Ensure folder is passed\n if (\n !existsSync(dataSilosYmlFolder) ||\n !lstatSync(dataSilosYmlFolder).isDirectory()\n ) {\n logger.error(colors.red(`Folder does not exist: \"${dataSilosYmlFolder}\"`));\n this.process.exit(1);\n }\n\n // Fetch all integrations in the catalog\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n const { serviceToTitle, serviceToSupportedIntegration } =\n await fetchAndIndexCatalogs(client);\n\n // List of each data flow yml file\n listFiles(dataFlowsYmlFolder).forEach((directory) => {\n // read in the data flows for a specific instance\n const { 'data-flows': dataFlows = [] } = readTranscendYaml(\n join(dataFlowsYmlFolder, directory),\n );\n\n // map the data flows to data silos\n const { adTechDataSilos, siteTechDataSilos } = dataFlowsToDataSilos(\n dataFlows as DataFlowInput[],\n {\n serviceToSupportedIntegration,\n serviceToTitle,\n },\n );\n\n // combine and write to yml file\n const dataSilos = [...adTechDataSilos, ...siteTechDataSilos];\n logger.log(`Total Services: ${dataSilos.length}`);\n logger.log(`Ad Tech Services: ${adTechDataSilos.length}`);\n logger.log(`Site Tech Services: ${siteTechDataSilos.length}`);\n writeTranscendYaml(join(dataSilosYmlFolder, directory), {\n 'data-silos': ignoreYmls.includes(directory) ? [] : dataSilos,\n });\n });\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-ZN4UWQUU.cjs","../src/commands/inventory/derive-data-silos-from-data-flows/impl.ts"],"names":["deriveDataSilosFromDataFlows","auth","dataFlowsYmlFolder","dataSilosYmlFolder","ignoreYmls","transcendUrl","doneInputValidation","existsSync","lstatSync","logger","colors","client","buildTranscendGraphQLClient","serviceToTitle","serviceToSupportedIntegration","fetchAndIndexCatalogs","listFiles","directory","dataFlows","readTranscendYaml","join","adTechDataSilos","siteTechDataSilos","dataFlowsToDataSilos","dataSilos"],"mappings":"AAAA,iOAAwC,wDAAgD,wDAAyC,gCAA6B,wDAAyC,wDAAkD,gCAA6B,wDAAyC,gCAA6B,gCAA6B,4BCKpW,gFACF,wBAImB,MAgBtC,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAC,CAAA,CACd,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAAA,CAInC,CAACC,4BAAAA,CAA6B,CAAA,EAC9B,CAACC,2BAAAA,CAA4B,CAAA,CAAE,WAAA,CAAY,CAAA,CAAA,EAAA,CAE3CC,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,CAAA,wBAAA,EAA2BR,CAAkB,CAAA,CAAA,CAAG,CAAC,CAAA,CACzE,IAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAKnB,CAACK,4BAAAA,CAA6B,CAAA,EAC9B,CAACC,2BAAAA,CAA4B,CAAA,CAAE,WAAA,CAAY,CAAA,CAAA,EAAA,CAE3CC,mBAAAA,CAAO,KAAA,CAAMC,gBAAAA,CAAO,GAAA,CAAI,CAAA,wBAAA,EAA2BP,CAAkB,CAAA,CAAA,CAAG,CAAC,CAAA,CACzE,IAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAIrB,IAAMQ,CAAAA,CAASC,kCAAAA,CAA4BP,CAAcJ,CAAI,CAAA,CACvD,CAAE,cAAA,CAAAY,CAAAA,CAAgB,6BAAA,CAAAC,CAA8B,CAAA,CACpD,MAAMC,kCAAAA,CAA4B,CAAA,CAGpCC,iCAAAA,CAA4B,CAAA,CAAE,OAAA,CAASC,CAAAA,EAAc,CAEnD,GAAM,CAAE,YAAA,CAAcC,CAAAA,CAAY,CAAC,CAAE,CAAA,CAAIC,iCAAAA,wBACvCC,CAAKlB,CAAoBe,CAAS,CACpC,CAAA,CAGM,CAAE,eAAA,CAAAI,CAAAA,CAAiB,iBAAA,CAAAC,CAAkB,CAAA,CAAIC,iCAAAA,CAC7CL,CACA,CACE,6BAAA,CAAAJ,CAAAA,CACA,cAAA,CAAAD,CACF,CACF,CAAA,CAGMW,CAAAA,CAAY,CAAC,GAAGH,CAAAA,CAAiB,GAAGC,CAAiB,CAAA,CAC3Db,mBAAAA,CAAO,GAAA,CAAI,CAAA,gBAAA,EAAmBe,CAAAA,CAAU,MAAM,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-ZN4UWQUU.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport {\n fetchAndIndexCatalogs,\n buildTranscendGraphQLClient,\n} from '../../../lib/graphql';\nimport { join } from 'node:path';\nimport colors from 'colors';\nimport { logger } from '../../../logger';\nimport { dataFlowsToDataSilos } from '../../../lib/consent-manager/dataFlowsToDataSilos';\nimport { DataFlowInput } from '../../../codecs';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { listFiles } from '../../../lib/api-keys';\nimport {\n readTranscendYaml,\n writeTranscendYaml,\n} from '../../../lib/readTranscendYaml';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface DeriveDataSilosFromDataFlowsCommandFlags {\n auth: string;\n dataFlowsYmlFolder: string;\n dataSilosYmlFolder: string;\n ignoreYmls?: string[];\n transcendUrl: string;\n}\n\nexport async function deriveDataSilosFromDataFlows(\n this: LocalContext,\n {\n auth,\n dataFlowsYmlFolder,\n dataSilosYmlFolder,\n ignoreYmls = [],\n transcendUrl,\n }: DeriveDataSilosFromDataFlowsCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Ensure folder is passed\n if (\n !existsSync(dataFlowsYmlFolder) ||\n !lstatSync(dataFlowsYmlFolder).isDirectory()\n ) {\n logger.error(colors.red(`Folder does not exist: \"${dataFlowsYmlFolder}\"`));\n this.process.exit(1);\n }\n\n // Ensure folder is passed\n if (\n !existsSync(dataSilosYmlFolder) ||\n !lstatSync(dataSilosYmlFolder).isDirectory()\n ) {\n logger.error(colors.red(`Folder does not exist: \"${dataSilosYmlFolder}\"`));\n this.process.exit(1);\n }\n\n // Fetch all integrations in the catalog\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n const { serviceToTitle, serviceToSupportedIntegration } =\n await fetchAndIndexCatalogs(client);\n\n // List of each data flow yml file\n listFiles(dataFlowsYmlFolder).forEach((directory) => {\n // read in the data flows for a specific instance\n const { 'data-flows': dataFlows = [] } = readTranscendYaml(\n join(dataFlowsYmlFolder, directory),\n );\n\n // map the data flows to data silos\n const { adTechDataSilos, siteTechDataSilos } = dataFlowsToDataSilos(\n dataFlows as DataFlowInput[],\n {\n serviceToSupportedIntegration,\n serviceToTitle,\n },\n );\n\n // combine and write to yml file\n const dataSilos = [...adTechDataSilos, ...siteTechDataSilos];\n logger.log(`Total Services: ${dataSilos.length}`);\n logger.log(`Ad Tech Services: ${adTechDataSilos.length}`);\n logger.log(`Site Tech Services: ${siteTechDataSilos.length}`);\n writeTranscendYaml(join(dataSilosYmlFolder, directory), {\n 'data-silos': ignoreYmls.includes(directory) ? [] : dataSilos,\n });\n });\n}\n"]}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunk2CCKVEWScjs = require('./chunk-2CCKVEWS.cjs');var _chunkXCTTKA6Ccjs = require('./chunk-XCTTKA6C.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkVWFYPZ4Qcjs = require('./chunk-VWFYPZ4Q.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkIXOC4S5Lcjs = require('./chunk-IXOC4S5L.cjs');var _chunkK45V7WKNcjs = require('./chunk-K45V7WKN.cjs');var _chunkTXG7TJLKcjs = require('./chunk-TXG7TJLK.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkUTU4F57Hcjs = require('./chunk-UTU4F57H.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkWI7C7KDMcjs = require('./chunk-WI7C7KDM.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkUTU4F57Hcjs._f.call(void 0, a,_chunkUTU4F57Hcjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Gm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkWI7C7KDMcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkUTU4F57Hcjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkWI7C7KDMcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkUTU4F57Hcjs.zd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkUTU4F57Hcjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkWI7C7KDMcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkWI7C7KDMcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkWI7C7KDMcjs.e.call(void 0, o.prompts,"title"),c=_chunkWI7C7KDMcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkUTU4F57Hcjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkUTU4F57Hcjs.Ad.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkWI7C7KDMcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkWI7C7KDMcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkUTU4F57Hcjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkUTU4F57Hcjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkUTU4F57Hcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkUTU4F57Hcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkUTU4F57Hcjs.ee.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function jm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Vm(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function Jm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkWP4MWWEUcjs = require('./chunk-WP4MWWEU.cjs');var _chunkR6TAK6HMcjs = require('./chunk-R6TAK6HM.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkXAMXO4ZUcjs = require('./chunk-XAMXO4ZU.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkWRFKBQI7cjs = require('./chunk-WRFKBQI7.cjs');var _chunkGN4PQZTWcjs = require('./chunk-GN4PQZTW.cjs');var _chunkEXKPAUEPcjs = require('./chunk-EXKPAUEP.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkCFAKXEZBcjs = require('./chunk-CFAKXEZB.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunk2IKWKGREcjs = require('./chunk-2IKWKGRE.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkCFAKXEZBcjs.$f.call(void 0, a,_chunkCFAKXEZBcjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Um(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunk2IKWKGREcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkCFAKXEZBcjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunk2IKWKGREcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkCFAKXEZBcjs.Ad.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkCFAKXEZBcjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunk2IKWKGREcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunk2IKWKGREcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunk2IKWKGREcjs.e.call(void 0, o.prompts,"title"),c=_chunk2IKWKGREcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkCFAKXEZBcjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkCFAKXEZBcjs.Bd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunk2IKWKGREcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunk2IKWKGREcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkCFAKXEZBcjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkCFAKXEZBcjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkCFAKXEZBcjs.fe.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkCFAKXEZBcjs.fe.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkCFAKXEZBcjs.fe.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Hm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function qm(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function Wm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
2
2
  `)[0],i=_child_process.execSync.call(void 0, "git rev-parse HEAD",{encoding:"utf-8"}).split(`
3
- `)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunkWI7C7KDMcjs.c.call(void 0, p.split(`
4
- `).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkUTU4F57Hcjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkUTU4F57Hcjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkUTU4F57Hcjs.G; exports.ADMIN_DASH = _chunkWI7C7KDMcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkWI7C7KDMcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkWI7C7KDMcjs.p; exports.AGENTS = _chunkUTU4F57Hcjs.Gb; exports.AGENT_FILES = _chunkUTU4F57Hcjs.Jb; exports.AGENT_FUNCTIONS = _chunkUTU4F57Hcjs.Mb; exports.API_KEYS = _chunkUTU4F57Hcjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkUTU4F57Hcjs.W; exports.ASSESSMENTS = _chunkUTU4F57Hcjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkUTU4F57Hcjs.da; exports.ASSESSMENT_TEMPLATES = _chunkUTU4F57Hcjs.ia; exports.ASSUME_ROLE = _chunkUTU4F57Hcjs.Eb; exports.ATTRIBUTES = _chunkUTU4F57Hcjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkUTU4F57Hcjs.L; exports.ATTRIBUTE_VALUES = _chunkUTU4F57Hcjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkUTU4F57Hcjs.Od; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkUTU4F57Hcjs.Nd; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkUTU4F57Hcjs.Qd; exports.AssessmentRule = _chunkUTU4F57Hcjs.Md; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentRuleWithOperands = _chunkUTU4F57Hcjs.Kd; exports.AssessmentRuleWithoutOperands = _chunkUTU4F57Hcjs.Ld; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkUTU4F57Hcjs.nf; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkUTU4F57Hcjs.cc; exports.BULK_APPLY = _chunkUTU4F57Hcjs.bc; exports.BULK_REQUEST_FILES = _chunkUTU4F57Hcjs.Ea; exports.BUSINESS_ENTITIES = _chunkUTU4F57Hcjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkUTU4F57Hcjs.X; exports.CAN_APPLY_IN_BULK = _chunkUTU4F57Hcjs.gc; exports.CATALOGS = _chunkUTU4F57Hcjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkUTU4F57Hcjs.ua; exports.CODE_PACKAGES = _chunkUTU4F57Hcjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkUTU4F57Hcjs.pb; exports.CONSENT_PARTITIONS = _chunkUTU4F57Hcjs.Ta; exports.COOKIES = _chunkUTU4F57Hcjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkUTU4F57Hcjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkUTU4F57Hcjs.Ia; exports.CREATE_AGENT = _chunkUTU4F57Hcjs.Hb; exports.CREATE_AGENT_FILE = _chunkUTU4F57Hcjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkUTU4F57Hcjs.Nb; exports.CREATE_API_KEY = _chunkUTU4F57Hcjs.E; exports.CREATE_ATTRIBUTE = _chunkUTU4F57Hcjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkUTU4F57Hcjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkUTU4F57Hcjs.rb; exports.CREATE_CODE_PACKAGE = _chunkUTU4F57Hcjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkUTU4F57Hcjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkUTU4F57Hcjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkUTU4F57Hcjs.ob; exports.CREATE_DATA_FLOWS = _chunkUTU4F57Hcjs.Ua; exports.CREATE_DATA_SILOS = _chunkUTU4F57Hcjs.m; exports.CREATE_DATA_SUBJECT = _chunkUTU4F57Hcjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkUTU4F57Hcjs.Tb; exports.CREATE_ENRICHER = _chunkUTU4F57Hcjs.p; exports.CREATE_IDENTIFIER = _chunkUTU4F57Hcjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkUTU4F57Hcjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkUTU4F57Hcjs.Wb; exports.CREATE_PROMPT = _chunkUTU4F57Hcjs.oa; exports.CREATE_PROMPT_GROUP = _chunkUTU4F57Hcjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkUTU4F57Hcjs.qa; exports.CREATE_REPOSITORY = _chunkUTU4F57Hcjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkUTU4F57Hcjs.O; exports.CREATE_TEAM = _chunkUTU4F57Hcjs.ya; exports.CREATE_TEMPLATE = _chunkUTU4F57Hcjs.J; exports.CREATE_VENDOR = _chunkUTU4F57Hcjs.Qb; exports.CachedFileState = _chunkUTU4F57Hcjs.hc; exports.CachedRequestState = _chunkUTU4F57Hcjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkUTU4F57Hcjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkUTU4F57Hcjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkIXOC4S5Lcjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunkVWFYPZ4Qcjs.a; exports.CronIdentifierPush = _chunkVWFYPZ4Qcjs.c; exports.DATAPOINT_EXPORT = _chunkUTU4F57Hcjs.g; exports.DATA_FLOWS = _chunkUTU4F57Hcjs.Xa; exports.DATA_POINTS = _chunkUTU4F57Hcjs.a; exports.DATA_POINT_COUNT = _chunkUTU4F57Hcjs.b; exports.DATA_SILOS = _chunkUTU4F57Hcjs.i; exports.DATA_SILOS_ENRICHED = _chunkUTU4F57Hcjs.k; exports.DATA_SILO_EXPORT = _chunkUTU4F57Hcjs.j; exports.DATA_SUBJECTS = _chunkUTU4F57Hcjs.w; exports.DATA_SUB_CATEGORIES = _chunkUTU4F57Hcjs.Sb; exports.DEBUG = _chunkWI7C7KDMcjs.z; exports.DEFAULT_TRANSCEND_API = _chunkWI7C7KDMcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkWI7C7KDMcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkUTU4F57Hcjs.ce; exports.DELETE_API_KEY = _chunkUTU4F57Hcjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkUTU4F57Hcjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkUTU4F57Hcjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkUTU4F57Hcjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkUTU4F57Hcjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkUTU4F57Hcjs.H; exports.ENRICHERS = _chunkUTU4F57Hcjs.n; exports.ENTRY_COUNT = _chunkUTU4F57Hcjs.h; exports.EXPERIENCES = _chunkUTU4F57Hcjs.Sa; exports.EnrichPrivacyRequest = _chunk2CCKVEWScjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkUTU4F57Hcjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkUTU4F57Hcjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkUTU4F57Hcjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkUTU4F57Hcjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkUTU4F57Hcjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkUTU4F57Hcjs.Ha; exports.IDENTIFIERS = _chunkUTU4F57Hcjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkUTU4F57Hcjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkUTU4F57Hcjs.fa; exports.INITIALIZER = _chunkUTU4F57Hcjs.o; exports.IP_ADDRESS_REGEX = _chunkIXOC4S5Lcjs.f; exports.IS_REQUIRED = _chunkUTU4F57Hcjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkUTU4F57Hcjs.rf; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkUTU4F57Hcjs.Fb; exports.LOGIN = _chunkUTU4F57Hcjs.Db; exports.MESSAGES = _chunkUTU4F57Hcjs._; exports.NEW_IDENTIFIER_TYPES = _chunkUTU4F57Hcjs.t; exports.NONE = _chunkUTU4F57Hcjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkUTU4F57Hcjs.Z; exports.ORGANIZATION = _chunkUTU4F57Hcjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkUTU4F57Hcjs.T; exports.PREFERENCE_TOPICS = _chunkUTU4F57Hcjs.ha; exports.PRIVACY_CENTER = _chunkUTU4F57Hcjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkUTU4F57Hcjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkUTU4F57Hcjs.Vb; exports.PROMPTS = _chunkUTU4F57Hcjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkUTU4F57Hcjs.ma; exports.PROMPT_GROUPS = _chunkUTU4F57Hcjs.la; exports.PROMPT_PARTIALS = _chunkUTU4F57Hcjs.ka; exports.PROMPT_THREADS = _chunkUTU4F57Hcjs.S; exports.PURPOSES = _chunkUTU4F57Hcjs.ga; exports.ParsedAttributeInput = _chunkUTU4F57Hcjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkUTU4F57Hcjs.jd; exports.PrivacyRequestInput = _chunkUTU4F57Hcjs.of; exports.PrivacyRequestResponse = _chunkUTU4F57Hcjs.xf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunkK45V7WKNcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkUTU4F57Hcjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkUTU4F57Hcjs.Aa; exports.REPORT_PROMPT_RUN = _chunkUTU4F57Hcjs.Fa; exports.REPOSITORIES = _chunkUTU4F57Hcjs.A; exports.REQUESTS = _chunkUTU4F57Hcjs.V; exports.REQUEST_DATA_SILOS = _chunkUTU4F57Hcjs.ta; exports.REQUEST_ENRICHERS = _chunkUTU4F57Hcjs.aa; exports.REQUEST_FILES = _chunkUTU4F57Hcjs.Da; exports.REQUEST_IDENTIFIERS = _chunkUTU4F57Hcjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunkWI7C7KDMcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkUTU4F57Hcjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkUTU4F57Hcjs.ba; exports.RateCounter = _chunkUTU4F57Hcjs.Yf; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkUTU4F57Hcjs.sf; exports.RequestFileMetadataResponse = _chunkUTU4F57Hcjs.tf; exports.RequestIdentifiersResponse = _chunkUTU4F57Hcjs.hd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunkWI7C7KDMcjs.w; exports.SCOPE_TITLES = _chunkWI7C7KDMcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkUTU4F57Hcjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkUTU4F57Hcjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkUTU4F57Hcjs.M; exports.SOMBRA_VERSION = _chunkUTU4F57Hcjs.$b; exports.SUB_DATA_POINTS = _chunkUTU4F57Hcjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkUTU4F57Hcjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkUTU4F57Hcjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkUTU4F57Hcjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkUTU4F57Hcjs.ic; exports.TEAMS = _chunkUTU4F57Hcjs.xa; exports.TEMPLATES = _chunkUTU4F57Hcjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkUTU4F57Hcjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkUTU4F57Hcjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkUTU4F57Hcjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkUTU4F57Hcjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkUTU4F57Hcjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkWI7C7KDMcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkWI7C7KDMcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkWI7C7KDMcjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkUTU4F57Hcjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkUTU4F57Hcjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkUTU4F57Hcjs.Ja; exports.UPDATE_AGENTS = _chunkUTU4F57Hcjs.Ib; exports.UPDATE_AGENT_FILES = _chunkUTU4F57Hcjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkUTU4F57Hcjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkUTU4F57Hcjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkUTU4F57Hcjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkUTU4F57Hcjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkUTU4F57Hcjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkUTU4F57Hcjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkUTU4F57Hcjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkUTU4F57Hcjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkUTU4F57Hcjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkUTU4F57Hcjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkUTU4F57Hcjs.bb; exports.UPDATE_DATA_FLOWS = _chunkUTU4F57Hcjs.Va; exports.UPDATE_DATA_SILOS = _chunkUTU4F57Hcjs.l; exports.UPDATE_DATA_SUBJECT = _chunkUTU4F57Hcjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkUTU4F57Hcjs.Ub; exports.UPDATE_ENRICHER = _chunkUTU4F57Hcjs.q; exports.UPDATE_IDENTIFIER = _chunkUTU4F57Hcjs.v; exports.UPDATE_INTL_MESSAGES = _chunkUTU4F57Hcjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkUTU4F57Hcjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkUTU4F57Hcjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkUTU4F57Hcjs.f; exports.UPDATE_POLICIES = _chunkUTU4F57Hcjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkUTU4F57Hcjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkUTU4F57Hcjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkUTU4F57Hcjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkUTU4F57Hcjs.Xb; exports.UPDATE_PROMPTS = _chunkUTU4F57Hcjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkUTU4F57Hcjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkUTU4F57Hcjs.pa; exports.UPDATE_REPOSITORIES = _chunkUTU4F57Hcjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkUTU4F57Hcjs.N; exports.UPDATE_TEAM = _chunkUTU4F57Hcjs.za; exports.UPDATE_VENDORS = _chunkUTU4F57Hcjs.Rb; exports.USERS = _chunkUTU4F57Hcjs.Ca; exports.USP_STRING_REGEX = _chunkK45V7WKNcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkUTU4F57Hcjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkUTU4F57Hcjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkUTU4F57Hcjs.zf; exports.assumeRole = _chunkUTU4F57Hcjs.Hd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkUTU4F57Hcjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkUTU4F57Hcjs.uc; exports.buildXdiSyncEndpoint = _chunkIXOC4S5Lcjs.g; exports.bulkRestartRequests = _chunkUTU4F57Hcjs.Hf; exports.bulkRetryEnrichers = _chunkUTU4F57Hcjs.Jf; exports.cancelPrivacyRequests = _chunkUTU4F57Hcjs.Cf; exports.consentManagersToBusinessEntities = _chunkIXOC4S5Lcjs.h; exports.convertToDataSubjectAllowlist = _chunkUTU4F57Hcjs.vd; exports.convertToDataSubjectBlockList = _chunkUTU4F57Hcjs.ud; exports.createActionItemCollection = _chunkUTU4F57Hcjs.ie; exports.createActionItems = _chunkUTU4F57Hcjs.le; exports.createAgent = _chunkUTU4F57Hcjs.ue; exports.createAgentFile = _chunkUTU4F57Hcjs.oe; exports.createAgentFunction = _chunkUTU4F57Hcjs.re; exports.createApiKey = _chunkUTU4F57Hcjs.Id; exports.createBusinessEntity = _chunkUTU4F57Hcjs.ye; exports.createCodePackage = _chunkUTU4F57Hcjs.He; exports.createConsentToken = _chunkK45V7WKNcjs.a; exports.createDataCategory = _chunkUTU4F57Hcjs.Oe; exports.createDataFlows = _chunkUTU4F57Hcjs.Se; exports.createProcessingPurpose = _chunkUTU4F57Hcjs.af; exports.createPrompt = _chunkUTU4F57Hcjs.df; exports.createRegexForTag = j; exports.createRepository = _chunkUTU4F57Hcjs.Ee; exports.createSoftwareDevelopmentKit = _chunkUTU4F57Hcjs.Be; exports.createSombraGotInstance = _chunkUTU4F57Hcjs.wc; exports.createTranscendConsentGotInstance = _chunkUTU4F57Hcjs.xc; exports.createVendor = _chunkUTU4F57Hcjs.gf; exports.defineTranscendPrompts = Gm; exports.deleteApiKey = _chunkUTU4F57Hcjs.Jd; exports.deployConsentManager = _chunkUTU4F57Hcjs.yc; exports.description = _chunkWI7C7KDMcjs.l; exports.domainToHost = _chunkIXOC4S5Lcjs.e; exports.downloadPrivacyRequestFiles = _chunkUTU4F57Hcjs.wf; exports.enrichPrivacyRequest = _chunk2CCKVEWScjs.c; exports.ensureAllDataSubjectsExist = _chunkUTU4F57Hcjs.td; exports.extractClientError = _chunkUTU4F57Hcjs.Ef; exports.extractErrorMessage = _chunkUTU4F57Hcjs.Tf; exports.fetchActiveSiloDiscoPlugin = _chunkUTU4F57Hcjs.Ac; exports.fetchAllActionItems = _chunkUTU4F57Hcjs.Bc; exports.fetchAllActions = _chunkUTU4F57Hcjs.Cc; exports.fetchAllAgentFiles = _chunkUTU4F57Hcjs.Dc; exports.fetchAllAgentFunctions = _chunkUTU4F57Hcjs.Ec; exports.fetchAllAgents = _chunkUTU4F57Hcjs.Fc; exports.fetchAllApiKeys = _chunkUTU4F57Hcjs.od; exports.fetchAllAssessmentTemplates = _chunkUTU4F57Hcjs.Hc; exports.fetchAllAssessments = _chunkUTU4F57Hcjs.Gc; exports.fetchAllAttributeValues = _chunkUTU4F57Hcjs.Jc; exports.fetchAllAttributes = _chunkUTU4F57Hcjs.Lc; exports.fetchAllBusinessEntities = _chunkUTU4F57Hcjs.Mc; exports.fetchAllCatalogs = _chunkUTU4F57Hcjs.qd; exports.fetchAllCookies = _chunkUTU4F57Hcjs.Tc; exports.fetchAllDataCategories = _chunkUTU4F57Hcjs.Uc; exports.fetchAllDataFlows = _chunkUTU4F57Hcjs.Vc; exports.fetchAllDataPoints = _chunkUTU4F57Hcjs.Ud; exports.fetchAllDataSilos = _chunkUTU4F57Hcjs.Sd; exports.fetchAllDataSubjects = _chunkUTU4F57Hcjs.sd; exports.fetchAllEnrichers = _chunkUTU4F57Hcjs.Yd; exports.fetchAllIdentifiers = _chunkUTU4F57Hcjs.$f; exports.fetchAllMessages = _chunkUTU4F57Hcjs.Wc; exports.fetchAllPolicies = _chunkUTU4F57Hcjs.Zc; exports.fetchAllPreferenceTopics = _chunkUTU4F57Hcjs.$c; exports.fetchAllPrivacyCenters = _chunkUTU4F57Hcjs.ad; exports.fetchAllProcessingActivities = _chunkUTU4F57Hcjs.bd; exports.fetchAllProcessingPurposes = _chunkUTU4F57Hcjs.cd; exports.fetchAllPromptGroups = _chunkUTU4F57Hcjs.wd; exports.fetchAllPromptPartials = _chunkUTU4F57Hcjs.xd; exports.fetchAllPromptThreads = _chunkUTU4F57Hcjs.Ad; exports.fetchAllPrompts = _chunkUTU4F57Hcjs.yd; exports.fetchAllPurposes = _chunkUTU4F57Hcjs.dd; exports.fetchAllPurposesAndPreferences = _chunkUTU4F57Hcjs.ed; exports.fetchAllRequestAttributeKeys = _chunkUTU4F57Hcjs.Ic; exports.fetchAllRequestEnrichers = _chunkUTU4F57Hcjs.fd; exports.fetchAllRequestIdentifierMetadata = _chunkUTU4F57Hcjs.gd; exports.fetchAllRequestIdentifiers = _chunkUTU4F57Hcjs.id; exports.fetchAllRequests = _chunkUTU4F57Hcjs.kd; exports.fetchAllSubDataPoints = _chunkUTU4F57Hcjs.Td; exports.fetchAllTeams = _chunkUTU4F57Hcjs.ld; exports.fetchAllTemplates = _chunkUTU4F57Hcjs._d; exports.fetchAllUsers = _chunkUTU4F57Hcjs.md; exports.fetchAllVendors = _chunkUTU4F57Hcjs.nd; exports.fetchAndIndexCatalogs = _chunkUTU4F57Hcjs.rd; exports.fetchApiKeys = _chunkUTU4F57Hcjs.pd; exports.fetchConsentManager = _chunkUTU4F57Hcjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkUTU4F57Hcjs.Rc; exports.fetchConsentManagerExperiences = _chunkUTU4F57Hcjs.Pc; exports.fetchConsentManagerId = _chunkUTU4F57Hcjs.Oc; exports.fetchConsentManagerTheme = _chunkUTU4F57Hcjs.Sc; exports.fetchConsentPreferences = _chunkIXOC4S5Lcjs.j; exports.fetchEnrichedDataSilos = _chunkUTU4F57Hcjs.Vd; exports.fetchIdentifiersAndCreateMissing = _chunkUTU4F57Hcjs.ag; exports.fetchPartitions = _chunkUTU4F57Hcjs.ae; exports.fetchPrivacyCenterId = _chunkUTU4F57Hcjs.Yc; exports.fetchPrivacyCenterUrl = _chunkUTU4F57Hcjs.Xc; exports.fetchPromptsWithVariables = _chunkUTU4F57Hcjs.zd; exports.fetchRequestDataSilo = _chunkUTU4F57Hcjs.Dd; exports.fetchRequestDataSiloActiveCount = _chunkUTU4F57Hcjs.Ed; exports.fetchRequestDataSilos = _chunkUTU4F57Hcjs.Cd; exports.fetchRequestDataSilosCount = _chunkUTU4F57Hcjs.Bd; exports.fetchRequestFilesForRequest = _chunkUTU4F57Hcjs.Fd; exports.filterNullishValuesFromObject = Vm; exports.filterRows = _chunkUTU4F57Hcjs.sc; exports.formatAttributeValues = _chunkUTU4F57Hcjs._c; exports.fuzzyMatchColumns = _chunkUTU4F57Hcjs.lc; exports.fuzzySearch = _chunkUTU4F57Hcjs.kc; exports.generateCrossAccountApiKeys = _chunkTXG7TJLKcjs.a; exports.getErrorStatus = _chunkUTU4F57Hcjs.Sf; exports.getFileMetadataForPrivacyRequests = _chunkUTU4F57Hcjs.uf; exports.getGitFilesThatChanged = Jm; exports.getUniqueValuesForColumn = _chunkUTU4F57Hcjs.rc; exports.inquirerAutoComplete = _chunkUTU4F57Hcjs.Qf; exports.inquirerConfirmBoolean = _chunkUTU4F57Hcjs.Of; exports.inquirerConfirmText = _chunkUTU4F57Hcjs.Pf; exports.limitRecords = _chunkUTU4F57Hcjs.Xf; exports.listDirectories = _chunkTXG7TJLKcjs.d; exports.listFiles = _chunkTXG7TJLKcjs.c; exports.loginUser = _chunkUTU4F57Hcjs.Gd; exports.makeGraphQLRequest = _chunkUTU4F57Hcjs._f; exports.mapColumnsToAttributes = _chunkUTU4F57Hcjs.Df; exports.mapColumnsToIdentifiers = _chunkUTU4F57Hcjs.Bf; exports.mapCsvColumnsToApi = _chunkUTU4F57Hcjs.lf; exports.mapCsvRowsToRequestInputs = _chunkUTU4F57Hcjs.qf; exports.mapEnumValues = _chunkUTU4F57Hcjs.mc; exports.mapRequestEnumValues = _chunkUTU4F57Hcjs.mf; exports.markCronIdentifierCompleted = _chunkVWFYPZ4Qcjs.d; exports.markRequestDataSiloIdsCompleted = _chunkVWFYPZ4Qcjs.f; exports.markSilentPrivacyRequests = _chunkUTU4F57Hcjs.kf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkWI7C7KDMcjs.n; exports.normalizeIdentifierValue = _chunkUTU4F57Hcjs.pf; exports.notifyPrivacyRequestsAdditionalTime = _chunkUTU4F57Hcjs.Af; exports.parseAssessmentDisplayLogic = _chunkUTU4F57Hcjs.Pd; exports.parseAssessmentRiskLogic = _chunkUTU4F57Hcjs.Rd; exports.parseAttributesFromString = _chunkUTU4F57Hcjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkUTU4F57Hcjs.Rf; exports.pullAllDatapoints = _chunkXCTTKA6Ccjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkVWFYPZ4Qcjs.g; exports.pullConsentManagerMetrics = _chunkIXOC4S5Lcjs.d; exports.pullCronPageOfIdentifiers = _chunkVWFYPZ4Qcjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunk2CCKVEWScjs.a; exports.pullPrivacyRequests = _chunkUTU4F57Hcjs.Lf; exports.pullTranscendConfiguration = _chunkUTU4F57Hcjs.de; exports.pullUnstructuredSubDataPointRecommendations = _chunkXCTTKA6Ccjs.b; exports.pushCronIdentifiersFromCsv = _chunkVWFYPZ4Qcjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunk2CCKVEWScjs.d; exports.readCsv = _chunkUTU4F57Hcjs.qc; exports.readSafe = _chunkUTU4F57Hcjs.Zf; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = jm; exports.removeUnverifiedRequestIdentifiers = _chunkUTU4F57Hcjs.Nf; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkUTU4F57Hcjs.ee; exports.restartPrivacyRequest = _chunkUTU4F57Hcjs.Gf; exports.retryRequestDataSilos = _chunkUTU4F57Hcjs.Kf; exports.retryRequestEnricher = _chunkUTU4F57Hcjs.fe; exports.retrySamePromise = _chunkUTU4F57Hcjs.Wf; exports.setResourceAttributes = _chunkUTU4F57Hcjs.ge; exports.skipPreflightJobs = _chunkUTU4F57Hcjs.If; exports.skipRequestDataSilos = _chunkUTU4F57Hcjs.Mf; exports.sleepPromise = _chunkUTU4F57Hcjs.Uf; exports.splitCsvToList = _chunkUTU4F57Hcjs.nc; exports.splitInHalf = _chunkUTU4F57Hcjs.Vf; exports.streamPrivacyRequestFiles = _chunkUTU4F57Hcjs.vf; exports.submitPrivacyRequest = _chunkUTU4F57Hcjs.yf; exports.syncAction = _chunkUTU4F57Hcjs.he; exports.syncActionItemCollections = _chunkUTU4F57Hcjs.ke; exports.syncActionItems = _chunkUTU4F57Hcjs.ne; exports.syncAgentFiles = _chunkUTU4F57Hcjs.qe; exports.syncAgentFunctions = _chunkUTU4F57Hcjs.te; exports.syncAgents = _chunkUTU4F57Hcjs.we; exports.syncAttribute = _chunkUTU4F57Hcjs.xe; exports.syncBusinessEntities = _chunkUTU4F57Hcjs.Ae; exports.syncCodePackages = _chunkUTU4F57Hcjs.Je; exports.syncConfigurationToTranscend = _chunkUTU4F57Hcjs.bg; exports.syncConsentManager = _chunkUTU4F57Hcjs.Le; exports.syncConsentManagerExperiences = _chunkUTU4F57Hcjs.Ke; exports.syncCookies = _chunkUTU4F57Hcjs.Ne; exports.syncDataCategories = _chunkUTU4F57Hcjs.Qe; exports.syncDataFlows = _chunkUTU4F57Hcjs.Te; exports.syncDataSiloDependencies = _chunkUTU4F57Hcjs.Xd; exports.syncDataSilos = _chunkUTU4F57Hcjs.Wd; exports.syncDataSubject = _chunkUTU4F57Hcjs.Ue; exports.syncEnricher = _chunkUTU4F57Hcjs.Zd; exports.syncIdentifier = _chunkUTU4F57Hcjs.Ve; exports.syncIntlMessages = _chunkUTU4F57Hcjs.Xe; exports.syncPartitions = _chunkUTU4F57Hcjs.be; exports.syncPolicies = _chunkUTU4F57Hcjs.Ze; exports.syncPrivacyCenter = _chunkUTU4F57Hcjs._e; exports.syncProcessingActivities = _chunkUTU4F57Hcjs.$e; exports.syncProcessingPurposes = _chunkUTU4F57Hcjs.cf; exports.syncPrompts = _chunkUTU4F57Hcjs.ff; exports.syncRepositories = _chunkUTU4F57Hcjs.Ge; exports.syncSoftwareDevelopmentKits = _chunkUTU4F57Hcjs.De; exports.syncTemplate = _chunkUTU4F57Hcjs.$d; exports.syncVendors = _chunkUTU4F57Hcjs.if; exports.updateActionItem = _chunkUTU4F57Hcjs.me; exports.updateActionItemCollection = _chunkUTU4F57Hcjs.je; exports.updateAgentFiles = _chunkUTU4F57Hcjs.pe; exports.updateAgentFunctions = _chunkUTU4F57Hcjs.se; exports.updateAgents = _chunkUTU4F57Hcjs.ve; exports.updateBusinessEntities = _chunkUTU4F57Hcjs.ze; exports.updateCodePackages = _chunkUTU4F57Hcjs.Ie; exports.updateConsentManagerToLatest = _chunkUTU4F57Hcjs.zc; exports.updateConsentManagerVersionToLatest = _chunkIXOC4S5Lcjs.a; exports.updateDataCategories = _chunkUTU4F57Hcjs.Pe; exports.updateDataFlows = _chunkUTU4F57Hcjs.Re; exports.updateIntlMessages = _chunkUTU4F57Hcjs.We; exports.updateOrCreateCookies = _chunkUTU4F57Hcjs.Me; exports.updatePolicies = _chunkUTU4F57Hcjs.Ye; exports.updateProcessingPurposes = _chunkUTU4F57Hcjs.bf; exports.updatePrompts = _chunkUTU4F57Hcjs.ef; exports.updateRepositories = _chunkUTU4F57Hcjs.Fe; exports.updateSoftwareDevelopmentKits = _chunkUTU4F57Hcjs.Ce; exports.updateVendors = _chunkUTU4F57Hcjs.hf; exports.uploadConsents = _chunkK45V7WKNcjs.f; exports.uploadCookiesFromCsv = _chunkIXOC4S5Lcjs.c; exports.uploadDataFlowsFromCsv = _chunkIXOC4S5Lcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkUTU4F57Hcjs.Ff; exports.uploadSiloDiscoveryResults = _chunkUTU4F57Hcjs.jf; exports.validateTranscendAuth = _chunkTXG7TJLKcjs.b; exports.version = _chunkWI7C7KDMcjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
3
+ `)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunk2IKWKGREcjs.c.call(void 0, p.split(`
4
+ `).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkCFAKXEZBcjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkCFAKXEZBcjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkCFAKXEZBcjs.G; exports.ADMIN_DASH = _chunk2IKWKGREcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunk2IKWKGREcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunk2IKWKGREcjs.p; exports.AGENTS = _chunkCFAKXEZBcjs.Gb; exports.AGENT_FILES = _chunkCFAKXEZBcjs.Jb; exports.AGENT_FUNCTIONS = _chunkCFAKXEZBcjs.Mb; exports.API_KEYS = _chunkCFAKXEZBcjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkCFAKXEZBcjs.W; exports.ASSESSMENTS = _chunkCFAKXEZBcjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkCFAKXEZBcjs.da; exports.ASSESSMENT_TEMPLATES = _chunkCFAKXEZBcjs.ia; exports.ASSUME_ROLE = _chunkCFAKXEZBcjs.Eb; exports.ATTRIBUTES = _chunkCFAKXEZBcjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkCFAKXEZBcjs.L; exports.ATTRIBUTE_VALUES = _chunkCFAKXEZBcjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkCFAKXEZBcjs.Pd; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkCFAKXEZBcjs.Od; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkCFAKXEZBcjs.Rd; exports.AssessmentRule = _chunkCFAKXEZBcjs.Nd; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentRuleWithOperands = _chunkCFAKXEZBcjs.Ld; exports.AssessmentRuleWithoutOperands = _chunkCFAKXEZBcjs.Md; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkCFAKXEZBcjs.of; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkCFAKXEZBcjs.cc; exports.BULK_APPLY = _chunkCFAKXEZBcjs.bc; exports.BULK_REQUEST_FILES = _chunkCFAKXEZBcjs.Ea; exports.BUSINESS_ENTITIES = _chunkCFAKXEZBcjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkCFAKXEZBcjs.X; exports.CAN_APPLY_IN_BULK = _chunkCFAKXEZBcjs.gc; exports.CATALOGS = _chunkCFAKXEZBcjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkCFAKXEZBcjs.ua; exports.CODE_PACKAGES = _chunkCFAKXEZBcjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkCFAKXEZBcjs.pb; exports.CONSENT_PARTITIONS = _chunkCFAKXEZBcjs.Ta; exports.COOKIES = _chunkCFAKXEZBcjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkCFAKXEZBcjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkCFAKXEZBcjs.Ia; exports.CREATE_AGENT = _chunkCFAKXEZBcjs.Hb; exports.CREATE_AGENT_FILE = _chunkCFAKXEZBcjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkCFAKXEZBcjs.Nb; exports.CREATE_API_KEY = _chunkCFAKXEZBcjs.E; exports.CREATE_ATTRIBUTE = _chunkCFAKXEZBcjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkCFAKXEZBcjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkCFAKXEZBcjs.rb; exports.CREATE_CODE_PACKAGE = _chunkCFAKXEZBcjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkCFAKXEZBcjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkCFAKXEZBcjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkCFAKXEZBcjs.ob; exports.CREATE_DATA_FLOWS = _chunkCFAKXEZBcjs.Ua; exports.CREATE_DATA_SILOS = _chunkCFAKXEZBcjs.m; exports.CREATE_DATA_SUBJECT = _chunkCFAKXEZBcjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkCFAKXEZBcjs.Tb; exports.CREATE_ENRICHER = _chunkCFAKXEZBcjs.p; exports.CREATE_IDENTIFIER = _chunkCFAKXEZBcjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkCFAKXEZBcjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkCFAKXEZBcjs.Wb; exports.CREATE_PROMPT = _chunkCFAKXEZBcjs.oa; exports.CREATE_PROMPT_GROUP = _chunkCFAKXEZBcjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkCFAKXEZBcjs.qa; exports.CREATE_REPOSITORY = _chunkCFAKXEZBcjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkCFAKXEZBcjs.O; exports.CREATE_TEAM = _chunkCFAKXEZBcjs.ya; exports.CREATE_TEMPLATE = _chunkCFAKXEZBcjs.J; exports.CREATE_VENDOR = _chunkCFAKXEZBcjs.Qb; exports.CachedFileState = _chunkCFAKXEZBcjs.hc; exports.CachedRequestState = _chunkCFAKXEZBcjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkCFAKXEZBcjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkCFAKXEZBcjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkWRFKBQI7cjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunkXAMXO4ZUcjs.a; exports.CronIdentifierPush = _chunkXAMXO4ZUcjs.c; exports.DATAPOINT_EXPORT = _chunkCFAKXEZBcjs.g; exports.DATA_FLOWS = _chunkCFAKXEZBcjs.Xa; exports.DATA_POINTS = _chunkCFAKXEZBcjs.a; exports.DATA_POINT_COUNT = _chunkCFAKXEZBcjs.b; exports.DATA_SILOS = _chunkCFAKXEZBcjs.i; exports.DATA_SILOS_ENRICHED = _chunkCFAKXEZBcjs.k; exports.DATA_SILO_EXPORT = _chunkCFAKXEZBcjs.j; exports.DATA_SUBJECTS = _chunkCFAKXEZBcjs.w; exports.DATA_SUB_CATEGORIES = _chunkCFAKXEZBcjs.Sb; exports.DEBUG = _chunk2IKWKGREcjs.z; exports.DEFAULT_TRANSCEND_API = _chunk2IKWKGREcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunk2IKWKGREcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkCFAKXEZBcjs.de; exports.DELETE_API_KEY = _chunkCFAKXEZBcjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkCFAKXEZBcjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkCFAKXEZBcjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkCFAKXEZBcjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkCFAKXEZBcjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkCFAKXEZBcjs.H; exports.ENRICHERS = _chunkCFAKXEZBcjs.n; exports.ENTRY_COUNT = _chunkCFAKXEZBcjs.h; exports.EXPERIENCES = _chunkCFAKXEZBcjs.Sa; exports.EnrichPrivacyRequest = _chunkWP4MWWEUcjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkCFAKXEZBcjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkCFAKXEZBcjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkCFAKXEZBcjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkCFAKXEZBcjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkCFAKXEZBcjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkCFAKXEZBcjs.Ha; exports.IDENTIFIERS = _chunkCFAKXEZBcjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkCFAKXEZBcjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkCFAKXEZBcjs.fa; exports.INITIALIZER = _chunkCFAKXEZBcjs.o; exports.IP_ADDRESS_REGEX = _chunkWRFKBQI7cjs.f; exports.IS_REQUIRED = _chunkCFAKXEZBcjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkCFAKXEZBcjs.sf; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkCFAKXEZBcjs.Fb; exports.LOGIN = _chunkCFAKXEZBcjs.Db; exports.MESSAGES = _chunkCFAKXEZBcjs._; exports.NEW_IDENTIFIER_TYPES = _chunkCFAKXEZBcjs.t; exports.NONE = _chunkCFAKXEZBcjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkCFAKXEZBcjs.Z; exports.ORGANIZATION = _chunkCFAKXEZBcjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkCFAKXEZBcjs.T; exports.PREFERENCE_TOPICS = _chunkCFAKXEZBcjs.ha; exports.PRIVACY_CENTER = _chunkCFAKXEZBcjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkCFAKXEZBcjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkCFAKXEZBcjs.Vb; exports.PROMPTS = _chunkCFAKXEZBcjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkCFAKXEZBcjs.ma; exports.PROMPT_GROUPS = _chunkCFAKXEZBcjs.la; exports.PROMPT_PARTIALS = _chunkCFAKXEZBcjs.ka; exports.PROMPT_THREADS = _chunkCFAKXEZBcjs.S; exports.PURPOSES = _chunkCFAKXEZBcjs.ga; exports.ParsedAttributeInput = _chunkCFAKXEZBcjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkCFAKXEZBcjs.kd; exports.PrivacyRequestInput = _chunkCFAKXEZBcjs.pf; exports.PrivacyRequestResponse = _chunkCFAKXEZBcjs.yf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunkGN4PQZTWcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkCFAKXEZBcjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkCFAKXEZBcjs.Aa; exports.REPORT_PROMPT_RUN = _chunkCFAKXEZBcjs.Fa; exports.REPOSITORIES = _chunkCFAKXEZBcjs.A; exports.REQUESTS = _chunkCFAKXEZBcjs.V; exports.REQUEST_DATA_SILOS = _chunkCFAKXEZBcjs.ta; exports.REQUEST_ENRICHERS = _chunkCFAKXEZBcjs.aa; exports.REQUEST_FILES = _chunkCFAKXEZBcjs.Da; exports.REQUEST_IDENTIFIERS = _chunkCFAKXEZBcjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunk2IKWKGREcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkCFAKXEZBcjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkCFAKXEZBcjs.ba; exports.RateCounter = _chunkCFAKXEZBcjs.Zf; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkCFAKXEZBcjs.tf; exports.RequestFileMetadataResponse = _chunkCFAKXEZBcjs.uf; exports.RequestIdentifiersResponse = _chunkCFAKXEZBcjs.hd; exports.RequestPurposeTrigger = _chunkCFAKXEZBcjs.jd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunk2IKWKGREcjs.w; exports.SCOPE_TITLES = _chunk2IKWKGREcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkCFAKXEZBcjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkCFAKXEZBcjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkCFAKXEZBcjs.M; exports.SOMBRA_VERSION = _chunkCFAKXEZBcjs.$b; exports.SUB_DATA_POINTS = _chunkCFAKXEZBcjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkCFAKXEZBcjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkCFAKXEZBcjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkCFAKXEZBcjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkCFAKXEZBcjs.ic; exports.TEAMS = _chunkCFAKXEZBcjs.xa; exports.TEMPLATES = _chunkCFAKXEZBcjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkCFAKXEZBcjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkCFAKXEZBcjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkCFAKXEZBcjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkCFAKXEZBcjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkCFAKXEZBcjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunk2IKWKGREcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunk2IKWKGREcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunk2IKWKGREcjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkCFAKXEZBcjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkCFAKXEZBcjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkCFAKXEZBcjs.Ja; exports.UPDATE_AGENTS = _chunkCFAKXEZBcjs.Ib; exports.UPDATE_AGENT_FILES = _chunkCFAKXEZBcjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkCFAKXEZBcjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkCFAKXEZBcjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkCFAKXEZBcjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkCFAKXEZBcjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkCFAKXEZBcjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkCFAKXEZBcjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkCFAKXEZBcjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkCFAKXEZBcjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkCFAKXEZBcjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkCFAKXEZBcjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkCFAKXEZBcjs.bb; exports.UPDATE_DATA_FLOWS = _chunkCFAKXEZBcjs.Va; exports.UPDATE_DATA_SILOS = _chunkCFAKXEZBcjs.l; exports.UPDATE_DATA_SUBJECT = _chunkCFAKXEZBcjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkCFAKXEZBcjs.Ub; exports.UPDATE_ENRICHER = _chunkCFAKXEZBcjs.q; exports.UPDATE_IDENTIFIER = _chunkCFAKXEZBcjs.v; exports.UPDATE_INTL_MESSAGES = _chunkCFAKXEZBcjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkCFAKXEZBcjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkCFAKXEZBcjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkCFAKXEZBcjs.f; exports.UPDATE_POLICIES = _chunkCFAKXEZBcjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkCFAKXEZBcjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkCFAKXEZBcjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkCFAKXEZBcjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkCFAKXEZBcjs.Xb; exports.UPDATE_PROMPTS = _chunkCFAKXEZBcjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkCFAKXEZBcjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkCFAKXEZBcjs.pa; exports.UPDATE_REPOSITORIES = _chunkCFAKXEZBcjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkCFAKXEZBcjs.N; exports.UPDATE_TEAM = _chunkCFAKXEZBcjs.za; exports.UPDATE_VENDORS = _chunkCFAKXEZBcjs.Rb; exports.USERS = _chunkCFAKXEZBcjs.Ca; exports.USP_STRING_REGEX = _chunkGN4PQZTWcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkCFAKXEZBcjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkCFAKXEZBcjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkCFAKXEZBcjs.Af; exports.assumeRole = _chunkCFAKXEZBcjs.Id; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkCFAKXEZBcjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkCFAKXEZBcjs.uc; exports.buildXdiSyncEndpoint = _chunkWRFKBQI7cjs.g; exports.bulkRestartRequests = _chunkCFAKXEZBcjs.If; exports.bulkRetryEnrichers = _chunkCFAKXEZBcjs.Kf; exports.cancelPrivacyRequests = _chunkCFAKXEZBcjs.Df; exports.consentManagersToBusinessEntities = _chunkWRFKBQI7cjs.h; exports.convertToDataSubjectAllowlist = _chunkCFAKXEZBcjs.wd; exports.convertToDataSubjectBlockList = _chunkCFAKXEZBcjs.vd; exports.createActionItemCollection = _chunkCFAKXEZBcjs.je; exports.createActionItems = _chunkCFAKXEZBcjs.me; exports.createAgent = _chunkCFAKXEZBcjs.ve; exports.createAgentFile = _chunkCFAKXEZBcjs.pe; exports.createAgentFunction = _chunkCFAKXEZBcjs.se; exports.createApiKey = _chunkCFAKXEZBcjs.Jd; exports.createBusinessEntity = _chunkCFAKXEZBcjs.ze; exports.createCodePackage = _chunkCFAKXEZBcjs.Ie; exports.createConsentToken = _chunkGN4PQZTWcjs.a; exports.createDataCategory = _chunkCFAKXEZBcjs.Pe; exports.createDataFlows = _chunkCFAKXEZBcjs.Te; exports.createProcessingPurpose = _chunkCFAKXEZBcjs.bf; exports.createPrompt = _chunkCFAKXEZBcjs.ef; exports.createRegexForTag = j; exports.createRepository = _chunkCFAKXEZBcjs.Fe; exports.createSoftwareDevelopmentKit = _chunkCFAKXEZBcjs.Ce; exports.createSombraGotInstance = _chunkCFAKXEZBcjs.wc; exports.createTranscendConsentGotInstance = _chunkCFAKXEZBcjs.xc; exports.createVendor = _chunkCFAKXEZBcjs.hf; exports.defineTranscendPrompts = Um; exports.deleteApiKey = _chunkCFAKXEZBcjs.Kd; exports.deployConsentManager = _chunkCFAKXEZBcjs.yc; exports.description = _chunk2IKWKGREcjs.l; exports.domainToHost = _chunkWRFKBQI7cjs.e; exports.downloadPrivacyRequestFiles = _chunkCFAKXEZBcjs.xf; exports.enrichPrivacyRequest = _chunkWP4MWWEUcjs.c; exports.ensureAllDataSubjectsExist = _chunkCFAKXEZBcjs.ud; exports.extractClientError = _chunkCFAKXEZBcjs.Ff; exports.extractErrorMessage = _chunkCFAKXEZBcjs.Uf; exports.fetchActiveSiloDiscoPlugin = _chunkCFAKXEZBcjs.Ac; exports.fetchAllActionItems = _chunkCFAKXEZBcjs.Bc; exports.fetchAllActions = _chunkCFAKXEZBcjs.Cc; exports.fetchAllAgentFiles = _chunkCFAKXEZBcjs.Dc; exports.fetchAllAgentFunctions = _chunkCFAKXEZBcjs.Ec; exports.fetchAllAgents = _chunkCFAKXEZBcjs.Fc; exports.fetchAllApiKeys = _chunkCFAKXEZBcjs.pd; exports.fetchAllAssessmentTemplates = _chunkCFAKXEZBcjs.Hc; exports.fetchAllAssessments = _chunkCFAKXEZBcjs.Gc; exports.fetchAllAttributeValues = _chunkCFAKXEZBcjs.Jc; exports.fetchAllAttributes = _chunkCFAKXEZBcjs.Lc; exports.fetchAllBusinessEntities = _chunkCFAKXEZBcjs.Mc; exports.fetchAllCatalogs = _chunkCFAKXEZBcjs.rd; exports.fetchAllCookies = _chunkCFAKXEZBcjs.Tc; exports.fetchAllDataCategories = _chunkCFAKXEZBcjs.Uc; exports.fetchAllDataFlows = _chunkCFAKXEZBcjs.Vc; exports.fetchAllDataPoints = _chunkCFAKXEZBcjs.Vd; exports.fetchAllDataSilos = _chunkCFAKXEZBcjs.Td; exports.fetchAllDataSubjects = _chunkCFAKXEZBcjs.td; exports.fetchAllEnrichers = _chunkCFAKXEZBcjs.Zd; exports.fetchAllIdentifiers = _chunkCFAKXEZBcjs.ag; exports.fetchAllMessages = _chunkCFAKXEZBcjs.Wc; exports.fetchAllPolicies = _chunkCFAKXEZBcjs.Zc; exports.fetchAllPreferenceTopics = _chunkCFAKXEZBcjs.$c; exports.fetchAllPrivacyCenters = _chunkCFAKXEZBcjs.ad; exports.fetchAllProcessingActivities = _chunkCFAKXEZBcjs.bd; exports.fetchAllProcessingPurposes = _chunkCFAKXEZBcjs.cd; exports.fetchAllPromptGroups = _chunkCFAKXEZBcjs.xd; exports.fetchAllPromptPartials = _chunkCFAKXEZBcjs.yd; exports.fetchAllPromptThreads = _chunkCFAKXEZBcjs.Bd; exports.fetchAllPrompts = _chunkCFAKXEZBcjs.zd; exports.fetchAllPurposes = _chunkCFAKXEZBcjs.dd; exports.fetchAllPurposesAndPreferences = _chunkCFAKXEZBcjs.ed; exports.fetchAllRequestAttributeKeys = _chunkCFAKXEZBcjs.Ic; exports.fetchAllRequestEnrichers = _chunkCFAKXEZBcjs.fd; exports.fetchAllRequestIdentifierMetadata = _chunkCFAKXEZBcjs.gd; exports.fetchAllRequestIdentifiers = _chunkCFAKXEZBcjs.id; exports.fetchAllRequests = _chunkCFAKXEZBcjs.ld; exports.fetchAllSubDataPoints = _chunkCFAKXEZBcjs.Ud; exports.fetchAllTeams = _chunkCFAKXEZBcjs.md; exports.fetchAllTemplates = _chunkCFAKXEZBcjs.$d; exports.fetchAllUsers = _chunkCFAKXEZBcjs.nd; exports.fetchAllVendors = _chunkCFAKXEZBcjs.od; exports.fetchAndIndexCatalogs = _chunkCFAKXEZBcjs.sd; exports.fetchApiKeys = _chunkCFAKXEZBcjs.qd; exports.fetchConsentManager = _chunkCFAKXEZBcjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkCFAKXEZBcjs.Rc; exports.fetchConsentManagerExperiences = _chunkCFAKXEZBcjs.Pc; exports.fetchConsentManagerId = _chunkCFAKXEZBcjs.Oc; exports.fetchConsentManagerTheme = _chunkCFAKXEZBcjs.Sc; exports.fetchConsentPreferences = _chunkWRFKBQI7cjs.j; exports.fetchEnrichedDataSilos = _chunkCFAKXEZBcjs.Wd; exports.fetchIdentifiersAndCreateMissing = _chunkCFAKXEZBcjs.bg; exports.fetchPartitions = _chunkCFAKXEZBcjs.be; exports.fetchPrivacyCenterId = _chunkCFAKXEZBcjs.Yc; exports.fetchPrivacyCenterUrl = _chunkCFAKXEZBcjs.Xc; exports.fetchPromptsWithVariables = _chunkCFAKXEZBcjs.Ad; exports.fetchRequestDataSilo = _chunkCFAKXEZBcjs.Ed; exports.fetchRequestDataSiloActiveCount = _chunkCFAKXEZBcjs.Fd; exports.fetchRequestDataSilos = _chunkCFAKXEZBcjs.Dd; exports.fetchRequestDataSilosCount = _chunkCFAKXEZBcjs.Cd; exports.fetchRequestFilesForRequest = _chunkCFAKXEZBcjs.Gd; exports.filterNullishValuesFromObject = qm; exports.filterRows = _chunkCFAKXEZBcjs.sc; exports.formatAttributeValues = _chunkCFAKXEZBcjs._c; exports.fuzzyMatchColumns = _chunkCFAKXEZBcjs.lc; exports.fuzzySearch = _chunkCFAKXEZBcjs.kc; exports.generateCrossAccountApiKeys = _chunkEXKPAUEPcjs.a; exports.getErrorStatus = _chunkCFAKXEZBcjs.Tf; exports.getFileMetadataForPrivacyRequests = _chunkCFAKXEZBcjs.vf; exports.getGitFilesThatChanged = Wm; exports.getUniqueValuesForColumn = _chunkCFAKXEZBcjs.rc; exports.inquirerAutoComplete = _chunkCFAKXEZBcjs.Rf; exports.inquirerConfirmBoolean = _chunkCFAKXEZBcjs.Pf; exports.inquirerConfirmText = _chunkCFAKXEZBcjs.Qf; exports.limitRecords = _chunkCFAKXEZBcjs.Yf; exports.listDirectories = _chunkEXKPAUEPcjs.d; exports.listFiles = _chunkEXKPAUEPcjs.c; exports.loginUser = _chunkCFAKXEZBcjs.Hd; exports.makeGraphQLRequest = _chunkCFAKXEZBcjs.$f; exports.mapColumnsToAttributes = _chunkCFAKXEZBcjs.Ef; exports.mapColumnsToIdentifiers = _chunkCFAKXEZBcjs.Cf; exports.mapCsvColumnsToApi = _chunkCFAKXEZBcjs.mf; exports.mapCsvRowsToRequestInputs = _chunkCFAKXEZBcjs.rf; exports.mapEnumValues = _chunkCFAKXEZBcjs.mc; exports.mapRequestEnumValues = _chunkCFAKXEZBcjs.nf; exports.markCronIdentifierCompleted = _chunkXAMXO4ZUcjs.d; exports.markRequestDataSiloIdsCompleted = _chunkXAMXO4ZUcjs.f; exports.markSilentPrivacyRequests = _chunkCFAKXEZBcjs.lf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunk2IKWKGREcjs.n; exports.normalizeIdentifierValue = _chunkCFAKXEZBcjs.qf; exports.notifyPrivacyRequestsAdditionalTime = _chunkCFAKXEZBcjs.Bf; exports.parseAssessmentDisplayLogic = _chunkCFAKXEZBcjs.Qd; exports.parseAssessmentRiskLogic = _chunkCFAKXEZBcjs.Sd; exports.parseAttributesFromString = _chunkCFAKXEZBcjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkCFAKXEZBcjs.Sf; exports.pullAllDatapoints = _chunkR6TAK6HMcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkXAMXO4ZUcjs.g; exports.pullConsentManagerMetrics = _chunkWRFKBQI7cjs.d; exports.pullCronPageOfIdentifiers = _chunkXAMXO4ZUcjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkWP4MWWEUcjs.a; exports.pullPrivacyRequests = _chunkCFAKXEZBcjs.Mf; exports.pullTranscendConfiguration = _chunkCFAKXEZBcjs.ee; exports.pullUnstructuredSubDataPointRecommendations = _chunkR6TAK6HMcjs.b; exports.pushCronIdentifiersFromCsv = _chunkXAMXO4ZUcjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkWP4MWWEUcjs.d; exports.readCsv = _chunkCFAKXEZBcjs.qc; exports.readSafe = _chunkCFAKXEZBcjs._f; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = Hm; exports.removeUnverifiedRequestIdentifiers = _chunkCFAKXEZBcjs.Of; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkCFAKXEZBcjs.fe; exports.restartPrivacyRequest = _chunkCFAKXEZBcjs.Hf; exports.retryRequestDataSilos = _chunkCFAKXEZBcjs.Lf; exports.retryRequestEnricher = _chunkCFAKXEZBcjs.ge; exports.retrySamePromise = _chunkCFAKXEZBcjs.Xf; exports.setResourceAttributes = _chunkCFAKXEZBcjs.he; exports.skipPreflightJobs = _chunkCFAKXEZBcjs.Jf; exports.skipRequestDataSilos = _chunkCFAKXEZBcjs.Nf; exports.sleepPromise = _chunkCFAKXEZBcjs.Vf; exports.splitCsvToList = _chunkCFAKXEZBcjs.nc; exports.splitInHalf = _chunkCFAKXEZBcjs.Wf; exports.streamPrivacyRequestFiles = _chunkCFAKXEZBcjs.wf; exports.submitPrivacyRequest = _chunkCFAKXEZBcjs.zf; exports.syncAction = _chunkCFAKXEZBcjs.ie; exports.syncActionItemCollections = _chunkCFAKXEZBcjs.le; exports.syncActionItems = _chunkCFAKXEZBcjs.oe; exports.syncAgentFiles = _chunkCFAKXEZBcjs.re; exports.syncAgentFunctions = _chunkCFAKXEZBcjs.ue; exports.syncAgents = _chunkCFAKXEZBcjs.xe; exports.syncAttribute = _chunkCFAKXEZBcjs.ye; exports.syncBusinessEntities = _chunkCFAKXEZBcjs.Be; exports.syncCodePackages = _chunkCFAKXEZBcjs.Ke; exports.syncConfigurationToTranscend = _chunkCFAKXEZBcjs.cg; exports.syncConsentManager = _chunkCFAKXEZBcjs.Me; exports.syncConsentManagerExperiences = _chunkCFAKXEZBcjs.Le; exports.syncCookies = _chunkCFAKXEZBcjs.Oe; exports.syncDataCategories = _chunkCFAKXEZBcjs.Re; exports.syncDataFlows = _chunkCFAKXEZBcjs.Ue; exports.syncDataSiloDependencies = _chunkCFAKXEZBcjs.Yd; exports.syncDataSilos = _chunkCFAKXEZBcjs.Xd; exports.syncDataSubject = _chunkCFAKXEZBcjs.Ve; exports.syncEnricher = _chunkCFAKXEZBcjs._d; exports.syncIdentifier = _chunkCFAKXEZBcjs.We; exports.syncIntlMessages = _chunkCFAKXEZBcjs.Ye; exports.syncPartitions = _chunkCFAKXEZBcjs.ce; exports.syncPolicies = _chunkCFAKXEZBcjs._e; exports.syncPrivacyCenter = _chunkCFAKXEZBcjs.$e; exports.syncProcessingActivities = _chunkCFAKXEZBcjs.af; exports.syncProcessingPurposes = _chunkCFAKXEZBcjs.df; exports.syncPrompts = _chunkCFAKXEZBcjs.gf; exports.syncRepositories = _chunkCFAKXEZBcjs.He; exports.syncSoftwareDevelopmentKits = _chunkCFAKXEZBcjs.Ee; exports.syncTemplate = _chunkCFAKXEZBcjs.ae; exports.syncVendors = _chunkCFAKXEZBcjs.jf; exports.updateActionItem = _chunkCFAKXEZBcjs.ne; exports.updateActionItemCollection = _chunkCFAKXEZBcjs.ke; exports.updateAgentFiles = _chunkCFAKXEZBcjs.qe; exports.updateAgentFunctions = _chunkCFAKXEZBcjs.te; exports.updateAgents = _chunkCFAKXEZBcjs.we; exports.updateBusinessEntities = _chunkCFAKXEZBcjs.Ae; exports.updateCodePackages = _chunkCFAKXEZBcjs.Je; exports.updateConsentManagerToLatest = _chunkCFAKXEZBcjs.zc; exports.updateConsentManagerVersionToLatest = _chunkWRFKBQI7cjs.a; exports.updateDataCategories = _chunkCFAKXEZBcjs.Qe; exports.updateDataFlows = _chunkCFAKXEZBcjs.Se; exports.updateIntlMessages = _chunkCFAKXEZBcjs.Xe; exports.updateOrCreateCookies = _chunkCFAKXEZBcjs.Ne; exports.updatePolicies = _chunkCFAKXEZBcjs.Ze; exports.updateProcessingPurposes = _chunkCFAKXEZBcjs.cf; exports.updatePrompts = _chunkCFAKXEZBcjs.ff; exports.updateRepositories = _chunkCFAKXEZBcjs.Ge; exports.updateSoftwareDevelopmentKits = _chunkCFAKXEZBcjs.De; exports.updateVendors = _chunkCFAKXEZBcjs.if; exports.uploadConsents = _chunkGN4PQZTWcjs.f; exports.uploadCookiesFromCsv = _chunkWRFKBQI7cjs.c; exports.uploadDataFlowsFromCsv = _chunkWRFKBQI7cjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkCFAKXEZBcjs.Gf; exports.uploadSiloDiscoveryResults = _chunkCFAKXEZBcjs.kf; exports.validateTranscendAuth = _chunkEXKPAUEPcjs.b; exports.version = _chunk2IKWKGREcjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
5
5
  //# sourceMappingURL=index.cjs.map